Apache OpenOffice (AOO) Bugzilla – Issue 18772
image controls *always* scale their image
Last modified: 2006-05-31 14:29:06 UTC
When you use an image control to display images stored in a database, this is virtually unusable, since the control always scales the image to the full control size. This means that unless all the images in your database have the same size, you always end up with images which are shown crippled.
investigation shows that the implementation for *not* scaling the image is already present, it's simply not presented in the user interface. Fixing this bug thus most probably simply means adding this property to the property browser. This also leads to suggesting the following workaround: For the document which contains the image control, use the following macro: oForm = thisComponent.DrawPage.Forms.getByName( "formname" ) oForm.ImageControl.ScaleImage = TRUE (adjust "formname" to the logical name of your form, and ImageControl to the name of your control - both can be seen in the form navigator)
accepting and targeting
I may have misunderstood Frank here, but in order to disable the scaling to full control size, shouldn't the macro read: oForm = thisComponent.DrawPage.Forms.getByName( "formname" ) oForm.ImageControl.ScaleImage = FALSE I tried it with TRUE and it didn't work, but FALSE works a treat.
argh. Indeed, FALSE is better :). Thanks John!
fixed in CWS frmcontrols01 (nearly everything was already there: It's simply that the property browser, for whatever reasons, did offer this property for Basic dialog controls only, but not for form controls.)
fs->clu: please verify in CWS frmcontrols01
verified in cws
verified
clu: verified in master (680m19-1)
change subcomponent to 'none'