LibreOffice Module sw (master)  1
Functions
sw::ms Namespace Reference

Functions

sal_uInt8 rtl_TextEncodingToWinCharset (rtl_TextEncoding eTextEncoding)
 MSOffice appears to set the charset of unicode fonts to MS 932. More...
 
sal_uInt8 rtl_TextEncodingToWinCharsetRTF (OUString const &rFontName, OUString const &rAltName, rtl_TextEncoding eTextEncoding)
 MSOffice appears to set the charset of unicode fonts to MS 932. More...
 
sal_uInt32 DateTime2DTTM (const DateTime &rDT)
 Convert from DTTM to Writer's DateTime. More...
 
sal_uLong MSDateTimeFormatToSwFormat (OUString &rParams, SvNumberFormatter *pFormatter, LanguageType &rLang, bool bHijri, LanguageType nDocLang)
 Convert from Word Date/Time field str to Writer's Date Time str. More...
 
bool IsPreviousAM (OUString const &rParams, sal_Int32 nPos)
 
bool IsNextPM (OUString const &rParams, sal_Int32 nPos)
 
bool IsNotAM (OUString const &rParams, sal_Int32 nPos)
 Used by MSDateTimeFormatToSwFormat to identify AM time fields. More...
 
void SwapQuotesInField (OUString &rFormat)
 Another function used by MSDateTimeFormatToSwFormat. More...
 
static bool CanEncode (OUString const &rString, rtl_TextEncoding const eEncoding)
 
static sal_Int32 findUnquoted (const OUString &rParams, sal_Unicode cFind, sal_Int32 nFromPos)
 Find cFind in rParams if not embedded in " double quotes. More...
 
static bool replaceUnquoted (OUString &rParams, const OUString &rFind, const OUString &rReplace)
 Find all rFind in rParams if not embedded in " double quotes and replace with rReplace. More...
 

Function Documentation

static bool sw::ms::CanEncode ( OUString const &  rString,
rtl_TextEncoding const  eEncoding 
)
static

Definition at line 678 of file writerwordglue.cxx.

Referenced by rtl_TextEncodingToWinCharsetRTF().

sal_uInt32 sw::ms::DateTime2DTTM ( const DateTime rDT)
static sal_Int32 sw::ms::findUnquoted ( const OUString &  rParams,
sal_Unicode  cFind,
sal_Int32  nFromPos 
)
static

Find cFind in rParams if not embedded in " double quotes.

Will NOT find '\' or '"'.

Definition at line 757 of file writerwordglue.cxx.

Referenced by MSDateTimeFormatToSwFormat().

bool sw::ms::IsNextPM ( OUString const &  rParams,
sal_Int32  nPos 
)

Definition at line 1050 of file writerwordglue.cxx.

Referenced by MSDateTimeFormatToSwFormat().

bool sw::ms::IsNotAM ( OUString const &  rParams,
sal_Int32  nPos 
)

Used by MSDateTimeFormatToSwFormat to identify AM time fields.

Definition at line 1054 of file writerwordglue.cxx.

Referenced by MSDateTimeFormatToSwFormat().

bool sw::ms::IsPreviousAM ( OUString const &  rParams,
sal_Int32  nPos 
)

Definition at line 1046 of file writerwordglue.cxx.

Referenced by MSDateTimeFormatToSwFormat().

sal_uLong sw::ms::MSDateTimeFormatToSwFormat ( OUString &  rParams,
SvNumberFormatter pFormatter,
LanguageType rLang,
bool  bHijri,
LanguageType  nDocLang 
)
static bool sw::ms::replaceUnquoted ( OUString &  rParams,
const OUString &  rFind,
const OUString &  rReplace 
)
static

Find all rFind in rParams if not embedded in " double quotes and replace with rReplace.

Will NOT find '\' or '"'.

Definition at line 790 of file writerwordglue.cxx.

Referenced by MSDateTimeFormatToSwFormat().

sal_uInt8 sw::ms::rtl_TextEncodingToWinCharset ( rtl_TextEncoding  eTextEncoding)

MSOffice appears to set the charset of unicode fonts to MS 932.

But we do "default", whatever that means.

Parameters
eTextEncodingthe OOo encoding to convert from
Returns
a msoffice equivalent charset identifier

Definition at line 658 of file writerwordglue.cxx.

Referenced by wwFont::WriteDocx(), and wwFont::wwFont().

sal_uInt8 sw::ms::rtl_TextEncodingToWinCharsetRTF ( OUString const &  rFontName,
OUString const &  rAltName,
rtl_TextEncoding  eTextEncoding 
)

MSOffice appears to set the charset of unicode fonts to MS 932.

Arial Unicode MS for example is a unicode font, but word sets exported uses of it to the MS 932 charset

Definition at line 686 of file writerwordglue.cxx.

References CanEncode(), i, and SAL_INFO.

Referenced by RtfAttributeOutput::CharFont(), and wwFont::WriteRtf().

void sw::ms::SwapQuotesInField ( OUString &  rFormat)

Another function used by MSDateTimeFormatToSwFormat.

Definition at line 1060 of file writerwordglue.cxx.

Referenced by MSWordExportBase::GetNumberFormat(), and MSDateTimeFormatToSwFormat().