https://bz.apache.org/ooo/show_bug.cgi?id=126110

          Issue ID: 126110
        Issue Type: DEFECT
           Summary: Incompatible API change in Annotations
           Product: App Dev
           Version: 4.1.1
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: trivial
          Priority: P5
         Component: api
          Assignee: [email protected]
          Reporter: [email protected]

Apache OpenOffice version 4.1 has introduced in Writer annotations over a text
range. Previously, annotations were only on a collapsed range.
https://cwiki.apache.org/confluence/display/OOOUSERS/AOO+4.1+Release+Notes#AOO4.1ReleaseNotes-Comments/Annotationsontextranges

When scanning a Writer text, paragraph per paragraph, and successive text
portions within a paragraph, the property TextPortionType  provides a string
describing the type of the portion, see service co.sun.star.text.TextPortion.

Before version 4.1 an annotation (always on a collapsed range) returns
PortionType = "TextField"
>From version 4.1 the same annotation returns
PortionType = "Annotation"
This means that an existing code cannot handle old annotations on version 4.1,
since it does not understand this new PortionType.

Note that for new annotations over a range, you get a PortionType =
"Annotation", then a PortionType = "Text", then PortionType = "AnnotationEnd."

To resolve the incompatibility for old annotations, the API should return
PortionType "TextField" for "collapsed range annotations", and return the new
Portion Types "Annotation" and "AnnotationEnd" only for annotations over a
range.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to