Jörg Schmidt wrote:
Hello Carsten, *,
thank you for your answer
Carsten Driesner schrieb:
It's not possible to drag any toolbar from one frame into the
DataSource
browser. The DataSource browser is a separate frame instance with its
own set of toolbars. Toolbars cannot be moved between frames
as they are
frame specific!
Yes, thats clear.
(my writing was only the try to simplify the discussion)
it remains the question:
How can i create a addon.xcu in a extension for a new independent
toolbar which i can dock (which is visible) in the area of the
DataSource-browser?
for a 'normal' toolbar i need in a extension the file addon.xcu and a
file <xxx>Windowstate.xcu (in the *.oxt in the path: office/ui/). For
example works for a new toolbar in Calc:
'--addon.xcu-
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="Addons"
oor:package="org.openoffice.Office">
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="MAK.OfficeToolBar" oor:op="replace">
<node oor:name="m1" oor:op="replace">
<prop oor:name="Context"
oor:type="xs:string">
<value>com.sun.star.sheet.SpreadsheetDocument</value>
</prop>
<prop oor:name="URL"
oor:type="xs:string">
<value>vnd.sun.star.script:MAK.MAKg.StartHauptdialog?language=Basic&
location=application</value>
</prop>
<prop oor:name="Title"
oor:type="xs:string">
<value>testeintrag</value>
</prop>
<prop oor:name="Target"
oor:type="xs:string">
<value>_self</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>
'--
and:
'--CalcWindowState.xcu--
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="CalcWindowState"
oor:package="org.openoffice.Office.UI">
<node oor:name="UIElements">
<node oor:name="States">
<node
oor:name="private:resource/toolbar/addon_MAK.OfficeToolBar"
oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value>MAK_test</value>
</prop>
<prop oor:name="Docked" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="Visible" oor:type="xs:boolean">
<value>true</value>
</prop>
</node>
</node>
</node>
</oor:component-data>
'--
For a toolbar in the DataSource-browser-Window now i know (thanks Ariel
;-)) i think i must write:
in addon.xcu:
..
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.sdb.DataSourceBrowser</value>
</prop>
..
and in DbBrowserWindowState.xcu:
..
oor:name="DbBrowserWindowState"
..
but thats work not correctly, i dont see a new toolbar after
installation the extension.
(I try restart OOo after installation, but i get the same result.)
What i need is a solution to create/install a new toolbar which is
visible in the DataSource-browser-Window after install the extension
(which 'contains' the toolbar).
Its no matter whether the new toolbar (in DataSource-browser) is docked
but it must be visible.
Any hints?
notices on the side:
I don't know whether it is a general problem, but when i create a new
toolbar in the DataSource-browser-Window manually (by using the normal
GUI) the toolbar is first visible, but when i close the
DataSource-browser-Window and reopen, then the new toolbar is suddenly
invisible. (OOo 3.1.0)
Hi Jörg,
This sounds like an issue to me. I have to look into the code and try to
understand what's wrong in your scenario. Please write me an issue and I
will try to have a look after Christmas vacation. Currently I am loaded
with show stoppers.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org