Documentation & details about “Frame” Text Portion?

Keyboard macros or custom scripts

Documentation & details about “Frame” Text Portion?

Postby _savage » Fri Apr 13, 2018 12:25 am

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   Expand viewCollapse view
# 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.11 using LO 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 162
Joined: Sun Apr 21, 2013 12:55 am

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

Postby RoryOF » Fri Apr 13, 2018 7:00 am

There are some links off this page which you may find helpful
https://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XFrame.html
Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26921
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 3 guests