Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-12 Thread Peter Eberlein
Oliver Brinzing schrieb: Hi Peter, this will copy the outline numbering ... :-) %< --- %< Thx Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-10 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Peter, this will copy the outline numbering ... :-) Dim i as Integer Dim oSrcRules as Variant Dim oDstRules as Variant Dim oProps() as Variant oSrcRules = oSrcDoc.getChapterNumberingRules() oDstRule

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-09 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Peter, > how do you handle the problem, when the user works with headlines and > has made changes in the outline numbering? Then the draft will have another > layout. i will try to copy the properties from oSrcDoc.getChapterNumberingRules(), but

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-08 Thread Peter Eberlein
Hi Oliver, Oliver Brinzing schrieb: what we do is to copy the user input text section from a document to a draft/copy template for printing purpose only ... the drafts/copyies have different page styles ... how do you handle the problem, when the user works with headlines and has made change

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-08 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marc, > As a dirty trick you can temporarily define the source snippet as > "autotext" for inserting it into the target and delete the autotext > immediately afterwards. This does work. really nice trick, just tried it sucessfully ... :-) but sti

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-08 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stephan, > why do you need the first step ? The code snippet copies the content of the > textsection already. what we do is to copy the user input text section from a document to a draft/copy template for printing purpose only ... the drafts/co

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-07 Thread Marc Santhoff
Am Dienstag, den 07.11.2006, 18:40 +0100 schrieb Oliver Brinzing: > thanks for the code snippet, i can use it as a workaround: > > - - first copy & paste the section > - - second copy the properties of the paragraph styles > > but what i am really looking for is to store a textsection as url, or

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-07 Thread Stephan Wunderlich
Hi Oliver, thanks for the code snippet, i can use it as a workaround: - - first copy & paste the section - - second copy the properties of the paragraph styles why do you need the first step ? The code snippet copies the content of the textsection already. Copy & Paste is a wee bit tricky a

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-07 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stephan, thanks for the code snippet, i can use it as a workaround: - - first copy & paste the section - - second copy the properties of the paragraph styles but what i am really looking for is to store a textsection as url, or serialize it ...

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-06 Thread Stephan Wunderlich
Hi Oliver, is there a possibility to copy a textsection from a source document to a destination document using the api ? At the moment i am using copy & paste but this has the disadvantage of loosing the paragraph format ... any hints ? the following macro will copy the first section of th

[api-dev] how to copy textsection from a writer document to another ?

2006-11-03 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, is there a possibility to copy a textsection from a source document to a destination document using the api ? At the moment i am using copy & paste but this has the disadvantage of loosing the paragraph format ... any hints ? Oliver - -- GnuPG