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

#include <hyphen.hxx>

Inheritance diagram for SvxHyphenWordDialog:
[legend]
Collaboration diagram for SvxHyphenWordDialog:
[legend]

Public Member Functions

 SvxHyphenWordDialog (OUString aWord, LanguageType nLang, weld::Widget *pParent, css::uno::Reference< css::linguistic2::XHyphenator > const &xHyphen, SvxSpellWrapper *pWrapper)
 
virtual ~SvxHyphenWordDialog () override
 
void SetWindowTitle (LanguageType nLang)
 
bool SelLeft ()
 
bool SelRight ()
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 

Private Member Functions

void EnableLRBtn_Impl ()
 
OUString EraseUnusableHyphens_Impl ()
 
void InitControls_Impl ()
 
void ContinueHyph_Impl (sal_Int32 nInsPos=-1)
 
void select_region (int nStart, int nEnd)
 
 DECL_LINK (Left_Impl, weld::Button &, void)
 
 DECL_LINK (Right_Impl, weld::Button &, void)
 
 DECL_LINK (CutHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ContinueHdl_Impl, weld::Button &, void)
 
 DECL_LINK (DeleteHdl_Impl, weld::Button &, void)
 
 DECL_LINK (HyphenateAllHdl_Impl, weld::Button &, void)
 
 DECL_LINK (CancelHdl_Impl, weld::Button &, void)
 
 DECL_LINK (GetFocusHdl_Impl, weld::Widget &, void)
 
 DECL_LINK (CursorChangeHdl_Impl, weld::Entry &, void)
 

Private Attributes

OUString m_aLabel
 
SvxSpellWrapper *const m_pHyphWrapper
 
css::uno::Reference< css::linguistic2::XHyphenator > m_xHyphenator
 
css::uno::Reference< css::linguistic2::XPossibleHyphens > m_xPossHyph
 
OUString m_aEditWord
 
OUString m_aActWord
 
LanguageType m_nActLanguage
 
sal_Int16 m_nMaxHyphenationPos
 
sal_Int32 m_nOldPos
 
sal_Int32 m_nHyphenationPositionsOffset
 
int m_nWordEditWidth
 
bool m_bBusy
 
std::unique_ptr< weld::Entrym_xWordEdit
 
std::unique_ptr< weld::Buttonm_xLeftBtn
 
std::unique_ptr< weld::Buttonm_xRightBtn
 
std::unique_ptr< weld::Buttonm_xOkBtn
 
std::unique_ptr< weld::Buttonm_xContBtn
 
std::unique_ptr< weld::Buttonm_xDelBtn
 
std::unique_ptr< weld::Buttonm_xHyphAll
 
std::unique_ptr< weld::Buttonm_xCloseBtn
 

Detailed Description

Definition at line 31 of file hyphen.hxx.

Constructor & Destructor Documentation

◆ SvxHyphenWordDialog()

SvxHyphenWordDialog::SvxHyphenWordDialog ( OUString  aWord,
LanguageType  nLang,
weld::Widget pParent,
css::uno::Reference< css::linguistic2::XHyphenator > const &  xHyphen,
SvxSpellWrapper pWrapper 
)

◆ ~SvxHyphenWordDialog()

SvxHyphenWordDialog::~SvxHyphenWordDialog ( )
overridevirtual

Definition at line 461 of file hyphen.cxx.

References m_pHyphWrapper, m_xCloseBtn, and SvxSpellWrapper::SpellEnd().

Member Function Documentation

◆ ContinueHyph_Impl()

void SvxHyphenWordDialog::ContinueHyph_Impl ( sal_Int32  nInsPos = -1)
private

◆ DECL_LINK() [1/9]

SvxHyphenWordDialog::DECL_LINK ( CancelHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/9]

SvxHyphenWordDialog::DECL_LINK ( ContinueHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/9]

