On 15.02.2014 21:55, Антон Борисов wrote:
thanks for reply, i wanted to display some specific deck or panel
another question about sidebar, i have two panels for one deck, it's
displaying only one (in case when both have dlg:withtitlebar="false" in xdl
file) but i want two panels
in case when one of panel dlg:withtitlebar="true" it's displaying but as
separate dialog.
i found example with one panel, maybe i've missed some important details
about case more than one panel?
Please have a look at
https://wiki.openoffice.org/wiki/Sidebar_for_Developers
(but not right now, the Wiki server is currently down)
This page explains the structure of the Sidebar.xcu file that defines
which panels to display in a given context.
-Andre
2014-02-15 21:38 GMT+04:00 Ariel Constenla-Haile <arie...@apache.org>:
Hi Антон,
On Wed, Feb 12, 2014 at 02:21:19AM +0400, Антон Борисов wrote:
Dear all,
It's possible to show and hide Sidebar by java code in extension by
dispatch framework or by another way ?
I haven't found anything by searching
Are you trying to simply show/hide the sidebar? That would be
dispatching the respective command: ".uno:Sidebar". Dispatching will
toggle the sidebar visibility. You can also dispatch only when needed,
get a single status update by adding and removing a status listener at
the dispatch object; in the .uno:Sidebar case,
css.frame.FeatureStateEvent.State is bool, where true means the sidebar is
visible, false it hidden.
If you want to display some specific deck or panel, then it is
impossible. In theory, panels are UI elements with resource URL schema
"private:resource/toolpanel/", and the code is still there, but it is
broken, you cannot use the LayoutManager to show/hide panels.
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org