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

#include <chinese_dictionarydialog.hxx>

Collaboration diagram for textconversiondlgs::DictionaryList:
[legend]

Public Member Functions

 DictionaryList (std::unique_ptr< weld::TreeView > xTreeView)
 
void init (const css::uno::Reference< css::linguistic2::XConversionDictionary > &xDictionary, weld::Entry *pED_Term, weld::Entry *pED_Mapping, weld::ComboBox *pLB_Property)
 
void deleteAll ()
 
void refillFromDictionary (sal_Int32 nTextConversionOptions)
 
void save ()
 
DictionaryEntrygetTermEntry (std::u16string_view rTerm) const
 
bool hasTerm (std::u16string_view rTerm) const
 
void addEntry (const OUString &rTerm, const OUString &rMapping, sal_Int16 nConversionPropertyType, int nPos=-1)
 
int deleteEntries (std::u16string_view rTerm)
 
void deleteEntryOnPos (sal_Int32 nPos)
 
DictionaryEntrygetEntryOnPos (sal_Int32 nPos) const
 
DictionaryEntrygetFirstSelectedEntry () const
 
void set_size_request (int nWidth, int nHeight)
 
void hide ()
 
void show ()
 
void connect_changed (const Link< weld::TreeView &, void > &rLink)
 
void connect_column_clicked (const Link< int, void > &rLink)
 
bool get_sort_order () const
 
void set_sort_order (bool bAscending)
 
void set_sort_column (int nColumn)
 
int get_sort_column () const
 
int get_selected_index () const
 
int get_height_rows (int nRows) const
 
bool get_visible () const
 
void set_sort_indicator (TriState eState, int nColumn)
 
weld::TreeViewget_widget () const
 

Public Attributes

css::uno::Reference< css::linguistic2::XConversionDictionary > m_xDictionary
 

Private Member Functions

OUString getPropertyTypeName (sal_Int16 nConversionPropertyType) const
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xControl
 
std::unique_ptr< weld::TreeIterm_xIter
 
weld::Entrym_pED_Term
 
weld::Entrym_pED_Mapping
 
weld::ComboBoxm_pLB_Property
 
std::vector< DictionaryEntry * > m_aToBeDeleted
 

Detailed Description

Definition at line 46 of file chinese_dictionarydialog.hxx.

Constructor & Destructor Documentation

◆ DictionaryList()

textconversiondlgs::DictionaryList::DictionaryList ( std::unique_ptr< weld::TreeView xTreeView)

Definition at line 42 of file chinese_dictionarydialog.cxx.

References m_xControl.

Member Function Documentation

◆ addEntry()

void textconversiondlgs::DictionaryList::addEntry ( const OUString &  rTerm,
const OUString &  rMapping,
sal_Int16  nConversionPropertyType,
int  nPos = -1 
)

◆ connect_changed()

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

Definition at line 71 of file chinese_dictionarydialog.hxx.

References m_xControl.

◆ connect_column_clicked()

void textconversiondlgs::DictionaryList::connect_column_clicked ( const Link< int, void > &  rLink)
inline

Definition at line 72 of file chinese_dictionarydialog.hxx.

References m_xControl.

◆ deleteAll()

void textconversiondlgs::DictionaryList::deleteAll ( )

Definition at line 100 of file chinese_dictionarydialog.cxx.

References deleteEntryOnPos(), m_aToBeDeleted, m_xControl, and pE.

Referenced by refillFromDictionary().

◆ deleteEntries()

int textconversiondlgs::DictionaryList::deleteEntries ( std::u16string_view  rTerm)

◆ deleteEntryOnPos()

void textconversiondlgs::DictionaryList::deleteEntryOnPos ( sal_Int32  nPos)

◆ get_height_rows()

int textconversiondlgs::DictionaryList::get_height_rows ( int  nRows) const
inline

Definition at line 78 of file chinese_dictionarydialog.hxx.

References m_xControl.

◆ get_selected_index()

int textconversiondlgs::DictionaryList::get_selected_index ( ) const
inline

Definition at line 77 of file chinese_dictionarydialog.hxx.

References m_xControl.

Referenced by textconversiondlgs::IMPL_LINK_NOARG().

◆ get_sort_column()

int textconversiondlgs::DictionaryList::get_sort_column ( ) const
inline

◆ get_sort_order()

bool textconversiondlgs::DictionaryList::get_sort_order ( ) const
inline

◆ get_visible()

bool textconversiondlgs::DictionaryList::get_visible ( ) const
inline

