Issue 24444

Summary: TextPortionType returns "Frame" not "TextContent"
Product: Writer Reporter: andrew
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Description Flags
Before renaming the library none

Description andrew 2004-01-15 16:23:51 UTC
The string property "TextPortionType" never returns the text "TextContent" as 
specified in the documentation. It does, however, return the text "Frame", 
which is not specified as an expected return type in the documentation. Run 
the macro below on a document that contains Text Content. Although "Frame" is 
returned, "TextContent" is never returned as a text content type.

Sub EnumerateTextSections
  Dim oParEnum           'Paragraph enumerator
  Dim osecEnum           'text section enumerator
  Dim oPar               'Current paragraph
  Dim oParSection        'Current Section
  Dim nPars As Integer   'Number of paragraphs
  Dim s$
  oParEnum = ThisComponent.Text.createEnumeration()
  Do While oParEnum.hasMoreElements()
    oPar = oParEnum.nextElement()
    If oPar.supportsService("") Then
      nPars = nPars + 1
      oSecEnum = oPar.createEnumeration()
      s = s & nPars & ":"
      Do While oSecEnum.hasMoreElements()
        oParSection = oSecEnum.nextElement()
        s = s & oParSection.TextPortionType & ":"
      s = s & CHR$(10)
      If nPars MOD 25 = 0 Then
        MsgBox s, 0, "Paragraph Text Sections"
        s = ""
      End If
    End If
  MsgBox s, 0, "Paragraph Text Sections"
End Sub

Joerg had the following to say:
The described implementation does not conform to this specification. Please 
submit a bug report. In case of doubt the specification is right, so the bug 
should be submitted against the implementation - i.e. against the 'sw' 
component. If the developer thinks that the documentation is broken, he will 
redirect the issue himself.
Comment 1 h.ilter 2004-01-16 14:09:18 UTC
Reassigned to JSK
Comment 2 joerg.skottke 2004-04-30 09:25:17 UTC
Created attachment 14887 [details]
Before renaming the library
Comment 3 joerg.skottke 2004-04-30 09:26:37 UTC
Argh. Caching again. The attachment went to the wrong document. Please ignore
Comment 4 joerg.skottke 2004-04-30 09:32:25 UTC
Forwarding to AB.
Comment 5 ab 2004-04-30 16:52:03 UTC
ab->os: At the first look this is an API issue, not Basic core
Comment 6 Oliver Specht 2004-06-09 09:19:41 UTC
os->tl: Please change the documentation.
Comment 7 Oliver Specht 2004-06-09 10:16:21 UTC
Comment 8 chne 2004-06-17 10:25:22 UTC
tl/cn: office later