Hi Alex,
Alexander Wilms píše v Po 12. 11. 2012 v 07:51 +0100:
I want to add some icons to the toolbar in the new template manager
(/sfx2/source/doc/templatedlg.src)
I added lines like
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "document_edit.png" ; };
};
for each ToolBoxItem, but when trying to compile I get this error:
ImageBitmap = Bitmap { File = "document_edit.png" ; };
^
f643:
"/home/alexander/libo/workdir/unxlngx6.pro/SrsPartMergeTarget/sfx2/source/doc/templatedlg.src",
line 282: Error in the object (Type: ToolBoxItem):
The variable <ButtonImage> must not be used here.
The ToolBoxItems cannot contain ButtonImages. If you want to add a
icons to a 'ToolBoxItem', you need to do it like it is visible in eg.
sd/source/ui/dlg/navigatr.src
Ie. first create the ToolBoxItems, and then later, create an ImageList.
The images there have to have names like "something01.png",
"something02.png", etc. The "something" part is controlled by the
"Prefix" in the ImageList, the number is given by the IdList.
Hopefully this works for you, please let me know if not.
All the best,
Kendy
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.