To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58667
                  Issue #:|58667
                  Summary:|Alien attributes aren't stored in a TextDocument when
                          |saving it
                Component:|api
                  Version:|680m142
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mib
              Reported by:|sw





------- Additional comments from [EMAIL PROTECTED] Wed Nov 30 04:12:25 -0800 
2005 -------
The macro:

Sub Main
        xText = ThisComponent.Text
        xParagraph = xText.createEnumeration.nextElement
        dim attr as new com.sun.star.xml.AttributeData
    attr.Namespace = "urn:oasis:names:tc:opendocument:xmlns:text:1.0"
    attr.Type = "CDATA"
    attr.Value = "true" 
    
    UserDefinedAttr = xParagraph.ParaUserDefinedAttributes
    UserDefinedAttr.insertByName("text:user-field-get3",attr)
    xParagraph.ParaUserDefinedAttributes = UserDefinedAttr
    UserDefinedAttr = xParagraph.ParaUserDefinedAttributes
        newattrib = UserDefinedAttr.getByName("text:user-field-get3")
        msgbox newattrib.Value
End Sub

adds a UserDefinedAttribute to the first paragraph and when it is ran twice the
expected exception is thrown that the attribute already exists.

When you now save the so changed document, open it again and rerun the macro no
exception occurs which lead to the assumption that the data isn't stored in the
file.

---------------------------------------------------------------------
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]

Reply via email to