questn wrt importing configurations2 from templateproject in global configuration

Cor Nouws oolst at nouenoff.nl
Tue Mar 19 08:46:59 PDT 2013


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



More information about the LibreOffice mailing list