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

#include <chinese_dictionarydialog.hxx>

Inheritance diagram for textconversiondlgs::ChineseDictionaryDialog:
[legend]
Collaboration diagram for textconversiondlgs::ChineseDictionaryDialog:
[legend]

Public Member Functions

 ChineseDictionaryDialog (weld::Window *pParent)
 
virtual ~ChineseDictionaryDialog () override
 
void setDirectionAndTextConversionOptions (bool bDirectionToSimplified, sal_Int32 nTextConversionOptions)
 
virtual short run () override
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual Dialog * getDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual Dialog * getDialog ()=0
 
const Dialog * getConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (DirectionHdl, weld::Toggleable &, void)
 
 DECL_LINK (EditFieldsHdl, weld::Entry &, void)
 
 DECL_LINK (EditFieldsListBoxHdl, weld::ComboBox &, void)
 
 DECL_LINK (MappingSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (AddHdl, weld::Button &, void)
 
 DECL_LINK (ModifyHdl, weld::Button &, void)
 
 DECL_LINK (DeleteHdl, weld::Button &, void)
 
 DECL_LINK (ToSimplifiedHeaderBarClick, int, void)
 
 DECL_LINK (ToTraditionalHeaderBarClick, int, void)
 
 DECL_LINK (SizeAllocHdl, const Size &, void)
 
void initDictionaryControl (DictionaryList *pList, const css::uno::Reference< css::linguistic2::XConversionDictionary > &xDictionary)
 
void updateAfterDirectionChange ()
 
void updateButtons ()
 
bool isEditFieldsHaveContent () const
 
bool isEditFieldsContentEqualsSelectedListContent () const
 
DictionaryList & getActiveDictionary ()
 
DictionaryList & getReverseDictionary ()
 
const DictionaryList & getActiveDictionary () const
 
const DictionaryList & getReverseDictionary () const
 

Static Private Member Functions

static void HeaderBarClick (DictionaryList &rList, int nColumn)
 

Private Attributes

sal_Int32 m_nTextConversionOptions
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::unique_ptr< weld::RadioButton > m_xRB_To_Simplified
 
std::unique_ptr< weld::RadioButton > m_xRB_To_Traditional
 
std::unique_ptr< weld::CheckButton > m_xCB_Reverse
 
std::unique_ptr< weld::Entry > m_xED_Term
 
std::unique_ptr< weld::Entry > m_xED_Mapping
 
std::unique_ptr< weld::ComboBox > m_xLB_Property
 
std::unique_ptr< DictionaryList > m_xCT_DictionaryToSimplified
 
std::unique_ptr< DictionaryList > m_xCT_DictionaryToTraditional
 
std::unique_ptr< weld::Button > m_xPB_Add
 
std::unique_ptr< weld::Button > m_xPB_Modify
 
std::unique_ptr< weld::Button > m_xPB_Delete
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builder > m_xBuilder
 
std::shared_ptr< weld::Dialog > m_xDialog
 

Detailed Description

Definition at line 99 of file chinese_dictionarydialog.hxx.

Constructor & Destructor Documentation

◆ ChineseDictionaryDialog()

textconversiondlgs::ChineseDictionaryDialog::ChineseDictionaryDialog ( weld::Window *  pParent)
explicit

◆ ~ChineseDictionaryDialog()

textconversiondlgs::ChineseDictionaryDialog::~ChineseDictionaryDialog ( )
overridevirtual

Definition at line 407 of file chinese_dictionarydialog.cxx.

Member Function Documentation

◆ DECL_LINK() [1/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( AddHdl  ,
weld::Button &  ,
void   
)
private

◆ DECL_LINK() [2/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( DeleteHdl  ,
weld::Button &  ,
void   
)
private

◆ DECL_LINK() [3/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( DirectionHdl  ,
weld::Toggleable &  ,
void   
)
private

◆ DECL_LINK() [4/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( EditFieldsHdl  ,
weld::Entry &  ,
void   
)
private

◆ DECL_LINK() [5/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( EditFieldsListBoxHdl  ,
weld::ComboBox &  ,
void   
)
private

◆ DECL_LINK() [6/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( MappingSelectHdl  ,
weld::TreeView &  ,
void   
)
private

◆ DECL_LINK() [7/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( ModifyHdl  ,
weld::Button &  ,
void   
)
private

◆ DECL_LINK() [8/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( SizeAllocHdl  ,
const Size &  ,
void   
)
private

◆ DECL_LINK() [9/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( ToSimplifiedHeaderBarClick  ,
int  ,
void   
)
private

◆ DECL_LINK() [10/10]

textconversiondlgs::ChineseDictionaryDialog::DECL_LINK ( ToTraditionalHeaderBarClick  ,
int  ,
void   
)
private

◆ getActiveDictionary() [1/2]

DictionaryList & textconversiondlgs::ChineseDictionaryDialog::getActiveDictionary ( )
private

◆ getActiveDictionary() [2/2]

const DictionaryList & textconversiondlgs::ChineseDictionaryDialog::getActiveDictionary ( ) const
private

◆ getReverseDictionary() [1/2]

DictionaryList & textconversiondlgs::ChineseDictionaryDialog::getReverseDictionary ( )
private

◆ getReverseDictionary() [2/2]

const DictionaryList & textconversiondlgs::ChineseDictionaryDialog::getReverseDictionary ( ) const
private

◆ HeaderBarClick()

void textconversiondlgs::ChineseDictionaryDialog::HeaderBarClick ( DictionaryList &  rList,
int  nColumn 
)
staticprivate

◆ initDictionaryControl()

void textconversiondlgs::ChineseDictionaryDialog::initDictionaryControl ( DictionaryList *  pList,
const css::uno::Reference< css::linguistic2::XConversionDictionary > &  xDictionary 
)
private

◆ isEditFieldsContentEqualsSelectedListContent()

bool textconversiondlgs::ChineseDictionaryDialog::isEditFieldsContentEqualsSelectedListContent ( ) const
private

◆ isEditFieldsHaveContent()

bool textconversiondlgs::ChineseDictionaryDialog::isEditFieldsHaveContent ( ) const
private

Definition at line 478 of file chinese_dictionarydialog.cxx.

References m_xED_Mapping, and m_xED_Term.

Referenced by updateButtons().

◆ run()

short textconversiondlgs::ChineseDictionaryDialog::run ( )
overridevirtual

◆ setDirectionAndTextConversionOptions()

void textconversiondlgs::ChineseDictionaryDialog::setDirectionAndTextConversionOptions ( bool  bDirectionToSimplified,
sal_Int32  nTextConversionOptions 
)

◆ updateAfterDirectionChange()

void textconversiondlgs::ChineseDictionaryDialog::updateAfterDirectionChange ( )
private

◆ updateButtons()

void textconversiondlgs::ChineseDictionaryDialog::updateButtons ( )
private

Member Data Documentation

◆ m_nTextConversionOptions

sal_Int32 textconversiondlgs::ChineseDictionaryDialog::m_nTextConversionOptions
private

Definition at line 139 of file chinese_dictionarydialog.hxx.

Referenced by run(), and setDirectionAndTextConversionOptions().

◆ m_xCB_Reverse

std::unique_ptr<weld::CheckButton> textconversiondlgs::ChineseDictionaryDialog::m_xCB_Reverse
private

Definition at line 146 of file chinese_dictionarydialog.hxx.

Referenced by ChineseDictionaryDialog(), and run().

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> textconversiondlgs::ChineseDictionaryDialog::m_xContext
private

Definition at line 141 of file chinese_dictionarydialog.hxx.

Referenced by ChineseDictionaryDialog().

◆ m_xCT_DictionaryToSimplified

std::unique_ptr<DictionaryList> textconversiondlgs::ChineseDictionaryDialog::m_xCT_DictionaryToSimplified
private

◆ m_xCT_DictionaryToTraditional

std::unique_ptr<DictionaryList> textconversiondlgs::ChineseDictionaryDialog::m_xCT_DictionaryToTraditional
private

◆ m_xED_Mapping

std::unique_ptr<weld::Entry> textconversiondlgs::ChineseDictionaryDialog::m_xED_Mapping
private

◆ m_xED_Term

std::unique_ptr<weld::Entry> textconversiondlgs::ChineseDictionaryDialog::m_xED_Term
private

◆ m_xLB_Property

std::unique_ptr<weld::ComboBox> textconversiondlgs::ChineseDictionaryDialog::m_xLB_Property
private

◆ m_xPB_Add

std::unique_ptr<weld::Button> textconversiondlgs::ChineseDictionaryDialog::m_xPB_Add
private

Definition at line 157 of file chinese_dictionarydialog.hxx.

Referenced by ChineseDictionaryDialog(), and updateButtons().

◆ m_xPB_Delete

std::unique_ptr<weld::Button> textconversiondlgs::ChineseDictionaryDialog::m_xPB_Delete
private

Definition at line 159 of file chinese_dictionarydialog.hxx.

Referenced by ChineseDictionaryDialog(), and updateButtons().

◆ m_xPB_Modify

std::unique_ptr<weld::Button> textconversiondlgs::ChineseDictionaryDialog::m_xPB_Modify
private

Definition at line 158 of file chinese_dictionarydialog.hxx.

Referenced by ChineseDictionaryDialog(), and updateButtons().

◆ m_xRB_To_Simplified

std::unique_ptr<weld::RadioButton> textconversiondlgs::ChineseDictionaryDialog::m_xRB_To_Simplified
private

◆ m_xRB_To_Traditional

std::unique_ptr<weld::RadioButton> textconversiondlgs::ChineseDictionaryDialog::m_xRB_To_Traditional
private

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