Re: [api-dev] [SOLVED] How to copy all Content of a document

2006-11-30 Thread Marc Santhoff
Am Donnerstag, den 30.11.2006, 17:31 +0100 schrieb Tobias Krais: > Hi Marc, > > > If you only want to insert the complete second doc at a given location > > (not "mixing in"), you can use > > > > ::com::sun::star::uno::XDocumentInsertable > > > > for this task. > > > > Get a text cursor at the

Re: [api-dev] [SOLVED] How to copy all Content of a document

2006-11-30 Thread Tobias Krais
Hi Marc, > If you only want to insert the complete second doc at a given location > (not "mixing in"), you can use > > ::com::sun::star::uno::XDocumentInsertable > > for this task. > > Get a text cursor at the target doc, position the cursor and call > > insertDocumentFromURL() > > on it. Acc

Re: [api-dev] [SOLVED] How to copy all Content of a document

2006-11-30 Thread Tobias Krais
Hi Oliver, > oSrcDoc.CurrentController.Select(oSrcSection.Anchor) > oDispatcher.executeDispatch(oSrcDispFrame, ".uno:Copy", "", 0, arr()) > oDstDoc.CurrentController.Select(oDstSection.Anchor) > oDispatcher.executeDispatch(oDstDispFrame, ".uno:Paste", "", 0, arr()) now