Hi,
Peter Eberlein wrote:
Hi,

in a writer document you have many possibilities to protect a XTextRange against writing, one example:

Section -> ChildSection -> TextFrame -> TextTable -> Cell

You can protect one of the sections, the content of the frame, a cell in the table..., and you can nest and combine many of them.

Which approach is recommended to check the status of a XTextRange (e.g. found by a SearchDescriptor-method)?

In other words: I want to get the result of the right corner of the status bar, when the XTextViewCursor is placed in a read-only area.
There is no direct access to the protection/readonly status using the API.
It shouldn't be too hard to add this at least to the ViewCursor. Please file an issue for it and assign it to me (os).

I started with the XPropertySetInfo, but got trouble, when tables are the first element in a section: The tables anchor has the property "TextSection", but getting the PropertyValue causes a runtime exception.


The table anchor is not a real XTextRange as the related core position is not selectable with a cursor. There's an issue around but ATM I don't know the id.

Regards,
Oliver


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to