To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61509
Issue #:|61509
Summary:|UserDefinedAttributes of TextFrame won't be set
Component:|Word processor
Version:|OOo 2.0.1
Platform:|All
URL:|
OS/Version:|Windows XP
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|programming
Assigned to:|mru
Reported by:|leguff
------- Additional comments from [EMAIL PROTECTED] Thu Feb 2 01:51:42 -0800
2006 -------
- open an empty writer document an add one text frame
- try to run the following OOoBasic code in a module for this new document:
Dim attrib as New com.sun.star.xml.AttributeData
attrib.Namespace = ""
attrib.Type = "CDATA"
attrib.Value = "testdata"
frame = ThisComponent.getTextFrames().getByIndex(0)
attributes = frame.UserDefinedAttributes
attributes.insertByName("test", attrib)
MsgBox attributes.hasByName("test")
frame.setPropertyValue("UserDefinedAttributes", attributes)
attributes = frame.UserDefinedAttributes
MsgBox attributes.hasByName("test")
=> you will find that the first message box prints "true" and the second "false"
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]