Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I've started working with an old Ms templateproject in an .dot
Rewrote some of the VBA.
Saved that as .odt.
There is a toolbar with popup menu's. And the menu's do work and launch the script in the .odt file.
(IIRC, creating a popup with the Addon.xcu in an extension is not possible.)

As usual, the toolbar & submenus are in Configurations2 in the documents xml file.

Now I'm putting that into the global LibreOffice Writer configuration. Some works, some not.
What I do:

Putting the files in either

/home/cono/LibreOffice/401rc2/libreoffice4.0/share/config/soffice.cfg/modules/swriter/...
or
   /.config/libreoffice/401rc2/user/config/soffice.cfg/modules/swriter/

and renaming some elements
  <menu:menuitem menu:id="vnd.sun.star.script:TemplateProject
to
  <menu:menuitem menu:id="vnd.sun.star.script:MacroLibraryName

and
  location=document"
to
  location=application"

Now the script launched directly with a button on the toolbar do work. But the popupmenu's don't work.

Can there be some difference in how the code handles configuration from a file and from the global/user configuration.
(Yes, probably ;).

Any advice would be appreciated.

Cheers,

--
 - Cor
 - http://nl.libreoffice.org
 - www.librelex.org


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.