23#include <com/sun/star/uno/XComponentContext.hpp>
24#include <com/sun/star/linguistic2/XConversionDictionary.hpp>
34 , sal_Int16 nConversionPropertyType
35 ,
bool bNewEntry =
false );
51 void init(
const css::uno::Reference< css::linguistic2::XConversionDictionary>& xDictionary,
59 bool hasTerm( std::u16string_view rTerm )
const;
61 void addEntry(
const OUString& rTerm,
const OUString& rMapping
62 , sal_Int16 nConversionPropertyType ,
int nPos = -1);
87 css::uno::Reference<css::linguistic2::XConversionDictionary>
m_xDictionary;
108 virtual short run()
override;
124 const css::uno::Reference< css::linguistic2::XConversionDictionary>& xDictionary);
sal_Int32 m_nTextConversionOptions
bool isEditFieldsContentEqualsSelectedListContent() const
DictionaryList & getReverseDictionary()
DECL_LINK(SizeAllocHdl, const Size &, void)
std::unique_ptr< weld::Button > m_xPB_Delete
std::unique_ptr< weld::ComboBox > m_xLB_Property
DECL_LINK(DeleteHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xRB_To_Traditional
std::unique_ptr< weld::Entry > m_xED_Term
DECL_LINK(ModifyHdl, weld::Button &, void)
virtual short run() override
std::unique_ptr< weld::Button > m_xPB_Modify
DECL_LINK(MappingSelectHdl, weld::TreeView &, void)
std::unique_ptr< DictionaryList > m_xCT_DictionaryToSimplified
bool isEditFieldsHaveContent() const
std::unique_ptr< DictionaryList > m_xCT_DictionaryToTraditional
std::unique_ptr< weld::CheckButton > m_xCB_Reverse
DECL_LINK(ToTraditionalHeaderBarClick, int, void)
DECL_LINK(DirectionHdl, weld::Toggleable &, void)
DECL_LINK(EditFieldsHdl, weld::Entry &, void)
DECL_LINK(AddHdl, weld::Button &, void)
css::uno::Reference< css::uno::XComponentContext > m_xContext
DictionaryList & getActiveDictionary()
std::unique_ptr< weld::RadioButton > m_xRB_To_Simplified
void initDictionaryControl(DictionaryList *pList, const css::uno::Reference< css::linguistic2::XConversionDictionary > &xDictionary)
std::unique_ptr< weld::Entry > m_xED_Mapping
virtual ~ChineseDictionaryDialog() override
void setDirectionAndTextConversionOptions(bool bDirectionToSimplified, sal_Int32 nTextConversionOptions)
std::unique_ptr< weld::Button > m_xPB_Add
void updateAfterDirectionChange()
ChineseDictionaryDialog(weld::Window *pParent)
DECL_LINK(ToSimplifiedHeaderBarClick, int, void)
DECL_LINK(EditFieldsListBoxHdl, weld::ComboBox &, void)
static void HeaderBarClick(DictionaryList &rList, int nColumn)
bool get_sort_order() const
void addEntry(const OUString &rTerm, const OUString &rMapping, sal_Int16 nConversionPropertyType, int nPos=-1)
int deleteEntries(std::u16string_view rTerm)
void set_size_request(int nWidth, int nHeight)
void set_sort_order(bool bAscending)
DictionaryList(std::unique_ptr< weld::TreeView > xTreeView)
int get_sort_column() const
DictionaryEntry * getTermEntry(std::u16string_view rTerm) const
void set_sort_indicator(TriState eState, int nColumn)
void refillFromDictionary(sal_Int32 nTextConversionOptions)
void set_sort_column(int nColumn)
DictionaryEntry * getEntryOnPos(sal_Int32 nPos) const
void init(const css::uno::Reference< css::linguistic2::XConversionDictionary > &xDictionary, weld::Entry *pED_Term, weld::Entry *pED_Mapping, weld::ComboBox *pLB_Property)
OUString getPropertyTypeName(sal_Int16 nConversionPropertyType) const
bool hasTerm(std::u16string_view rTerm) const
int get_height_rows(int nRows) const
DictionaryEntry * getFirstSelectedEntry() const
int get_selected_index() const
void connect_changed(const Link< weld::TreeView &, void > &rLink)
css::uno::Reference< css::linguistic2::XConversionDictionary > m_xDictionary
weld::TreeView & get_widget() const
std::unique_ptr< weld::TreeView > m_xControl
std::vector< DictionaryEntry * > m_aToBeDeleted
weld::ComboBox * m_pLB_Property
void connect_column_clicked(const Link< int, void > &rLink)
void deleteEntryOnPos(sal_Int32 nPos)
weld::Entry * m_pED_Mapping
std::unique_ptr< weld::TreeIter > m_xIter
DictionaryEntry(OUString rTerm, OUString aMapping, sal_Int16 nConversionPropertyType, bool bNewEntry=false)
sal_Int16 m_nConversionPropertyType