Page 1 of 1

Trying to understand ContentControl text portions

Posted: Mon Sep 26, 2022 12:57 am
by _savage
Hello,

I came across a TextPortion whose TextPortionType is ContentControl which I don’t see mentioned in the docs. This is for a text portion whose changes were tracked during document edit.

Using MRI and following its ContentControl property leads me to an object whose implementation name is SwXContentControl but I can’t find that documented, nor are there properties/methods attached which would hint at how to use it. Can somebody here share some pointers or experience as to how to access the current & previous text content, as well as the kind of control this objects wraps?

Much thanks!
Jens

Re: Trying to understand ContentControl text portions

Posted: Mon Sep 26, 2022 1:13 am
by JeJe
Is it a Microsoft Word object perhaps?

https://support.microsoft.com/en-us/off ... 02c1cce1c2

Re: Trying to understand ContentControl text portions

Posted: Thu Sep 29, 2022 11:06 am
by cwolan
_savage wrote:I came across a TextPortion whose TextPortionType is ContentControl which I don’t see mentioned in the docs.[..]
Just to be sure: you came across it in LibreOffice 7.2.x (versions given in your signature)?
I see ContentControl (Object@SwXContentControl) in LibreOffice 7.4.x.

Re: Trying to understand ContentControl text portions

Posted: Sun Oct 02, 2022 8:08 am
by cwolan
Additional information...
─────────
Check Box Content Control.png
Check Box Content Control.png (112.62 KiB) Viewed 1095 times
─────────
ContentControl.png
ContentControl.png (85.83 KiB) Viewed 1095 times