Documentation & details about “Frame” Text Portion?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

Documentation & details about “Frame” Text Portion?

Post by _savage »

Hello... given a very simple document like this:
frame.jpg
I can inspect the text portions of the paragraph. The formula has a TextPortionType of “Frame” but I fail to find much further documentation on that.

For example, I can:

Code: Select all

# textPortion.TextPortionType = "Frame"
enum = textPortion.createContentEnumeration("com.sun.star.text.TextPortion")
if enum.hasMoreElements():
    obj = enum.nextElement()
    # obj.FrameStyleName = "Formula"
I’m looking for more detailed information on these Frames and how to inspect their content and content types. Where are more details on that Formula? What about other Frame types besides “Formula”, e.g. “Graphics” or “OLE”?

Can somebody please explain or point me into the right direction, something more detailed than the drafty Frames Wiki?
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Documentation & details about “Frame” Text Portion?

Post by RoryOF »

There are some links off this page which you may find helpful
https://www.openoffice.org/api/docs/com ... Frame.html
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply