LibreOffice Module dtrans (master)  1
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
CDataFormatTranslator Class Reference

#include <DataFmtTransl.hxx>

Public Member Functions

 CDataFormatTranslator (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
CFormatEtc getFormatEtcFromDataFlavor (const css::datatransfer::DataFlavor &aDataFlavor) const
 
css::datatransfer::DataFlavor getDataFlavorFromFormatEtc (const FORMATETC &aFormatEtc, LCID lcid=GetThreadLocale()) const
 

Static Public Member Functions

static CFormatEtc getFormatEtcForClipformat (CLIPFORMAT cf)
 
static CFormatEtc getFormatEtcForClipformatName (const OUString &aClipFmtName)
 
static OUString getClipboardFormatName (CLIPFORMAT aClipformat)
 
static bool isHTMLFormat (CLIPFORMAT cf)
 
static bool isTextHtmlFormat (CLIPFORMAT cf)
 
static bool isOemOrAnsiTextFormat (CLIPFORMAT cf)
 
static bool isUnicodeTextFormat (CLIPFORMAT cf)
 
static bool isTextFormat (CLIPFORMAT cf)
 

Static Private Member Functions

static OUString getTextCharsetFromLCID (LCID lcid, CLIPFORMAT aClipformat)
 

Private Attributes

css::uno::Reference< css::datatransfer::XDataFormatTranslator > m_XDataFormatTranslator
 

Detailed Description

Definition at line 39 of file DataFmtTransl.hxx.

Constructor & Destructor Documentation

CDataFormatTranslator::CDataFormatTranslator ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
explicit

Definition at line 56 of file DataFmtTransl.cxx.

Member Function Documentation

OUString CDataFormatTranslator::getClipboardFormatName ( CLIPFORMAT  aClipformat)
static

Definition at line 164 of file DataFmtTransl.cxx.

References CF_INVALID, and MAX_CLIPFORMAT_NAME.

DataFlavor CDataFormatTranslator::getDataFlavorFromFormatEtc ( const FORMATETC &  aFormatEtc,
LCID  lcid = GetThreadLocale( ) 
) const
CFormatEtc CDataFormatTranslator::getFormatEtcForClipformat ( CLIPFORMAT  cf)
static
CFormatEtc CDataFormatTranslator::getFormatEtcForClipformatName ( const OUString &  aClipFmtName)
static

Definition at line 154 of file DataFmtTransl.cxx.

References CF_INVALID.

Referenced by CFormatRegistrar::RegisterFormats().

CFormatEtc CDataFormatTranslator::getFormatEtcFromDataFlavor ( const css::datatransfer::DataFlavor &  aDataFlavor) const
OUString CDataFormatTranslator::getTextCharsetFromLCID ( LCID  lcid,
CLIPFORMAT  aClipformat 
)
staticprivate
bool CDataFormatTranslator::isHTMLFormat ( CLIPFORMAT  cf)
static
bool CDataFormatTranslator::isOemOrAnsiTextFormat ( CLIPFORMAT  cf)
static
bool CDataFormatTranslator::isTextFormat ( CLIPFORMAT  cf)
static

Definition at line 217 of file DataFmtTransl.cxx.

Referenced by CFormatRegistrar::RegisterFormats().

bool CDataFormatTranslator::isTextHtmlFormat ( CLIPFORMAT  cf)
static
bool CDataFormatTranslator::isUnicodeTextFormat ( CLIPFORMAT  cf)
static

Member Data Documentation

css::uno::Reference< css::datatransfer::XDataFormatTranslator > CDataFormatTranslator::m_XDataFormatTranslator
private

Definition at line 62 of file DataFmtTransl.hxx.


The documentation for this class was generated from the following files: