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

#include <FetcList.hxx>

Collaboration diagram for CFormatRegistrar:
[legend]

Public Member Functions

 CFormatRegistrar (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const CDataFormatTranslator &aDataFormatTranslator)
 
void RegisterFormats (const css::uno::Reference< css::datatransfer::XTransferable > &aXTransferable, CFormatEtcContainer &aFormatEtcContainer)
 
bool hasSynthesizedLocale () const
 
css::datatransfer::DataFlavor getRegisteredTextFlavor () const
 

Static Public Member Functions

static LCID getSynthesizedLocale ()
 
static sal_uInt32 getRegisteredTextCodePage ()
 
static bool isSynthesizeableFormat (const CFormatEtc &aFormatEtc)
 
static bool needsToSynthesizeAccompanyFormats (const CFormatEtc &aFormatEtc)
 

Private Member Functions

OUString getCharsetFromDataFlavor (const css::datatransfer::DataFlavor &aFlavor)
 
bool hasUnicodeFlavor (const css::uno::Reference< css::datatransfer::XTransferable > &aXTransferable) const
 
 CFormatRegistrar (const CFormatRegistrar &)
 
CFormatRegistraroperator= (const CFormatRegistrar &)
 

Static Private Member Functions

static bool findLocaleForTextCodePage ()
 
static bool isLocaleOemCodePage (LCID lcid, sal_uInt32 codepage)
 
static bool isLocaleAnsiCodePage (LCID lcid, sal_uInt32 codepage)
 
static bool isLocaleCodePage (LCID lcid, LCTYPE lctype, sal_uInt32 codepage)
 
static BOOL CALLBACK EnumLocalesProc (LPSTR lpLocaleStr)
 

Private Attributes

const CDataFormatTranslatorm_DataFormatTranslator
 
bool m_bHasSynthesizedLocale
 
css::datatransfer::DataFlavor m_RegisteredTextFlavor
 
const css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Static Private Attributes

static LCID m_TxtLocale = 0
 
static sal_uInt32 m_TxtCodePage = GetACP( )
 

Detailed Description

Definition at line 94 of file FetcList.hxx.

Constructor & Destructor Documentation

CFormatRegistrar::CFormatRegistrar ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const CDataFormatTranslator aDataFormatTranslator 
)
CFormatRegistrar::CFormatRegistrar ( const CFormatRegistrar )
private

Member Function Documentation

BOOL CALLBACK CFormatRegistrar::EnumLocalesProc ( LPSTR  lpLocaleStr)
staticprivate
bool CFormatRegistrar::findLocaleForTextCodePage ( )
staticprivate

Definition at line 296 of file FetcList.cxx.

References EnumLocalesProc(), and m_TxtLocale.

Referenced by RegisterFormats().

OUString CFormatRegistrar::getCharsetFromDataFlavor ( const css::datatransfer::DataFlavor &  aFlavor)
private
sal_uInt32 CFormatRegistrar::getRegisteredTextCodePage ( )
static

Definition at line 234 of file FetcList.cxx.

References m_TxtCodePage.

Referenced by CXTDataObject::renderSynthesizedUnicodeAndSetupStgMedium().

DataFlavor CFormatRegistrar::getRegisteredTextFlavor ( ) const
LCID CFormatRegistrar::getSynthesizedLocale ( )
static
bool CFormatRegistrar::hasSynthesizedLocale ( ) const
bool CFormatRegistrar::hasUnicodeFlavor ( const css::uno::Reference< css::datatransfer::XTransferable > &  aXTransferable) const
private
bool CFormatRegistrar::isLocaleAnsiCodePage ( LCID  lcid,
sal_uInt32  codepage 
)
inlinestaticprivate

Definition at line 324 of file FetcList.cxx.

References isLocaleCodePage().

Referenced by EnumLocalesProc().

bool CFormatRegistrar::isLocaleCodePage ( LCID  lcid,
LCTYPE  lctype,
sal_uInt32  codepage 
)
staticprivate

Definition at line 303 of file FetcList.cxx.

Referenced by isLocaleAnsiCodePage(), and isLocaleOemCodePage().

bool CFormatRegistrar::isLocaleOemCodePage ( LCID  lcid,
sal_uInt32  codepage 
)
inlinestaticprivate

Definition at line 318 of file FetcList.cxx.

References isLocaleCodePage().

Referenced by EnumLocalesProc().

bool CFormatRegistrar::isSynthesizeableFormat ( const CFormatEtc aFormatEtc)
static
bool CFormatRegistrar::needsToSynthesizeAccompanyFormats ( const CFormatEtc aFormatEtc)
inlinestatic
CFormatRegistrar& CFormatRegistrar::operator= ( const CFormatRegistrar )
private
void CFormatRegistrar::RegisterFormats ( const css::uno::Reference< css::datatransfer::XTransferable > &  aXTransferable,
CFormatEtcContainer aFormatEtcContainer 
)

Member Data Documentation

bool CFormatRegistrar::m_bHasSynthesizedLocale
private

Definition at line 127 of file FetcList.hxx.

Referenced by hasSynthesizedLocale(), and RegisterFormats().

const CDataFormatTranslator& CFormatRegistrar::m_DataFormatTranslator
private

Definition at line 126 of file FetcList.hxx.

Referenced by hasUnicodeFlavor(), and RegisterFormats().

css::datatransfer::DataFlavor CFormatRegistrar::m_RegisteredTextFlavor
private

Definition at line 128 of file FetcList.hxx.

Referenced by getRegisteredTextFlavor(), and RegisterFormats().

sal_uInt32 CFormatRegistrar::m_TxtCodePage = GetACP( )
staticprivate

Definition at line 133 of file FetcList.hxx.

Referenced by EnumLocalesProc(), getRegisteredTextCodePage(), and RegisterFormats().

LCID CFormatRegistrar::m_TxtLocale = 0
staticprivate

Definition at line 132 of file FetcList.hxx.

Referenced by EnumLocalesProc(), findLocaleForTextCodePage(), and getSynthesizedLocale().

const css::uno::Reference< css::uno::XComponentContext > CFormatRegistrar::m_xContext
private

Definition at line 130 of file FetcList.hxx.

Referenced by getCharsetFromDataFlavor().


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