You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Антон Борисов <an...@gmail.com> on 2013/03/23 23:27:35 UTC

Status bar

Hello, how can i change Text in status bar by extension's code?

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

Re: Status bar

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Sun, Mar 24, 2013 at 08:30:01AM -0300, Ariel Constenla-Haile wrote:
> On Sun, Mar 24, 2013 at 01:55:19PM +0400, Антон Борисов wrote:
> > Yes, i want to modify text of an actual status bar control. Draw
> > application.
> 
> Which "control" do you want to modify?
> The status bar is made of status bar controls, each control is
> identified by a UNO command, you can look at the XML definition of the
> status bar in Draw:
> 
> http://localhost:8080/opengrok/xref/trunk-main/sd/uiconfig/sdraw/statusbar/statusbar.xml

this should have been
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/sd/uiconfig/sdraw/statusbar/statusbar.xml


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: Status bar

Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Sun, Mar 24, 2013 at 01:55:19PM +0400, Антон Борисов wrote:
> Yes, i want to modify text of an actual status bar control. Draw
> application.

Which "control" do you want to modify?
The status bar is made of status bar controls, each control is
identified by a UNO command, you can look at the XML definition of the
status bar in Draw:

http://localhost:8080/opengrok/xref/trunk-main/sd/uiconfig/sdraw/statusbar/statusbar.xml

The definition follows the same order as the user interface.  Once you
identify the control by its UNO command, you have to develop a dispatch
interceptor, in order to intercept this command. In the "simplest" case,
the original dispatch provides status updates in the form of a string.
So you replace this original dispatch with your own implementation, and
provide your own string.

See the demo at
http://people.apache.org/~arielch/api/StatusbarDispatchInterceptorDemo.oxt
(in the same folder there is another demo, for pictures in Writer,
IIRC).


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: Status bar

Posted by Антон Борисов <an...@gmail.com>.
Yes, i want to modify text of an actual status bar control. Draw
application.

2013/3/24 Ariel Constenla-Haile <ar...@apache.org>

> Hi Антон,
>
> On Sun, Mar 24, 2013 at 02:27:35AM +0400, Антон Борисов wrote:
> > Hello, how can i change Text in status bar by extension's code?
>
> Do you want to modify the text of an actual status bar control, or
> create a new one? If the first, which control in which application?
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



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

Re: Status bar

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Антон,

On Sun, Mar 24, 2013 at 02:27:35AM +0400, Антон Борисов wrote:
> Hello, how can i change Text in status bar by extension's code?

Do you want to modify the text of an actual status bar control, or
create a new one? If the first, which control in which application?


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina