Re: [api-dev] How to reload current opened document via API

2009-06-08 Thread Mathias Bauer
bvoll...@informatik.uni-bremen.de wrote: > Quoting Mathias Bauer : > >> bvoll...@informatik.uni-bremen.de wrote: >>> Unfortunately the solution with ".uno:Reload" does not work anymore >>> since OO.org 3.1 was released. Under Windows I cannot update the >>> opened document externally because it i

Re: [api-dev] How to reload current opened document via API

2009-06-08 Thread bvollmer
Quoting Mathias Bauer : bvoll...@informatik.uni-bremen.de wrote: Unfortunately the solution with ".uno:Reload" does not work anymore since OO.org 3.1 was released. Under Windows I cannot update the opened document externally because it is locked. I need a workaround with close and then reopen t

Re: [api-dev] How to reload current opened document via API

2009-06-07 Thread Mathias Bauer
bvoll...@informatik.uni-bremen.de wrote: > Quoting Mathias Bauer : > >> Benjamin Vollmer wrote: >> >>> Hello, >>> >>> I work on an extension where in some cases the opened document is >>> updated externally. So I have to reload my document. >>> >>> In a snippet I found this way: >>> >>> PropertyV

Re: [api-dev] How to reload current opened document via API

2009-06-05 Thread Mikhail Voytenko
Hi Benjamin, Sorry, but editing of a document is not allowed if it is already edited by the office. I assume that you could reach it since OOo3.0.x does not use system file locking, so the document file can be edited in parallel. This is actually the reason why OOo3.1 supports the system file

Re: [api-dev] How to reload current opened document via API

2009-06-05 Thread bvollmer
Quoting Mathias Bauer : Benjamin Vollmer wrote: Hello, I work on an extension where in some cases the opened document is updated externally. So I have to reload my document. In a snippet I found this way: PropertyValue[] aLoadProps = new PropertyValue[0]; // reload current document xCompon

Re: [api-dev] How to reload current opened document via API

2009-04-20 Thread Mathias Bauer
Benjamin Vollmer wrote: > Hello, > > I work on an extension where in some cases the opened document is > updated externally. So I have to reload my document. > > In a snippet I found this way: > > PropertyValue[] aLoadProps = new PropertyValue[0]; > > // reload current document > xComponentLo

[api-dev] How to reload current opened document via API

2009-03-31 Thread Benjamin Vollmer
Hello, I work on an extension where in some cases the opened document is updated externally. So I have to reload my document. In a snippet I found this way: PropertyValue[] aLoadProps = new PropertyValue[0]; // reload current document xComponentLoader.loadComponentFromURL(this.xFrame.getCont