(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: datatransfer ::

interface XDataFormatTranslator
Description
Interface to be implemented by objects used to translate a DataFlavor to a system dependent data transfer type and vice versa.

Different platforms use different types to describe data formats available during data exchange operations like clipboard or drag&drop. Windows for instance uses integer values to describe an available clipboard or drag&drop format, Unix X11 uses so called Atoms etc.


Methods' Summary
getSystemDataTypeFromDataFlavor Converts a DataFlavor to system dependend data type.  
getDataFlavorFromSystemDataType Converts a system dependent data type to a DataFlavor.  
Methods' Details
getSystemDataTypeFromDataFlavor
any
getSystemDataTypeFromDataFlavor( [in] DataFlavor  aDataFlavor );

Description
Converts a DataFlavor to system dependend data type.
Parameter aDataFlavor
Describes the format for which a system dependent data types is requested.
Returns
A system dependent data transfer type for the given DataFlavor if there is one available.

If the is no system dependent data type for a given DataFlavor the returned any is empty.

getDataFlavorFromSystemDataType
DataFlavor
getDataFlavorFromSystemDataType( [in] any  aSysDataType );

Description
Converts a system dependent data type to a DataFlavor.
Parameter aSysDataType
A system dependent data type. If aSysDataType is empty so is the returned DataFlavor.
Returns
A DataFlavor for the given system dependent data transfer type.

If there is no appropriate mapping for a sytem dependent data type, the returned DataFlavor will be empty.

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.