LibreOffice Module lotuswordpro (master) 1
|
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< XFDateStyle > | GetSystemDateStyle (bool bLongFormat) |
@descr get the system date format More... | |
static std::unique_ptr< XFTimeStyle > | GetSystemTimeStyle () |
@descr get the system time format More... | |
tool class (unicode, conversion) for lwp filter.
Definition at line 86 of file lwptools.hxx.
|
inlinestatic |
Definition at line 109 of file lwptools.hxx.
References UNITS_PER_INCH.
Referenced by LwpParaStyle::ApplyIndent(), LwpParaStyle::ApplySpacing(), ConvertFromUnitsToMetric(), LwpIndentOverride::GetFirst(), LwpIndentOverride::GetLeft(), LwpIndentOverride::GetRight(), LwpBorderStuff::GetSideWidth(), and LwpBulletStyleMgr::RegisterBulletStyle().
|
inlinestatic |
Definition at line 117 of file lwptools.hxx.
References ConvertFromUnits(), and ConvertToMetric().
Referenced by LwpSuperTableLayout::ApplyAlignment(), LwpParaStyle::ApplyTab(), LwpSdwGroupLoaderV0102::BeginDrawObjects(), LwpGraphicObject::CreateGrafObject(), LwpColumnInfo::GetGap(), LwpMiddleLayout::GetGeometryHeight(), LwpMiddleLayout::GetGeometryWidth(), LwpGraphicOleObject::GetGrafScaledSize(), LwpTable::GetHeight(), LwpMargins::GetMarginsValue(), LwpFrameLayout::GetMaxWidth(), LwpShadow::GetOffsetX(), LwpShadow::GetOffsetY(), LwpSuperTableLayout::GetTableWidth(), LwpTable::GetWidth(), LwpColumnLayout::GetWidth(), LwpFrame::IsLeftWider(), LwpFrame::ParseAnchorType(), LwpPageLayout::ParseFootNoteSeparator(), LwpLineNumberOptions::RegisterStyle(), and LwpRowLayout::RegisterStyle().
|
static |
Definition at line 204 of file lwptools.cxx.
References isFileUrl(), and SEPARATOR.
Referenced by LwpMiddleLayout::GetXFBGImage(), and LwpGraphicObject::XFConvert().
|
inlinestatic |
Definition at line 113 of file lwptools.hxx.
References CM_PER_INCH.
Referenced by LwpParaStyle::ApplyIndent(), LwpParaStyle::ApplySpacing(), ConvertFromUnitsToMetric(), LwpVirtualLayout::GetColGap(), LwpIndentOverride::GetFirst(), LwpIndentOverride::GetLeft(), LwpIndentOverride::GetRight(), LwpBorderStuff::GetSideWidth(), and LwpBulletStyleMgr::RegisterBulletStyle().
|
static |
Definition at line 226 of file lwptools.cxx.
References LtTm::tm_hour, LtTm::tm_mday, LtTm::tm_min, LtTm::tm_mon, LtTm::tm_sec, and LtTm::tm_year.
Referenced by LwpFribNote::XFConvert().
|
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().
|
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().
|
inlinestatic |
Definition at line 126 of file lwptools.hxx.
Referenced by LwpPageLayout::HasFillerPageText(), and LwpFrame::XFConvert().
|
static |
Definition at line 199 of file lwptools.cxx.
References o3tl::starts_with().
Referenced by convertToFileUrl().
|
inlinestatic |
Definition at line 122 of file lwptools.hxx.
Referenced by LwpPageLayout::HasFillerPageText(), and LwpFrame::XFConvert().
|
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().
|
static |
@descr read lwp unicode string from stream to OUString per aEncoding
Definition at line 84 of file lwptools.cxx.
References IsUnicodePacked(), LwpObjectStream::QuickRead(), LwpObjectStream::QuickReaduInt16(), and LwpObjectStream::QuickReaduInt8().
Referenced by LwpObjectStream::QuickReadStringPtr(), LwpFribText::Read(), LwpFribUnicode::Read(), and LwpAtomHolder::Read().