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:

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 )

Member Function Documentation

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

Definition at line 296 of file FetcList.cxx.

References EnumLocalesProc(), and m_TxtLocale.

Referenced by RegisterFormats().

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

Definition at line 234 of file FetcList.cxx.

References m_TxtCodePage.

Referenced by CXTDataObject::renderSynthesizedUnicodeAndSetupStgMedium().

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

Definition at line 324 of file FetcList.cxx.

References isLocaleCodePage().

Referenced by EnumLocalesProc().

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

Definition at line 303 of file FetcList.cxx.

Referenced by isLocaleAnsiCodePage(), and isLocaleOemCodePage().

bool CFormatRegistrar::isLocaleOemCodePage ( LCID  lcid,
sal_uInt32  codepage 

Definition at line 318 of file FetcList.cxx.

References isLocaleCodePage().

Referenced by EnumLocalesProc().

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

Member Data Documentation

bool CFormatRegistrar::m_bHasSynthesizedLocale

Definition at line 127 of file FetcList.hxx.

Referenced by hasSynthesizedLocale(), and RegisterFormats().

const CDataFormatTranslator& CFormatRegistrar::m_DataFormatTranslator

Definition at line 126 of file FetcList.hxx.

Referenced by hasUnicodeFlavor(), and RegisterFormats().

css::datatransfer::DataFlavor CFormatRegistrar::m_RegisteredTextFlavor

Definition at line 128 of file FetcList.hxx.

Referenced by getRegisteredTextFlavor(), and RegisterFormats().

sal_uInt32 CFormatRegistrar::m_TxtCodePage = GetACP( )

Definition at line 133 of file FetcList.hxx.

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

LCID CFormatRegistrar::m_TxtLocale = 0

Definition at line 132 of file FetcList.hxx.

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

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

Definition at line 130 of file FetcList.hxx.

Referenced by getCharsetFromDataFlavor().

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