Apache OpenOffice (AOO) Bugzilla – Issue 93162
wrong control font in design mode
Last modified: 2009-01-19 09:31:32 UTC
- open the attached document => note the font of the button in the document is rather large - switch off the control design mode (in the "Form Controls" toolbar) => the font on the control is much smaller now In fact, the font in alive mode is the proper one, the font in design mode is wrong.
Created attachment 56037 [details] document to reproduce the bug case
adding regression keyword (probably caused by aw033), targeting
AW: Happens only in SW, in Draw/Impress the font is okay. Problem is that in ControlPrimitive2D::createBitmapDecomposition where the fallback decompose tries to create a bitmap displaying the control the xControlView->setZoom(...) still is somehow related to the twips/100thmm differences between Writer and Draw/Impress/Calc. This relationship is deeply buried in formcontrols and toolkit somewhere and has to do with the SetZoom at VCL-Windows and the following update of the control font. It also has to do with the fact that controls in edit mode are VCL-Windows and have the application window as parent already. To fix this for the fallback - where no MapMode is available by purpose - i have to query the control for it's implementation, get the VCL-Window and check if it's parent uses 100thmm. Only then do i need to adapt the zoom at all. If it's in twips, the positionControlForPaint() which usually happens before decompose in ViewObjectContactOfUnoControl::createPrimitive2DSequence seems to be enough and zoom is okay despite rendering to a VDev without any MapMode.
AW: Checked in temporary solution, works. Maybe necessary to rework parts of FormControl visualisations.
AW->WG: Please verify. Fonts for form controls (e.g. simple button) should have the same font visualisation in SW and SD now as in DEV300 m29 (or the 3.0 release path if You have one installed already)
Verified in CWS.
Tested in m38. Closed.