[Half-Solved] How to detect overflow of content in TextFrame
Posted: Fri Mar 29, 2019 11:21 am
I'm trying to write script which control Writer document through UNO API (from Python).
I want to know whether content in fixed size TextFrame overflow that frame area.
When contents of frame overflows, I can see "red triangle" right of the are in UI.
But I can't see are there any way to detect this from UNO API. Can I detect this, and how to do?
I wrote Writer document with TextField, and put some text into that field, through python external script.
Like:
[ (UserVariableField) ]
( [ ] are fixed width/height TextFrame.)
When I put very long UserVariable value text, it overflows Frame and overflowed strings are cutted off.
If I can, I wanna detect this happens on this frame(or text, or existence of red triangle), and modify
content text property to fit this area, like setting smaller font size, chopping text by myself or so.
I'm new to UNO API programming, and it's very difficult for me to read IDL reference.
I want to know whether content in fixed size TextFrame overflow that frame area.
When contents of frame overflows, I can see "red triangle" right of the are in UI.
But I can't see are there any way to detect this from UNO API. Can I detect this, and how to do?
I wrote Writer document with TextField, and put some text into that field, through python external script.
Like:
[ (UserVariableField) ]
( [ ] are fixed width/height TextFrame.)
When I put very long UserVariable value text, it overflows Frame and overflowed strings are cutted off.
If I can, I wanna detect this happens on this frame(or text, or existence of red triangle), and modify
content text property to fit this area, like setting smaller font size, chopping text by myself or so.
I'm new to UNO API programming, and it's very difficult for me to read IDL reference.