Difference between revisions of "Documentation/DevGuide/ProUNO/Bridge/Default Mappings"
From Apache OpenOffice Wiki
< Documentation | DevGuide
(Initial author Sun Microsystems, Inc.) |
m (1 revision(s)) |
(No difference)
|
Revision as of 13:03, 15 February 2008
The following table shows the mapping of UNO and Automation types. It is a bidirectional mapping (which is partly true for the UNO sequence, which will be explained later on) and therefore it can be read from left to right and vice versa. The mapping of Automation types to UNO types applies when:
- A method of a UNO object is called from an Automation environment and values are passed for in or in/out parameters.
- A method of an Automation object is called from the UNO environment and the method returns a value.
- A method of an Automation object is called from the UNO environment and the method returns values in in/out or out - parameters.
The mapping of UNO types to Automation types applies when:
- A method of an Automation object is called from an UNO environment and values are passed for in or in/out-parameters.
- A method of a UNO object is called from an Automation environment and the method returns a value.
- A method of a UNO object is called from an Automation environment and the method returns values in in/out or out-parameters.
Automation IDL Types | UNO IDL Types |
---|---|
boolean | boolean |
unsigned char | byte |
double | double |
float | float |
short | short |
unsigned short | |
long | long |
unsigned long | |
BSTR | string |
short | char |
long | enum |
IDispatch | com.sun.star.script.XInvocation, UNO interface |
struct | |
sequence<type> | |
type | |
IUnknown | com.sun.star.uno.XInterface |
SAFEARRAY(VARIANT) | sequence< type > |
SAFEARRAY(type) | |
DATE | com.sun.star.bridge.oleautomation.Date |
CY | com.sun.star.bridge.oleautomation.Currency |
Decimal | com.sun.star.bridge.oleautomation.Decimal |
SCODE | com.sun.star.bridge.oleautomation.SCode |
VARIANT | all of the above types or any |
all of the above types | any |
The following sections discuss the respective mappings in more detail.
Content on this page is licensed under the Public Documentation License (PDL). |