LibreOffice Module lotuswordpro (master) 1
Static Public Member Functions | List of all members
LwpTools Class Reference

tool class (unicode, conversion) for lwp filter. More...

#include <lwptools.hxx>

Static Public Member Functions

static void QuickReadUnicode (LwpObjectStream *pObjStrm, OUString &str, sal_uInt16 strlen, rtl_TextEncoding aEncoding)
 @descr read lwp unicode string from stream to OUString per aEncoding More...
 
static bool IsUnicodePacked (LwpObjectStream *pObjStrm, sal_uInt16 len)
 @descr Judge if the data (len) in object stream is lwp unicode packed More...
 
static double ConvertFromUnits (sal_Int32 nUnits)
 
static double ConvertToMetric (double fInch)
 
static double ConvertFromUnitsToMetric (sal_Int32 nUnits)
 
static bool IsOddNumber (sal_uInt16 nNumber)
 
static bool IsEvenNumber (sal_uInt16 nNumber)
 
static bool isFileUrl (std::string_view fileName)
 
static OUString convertToFileUrl (const OString &fileName)
 
static OUString DateTimeToOUString (const LtTm &dt)
 
static std::unique_ptr< XFDateStyleGetSystemDateStyle (bool bLongFormat)
 @descr get the system date format More...
 
static std::unique_ptr< XFTimeStyleGetSystemTimeStyle ()
 @descr get the system time format More...
 

Detailed Description

tool class (unicode, conversion) for lwp filter.

Definition at line 86 of file lwptools.hxx.

Member Function Documentation

◆ ConvertFromUnits()

double LwpTools::ConvertFromUnits ( sal_Int32  nUnits)
inlinestatic

◆ ConvertFromUnitsToMetric()

double LwpTools::ConvertFromUnitsToMetric ( sal_Int32  nUnits)
inlinestatic

◆ convertToFileUrl()

OUString LwpTools::convertToFileUrl ( const OString &  fileName)
static

Definition at line 204 of file lwptools.cxx.

References isFileUrl(), and SEPARATOR.

Referenced by LwpMiddleLayout::GetXFBGImage(), and LwpGraphicObject::XFConvert().

◆ ConvertToMetric()

double LwpTools::ConvertToMetric ( double  fInch)
inlinestatic

◆ DateTimeToOUString()

OUString LwpTools::DateTimeToOUString ( const LtTm dt)
static

◆ GetSystemDateStyle()

std::unique_ptr< XFDateStyle > LwpTools::GetSystemDateStyle ( bool  bLongFormat)
static

@descr get the system date format

Definition at line 237 of file lwptools.cxx.

References LanguageTagIcu::getIcuLocale(), Application::GetSettings(), i, and nLength.

Referenced by LwpFribField::RegisterDateTimeStyle().

◆ GetSystemTimeStyle()

std::unique_ptr< XFTimeStyle > LwpTools::GetSystemTimeStyle ( )
static

@descr get the system time format

Definition at line 631 of file lwptools.cxx.

References LanguageTagIcu::getIcuLocale(), Application::GetSettings(), i, and nLength.

Referenced by LwpFribField::RegisterDateTimeStyle().

◆ IsEvenNumber()

bool LwpTools::IsEvenNumber ( sal_uInt16  nNumber)
inlinestatic

Definition at line 126 of file lwptools.hxx.

Referenced by LwpPageLayout::HasFillerPageText(), and LwpFrame::XFConvert().

◆ isFileUrl()

bool LwpTools::isFileUrl ( std::string_view  fileName)
static

Definition at line 199 of file lwptools.cxx.

References o3tl::starts_with().

Referenced by convertToFileUrl().

◆ IsOddNumber()

bool LwpTools::IsOddNumber ( sal_uInt16  nNumber)
inlinestatic

Definition at line 122 of file lwptools.hxx.

Referenced by LwpPageLayout::HasFillerPageText(), and LwpFrame::XFConvert().

◆ IsUnicodePacked()

bool LwpTools::IsUnicodePacked ( LwpObjectStream pObjStrm,
sal_uInt16  len 
)
static

@descr Judge if the data (len) in object stream is lwp unicode packed

Definition at line 181 of file lwptools.cxx.

References LwpObjectStream::GetPos(), i, LwpObjectStream::QuickReaduInt8(), and LwpObjectStream::Seek().

Referenced by QuickReadUnicode().

◆ QuickReadUnicode()

void LwpTools::QuickReadUnicode ( LwpObjectStream pObjStrm,
OUString &  str,
sal_uInt16  strlen,
rtl_TextEncoding  aEncoding 
)
static

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