To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=109688
                 Issue #|109688
                 Summary|framework: Correct conversion of UNO type type in Basi
                        |c
               Component|framework
                 Version|OOo 3.2
                Platform|PC
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|scripting
             Assigned to|mba
             Reported by|hanya





------- Additional comments from ha...@openoffice.org Sun Feb 28 17:33:23 +0000 
2010 -------
UNO type type is mapped to com.sun.star.reflection.XIdlClass in OpenOffice.org
Basic that is described by:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Basic/Mapping_of_Simple_Types

UNO type type is little used in Basic but now we have EnumerableMap service
(after 3.2) that provides hash map or dictionary function is of help and it is
required to specifies key and value type.

Here is an example on current implementation:

Sub map_test
  oCoreReflection = CreateUnoService("com.sun.star.reflection.CoreReflection")
  oIdlClass = oCoreReflection.forName("string")
  oEnumerableMap = com.sun.star.container.EnumerableMap.create(oIdlClass,
oIdlClass) ' error
  oEnumerableMap.put("key", "value")
End Sub

This makes following message at the constructor of EnumerableMap:
BASIC runtime error.
An exception occurred
Type: com.sun.star.lang.IllegalArgumentException
Message: com.sun.star.uno.Type expected.

---------------------------------------------------------------------
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: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to