Sample of my procedure:
OpenDocument(Filename: string): boolean;
var
wProperties : Variant;
fOpenOffice : Variant;
fDocument : Variant;
fDesktop : Variant;
begin
fDesktop := fOpenOffice.createInstance('com.sun.star.frame.Desktop');
wProperties := VarArrayCreate([0, 0], varVariant);
wProperties[0] := MakePropertyValue('Hidden', False);
fDocument := fDesktop.loadComponentFromURL( 'file:///'+
stripString(FileName, ['\'], '/') , '_blank', 0, wProperties);
// I search the equivalent to this line : (remark this line is not
operational)
fDocument.OnClose := CloseDocument // CloseDocument is a procedure
will be called when I close the document
fDocumentOpened := not (VarIsEmpty(fDocument) or VarIsNull(fDocument));
result := fDocumentOpened;
end;
-----Message d'origine-----
De : Mathias Bauer [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 3 février 2006 00:50
À : [email protected]
Objet : Re: [dev] OpenOffice: question : how i can manipulate openoffice
writer document event: close/save...
Hi,
FAouzi Abderrahman wrote:
> I have a little problem when i like to manipulate the event close doc
writer
> with open office.
>
> I try to use a oleautmoation to manipulate all the events
> (close/save/open..) document.
>
> With openoffice I didn't find a solution to manipulate event off writer
> document.
Instead of reposting your question you should try to explain better what
you want to achieve (and BTW should be a little bit more patient waiting
for answers). I don't understand what kind of manipulation you intend to
apply to OOo.
Best regards,
Mathias
--
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]