LibreOffice Module dtrans (master)  1
Macros | Functions
ImplHelper.cxx File Reference
#include <osl/diagnose.h>
#include "ImplHelper.hxx"
#include <rtl/tencinfo.h>
#include <o3tl/char16_t2wchar_t.hxx>
#include <string.h>
#include <memory>
#include <windows.h>
#include <vector>
Include dependency graph for ImplHelper.cxx:

Go to the source code of this file.

Macros

#define FORMATETC_EXACT_MATCH   1
 
#define FORMATETC_PARTIAL_MATCH   -1
 
#define FORMATETC_NO_MATCH   0
 

Functions

sal_uInt32 getWinCPFromMimeCharset (const OUString &charset)
 
OUString getWinCPFromLocaleId (LCID lcid, LCTYPE lctype)
 
OUString getMimeCharsetFromWinCP (sal_uInt32 cp, const OUString &aPrefix)
 
OUString getMimeCharsetFromLocaleId (LCID lcid, LCTYPE lctype, const OUString &aPrefix)
 
bool IsOEMCP (sal_uInt32 codepage)
 
OUString cptostr (sal_uInt32 codepage)
 
void DeleteTargetDevice (DVTARGETDEVICE *ptd)
 
DVTARGETDEVICE * CopyTargetDevice (DVTARGETDEVICE *ptdSrc)
 
bool CopyFormatEtc (LPFORMATETC petcDest, LPFORMATETC petcSrc)
 
sal_Int32 CompareFormatEtc (const FORMATETC *pFetcLhs, const FORMATETC *pFetcRhs)
 
bool CompareTargetDevice (DVTARGETDEVICE *ptdLeft, DVTARGETDEVICE const *ptdRight)
 

Macro Definition Documentation

#define FORMATETC_EXACT_MATCH   1

Definition at line 34 of file ImplHelper.cxx.

Referenced by CompareFormatEtc().

#define FORMATETC_NO_MATCH   0

Definition at line 36 of file ImplHelper.cxx.

Referenced by CompareFormatEtc().

#define FORMATETC_PARTIAL_MATCH   -1

Definition at line 35 of file ImplHelper.cxx.

Referenced by CompareFormatEtc().

Function Documentation

sal_Int32 CompareFormatEtc ( const FORMATETC *  pFetcLhs,
const FORMATETC *  pFetcRhs 
)
bool CompareTargetDevice ( DVTARGETDEVICE *  ptdLeft,
DVTARGETDEVICE const *  ptdRight 
)

Definition at line 323 of file ImplHelper.cxx.

Referenced by CompareFormatEtc().

bool CopyFormatEtc ( LPFORMATETC  petcDest,
LPFORMATETC  petcSrc 
)
DVTARGETDEVICE* CopyTargetDevice ( DVTARGETDEVICE *  ptdSrc)
OUString cptostr ( sal_uInt32  codepage)

Definition at line 151 of file ImplHelper.cxx.

Referenced by getMimeCharsetFromWinCP().

void DeleteTargetDevice ( DVTARGETDEVICE *  ptd)
OUString getMimeCharsetFromLocaleId ( LCID  lcid,
LCTYPE  lctype,
const OUString &  aPrefix 
)

Definition at line 125 of file ImplHelper.cxx.

References getWinCPFromLocaleId().

Referenced by CDataFormatTranslator::getTextCharsetFromLCID().

OUString getMimeCharsetFromWinCP ( sal_uInt32  cp,
const OUString &  aPrefix 
)

Definition at line 116 of file ImplHelper.cxx.

References cptostr().

Referenced by CFormatRegistrar::getCharsetFromDataFlavor().

OUString getWinCPFromLocaleId ( LCID  lcid,
LCTYPE  lctype 
)
sal_uInt32 getWinCPFromMimeCharset ( const OUString &  charset)

Definition at line 41 of file ImplHelper.cxx.

Referenced by CFormatRegistrar::RegisterFormats().

bool IsOEMCP ( sal_uInt32  codepage)

Definition at line 133 of file ImplHelper.cxx.

References i, and SAL_N_ELEMENTS.

Referenced by CFormatRegistrar::RegisterFormats().