Re: show sidebar by code in extension

2014-02-15 Thread Ariel Constenla-Haile
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


pgpAIbGdAB6FO.pgp
Description: PGP signature


Re: show sidebar by code in extension

2014-02-15 Thread Антон Борисов
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?


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




-- 
Борисов Антон


show sidebar by code in extension

2014-02-11 Thread Антон Борисов
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
-- 
Borisov Anton