https://bugs.documentfoundation.org/show_bug.cgi?id=93803

            Bug ID: 93803
           Summary: com.sun.star.reflection.XTypeDescription getname()
                    documentation is incorrect
           Product: LibreOffice
           Version: 5.0.0.5 release
          Hardware: Other
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Documentation says that it returns the fully qualified name. In practice it
returns only the last part of the name.

This differs from Open Office which works as documented, so it looks as if
something has been changed, and probably shouldn't have been.

This macro shows the issue (thanks to Bernard Marcelly for this)

REM  *****  BASIC  *****

Option Explicit

Sub PropertiesOfAService
Dim typDesc As Variant, allProps As Variant
Dim list As String, n As Long
Dim OOoTypeDescr As Object

OOoTypeDescr =
GetDefaultContext.getByName("/singletons/com.sun.star.reflection.theTypeDescriptionManager")
typDesc =
OOoTypeDescr.getByHierarchicalName("com.sun.star.text.GenericTextDocument")
allProps = typDesc.getProperties()
list = ""
for n = 0 to UBound( allProps() )
  list = list & allprops(n).Name & chr(10)
next
MsgBox(list, 0, "Properties names")
End Sub

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to