Gregg Weber wrote:
I would like to work on a change to the sc code.
I have built the 2.0.4 source on my machine, and browsed the code for a month or so. The change my company wants me to make involves improving the drawing of the cells area of the sc window. Currently, it flashes, because the whole thing is drawn on the window, so you see a background square, then the grid appears, then the cells contents, etc. Of course it all happens very fast, but the result is an annoying flashing appearance.

The usual xlib solution is to draw into an offscreen pixmap, then copy the completed pixmap to the window. In gridwin4.cxx I would want to change the aOutputData at line 516 from a window to a pixmap, and at the
end of the ScGridWindow::Draw routine, copy the pixmap to the screen.

I am not an expert at xlib, or the openoffice higherlevel routines calling xlib, so I am not sure of the correct
details. Would anyone care to assist me with this project?

Since 2.0.4, there have been some changes to that code, in preparation of a similar solution. The XOR-ed elements (cell cursor, selection and some more) are now overlays, handled by class OverlayManager. The cell contents are at the moment still drawn to the window, though. This is not a perfect solution (as evidenced by issue 73602). The current plan is to draw cell contents into a VirtualDevice managed by the OverlayManager, too (as you wrote, pass that device to ScOutputData). We still have to find a solution for the editing of text in a cell or drawing object, because the EditEngine that handles text edit can currently only work with a Window.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to