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 (const OUString &rTerm) const
 
bool hasTerm (const OUString &rTerm) const
 
void addEntry (const OUString &rTerm, const OUString &rMapping, sal_Int16 nConversionPropertyType, int nPos=-1)
 
int deleteEntries (const OUString &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
 
 DECL_LINK (ResizeHdl, const Size &, void)
 

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 47 of file chinese_dictionarydialog.hxx.

Constructor & Destructor Documentation

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

Definition at line 43 of file chinese_dictionarydialog.cxx.

References m_xControl.

Member Function Documentation

void textconversiondlgs::DictionaryList::addEntry ( const OUString &  rTerm,
const OUString &  rMapping,
sal_Int16  nConversionPropertyType,
int  nPos = -1 
)
void textconversiondlgs::DictionaryList::connect_changed ( const Link< weld::TreeView &, void > &  rLink)
inline

Definition at line 72 of file chinese_dictionarydialog.hxx.

References m_xControl.

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

Definition at line 73 of file chinese_dictionarydialog.hxx.

References m_xControl.

textconversiondlgs::DictionaryList::DECL_LINK ( ResizeHdl  ,
const Size ,
void   
)
private
void textconversiondlgs::DictionaryList::deleteAll ( )

Definition at line 102 of file chinese_dictionarydialog.cxx.

References deleteEntryOnPos(), m_aToBeDeleted, and m_xControl.

Referenced by refillFromDictionary().

int textconversiondlgs::DictionaryList::deleteEntries ( const OUString &  rTerm)
void textconversiondlgs::DictionaryList::deleteEntryOnPos ( sal_Int32  nPos)
int textconversiondlgs::DictionaryList::get_height_rows ( int  nRows) const
inline

Definition at line 79 of file chinese_dictionarydialog.hxx.

References m_xControl.

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

Definition at line 78 of file chinese_dictionarydialog.hxx.

References m_xControl.

Referenced by textconversiondlgs::IMPL_LINK_NOARG().

int textconversiondlgs::DictionaryList::get_sort_column ( ) const
inline
bool textconversiondlgs::DictionaryList::get_sort_order ( ) const
inline
bool textconversiondlgs::DictionaryList::get_visible ( ) const
inline

Definition at line 80 of file chinese_dictionarydialog.hxx.

References m_xControl.

Referenced by textconversiondlgs::IMPL_LINK_NOARG().

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

Definition at line 82 of file chinese_dictionarydialog.hxx.

References m_xControl.

Referenced by textconversiondlgs::IMPL_LINK_NOARG().

DictionaryEntry * textconversiondlgs::DictionaryList::getEntryOnPos ( sal_Int32  nPos) const
DictionaryEntry * textconversiondlgs::DictionaryList::getFirstSelectedEntry ( ) const
OUString textconversiondlgs::DictionaryList::getPropertyTypeName ( sal_Int16  nConversionPropertyType) const
private
DictionaryEntry * textconversiondlgs::DictionaryList::getTermEntry ( const OUString &  rTerm) const
bool textconversiondlgs::DictionaryList::hasTerm ( const OUString &  rTerm) const
void textconversiondlgs::DictionaryList::hide ( )
inline

Definition at line 70 of file chinese_dictionarydialog.hxx.

References m_xControl.

void textconversiondlgs::DictionaryList::init ( const css::uno::Reference< css::linguistic2::XConversionDictionary > &  xDictionary,
weld::Entry pED_Term,
weld::Entry pED_Mapping,
weld::ComboBox pLB_Property 
)
void textconversiondlgs::DictionaryList::refillFromDictionary ( sal_Int32  nTextConversionOptions)
void textconversiondlgs::DictionaryList::save ( )
void textconversiondlgs::DictionaryList::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 69 of file chinese_dictionarydialog.hxx.

References m_xControl.

void textconversiondlgs::DictionaryList::set_sort_column ( int  nColumn)
inline
void textconversiondlgs::DictionaryList::set_sort_indicator ( TriState  eState,
int  nColumn 
)
inline
void textconversiondlgs::DictionaryList::set_sort_order ( bool  bAscending)
inline
void textconversiondlgs::DictionaryList::show ( )
inline

Definition at line 71 of file chinese_dictionarydialog.hxx.

References m_xControl.

Member Data Documentation

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

Definition at line 99 of file chinese_dictionarydialog.hxx.

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

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

Definition at line 96 of file chinese_dictionarydialog.hxx.

Referenced by init().

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

Definition at line 95 of file chinese_dictionarydialog.hxx.

Referenced by init().

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

Definition at line 97 of file chinese_dictionarydialog.hxx.

Referenced by getPropertyTypeName(), and init().

std::unique_ptr<weld::TreeView> textconversiondlgs::DictionaryList::m_xControl
private
css::uno::Reference<css::linguistic2::XConversionDictionary> textconversiondlgs::DictionaryList::m_xDictionary

Definition at line 90 of file chinese_dictionarydialog.hxx.

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

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

Definition at line 94 of file chinese_dictionarydialog.hxx.

Referenced by addEntry(), and refillFromDictionary().


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