Hi Jan-Marek, On Wed, Jun 25, 2014 at 01:09:01PM +0200, Jan-Marek Glogowski <glo...@fbihome.de> wrote: > My best idea is to use > > SwNodeIndex aSourceIdx( rSource.GetNodes().GetEndOfExtras(), *1* );
Are you sure such an explicit offset is required here? I'm thinking about special situations like when the document starts with a table, if you want to paste that into a new document, you probably want to have the selection start at the first content node of the document, so no static offset will work here. I'm thinking about something like: SwNodeIndex aNodeIndex rSource.GetNodes().GetEndOfAutotext(); SwCntntNode* pStart = rSource.GetNodes().GoNext(&aNodeIndex); Any kind of explicit offset sounds a bit scary to me. > SwPaM aPara( <document content start ); > this->DelFullPara(aPara); But you're not really trying to delete the paragraph content, just join the two, right? SwDoc::DeleteAndJoin() might be useful to do that. Miklos
signature.asc
Description: Digital signature
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice