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

#include <hangulhanjadlg.hxx>

Inheritance diagram for svx::HangulHanjaConversionDialog:
[legend]
Collaboration diagram for svx::HangulHanjaConversionDialog:
[legend]

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 DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () 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::Buttonm_xFind
 
std::unique_ptr< weld::Buttonm_xIgnore
 
std::unique_ptr< weld::Buttonm_xIgnoreAll
 
std::unique_ptr< weld::Buttonm_xReplace
 
std::unique_ptr< weld::Buttonm_xReplaceAll
 
std::unique_ptr< weld::Buttonm_xOptions
 
std::unique_ptr< SuggestionDisplaym_xSuggestions
 
std::unique_ptr< weld::RadioButtonm_xSimpleConversion
 
std::unique_ptr< weld::RadioButtonm_xHangulBracketed
 
std::unique_ptr< weld::RadioButtonm_xHanjaBracketed
 
std::unique_ptr< weld::Entrym_xWordInput
 
std::unique_ptr< weld::Labelm_xOriginalWord
 
std::unique_ptr< RubyRadioButtonm_xHanjaAbove
 
std::unique_ptr< RubyRadioButtonm_xHanjaBelow
 
std::unique_ptr< RubyRadioButtonm_xHangulAbove
 
std::unique_ptr< RubyRadioButtonm_xHangulBelow
 
std::unique_ptr< weld::CheckButtonm_xHangulOnly
 
std::unique_ptr< weld::CheckButtonm_xHanjaOnly
 
std::unique_ptr< weld::CheckButtonm_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::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 89 of file hangulhanjadlg.hxx.

Constructor & Destructor Documentation

◆ HangulHanjaConversionDialog()

svx::HangulHanjaConversionDialog::HangulHanjaConversionDialog ( weld::Widget pParent)

◆ ~HangulHanjaConversionDialog()

svx::HangulHanjaConversionDialog::~HangulHanjaConversionDialog ( )
overridevirtual

Definition at line 477 of file hangulhanjadlg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/5]

svx::HangulHanjaConversionDialog::DECL_LINK ( ClickByCharacterHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/5]

svx::HangulHanjaConversionDialog::DECL_LINK ( OnConversionDirectionClicked  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/5]

svx::HangulHanjaConversionDialog::DECL_LINK ( OnOption  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/5]

