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::Window *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::ToggleButton &, void > &_rHdl)
 
void SetConversionFormatChangedHdl (const Link< weld::Button &, 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 OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString 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::ToggleButton &, void)
 
 DECL_LINK (ClickByCharacterHdl, weld::ToggleButton &, 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 *, voidm_aOptionsChangedLink
 
Link< weld::ToggleButton &, voidm_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 90 of file hangulhanjadlg.hxx.

Constructor & Destructor Documentation

svx::HangulHanjaConversionDialog::HangulHanjaConversionDialog ( weld::Window pParent)
svx::HangulHanjaConversionDialog::~HangulHanjaConversionDialog ( )
overridevirtual

Definition at line 468 of file hangulhanjadlg.cxx.

Member Function Documentation

svx::HangulHanjaConversionDialog::DECL_LINK ( OnOption  ,
weld::Button ,
void   
)
private
svx::HangulHanjaConversionDialog::DECL_LINK ( OnSuggestionModified  ,
weld::Entry ,
void   
)
private
svx::HangulHanjaConversionDialog::DECL_LINK ( OnSuggestionSelected  ,
SuggestionDisplay ,
void   
)
private
svx::HangulHanjaConversionDialog::DECL_LINK ( OnConversionDirectionClicked  ,
weld::ToggleButton ,
void   
)
private
svx::HangulHanjaConversionDialog::DECL_LINK ( ClickByCharacterHdl  ,
weld::ToggleButton ,
void   
)
private
void svx::HangulHanjaConversionDialog::EnableRubySupport ( bool  bVal)

enables or disables the checkboxes for ruby formatted replacements

Definition at line 703 of file hangulhanjadlg.cxx.

References m_xHangulAbove, m_xHangulBelow, m_xHanjaAbove, and m_xHanjaBelow.

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 472 of file hangulhanjadlg.cxx.

References m_xSuggestions, and m_xWordInput.

Referenced by SetCurrentString().

void svx::HangulHanjaConversionDialog::FocusSuggestion ( )

Definition at line 583 of file hangulhanjadlg.cxx.

References m_xWordInput.

Referenced by HangulHanjaConversionDialog().

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

Definition at line 578 of file hangulhanjadlg.cxx.

References m_xOriginalWord.

OUString svx::HangulHanjaConversionDialog::GetCurrentSuggestion ( ) const

retrieves the current suggestion

Definition at line 620 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 655 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 650 of file hangulhanjadlg.cxx.

References m_xHangulOnly, and m_xHanjaOnly.

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

Definition at line 625 of file hangulhanjadlg.cxx.

References m_xReplaceByChar, and m_xSuggestions.

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

Definition at line 510 of file hangulhanjadlg.cxx.

References m_xReplaceAll.

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

Definition at line 505 of file hangulhanjadlg.cxx.

References m_xReplace.

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

Definition at line 531 of file hangulhanjadlg.cxx.

References m_aClickByCharacterLink.

void svx::HangulHanjaConversionDialog::SetConversionDirectionState ( bool  _bTryBothDirections,
editeng::HangulHanjaConversion::ConversionDirection  _ePrimaryConversionDirection 
)

Definition at line 631 of file hangulhanjadlg.cxx.

References m_xHangulOnly, m_xHanjaOnly, and weld::ToggleButton::set_active().

void svx::HangulHanjaConversionDialog::SetConversionFormat ( editeng::HangulHanjaConversion::ConversionFormat  _eType)
void svx::HangulHanjaConversionDialog::SetConversionFormatChangedHdl ( const Link< weld::Button &, void > &  _rHdl)
void svx::HangulHanjaConversionDialog::SetCurrentString ( const OUString &  _rNewString,
const css::uno::Sequence< OUString > &  _rSuggestions,
bool  _bOriginatesFromDocument 
)
void svx::HangulHanjaConversionDialog::SetFindHdl ( const Link< weld::Button &, void > &  _rHdl)

Definition at line 515 of file hangulhanjadlg.cxx.

References m_xFind.

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

Definition at line 500 of file hangulhanjadlg.cxx.

References m_xIgnoreAll.

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

Definition at line 495 of file hangulhanjadlg.cxx.

References m_xIgnore.

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

Definition at line 490 of file hangulhanjadlg.cxx.

References m_aOptionsChangedLink.

Member Data Documentation

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

Definition at line 100 of file hangulhanjadlg.hxx.

Referenced by SetClickByCharacterHdl().

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

Definition at line 99 of file hangulhanjadlg.hxx.

Referenced by SetOptionsChangedHdl().

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 97 of file hangulhanjadlg.hxx.

Referenced by SetCurrentString().

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

Definition at line 102 of file hangulhanjadlg.hxx.

Referenced by SetCurrentString(), and SetFindHdl().

std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHangulAbove
private
std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHangulBelow
private
std::unique_ptr<weld::RadioButton> svx::HangulHanjaConversionDialog::m_xHangulBracketed
private
std::unique_ptr<weld::CheckButton> svx::HangulHanjaConversionDialog::m_xHangulOnly
private
std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHanjaAbove
private
std::unique_ptr<RubyRadioButton> svx::HangulHanjaConversionDialog::m_xHanjaBelow
private
std::unique_ptr<weld::RadioButton> svx::HangulHanjaConversionDialog::m_xHanjaBracketed
private
std::unique_ptr<weld::CheckButton> svx::HangulHanjaConversionDialog::m_xHanjaOnly
private
std::unique_ptr<weld::Button> svx::HangulHanjaConversionDialog::m_xIgnore
private

Definition at line 103 of file hangulhanjadlg.hxx.

Referenced by SetIgnoreHdl().

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

Definition at line 104 of file hangulhanjadlg.hxx.

Referenced by SetCurrentString(), and SetIgnoreAllHdl().

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

Definition at line 107 of file hangulhanjadlg.hxx.

Referenced by HangulHanjaConversionDialog().

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

Definition at line 105 of file hangulhanjadlg.hxx.

Referenced by SetChangeHdl(), and SetCurrentString().

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

Definition at line 106 of file hangulhanjadlg.hxx.

Referenced by SetChangeAllHdl().

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

Definition at line 120 of file hangulhanjadlg.hxx.

Referenced by HangulHanjaConversionDialog(), and SetByCharacter().

std::unique_ptr<weld::RadioButton> svx::HangulHanjaConversionDialog::m_xSimpleConversion
private
std::unique_ptr<SuggestionDisplay> svx::HangulHanjaConversionDialog::m_xSuggestions
private
std::unique_ptr<weld::Entry> svx::HangulHanjaConversionDialog::m_xWordInput
private

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