class DataFlavorMapper
{ public: /* Initialize a DataFavorMapper instance. Throws a RuntimeException in case the XMimeContentTypeFactory service cannotbecreated.
*/
DataFlavorMapper();
~DataFlavorMapper();
/* Map a system data flavor to an OpenOffice data flavor. Returnanemptystringifthereisnotsuitable mappingfromasystemdataflavortoanOpenOfficedata flavor.
*/
css::datatransfer::DataFlavor systemToOpenOfficeFlavor(const NSString* systemDataFlavor) const;
/* Map an OpenOffice data flavor to a system data flavor. IfthereisnosuitablemappingavailableNULLwill bereturned.
*/
NSString* openOfficeToSystemFlavor(const css::datatransfer::DataFlavor& oooDataFlavor, bool& rbInternal) const;
/* Select the best available image data type IfthereisnosuitablemappingavailableNULLwill bereturned.
*/ static NSString* openOfficeImageToSystemFlavor();
/* Get a data provider which is able to provide the data 'rTransferable' offers in a format that can beputontothesystemclipboard.
*/
DataProviderPtr_t getDataProvider( const NSString* systemFlavor, const css::uno::Reference<css::datatransfer::XTransferable>& rTransferable) const;
/* Get a data provider which is able to provide 'systemData' in the OOo expected format.
*/ static DataProviderPtr_t getDataProvider(const NSString* systemFlavor, NSArray* systemData);
/* Get a data provider which is able to provide 'systemData' in the OOo expected format.
*/ static DataProviderPtr_t getDataProvider(const NSString* systemFlavor, NSData* systemData);
/* Translate a sequence of DataFlavors into a NSArray of system types. OnlythoseDataFlavorsforwhichasuitablemappingtoasystem typeexistwillbecontainedinthereturnedtypesarray.
*/
NSArray* flavorSequenceToTypesArray( const css::uno::Sequence<css::datatransfer::DataFlavor>& flavors) const;
/* Translate a NSArray of system types into a sequence of DataFlavors. OnlythosetypesforwhichasuitablemappingtoaDataFlavor existwillbecontainedinthenewDataFlavorSequence.
*/
css::uno::Sequence<css::datatransfer::DataFlavor>
typesArrayToFlavorSequence(NSArray* types) const;
private: /* Determines if the provided Mime content type is valid.
*/ bool isValidMimeContentType(const OUString& contentType) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.