Hello Jörg,

On Tuesday 08 December 2009, 15:33, Jörg Schmidt wrote:
> in my opinion, there is a problem.
> In OOo 2.4.0 is the xml-file (in Windows):
> 
> C:\Programme\OpenOffice.org
> 2.4\share\config\soffice.cfg\modules\dbbrowser\toolbar\browserobjectbar.
> xml
> 
> but in OOo 3.1.0 the file for the functional same toolbar is:
> 
> C:\Programme\OpenOffice.org
> 3\Basis\share\config\soffice.cfg\modules\dbbrowser\toolbar\toolbar.xml
> 
> and i think the file-name "toolbar.xml" is not a clear (unambiguous)
> name.
> For example i find the same name in:
> 
> C:\Programme\OpenOffice.org
> 3\Basis\share\config\soffice.cfg\modules\scalc\toolbar\toolbar.xml
> C:\Programme\OpenOffice.org
> 3\Basis\share\config\soffice.cfg\modules\swriter\toolbar\toolbar.xml
> ...
> 
> 
> And now? What can i do?
> What must i write for:
> 
> '...
> <prop oor:name="MergeToolBar">
>       <value>browserobjectbar</value>
> </prop>
> '...
> 
> when i will merge in this toolbar:
> C:\Programme\OpenOffice.org
> 3\Basis\share\config\soffice.cfg\modules\dbbrowser\toolbar\toolbar.xml

you must specify the module the toolbar belongs to:

MergeContext  Defines in which application module context the merge instruction 
should be active. Contexts must be separated by a comma. An empty context 
means that the instruction is always active. The context string is identical 
with the module identifier accessible from the com.sun.star.frame.ModuleManager 
service. The following module identifiers are defined (for a complete list 
refer 
to Office modules since OpenOffice.org 2.3)
http://wiki.services.openoffice.org/wiki/Office_modules_since_OpenOffice.org_2.3
(should be updated, in OOo 3.2 the macro in that page counts 22 modules)

/opt/openoffice.org/basis3.2/share/config/soffice.cfg/modules/<module>/toolbar/<name_part>.xml

In your case <module> is dbbrowser, so use com.sun.star.sdb.DataSourceBrowser 
for the DataSourceBrowser.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to