Peter Eberlein wrote:
Hi Carsten,
thanks for your fast answer and the example.
Carsten Driesner schrieb:
...
2. Can be accessed via the window state configuration. You have to
create the service "com.sun.star.ui.WindowStateConfiguration" and
retrieve the window states for a specific module (via getByName(
ModuleIdentifier ). There you can access the window state information
for every window based ui element using the private-URL (f.e.
"private:toolbar/standardbar" ).
But how to get that work, if these settings are not made for modules,
but for a document?
Hi Peter,
That's the drawback of the current solution and not possible. You can
set a title for the document toolbar, but nothing more. The users have
to change the settings via "Tools - Options" themselves. We discussed
the current solution before the OpenOffice.org 2.0 release and believed
that the old solution (also storing state information
(pos,size,visible,style etc.) inside the document) was bad (we had
several user complaints). Every user wants to set this information
individually.
Some month ago I did the same with GUI for a template and wondered, why
other users didn't get the property "icons & text" working with that
template.
Ok, you're right that in your case the current solution is not optimal.
As I mentioned above we had several complains for the old solution. A
user customized a toolbar and a document changes them without any warning.
I modified your example (thx to ms777 and Paolo) with a graphic and a
shortcut, so that it will work for the document the code belongs to
(except the last call).
We discussed an enhancement to support add-ons in documents. This
solution would solve your problem and create several new ways to extend
templates.
Regards,
Carsten
--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]