https://bz.apache.org/ooo/show_bug.cgi?id=126184
Issue ID: 126184
Issue Type: DEFECT
Summary: missing properties of document objects
Product: Writer
Version: 4.1.1
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P5
Component: programming
Assignee: [email protected]
Reporter: [email protected]
I have made a StarBasic program, that enumerates a text document. I am looking
for SwXTextTable, SwXTextGraphicObject, SwXText and SwXTextFiel objects,
especially Fields, containing Fields of mySQLdatabases ( is not the same as
TextFiels - SwXShape ). If I find such object, I try to load the properties of
the object. The object is in a structure containing other structures. If I
found a SwXTextGraphicObject, there is a structure named "grahp" containing the
grahic itself. The object of the SwXTextGraphicObject has a property "graph". A
call of getPropertyValue( "graph") delivers the object graph ( from version
4.1.1 ).
If I find a SwXShape object, the TextField of the database field is in the
object "Contol". But the SwXShape-object has not a property "Control". I have
to call getControl().
I found same problem in user defined TextFields. The enumerated TextPortion
containing the user defined TextField, containing a property TextField. The
object TextField represents a common TextField. The name and the value of the
drawn TextField, are contained in an object TextFieldMaster. But TextField has
no property "TextFieldMaster". The easiest way to go through an object would
be:
oTextField = oObject.getPropertyValue( "TextField")
oTextFieldMaster = oTextField.getPropertyValue( "TextFieldMaster")
I have to do instead:
query object type "SwXTextField"
If so oTextFieldMaster = oTextField.getTextFieldMaster()
I can not modify the instructions via program is the biggest problem. I have to
know the methode getTextFieldMaster() ( or getControl() in the first sample )
I do not know, if this is a bug.
--
You are receiving this mail because:
You are the assignee for the issue.