[Libreoffice] stucked with a bug
d.vastag at gmail.com
Mon Aug 29 03:28:25 PDT 2011
I've been having fun with Bug 33794
<https://bugs.freedesktop.org/show_bug.cgi?id=33794> for a while. In
some translations the Open button's text on LibreOffice start window is
overlapped by the small triangle symbol on the right of the open button
which is for recent files popup menu.
The problem is that the width of the symbol on the open button is not
taken into account at calculation of overall button width. Those buttons
on the start window come from vcl module (ImageButton, MenuButton. In
the function which lays them out they are passed as PushButton&).
To solve this issue I have to find a way somehow to extract dynamically
this symbol width information in code. I figured out that I can get it
by functions Button::ImplGetSymbolRect().getWidth() but unfortunately it
gives a kind of uninitialized value ( -32767 ) during the whole creation
of start window I don't know why. (If I call these functions after the
the start window showed up, they give the right information I've checked
I've got stucked at this point. I would really appreciate some help.
- The code of the start window is implemented in the
backingwindow.hxx/cxx in framework module.
- Each button is layed out in BackingWindow::initControls() by
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LibreOffice