25#include <com/sun/star/uno/Sequence.hxx>
26#include <com/sun/star/linguistic2/XConversionDictionaryList.hpp>
38 SuggestionSet(std::unique_ptr<weld::ScrolledWindow> xScrolledWindow);
137 const OUString& _rNewString,
138 const css::uno::Sequence< OUString >& _rSuggestions,
139 bool _bOriginatesFromDocument
171 void FillSuggestions(
const css::uno::Sequence< OUString >& _rSuggestions );
175 typedef std::vector< css::uno::Reference< css::linguistic2::XConversionDictionary > >
HHDictList;
203 void AddDict(
const OUString& _rName,
bool _bChecked );
220 bool GetName( OUString& _rRetName )
const;
std::unique_ptr< weld::Button > m_xReplaceAll
editeng::HangulHanjaConversion::ConversionFormat GetConversionFormat() const
void SetChangeHdl(const Link< weld::Button &, void > &_rHdl)
void SetFindHdl(const Link< weld::Button &, void > &_rHdl)
std::unique_ptr< SuggestionDisplay > m_xSuggestions
Link< weld::Toggleable &, void > m_aClickByCharacterLink
editeng::HangulHanjaConversion::ConversionDirection GetDirection(editeng::HangulHanjaConversion::ConversionDirection eDefaultDirection) const
get current conversion direction to use (return argument if GetUseBothDirections is true)
bool GetUseBothDirections() const
should text which does not match the primary conversion direction be ignored?
HangulHanjaConversionDialog(weld::Widget *pParent)
DECL_LINK(OnConversionDirectionClicked, weld::Toggleable &, void)
void SetByCharacter(bool _bByCharacter)
std::unique_ptr< RubyRadioButton > m_xHangulAbove
std::unique_ptr< RubyRadioButton > m_xHangulBelow
DECL_LINK(OnOption, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xHanjaOnly
void SetOptionsChangedHdl(const Link< LinkParamNone *, void > &_rHdl)
std::unique_ptr< weld::RadioButton > m_xHangulBracketed
std::unique_ptr< RubyRadioButton > m_xHanjaAbove
void SetConversionFormat(editeng::HangulHanjaConversion::ConversionFormat _eType)
void SetCurrentString(const OUString &_rNewString, const css::uno::Sequence< OUString > &_rSuggestions, bool _bOriginatesFromDocument)
void FillSuggestions(const css::uno::Sequence< OUString > &_rSuggestions)
fill the suggestion list box with suggestions for the actual input
std::unique_ptr< weld::Button > m_xFind
DECL_LINK(OnSuggestionModified, weld::Entry &, void)
std::unique_ptr< weld::CheckButton > m_xHangulOnly
DECL_LINK(OnSuggestionSelected, SuggestionDisplay &, void)
std::unique_ptr< weld::RadioButton > m_xHanjaBracketed
void SetIgnoreHdl(const Link< weld::Button &, void > &_rHdl)
Link< LinkParamNone *, void > m_aOptionsChangedLink
std::unique_ptr< weld::Entry > m_xWordInput
std::unique_ptr< weld::Button > m_xIgnore
std::unique_ptr< weld::Button > m_xOptions
std::unique_ptr< RubyRadioButton > m_xHanjaBelow
OUString GetCurrentString() const
std::unique_ptr< weld::CheckButton > m_xReplaceByChar
void SetChangeAllHdl(const Link< weld::Button &, void > &_rHdl)
void SetConversionDirectionState(bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection)
void SetIgnoreAllHdl(const Link< weld::Button &, void > &_rHdl)
std::unique_ptr< weld::Button > m_xReplace
OUString GetCurrentSuggestion() const
retrieves the current suggestion
void EnableRubySupport(bool bVal)
enables or disables the checkboxes for ruby formatted replacements
DECL_LINK(ClickByCharacterHdl, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xSimpleConversion
void SetConversionFormatChangedHdl(const Link< weld::Toggleable &, void > &_rHdl)
std::unique_ptr< weld::Label > m_xOriginalWord
bool m_bDocumentMode
are we working for a document? This is normally true, but in case the user uses the "find" functional...
virtual ~HangulHanjaConversionDialog() override
std::unique_ptr< weld::Button > m_xIgnoreAll
void SetClickByCharacterHdl(const Link< weld::Toggleable &, void > &_rHdl)
std::unique_ptr< weld::Button > m_xDeletePB
std::unique_ptr< weld::Widget > m_xContents
std::unique_ptr< SuggestionEdit > m_xEdit4
sal_uInt32 m_nCurrentDict
DECL_LINK(NewPBPushHdl, weld::Button &, void)
HangulHanjaEditDictDialog(weld::Window *pParent, HHDictList &rDictList, sal_uInt32 nSelDict)
std::unique_ptr< weld::ComboBox > m_xBookLB
DECL_LINK(DeletePBPushHdl, weld::Button &, void)
void EditModify(const weld::Entry *pEdit, sal_uInt8 nEntryOffset)
void SetEditText(SuggestionEdit &rEdit, sal_uInt16 nEntryNum)
std::unique_ptr< weld::ScrolledWindow > m_xScrollSB
std::unique_ptr< weld::ComboBox > m_xOriginalLB
std::unique_ptr< SuggestionEdit > m_xEdit2
DECL_LINK(BookLBSelectHdl, weld::ComboBox &, void)
std::unique_ptr< SuggestionEdit > m_xEdit1
void UpdateButtonStates()
DECL_LINK(OriginalModifyHdl, weld::ComboBox &, void)
DECL_LINK(EditModifyHdl1, weld::Entry &, void)
std::unique_ptr< SuggestionList > m_xSuggestions
DECL_LINK(EditModifyHdl2, weld::Entry &, void)
std::unique_ptr< SuggestionEdit > m_xEdit3
const OUString m_aEditHintText
virtual ~HangulHanjaEditDictDialog() override
DECL_LINK(EditModifyHdl4, weld::Entry &, void)
void InitEditDictDialog(sal_uInt32 nSelDict)
bool DeleteEntryFromDictionary(const css::uno::Reference< css::linguistic2::XConversionDictionary > &xDict)
DECL_LINK(EditModifyHdl3, weld::Entry &, void)
DECL_LINK(ScrollHdl, weld::ScrolledWindow &, void)
bool m_bModifiedSuggestions
std::unique_ptr< weld::Button > m_xNewPB
DECL_LINK(ModifyHdl, weld::Entry &, void)
HangulHanjaNewDictDialog(weld::Window *pParent)
virtual ~HangulHanjaNewDictDialog() override
std::unique_ptr< weld::Entry > m_xDictNameED
bool GetName(OUString &_rRetName) const
std::unique_ptr< weld::Button > m_xOkBtn
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xIgnorepostCB
std::unique_ptr< weld::Button > m_xOkPB
DECL_LINK(EditDictHdl, weld::Button &, void)
css::uno::Reference< css::linguistic2::XConversionDictionaryList > m_xConversionDictionaryList
DECL_LINK(OkHdl, weld::Button &, void)
void AddDict(const OUString &_rName, bool _bChecked)
DECL_LINK(DictsLB_SelectHdl, weld::TreeView &, void)
std::unique_ptr< weld::Button > m_xNewPB
std::unique_ptr< weld::Button > m_xDeletePB
std::unique_ptr< weld::CheckButton > m_xAutoreplaceuniqueCB
DECL_LINK(DeleteDictHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xEditPB
void Init()
reads settings from core and init controls
virtual ~HangulHanjaOptionsDialog() override
DECL_LINK(NewDictHdl, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xShowrecentlyfirstCB
std::unique_ptr< weld::TreeView > m_xDictsLB
HangulHanjaOptionsDialog(weld::Window *pParent)
OUString GetSelectedEntry() const
bool m_bInSelectionUpdate
DECL_LINK(SelectSuggestionValueSetHdl, ValueSet *, void)
std::unique_ptr< weld::CustomWeld > m_xValueSetWin
void DisplayListBox(bool bDisplayListBox)
SuggestionDisplay(weld::Builder &rBuilder)
DECL_LINK(SelectSuggestionListBoxHdl, weld::TreeView &, void)
weld::Widget & implGetCurrentControl()
Link< SuggestionDisplay &, void > m_aSelectLink
OUString GetEntry(sal_uInt16 nPos) const
void SelectSuggestionHdl(bool bListBox)
std::unique_ptr< weld::TreeView > m_xListBox
void InsertEntry(const OUString &rStr)
void set_size_request(int nWidth, int nHeight)
void SetSelectHdl(const Link< SuggestionDisplay &, void > &rLink)
std::unique_ptr< SuggestionSet > m_xValueSet
void SelectEntryPos(sal_uInt16 nPos)
sal_uInt16 GetEntryCount() const
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
std::unique_ptr< weld::Entry > m_xEntry
void connect_changed(const Link< weld::Entry &, void > &rLink)
bool ShouldScroll(bool _bUp) const
HangulHanjaEditDictDialog * m_pParent
weld::ScrolledWindow * m_pScrollBar
SuggestionEdit(std::unique_ptr< weld::Entry > xEntry, HangulHanjaEditDictDialog *pParent)
void set_text(const OUString &rText)
void init(weld::ScrolledWindow *pScrollBar, SuggestionEdit *pPrev, SuggestionEdit *pNext)
SuggestionSet(std::unique_ptr< weld::ScrolledWindow > xScrolledWindow)
virtual void UserDraw(const UserDrawEvent &rUDEvt) override
std::vector< css::uno::Reference< css::linguistic2::XConversionDictionary > > HHDictList