LibreOffice Module cui (master) 1
|
#include <hangulhanjadlg.hxx>
Public Member Functions | |
HangulHanjaConversionDialog (weld::Widget *pParent) | |
virtual | ~HangulHanjaConversionDialog () override |
void | SetOptionsChangedHdl (const Link< LinkParamNone *, void > &_rHdl) |
void | SetIgnoreHdl (const Link< weld::Button &, void > &_rHdl) |
void | SetIgnoreAllHdl (const Link< weld::Button &, void > &_rHdl) |
void | SetChangeHdl (const Link< weld::Button &, void > &_rHdl) |
void | SetChangeAllHdl (const Link< weld::Button &, void > &_rHdl) |
void | SetClickByCharacterHdl (const Link< weld::Toggleable &, void > &_rHdl) |
void | SetConversionFormatChangedHdl (const Link< weld::Toggleable &, void > &_rHdl) |
void | SetFindHdl (const Link< weld::Button &, void > &_rHdl) |
OUString | GetCurrentString () const |
void | SetCurrentString (const OUString &_rNewString, const css::uno::Sequence< OUString > &_rSuggestions, bool _bOriginatesFromDocument) |
void | FocusSuggestion () |
OUString | GetCurrentSuggestion () const |
retrieves the current suggestion More... | |
void | SetConversionFormat (editeng::HangulHanjaConversion::ConversionFormat _eType) |
editeng::HangulHanjaConversion::ConversionFormat | GetConversionFormat () const |
void | SetByCharacter (bool _bByCharacter) |
void | SetConversionDirectionState (bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection) |
bool | GetUseBothDirections () const |
should text which does not match the primary conversion direction be ignored? More... | |
editeng::HangulHanjaConversion::ConversionDirection | GetDirection (editeng::HangulHanjaConversion::ConversionDirection eDefaultDirection) const |
get current conversion direction to use (return argument if GetUseBothDirections is true) More... | |
void | EnableRubySupport (bool bVal) |
enables or disables the checkboxes for ruby formatted replacements More... | |
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 (OnOption, weld::Button &, void) | |
DECL_LINK (OnSuggestionModified, weld::Entry &, void) | |
DECL_LINK (OnSuggestionSelected, SuggestionDisplay &, void) | |
DECL_LINK (OnConversionDirectionClicked, weld::Toggleable &, void) | |
DECL_LINK (ClickByCharacterHdl, weld::Toggleable &, void) | |
void | FillSuggestions (const css::uno::Sequence< OUString > &_rSuggestions) |
fill the suggestion list box with suggestions for the actual input More... | |
Private Attributes | |
bool | m_bDocumentMode |
are we working for a document? This is normally true, but in case the user uses the "find" functionality, we switch to working with what the user entered, which then does not have any relation to the document anymore. More... | |
Link< LinkParamNone *, void > | m_aOptionsChangedLink |
Link< weld::Toggleable &, void > | m_aClickByCharacterLink |
std::unique_ptr< weld::Button > | m_xFind |
std::unique_ptr< weld::Button > | m_xIgnore |
std::unique_ptr< weld::Button > | m_xIgnoreAll |
std::unique_ptr< weld::Button > | m_xReplace |
std::unique_ptr< weld::Button > | m_xReplaceAll |
std::unique_ptr< weld::Button > | m_xOptions |
std::unique_ptr< SuggestionDisplay > | m_xSuggestions |
std::unique_ptr< weld::RadioButton > | m_xSimpleConversion |
std::unique_ptr< weld::RadioButton > | m_xHangulBracketed |
std::unique_ptr< weld::RadioButton > | m_xHanjaBracketed |
std::unique_ptr< weld::Entry > | m_xWordInput |
std::unique_ptr< weld::Label > | m_xOriginalWord |
std::unique_ptr< RubyRadioButton > | m_xHanjaAbove |
std::unique_ptr< RubyRadioButton > | m_xHanjaBelow |
std::unique_ptr< RubyRadioButton > | m_xHangulAbove |
std::unique_ptr< RubyRadioButton > | m_xHangulBelow |
std::unique_ptr< weld::CheckButton > | m_xHangulOnly |
std::unique_ptr< weld::CheckButton > | m_xHanjaOnly |
std::unique_ptr< weld::CheckButton > | m_xReplaceByChar |
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 |
Definition at line 89 of file hangulhanjadlg.hxx.
svx::HangulHanjaConversionDialog::HangulHanjaConversionDialog | ( | weld::Widget * | pParent | ) |
Definition at line 424 of file hangulhanjadlg.cxx.
References CuiResId(), FocusSuggestion(), LINK, m_xHangulAbove, m_xHangulBelow, m_xHangulOnly, m_xHanjaAbove, m_xHanjaBelow, m_xHanjaOnly, m_xOptions, m_xOriginalWord, m_xReplaceByChar, m_xSimpleConversion, m_xSuggestions, and m_xWordInput.
|
overridevirtual |
Definition at line 477 of file hangulhanjadlg.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
void svx::HangulHanjaConversionDialog::EnableRubySupport | ( | bool | bVal | ) |
enables or disables the checkboxes for ruby formatted replacements
Definition at line 711 of file hangulhanjadlg.cxx.
References m_xHangulAbove, m_xHangulBelow, m_xHanjaAbove, and m_xHanjaBelow.
|
private |
fill the suggestion list box with suggestions for the actual input
Definition at line 481 of file hangulhanjadlg.cxx.
References m_xSuggestions, and m_xWordInput.
Referenced by SetCurrentString().
void svx::HangulHanjaConversionDialog::FocusSuggestion | ( | ) |
Definition at line 592 of file hangulhanjadlg.cxx.
References m_xWordInput.
Referenced by HangulHanjaConversionDialog().
HHC::ConversionFormat svx::HangulHanjaConversionDialog::GetConversionFormat | ( | ) | const |
Definition at line 690 of file hangulhanjadlg.cxx.
References m_xHangulAbove, m_xHangulBelow, m_xHangulBracketed, m_xHanjaAbove, m_xHanjaBelow, m_xHanjaBracketed, and m_xSimpleConversion.
OUString svx::HangulHanjaConversionDialog::GetCurrentString | ( | ) | const |
Definition at line 587 of file hangulhanjadlg.cxx.
References m_xOriginalWord.
OUString svx::HangulHanjaConversionDialog::GetCurrentSuggestion | ( | ) | const |
retrieves the current suggestion
Definition at line 628 of file hangulhanjadlg.cxx.
References m_xWordInput.
HHC::ConversionDirection svx::HangulHanjaConversionDialog::GetDirection | ( | editeng::HangulHanjaConversion::ConversionDirection | eDefaultDirection | ) | const |
get current conversion direction to use (return argument if GetUseBothDirections is true)
Definition at line 663 of file hangulhanjadlg.cxx.
References m_xHangulOnly, and m_xHanjaOnly.
bool svx::HangulHanjaConversionDialog::GetUseBothDirections | ( | ) | const |
should text which does not match the primary conversion direction be ignored?
Definition at line 658 of file hangulhanjadlg.cxx.
References m_xHangulOnly, and m_xHanjaOnly.
void svx::HangulHanjaConversionDialog::SetByCharacter | ( | bool | _bByCharacter | ) |
Definition at line 633 of file hangulhanjadlg.cxx.
References m_xReplaceByChar, and m_xSuggestions.
void svx::HangulHanjaConversionDialog::SetChangeAllHdl | ( | const Link< weld::Button &, void > & | _rHdl | ) |
Definition at line 519 of file hangulhanjadlg.cxx.
References m_xReplaceAll.
void svx::HangulHanjaConversionDialog::SetChangeHdl | ( | const Link< weld::Button &, void > & | _rHdl | ) |
Definition at line 514 of file hangulhanjadlg.cxx.
References m_xReplace.
void svx::HangulHanjaConversionDialog::SetClickByCharacterHdl | ( | const Link< weld::Toggleable &, void > & | _rHdl | ) |
Definition at line 540 of file hangulhanjadlg.cxx.
References m_aClickByCharacterLink.
void svx::HangulHanjaConversionDialog::SetConversionDirectionState | ( | bool | _bTryBothDirections, |
editeng::HangulHanjaConversion::ConversionDirection | _ePrimaryConversionDirection | ||
) |
Definition at line 639 of file hangulhanjadlg.cxx.
References m_xHangulOnly, m_xHanjaOnly, and weld::Toggleable::set_active().
void svx::HangulHanjaConversionDialog::SetConversionFormat | ( | editeng::HangulHanjaConversion::ConversionFormat | _eType | ) |
Definition at line 674 of file hangulhanjadlg.cxx.
References m_xHangulAbove, m_xHangulBelow, m_xHangulBracketed, m_xHanjaAbove, m_xHanjaBelow, m_xHanjaBracketed, and m_xSimpleConversion.
void svx::HangulHanjaConversionDialog::SetConversionFormatChangedHdl | ( | const Link< weld::Toggleable &, void > & | _rHdl | ) |
Definition at line 529 of file hangulhanjadlg.cxx.
References m_xHangulAbove, m_xHangulBelow, m_xHangulBracketed, m_xHanjaAbove, m_xHanjaBelow, m_xHanjaBracketed, and m_xSimpleConversion.
void svx::HangulHanjaConversionDialog::SetCurrentString | ( | const OUString & | _rNewString, |
const css::uno::Sequence< OUString > & | _rSuggestions, | ||
bool | _bOriginatesFromDocument | ||
) |
Definition at line 597 of file hangulhanjadlg.cxx.
References FillSuggestions(), m_bDocumentMode, weld::GenericDialogController::m_xDialog, m_xFind, m_xIgnoreAll, m_xOriginalWord, and m_xReplace.
void svx::HangulHanjaConversionDialog::SetFindHdl | ( | const Link< weld::Button &, void > & | _rHdl | ) |
Definition at line 524 of file hangulhanjadlg.cxx.
References m_xFind.
void svx::HangulHanjaConversionDialog::SetIgnoreAllHdl | ( | const Link< weld::Button &, void > & | _rHdl | ) |
Definition at line 509 of file hangulhanjadlg.cxx.
References m_xIgnoreAll.
void svx::HangulHanjaConversionDialog::SetIgnoreHdl | ( | const Link< weld::Button &, void > & | _rHdl | ) |
Definition at line 504 of file hangulhanjadlg.cxx.
References m_xIgnore.
void svx::HangulHanjaConversionDialog::SetOptionsChangedHdl | ( | const Link< LinkParamNone *, void > & | _rHdl | ) |
Definition at line 499 of file hangulhanjadlg.cxx.
References m_aOptionsChangedLink.
|
private |
Definition at line 99 of file hangulhanjadlg.hxx.
Referenced by SetClickByCharacterHdl().
|
private |
Definition at line 98 of file hangulhanjadlg.hxx.
Referenced by SetOptionsChangedHdl().
|
private |
are we working for a document? This is normally true, but in case the user uses the "find" functionality, we switch to working with what the user entered, which then does not have any relation to the document anymore.
Some functionality must be disabled then
Definition at line 96 of file hangulhanjadlg.hxx.
Referenced by SetCurrentString().
|
private |
Definition at line 101 of file hangulhanjadlg.hxx.
Referenced by SetCurrentString(), and SetFindHdl().
|
private |
Definition at line 115 of file hangulhanjadlg.hxx.
Referenced by EnableRubySupport(), GetConversionFormat(), HangulHanjaConversionDialog(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 116 of file hangulhanjadlg.hxx.
Referenced by EnableRubySupport(), GetConversionFormat(), HangulHanjaConversionDialog(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 109 of file hangulhanjadlg.hxx.
Referenced by GetConversionFormat(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 117 of file hangulhanjadlg.hxx.
Referenced by GetDirection(), GetUseBothDirections(), HangulHanjaConversionDialog(), and SetConversionDirectionState().
|
private |
Definition at line 113 of file hangulhanjadlg.hxx.
Referenced by EnableRubySupport(), GetConversionFormat(), HangulHanjaConversionDialog(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 114 of file hangulhanjadlg.hxx.
Referenced by EnableRubySupport(), GetConversionFormat(), HangulHanjaConversionDialog(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 110 of file hangulhanjadlg.hxx.
Referenced by GetConversionFormat(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 118 of file hangulhanjadlg.hxx.
Referenced by GetDirection(), GetUseBothDirections(), HangulHanjaConversionDialog(), and SetConversionDirectionState().
|
private |
Definition at line 102 of file hangulhanjadlg.hxx.
Referenced by SetIgnoreHdl().
|
private |
Definition at line 103 of file hangulhanjadlg.hxx.
Referenced by SetCurrentString(), and SetIgnoreAllHdl().
|
private |
Definition at line 106 of file hangulhanjadlg.hxx.
Referenced by HangulHanjaConversionDialog().
|
private |
Definition at line 112 of file hangulhanjadlg.hxx.
Referenced by GetCurrentString(), HangulHanjaConversionDialog(), and SetCurrentString().
|
private |
Definition at line 104 of file hangulhanjadlg.hxx.
Referenced by SetChangeHdl(), and SetCurrentString().
|
private |
Definition at line 105 of file hangulhanjadlg.hxx.
Referenced by SetChangeAllHdl().
|
private |
Definition at line 119 of file hangulhanjadlg.hxx.
Referenced by HangulHanjaConversionDialog(), and SetByCharacter().
|
private |
Definition at line 108 of file hangulhanjadlg.hxx.
Referenced by GetConversionFormat(), HangulHanjaConversionDialog(), SetConversionFormat(), and SetConversionFormatChangedHdl().
|
private |
Definition at line 107 of file hangulhanjadlg.hxx.
Referenced by FillSuggestions(), HangulHanjaConversionDialog(), and SetByCharacter().
|
private |
Definition at line 111 of file hangulhanjadlg.hxx.
Referenced by FillSuggestions(), FocusSuggestion(), GetCurrentSuggestion(), and HangulHanjaConversionDialog().