Definition at line 79 of file chinese_dictionarydialog.hxx.

References m_xControl.

Referenced by textconversiondlgs::IMPL_LINK_NOARG().

◆ get_widget()

weld::TreeView & textconversiondlgs::DictionaryList::get_widget ( ) const
inline

Definition at line 81 of file chinese_dictionarydialog.hxx.

References m_xControl.

Referenced by textconversiondlgs::IMPL_LINK_NOARG().

◆ getEntryOnPos()

DictionaryEntry * textconversiondlgs::DictionaryList::getEntryOnPos ( sal_Int32  nPos) const

◆ getFirstSelectedEntry()

DictionaryEntry * textconversiondlgs::DictionaryList::getFirstSelectedEntry ( ) const

◆ getPropertyTypeName()

OUString textconversiondlgs::DictionaryList::getPropertyTypeName ( sal_Int16  nConversionPropertyType) const
private

◆ getTermEntry()

DictionaryEntry * textconversiondlgs::DictionaryList::getTermEntry ( std::u16string_view  rTerm) const

Definition at line 170 of file chinese_dictionarydialog.cxx.

References getEntryOnPos(), m_xControl, and pE.

Referenced by hasTerm().

◆ hasTerm()

bool textconversiondlgs::DictionaryList::hasTerm ( std::u16string_view  rTerm) const

◆ hide()

void textconversiondlgs::DictionaryList::hide ( )
inline

Definition at line 69 of file chinese_dictionarydialog.hxx.

References m_xControl.

◆ init()

void textconversiondlgs::DictionaryList::init ( const css::uno::Reference< css::linguistic2::XConversionDictionary > &  xDictionary,
weld::Entry pED_Term,
weld::Entry pED_Mapping,
weld::ComboBox pLB_Property 
)

◆ refillFromDictionary()

void textconversiondlgs::DictionaryList::refillFromDictionary ( sal_Int32  nTextConversionOptions)

◆ save()

void textconversiondlgs::DictionaryList::save ( )

Definition at line 63 of file chinese_dictionarydialog.cxx.

References getEntryOnPos(), m_aToBeDeleted, m_xControl, m_xDictionary, and pE.

◆ set_size_request()

void textconversiondlgs::DictionaryList::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 68 of file chinese_dictionarydialog.hxx.

References m_xControl.

◆ set_sort_column()

void textconversiondlgs::DictionaryList::set_sort_column ( int  nColumn)
inline

◆ set_sort_indicator()

void textconversiondlgs::DictionaryList::set_sort_indicator ( TriState  eState,
int  nColumn 
)
inline

◆ set_sort_order()

void textconversiondlgs::DictionaryList::set_sort_order ( bool  bAscending)
inline

◆ show()

void textconversiondlgs::DictionaryList::show ( )
inline

Definition at line 70 of file chinese_dictionarydialog.hxx.

References m_xControl.

Member Data Documentation

◆ m_aToBeDeleted

std::vector< DictionaryEntry* > textconversiondlgs::DictionaryList::m_aToBeDeleted
private

Definition at line 96 of file chinese_dictionarydialog.hxx.

Referenced by deleteAll(), deleteEntries(), deleteEntryOnPos(), and save().

◆ m_pED_Mapping

weld::Entry* textconversiondlgs::DictionaryList::m_pED_Mapping
private

Definition at line 93 of file chinese_dictionarydialog.hxx.

Referenced by init().

◆ m_pED_Term

weld::Entry* textconversiondlgs::DictionaryList::m_pED_Term
private

Definition at line 92 of file chinese_dictionarydialog.hxx.

Referenced by init().

◆ m_pLB_Property

weld::ComboBox* textconversiondlgs::DictionaryList::m_pLB_Property
private

Definition at line 94 of file chinese_dictionarydialog.hxx.

Referenced by getPropertyTypeName(), and init().

◆ m_xControl

std::unique_ptr<weld::TreeView> textconversiondlgs::DictionaryList::m_xControl
private

◆ m_xDictionary

css::uno::Reference<css::linguistic2::XConversionDictionary> textconversiondlgs::DictionaryList::m_xDictionary

Definition at line 87 of file chinese_dictionarydialog.hxx.

Referenced by init(), refillFromDictionary(), and save().

◆ m_xIter

std::unique_ptr<weld::TreeIter> textconversiondlgs::DictionaryList::m_xIter
private

Definition at line 91 of file chinese_dictionarydialog.hxx.

Referenced by addEntry(), and refillFromDictionary().


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