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

#include <txencbox.hxx>

Public Member Functions

 SvxTextEncodingTreeView (std::unique_ptr< weld::TreeView > pControl)
 
 ~SvxTextEncodingTreeView ()
 
void FillFromTextEncodingTable (bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags=0)
 Fill with all known encodings but exclude those matching one or more given flags as defined in rtl/tencinfo.h. More...
 
void FillFromDbTextEncodingMap (bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags=0)
 Fill with all encodings known to the dbtools::OCharsetMap but exclude those matching one or more given flags as defined in rtl/tencinfo.h. More...
 
void InsertTextEncoding (const rtl_TextEncoding nEnc)
 
void InsertTextEncoding (const rtl_TextEncoding nEnc, const OUString &rEntry)
 
void SelectTextEncoding (const rtl_TextEncoding nEnc)
 
rtl_TextEncoding GetSelectTextEncoding () const
 
void connect_changed (const Link< weld::TreeView &, void > &rLink)
 
void connect_row_activated (const Link< weld::TreeView &, bool > &rLink)
 
void grab_focus ()
 
void show ()
 
void hide ()
 
int get_height_rows (int nRows) const
 
void set_size_request (int nWidth, int nHeight)
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xControl
 

Detailed Description

Definition at line 99 of file txencbox.hxx.

Constructor & Destructor Documentation

SvxTextEncodingTreeView::SvxTextEncodingTreeView ( std::unique_ptr< weld::TreeView pControl)

Definition at line 125 of file txencbox.cxx.

References m_xControl.

SvxTextEncodingTreeView::~SvxTextEncodingTreeView ( )

Definition at line 135 of file txencbox.cxx.

Member Function Documentation

void SvxTextEncodingTreeView::connect_changed ( const Link< weld::TreeView &, void > &  rLink)
inline

Definition at line 146 of file txencbox.hxx.

void SvxTextEncodingTreeView::connect_row_activated ( const Link< weld::TreeView &, bool > &  rLink)
inline

Definition at line 147 of file txencbox.hxx.

void SvxTextEncodingTreeView::FillFromDbTextEncodingMap ( bool  bExcludeImportSubsets,
sal_uInt32  nExcludeInfoFlags = 0 
)

Fill with all encodings known to the dbtools::OCharsetMap but exclude those matching one or more given flags as defined in rtl/tencinfo.h.

Parameters
bExcludeImportSubsetsIf <TRUE>, some specific encodings are not listed, as they are a subset of another encoding. This is the case for RTL_TEXTENCODING_GB_2312, RTL_TEXTENCODING_GBK, RTL_TEXTENCODING_MS_936, which are covered by RTL_TEXTENCODING_GB_18030. Normally, this flag should be set to <TRUE> whenever the box is used in import dialogs.

Definition at line 109 of file txencbox.cxx.

References InsertTextEncoding(), and m_xControl.

void SvxTextEncodingTreeView::FillFromTextEncodingTable ( bool  bExcludeImportSubsets,
sal_uInt32  nExcludeInfoFlags = 0 
)

Fill with all known encodings but exclude those matching one or more given flags as defined in rtl/tencinfo.h.

Parameters
bExcludeImportSubsetsIf <TRUE>, some specific encodings are not listed, as they are a subset of another encoding. This is the case for RTL_TEXTENCODING_GB_2312, RTL_TEXTENCODING_GBK, RTL_TEXTENCODING_MS_936, which are covered by RTL_TEXTENCODING_GB_18030. Normally, this flag should be set to <TRUE> whenever the box is used in import dialogs.

Definition at line 202 of file txencbox.cxx.

References first(), InsertTextEncoding(), m_xControl, and SvxResId().

int SvxTextEncodingTreeView::get_height_rows ( int  nRows) const
inline

Definition at line 151 of file txencbox.hxx.

rtl_TextEncoding SvxTextEncodingTreeView::GetSelectTextEncoding ( ) const

Definition at line 261 of file txencbox.cxx.

References m_xControl, and sId.

void SvxTextEncodingTreeView::grab_focus ( )
inline

Definition at line 148 of file txencbox.hxx.

void SvxTextEncodingTreeView::hide ( )
inline

Definition at line 150 of file txencbox.hxx.

void SvxTextEncodingTreeView::InsertTextEncoding ( const rtl_TextEncoding  nEnc)
void SvxTextEncodingTreeView::InsertTextEncoding ( const rtl_TextEncoding  nEnc,
const OUString &  rEntry 
)

Definition at line 228 of file txencbox.cxx.

References m_xControl.

void SvxTextEncodingTreeView::SelectTextEncoding ( const rtl_TextEncoding  nEnc)

Definition at line 275 of file txencbox.cxx.

References m_xControl.

void SvxTextEncodingTreeView::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 155 of file txencbox.hxx.

void SvxTextEncodingTreeView::show ( )
inline

Definition at line 149 of file txencbox.hxx.

Member Data Documentation

std::unique_ptr<weld::TreeView> SvxTextEncodingTreeView::m_xControl
private

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