Re: [api-dev] how to dispatch .uno:ClosePreview from java ?

2006-08-24 Thread Mathias Bauer
Oliver Brinzing wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mathias, The name of the property is SynchronMode and of course its value must be set to True in case you want to have synchronous execution. I tried it, without success, it seems, it's not possible to close the

Re: [api-dev] how to dispatch .uno:ClosePreview from java ?

2006-08-24 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mathias, What means without success? What exactly did you do and what exactly happened? that means, the preview is not closed, if i open a message box directly after the excecuteDispatch(), it does not matter if i use the SynchronMode or not

[api-dev] how to remove final paragraph?

2006-08-24 Thread Jimmy
Hey, The following problem only occurs, if I'm trying to remove the very last paragraph of my Writer document with my Java Addon. I'm left with the following structure at the end of the document: . text:p text:style-name=ElmlGoals text:bookmark-start text:name=goals/ text:bookmark-end

Re: [api-dev] delete content of a section and the section itself

2006-08-24 Thread Jimmy
This does just remove the Text of the TextSection though ...it misses the bookmarks for example. cheers jimmy Fabricio Lemos schrieb: To delete the content, try: XTextSectionsSupplier textSectionsSupplier = (XTextSectionsSupplier)

Re: [api-dev] how to remove final paragraph?

2006-08-24 Thread Stephan Wunderlich
Hi Jimmy, The following problem only occurs, if I'm trying to remove the very last paragraph of my Writer document with my Java Addon. I'm left with the following structure at the end of the document: . text:p text:style-name=ElmlGoals text:bookmark-start text:name=goals/

Re: [api-dev] how to remove final paragraph?

2006-08-24 Thread Jimmy
This doesn't remove the last paragraph for me if there's a bookmark inside of it. Well that's at least what I'm guessing. Did you have a bookmark inside your last paragraph? It only sets the Text to but leaves the paragraph. Stephan Wunderlich schrieb: Hi Jimmy, The following problem

Re: [api-dev] Modifiable styled mutliline fields

2006-08-24 Thread Jan Kümmel
Thanks for your reply! Stephan Wunderlich wrote: Have you considered using a TextSection for this purpose ... seems to me that it fulfils what you need. The only tricky thing could be the modified stage this I don't think that sections implement a XModifyListener or something comparable.