LibreOffice Module sfx2 (master) 1
|
Helper for classes that need text encoding settings. More...
#include <oleprops.hxx>
Public Member Functions | |
SfxOleTextEncoding () | |
SfxOleTextEncoding (rtl_TextEncoding eTextEnc) | |
rtl_TextEncoding | GetTextEncoding () const |
Returns the current text encoding identifier. More... | |
void | SetTextEncoding (rtl_TextEncoding eTextEnc) |
Sets the passed text encoding. More... | |
bool | IsUnicode () const |
Returns true, if this object contains Unicode text encoding. More... | |
void | SetUnicode () |
Sets Unicode text encoding to this object. More... | |
sal_uInt16 | GetCodePage () const |
Converts the current settings to a Windows codepage identifier. More... | |
void | SetCodePage (sal_uInt16 nCodePage) |
Sets the current text encoding from a Windows codepage identifier. More... | |
Private Attributes | |
std::shared_ptr< rtl_TextEncoding > | mxTextEnc |
Helper for classes that need text encoding settings.
Classes derived from this class will include functions to store and use text encoding settings and to convert Windows codepage constants.
Definition at line 101 of file oleprops.hxx.
|
inlineexplicit |
Definition at line 104 of file oleprops.hxx.
References make_shared().
|
inlineexplicit |
Definition at line 106 of file oleprops.hxx.
References make_shared().
sal_uInt16 SfxOleTextEncoding::GetCodePage | ( | ) | const |
Converts the current settings to a Windows codepage identifier.
Definition at line 227 of file oleprops.cxx.
References CODEPAGE_UNICODE, CODEPAGE_UNKNOWN, CODEPAGE_UTF8, IsUnicode(), and mxTextEnc.
Referenced by SfxOleCodePageProperty::ImplSave().
|
inline |
Returns the current text encoding identifier.
Definition at line 110 of file oleprops.hxx.
References mxTextEnc.
Referenced by SfxOleStringHelper::ImplLoadString8(), SfxOleStringHelper::ImplSaveString8(), and IsUnicode().
|
inline |
Returns true, if this object contains Unicode text encoding.
Definition at line 115 of file oleprops.hxx.
References GetTextEncoding().
Referenced by GetCodePage(), SfxOleStringHelper::LoadString8(), and SfxOleStringHelper::SaveString8().
void SfxOleTextEncoding::SetCodePage | ( | sal_uInt16 | nCodePage | ) |
Sets the current text encoding from a Windows codepage identifier.
Definition at line 234 of file oleprops.cxx.
References CODEPAGE_UNICODE, mxTextEnc, and SetUnicode().
Referenced by SfxOleCodePageProperty::ImplLoad().
|
inline |
Sets the passed text encoding.
Definition at line 112 of file oleprops.hxx.
References mxTextEnc.
Referenced by SfxOleSection::ImplSave(), and SetUnicode().
|
inline |
Sets Unicode text encoding to this object.
Definition at line 117 of file oleprops.hxx.
References SetTextEncoding().
Referenced by SetCodePage().
|
private |
Definition at line 125 of file oleprops.hxx.
Referenced by GetCodePage(), GetTextEncoding(), SetCodePage(), and SetTextEncoding().