SvxHyphenWordDialog::DECL_LINK ( CursorChangeHdl_Impl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [4/9]

SvxHyphenWordDialog::DECL_LINK ( CutHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/9]

SvxHyphenWordDialog::DECL_LINK ( DeleteHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/9]

SvxHyphenWordDialog::DECL_LINK ( GetFocusHdl_Impl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [7/9]

SvxHyphenWordDialog::DECL_LINK ( HyphenateAllHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [8/9]

SvxHyphenWordDialog::DECL_LINK ( Left_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [9/9]

SvxHyphenWordDialog::DECL_LINK ( Right_Impl  ,
weld::Button ,
void   
)
private

◆ EnableLRBtn_Impl()

void SvxHyphenWordDialog::EnableLRBtn_Impl ( )
private

Definition at line 53 of file hyphen.cxx.

References DBG_ASSERT, HYPH_POS_CHAR, i, m_aEditWord, m_nOldPos, m_xLeftBtn, and m_xRightBtn.

Referenced by InitControls_Impl(), SelLeft(), and SelRight().

◆ EraseUnusableHyphens_Impl()

OUString SvxHyphenWordDialog::EraseUnusableHyphens_Impl ( )
private

◆ InitControls_Impl()

void SvxHyphenWordDialog::InitControls_Impl ( )
private

◆ select_region()

void SvxHyphenWordDialog::select_region ( int  nStart,
int  nEnd 
)
private

Definition at line 387 of file hyphen.cxx.

References m_aEditWord, m_nWordEditWidth, and m_xWordEdit.

Referenced by SelLeft(), and SelRight().

◆ SelLeft()

bool SvxHyphenWordDialog::SelLeft ( )

◆ SelRight()

bool SvxHyphenWordDialog::SelRight ( )

◆ SetWindowTitle()

void SvxHyphenWordDialog::SetWindowTitle ( LanguageType  nLang)

Definition at line 467 of file hyphen.cxx.

References SvtLanguageTable::GetLanguageString(), m_aLabel, and m_xDialog.

Referenced by ContinueHyph_Impl(), and SvxHyphenWordDialog().

Member Data Documentation

◆ m_aActWord

OUString SvxHyphenWordDialog::m_aActWord
private

◆ m_aEditWord

OUString SvxHyphenWordDialog::m_aEditWord
private

◆ m_aLabel

OUString SvxHyphenWordDialog::m_aLabel
private

Definition at line 33 of file hyphen.hxx.

Referenced by SetWindowTitle(), and SvxHyphenWordDialog().

◆ m_bBusy

bool SvxHyphenWordDialog::m_bBusy
private

Definition at line 44 of file hyphen.hxx.

◆ m_nActLanguage

LanguageType SvxHyphenWordDialog::m_nActLanguage
private

Definition at line 39 of file hyphen.hxx.

Referenced by ContinueHyph_Impl(), InitControls_Impl(), and SvxHyphenWordDialog().

◆ m_nHyphenationPositionsOffset

sal_Int32 SvxHyphenWordDialog::m_nHyphenationPositionsOffset
private

Definition at line 42 of file hyphen.hxx.

Referenced by ContinueHyph_Impl(), and EraseUnusableHyphens_Impl().

◆ m_nMaxHyphenationPos

sal_Int16 SvxHyphenWordDialog::m_nMaxHyphenationPos
private

Definition at line 40 of file hyphen.hxx.

Referenced by ContinueHyph_Impl(), EraseUnusableHyphens_Impl(), and SvxHyphenWordDialog().

◆ m_nOldPos

sal_Int32 SvxHyphenWordDialog::m_nOldPos
private

Definition at line 41 of file hyphen.hxx.

Referenced by EnableLRBtn_Impl(), InitControls_Impl(), SelLeft(), and SelRight().

◆ m_nWordEditWidth

int SvxHyphenWordDialog::m_nWordEditWidth
private

Definition at line 43 of file hyphen.hxx.

Referenced by select_region(), and SvxHyphenWordDialog().

◆ m_pHyphWrapper

SvxSpellWrapper* const SvxHyphenWordDialog::m_pHyphWrapper
private

Definition at line 34 of file hyphen.hxx.

Referenced by ContinueHyph_Impl(), SvxHyphenWordDialog(), and ~SvxHyphenWordDialog().

◆ m_xCloseBtn

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xCloseBtn
private

Definition at line 53 of file hyphen.hxx.

Referenced by ContinueHyph_Impl(), SvxHyphenWordDialog(), and ~SvxHyphenWordDialog().

◆ m_xContBtn

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xContBtn
private

Definition at line 50 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

◆ m_xDelBtn

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xDelBtn
private

Definition at line 51 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

◆ m_xHyphAll

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xHyphAll
private

Definition at line 52 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

◆ m_xHyphenator

css::uno::Reference< css::linguistic2::XHyphenator > SvxHyphenWordDialog::m_xHyphenator
private

Definition at line 35 of file hyphen.hxx.

Referenced by InitControls_Impl(), and SvxHyphenWordDialog().

◆ m_xLeftBtn

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xLeftBtn
private

Definition at line 47 of file hyphen.hxx.

Referenced by EnableLRBtn_Impl(), and SvxHyphenWordDialog().

◆ m_xOkBtn

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xOkBtn
private

Definition at line 49 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

◆ m_xPossHyph

css::uno::Reference< css::linguistic2::XPossibleHyphens > SvxHyphenWordDialog::m_xPossHyph
private

Definition at line 36 of file hyphen.hxx.

Referenced by ContinueHyph_Impl(), EraseUnusableHyphens_Impl(), and InitControls_Impl().

◆ m_xRightBtn

std::unique_ptr<weld::Button> SvxHyphenWordDialog::m_xRightBtn
private

Definition at line 48 of file hyphen.hxx.

Referenced by EnableLRBtn_Impl(), and SvxHyphenWordDialog().

◆ m_xWordEdit

std::unique_ptr<weld::Entry> SvxHyphenWordDialog::m_xWordEdit
private

Definition at line 46 of file hyphen.hxx.

Referenced by InitControls_Impl(), select_region(), SelLeft(), SelRight(), and SvxHyphenWordDialog().


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