svx::HangulHanjaConversionDialog::DECL_LINK ( OnSuggestionModified  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [5/5]

svx::HangulHanjaConversionDialog::DECL_LINK ( OnSuggestionSelected  ,
SuggestionDisplay ,
void   
)
private

◆ EnableRubySupport()

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.

◆ FillSuggestions()

void svx::HangulHanjaConversionDialog::FillSuggestions ( const css::uno::Sequence< OUString > &  _rSuggestions)
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().

◆ FocusSuggestion()

void svx::HangulHanjaConversionDialog::FocusSuggestion ( )

Definition at line 592 of file hangulhanjadlg.cxx.

References m_xWordInput.

Referenced by HangulHanjaConversionDialog().

◆ GetConversionFormat()

HHC::ConversionFormat svx::HangulHanjaConversionDialog::GetConversionFormat ( ) const

◆ GetCurrentString()

OUString svx::HangulHanjaConversionDialog::GetCurrentString ( ) const

Definition at line 587 of file hangulhanjadlg.cxx.

References m_xOriginalWord.

◆ GetCurrentSuggestion()

OUString svx::HangulHanjaConversionDialog::GetCurrentSuggestion ( ) const

retrieves the current suggestion

Definition at line 628 of file hangulhanjadlg.cxx.

References m_xWordInput.

◆ GetDirection()

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.

◆ GetUseBothDirections()

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.

◆ SetByCharacter()

void svx::HangulHanjaConversionDialog::SetByCharacter ( bool  _bByCharacter)

Definition at line 633 of file hangulhanjadlg.cxx.

References m_xReplaceByChar, and m_xSuggestions.

◆ SetChangeAllHdl()

void svx::HangulHanjaConversionDialog::SetChangeAllHdl ( const Link< weld::Button &, void > &  _rHdl)

Definition at line 519 of file hangulhanjadlg.cxx.

References m_xReplaceAll.

◆ SetChangeHdl()

void svx::HangulHanjaConversionDialog::SetChangeHdl ( const Link< weld::Button &, void > &  _rHdl)

Definition at line 514 of file hangulhanjadlg.cxx.

References m_xReplace.

◆ SetClickByCharacterHdl()

void svx::HangulHanjaConversionDialog::SetClickByCharacterHdl ( const Link< weld::Toggleable &, void > &  _rHdl)

Definition at line 540 of file hangulhanjadlg.cxx.

References m_aClickByCharacterLink.

◆ SetConversionDirectionState()

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().

◆ SetConversionFormat()

void svx::HangulHanjaConversionDialog::SetConversionFormat ( editeng::HangulHanjaConversion::ConversionFormat  _eType)

◆ SetConversionFormatChangedHdl()

void svx::HangulHanjaConversionDialog::SetConversionFormatChangedHdl ( const Link< weld::Toggleable &, void > &  _rHdl)

◆ SetCurrentString()

void svx::HangulHanjaConversionDialog::SetCurrentString ( const OUString &  _rNewString,
const css::uno::Sequence< OUString > &  _rSuggestions,
bool  _bOriginatesFromDocument 
)

◆ SetFindHdl()

void svx::HangulHanjaConversionDialog::SetFindHdl ( const Link< weld::Button &, void > &  _rHdl)

Definition at line 524 of file hangulhanjadlg.cxx.

References m_xFind.

◆ SetIgnoreAllHdl()

void svx::HangulHanjaConversionDialog::SetIgnoreAllHdl ( const Link< weld::Button &, void > &  _rHdl)

Definition at line 509 of file hangulhanjadlg.cxx.

References m_xIgnoreAll.

◆ SetIgnoreHdl()

void svx::HangulHanjaConversionDialog::SetIgnoreHdl ( const Link< weld::Button &, void > &  _rHdl)

Definition at line 504 of file hangulhanjadlg.cxx.

References m_xIgnore.

◆ SetOptionsChangedHdl()

void svx::HangulHanjaConversionDialog::SetOptionsChangedHdl ( const Link< LinkParamNone *, void > &  _rHdl)

Definition at line 499 of file hangulhanjadlg.cxx.

References m_aOptionsChangedLink.

Member Data Documentation

◆ m_aClickByCharacterLink

Link<weld::Toggleable&,void> svx::HangulHanjaConversionDialog::m_aClickByCharacterLink
private

Definition at line 99 of file hangulhanjadlg.hxx.

Referenced by SetClickByCharacterHdl().

◆ m_aOptionsChangedLink

Link<LinkParamNone*,void> svx::HangulHanjaConversionDialog::m_aOptionsChangedLink
private

Definition at line 98 of file hangulhanjadlg.hxx.

Referenced by SetOptionsChangedHdl().

◆ m_bDocumentMode

bool svx::HangulHanjaConversionDialog::m_bDocumentMode
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().

◆ m_xFind

std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xFind
private

Definition at line 101 of file hangulhanjadlg.hxx.

Referenced by SetCurrentString(), and SetFindHdl().

◆ m_xHangulAbove

std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHangulAbove
private

◆ m_xHangulBelow

std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHangulBelow
private

◆ m_xHangulBracketed

std::unique_ptr<weld::RadioButton> svx::HangulHanjaConversionDialog::m_xHangulBracketed
private

◆ m_xHangulOnly

std::unique_ptr<weld::CheckButton> svx::HangulHanjaConversionDialog::m_xHangulOnly
private

◆ m_xHanjaAbove

std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHanjaAbove
private

◆ m_xHanjaBelow

std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHanjaBelow
private

◆ m_xHanjaBracketed

std::unique_ptr<weld::RadioButton> svx::HangulHanjaConversionDialog::m_xHanjaBracketed
private

◆ m_xHanjaOnly

std::unique_ptr<weld::CheckButton> svx::HangulHanjaConversionDialog::m_xHanjaOnly
private

◆ m_xIgnore

std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xIgnore
private

Definition at line 102 of file hangulhanjadlg.hxx.

Referenced by SetIgnoreHdl().

◆ m_xIgnoreAll

std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xIgnoreAll
private

Definition at line 103 of file hangulhanjadlg.hxx.

Referenced by SetCurrentString(), and SetIgnoreAllHdl().

◆ m_xOptions

std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xOptions
private

Definition at line 106 of file hangulhanjadlg.hxx.

Referenced by HangulHanjaConversionDialog().

◆ m_xOriginalWord

std::unique_ptr<weld::Label> svx::HangulHanjaConversionDialog::m_xOriginalWord
private

◆ m_xReplace

std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xReplace
private

Definition at line 104 of file hangulhanjadlg.hxx.

Referenced by SetChangeHdl(), and SetCurrentString().

◆ m_xReplaceAll

std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xReplaceAll
private

Definition at line 105 of file hangulhanjadlg.hxx.

Referenced by SetChangeAllHdl().

◆ m_xReplaceByChar

std::unique_ptr<weld::CheckButton> svx::HangulHanjaConversionDialog::m_xReplaceByChar
private

Definition at line 119 of file hangulhanjadlg.hxx.

Referenced by HangulHanjaConversionDialog(), and SetByCharacter().

◆ m_xSimpleConversion

std::unique_ptr<weld::RadioButton> svx::HangulHanjaConversionDialog::m_xSimpleConversion
private

◆ m_xSuggestions

std::unique_ptr<SuggestionDisplay> svx::HangulHanjaConversionDialog::m_xSuggestions
private

◆ m_xWordInput

std::unique_ptr<weld::Entry> svx::HangulHanjaConversionDialog::m_xWordInput
private

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