The "com.sun.star.beans.XPropertyContainer" add variable as a TEXT in document ? ex <MY_VARIABLE> or a "property in document" to view in "propertys window" ?

Peter Eberlein escreveu:
Hi Dyego,
Dyego Souza Dantas Leal schrieb:
I need to create a "variables" in OpenOffice !!!! , ex:

<DATA_OF_MY_APP>

this variable i will replace before print the document... I'm using OpenOffice SDK 2.0.4

exists any way to "protect" this variable inside editor of openoffice ( in JTextPane on JAVA i'm protecting the text verifing if the "color is green") I want to interactivate with openoffice to protect this variable... exists way to put a "listener" to control this ?

Any help ?

You're searching for an alternative for the field "DOCVARIABLE"?
Then you can use the interface com.sun.star.beans.XPropertyContainer of the DocumentInfo-Service to add your "variables".

Regards

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--



-------------------------------------------------------------------------
++  Dyego Souza Dantas Leal   ++           Dep. Desenvolvimento   
-------------------------------------------------------------------------
              E S C R I B A   I N F O R M A T I C A
       ***        http://www.go-java.com/blog        ***
-------------------------------------------------------------------------
The only stupid question is the unasked one (somewhere in Linux's HowTo)
Linux registred user : #230601
--                                        ICQ   : 1647350
$ look into "my eyes" Phone : +55 041 2106-1212
look: cannot open my eyes                 Fax   : +55 041 3296-6640     
-------------------------------------------------------------------------
Reply: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to