LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Attributes | List of all members
SfxOleTextEncoding Class Reference

Helper for classes that need text encoding settings. More...

#include <oleprops.hxx>

Inheritance diagram for SfxOleTextEncoding:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SfxOleTextEncoding() [1/2]

SfxOleTextEncoding::SfxOleTextEncoding ( )
inlineexplicit

Definition at line 104 of file oleprops.hxx.

References make_shared().

◆ SfxOleTextEncoding() [2/2]

SfxOleTextEncoding::SfxOleTextEncoding ( rtl_TextEncoding  eTextEnc)
inlineexplicit

Definition at line 106 of file oleprops.hxx.

References make_shared().

Member Function Documentation

◆ GetCodePage()

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().

◆ GetTextEncoding()

rtl_TextEncoding SfxOleTextEncoding::GetTextEncoding ( ) const
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().

◆ IsUnicode()

bool SfxOleTextEncoding::IsUnicode ( ) const
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().

◆ SetCodePage()

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().

◆ SetTextEncoding()

void SfxOleTextEncoding::SetTextEncoding ( rtl_TextEncoding  eTextEnc)
inline

Sets the passed text encoding.

Definition at line 112 of file oleprops.hxx.

References mxTextEnc.

Referenced by SfxOleSection::ImplSave(), and SetUnicode().

◆ SetUnicode()

void SfxOleTextEncoding::SetUnicode ( )
inline

Sets Unicode text encoding to this object.

Definition at line 117 of file oleprops.hxx.

References SetTextEncoding().

Referenced by SetCodePage().

Member Data Documentation

◆ mxTextEnc

std::shared_ptr< rtl_TextEncoding > SfxOleTextEncoding::mxTextEnc
private

Definition at line 125 of file oleprops.hxx.

Referenced by GetCodePage(), GetTextEncoding(), SetCodePage(), and SetTextEncoding().


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