https://bugs.documentfoundation.org/show_bug.cgi?id=149453
--- Comment #2 from Miklos Vajna <[email protected]> --- If you have a simple document: "aaabbbccc\n" (9 characters and a newline), then you turn recording changes on, and delete bbb, then you'll have an entry in the SwDoc's SwRedlineTable. That entry will have a type of REDLINE_DELETE and it'll have a start posisition of (9,3) (node index, character index) and end position of (9, 6). I'm not sure how the macro API for redlines look like, but internally the task would be to make sure that when you copy the whole first paragraph to the second one, then you don't copy the "view" of that paragraph but rather the document model (SwTextNode) text, and also create a second entry in the redline table, which would then point to (10,3) -> (10,3) with the delete type. If you start soffice with the SW_DEBUG=1 environment variable, then Shift-F12 will give you a nodes.xml which shows the internal document model for you. For the pasting code, look into SwBaseShell::ExecClpbrd(), the SID_PASTE case is probably relevant. Is this enough code pointers to get you started? -- You are receiving this mail because: You are the assignee for the bug.
