[dev] Save Button

2009-09-25 Thread Albert Arnau
Hi everybody,

 

When I open an OpenOffice document with the API the save button is disabled
until the document is changed.

Is there any way to put the save button enabled always?

 

Thanks

 

Salutacions,

 

Albert Arnau

Director Tècnic

Valen Computer

 

Ctra. Valls (Urb. Sant Salvador)

C/Poeta Mistral, 2 - 43130 - Tarragona

Tel (34) 977 52 30 02 - Fax (34) 977 52 30 05

e-mail:  mailto:a...@valen.es a...@valen.es

 http://www.valen.es www.valen.es

 



Re: [dev] Save Button

2009-09-25 Thread Oliver Brinzing
Hi Albert,

 When I open an OpenOffice document with the API the save button is disabled
 until the document is changed.
 Is there any way to put the save button enabled always?

try:

Sub Main
ThisComponent.setModified(True)
End Sub

Oliver

--
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature