Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Allow ThumbNails to have Alpha and use common tiling background in gray and white | ||
---|---|---|---|
Product: | Draw | Reporter: | Armin Le Grand <Armin.Le.Grand> |
Component: | ui | Assignee: | Armin Le Grand <Armin.Le.Grand> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | Normal | ||
Priority: | P3 | CC: | issues |
Version: | 4.0.0-dev | ||
Target Milestone: | 4.0.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
Armin Le Grand
2012-12-07 10:12:41 UTC
ALG: Taking over. ALG: Checked the Bitmap/BitmapEx streaming code (used binary in thumbnail files for gallery) and it should work (it uses magic numbers after the regular Bitmap is written). Trying this... ALG: Had to do deep adaptions in gallery implementation and usages to use BitmapEx instead of Bitmap. Adapted gallery paints for list and normal form to use checkered background for transparent objects. Made sure that bitmap formats (gif and png) are added correctly. Made sure that draw objects are added correctly, needed some rewrite there. Checked for metafiles, too (svm). Also checked for emf and wmf as graphic file formats. Some more checks... ALG: Okay, works well. Re-coding gallery themes to reflect changes... ALG: STumbled over the gallery theme 36, called private://gallery/hidden/fontwork, it is a hidden one used for the fontwork dialog. It has thumbs, but no real gallery data. It only uses the thumbs for the dialog. To make it use the transparence I would need to recreate it. I will try to find out how to do that... There is also theme 24, hidden, called private://gallery/hidden/imgppt. May be used at ppt data exchange, lets see... ALG: Theme private://gallery/hidden/fontwork has ID 37 (for ressources) and bThemeNameFromResource is true. private://gallery/hidden/imgppt has ID 16 and also true. I do not yet know if it is used somewhere... ALG: Got the private://gallery/hidden/fontwork reworked, looking for adding the checkered background now... ALG: Checked for RID_GALLERYSTR_THEME_POWERPOINT because of private://gallery/hidden/imgppt, but there is only a string defined in src and the ID, so there should be no usage anymore. ALG: Corrected aspect ratio when creating draw drops to the gallery to have the correct visualisation. Also moved the checkered painter to OutputDevice directly; it may be optimized there and is useful in two places already. Works as expected. For all gallery entries you can now see instantly if an when what transparent parts a graphic contains. Preparing commit... "alg" committed SVN revision 1418421 into trunk: #121445# Added transparency support to the gallery ALG: Okay, done. This one was harder than I thought, but one more step to full transparency support in AOO. ALG: Thanks to Sven Jacobi, he found an old mail entry which I copy to this task to have it documented here (Link is http://markmail.org/thread/xpvmgjcqngyqllom), just don't know how olng it will stay there: -----snip----- Hello, you can set following environment variables before starting the Office, then you will also see private Gallery themes that are used for CustomShapes or FontWork. GALLERY_SHOW_PRIVATE_TITLE GALLERY_ENABLE_ID_DIALOG GALLERY_SHOW_HIDDEN_THEMES AVOID_BURN_IN_FOR_GALLERY_THEME (The last environment variable is important to avoid that soft formatting attributes from style or template are stored as hard attribute to the shape). Changing a shape can now simply be done by replacing/adding the corresponding shape within the private gallery theme. private://gallery/hidden/imgppt is used for CustomShapes private://gallery/hidden/fontwork is used for FontWork Within the gallery you only have to set the correct title for the shape as it is used within the following xml configuration files: customshapes: share/config/soffice.cfg/modules/sglobal/toolbar/arrowshapes.xml share/config/soffice.cfg/modules/sglobal/toolbar/basicshapes.xml share/config/soffice.cfg/modules/sglobal/toolbar/calloutshapes.xml share/config/soffice.cfg/modules/sglobal/toolbar/flowchartshapes.xml share/config/soffice.cfg/modules/sglobal/toolbar/symbolshapes.xml share/config/soffice.cfg/modules/sglobal/toolbar/starshapes.xml fontwork types: share/config/soffice.cfg/modules/sglobal/toolbar/fontworkshapetype.xml I hope this helps you to update your Gallery. If you are having further problems, then please let's follow up on the de...@graphics.openoffice.org mailing list. Best regards Sven |