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 (const OUString &rWord, LanguageType nLang, weld::Window *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 OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog ()
 

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 32 of file hyphen.hxx.

Constructor & Destructor Documentation

SvxHyphenWordDialog::SvxHyphenWordDialog ( const OUString &  rWord,
LanguageType  nLang,
weld::Window pParent,
css::uno::Reference< css::linguistic2::XHyphenator > const &  xHyphen,
SvxSpellWrapper pWrapper 
)
SvxHyphenWordDialog::~SvxHyphenWordDialog ( )
overridevirtual

Definition at line 460 of file hyphen.cxx.

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

Member Function Documentation

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

calling with 0 as argument will remove hyphens!

Definition at line 198 of file hyphen.cxx.

References DBG_ASSERT, HYPH_POS_CHAR, i, and RET_OK.

SvxHyphenWordDialog::DECL_LINK ( Left_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( Right_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( CutHdl_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( ContinueHdl_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( DeleteHdl_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( HyphenateAllHdl_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( CancelHdl_Impl  ,
weld::Button ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( GetFocusHdl_Impl  ,
weld::Widget ,
void   
)
private
SvxHyphenWordDialog::DECL_LINK ( CursorChangeHdl_Impl  ,
weld::Entry ,
void   
)
private
void SvxHyphenWordDialog::EnableLRBtn_Impl ( )
private

Definition at line 52 of file hyphen.cxx.

References DBG_ASSERT, HYPH_POS_CHAR, and i.

OUString SvxHyphenWordDialog::EraseUnusableHyphens_Impl ( )
private

Definition at line 80 of file hyphen.cxx.

References DBG_ASSERT, HYPH_POS_CHAR, i, and nPos.

void SvxHyphenWordDialog::InitControls_Impl ( )
private

Definition at line 180 of file hyphen.cxx.

References LanguageTag::convertToLocale().

Referenced by SvxHyphenWordDialog().

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

Definition at line 386 of file hyphen.cxx.

bool SvxHyphenWordDialog::SelLeft ( )

Definition at line 254 of file hyphen.cxx.

References CUR_HYPH_POS_CHAR, DBG_ASSERT, HYPH_POS_CHAR, and i.

bool SvxHyphenWordDialog::SelRight ( )

Definition at line 281 of file hyphen.cxx.

References CUR_HYPH_POS_CHAR, HYPH_POS_CHAR, and i.

void SvxHyphenWordDialog::SetWindowTitle ( LanguageType  nLang)

Definition at line 466 of file hyphen.cxx.

References SvtLanguageTable::GetLanguageString(), and m_aLabel.

Referenced by SvxHyphenWordDialog().

Member Data Documentation

OUString SvxHyphenWordDialog::m_aActWord
private

Definition at line 39 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

OUString SvxHyphenWordDialog::m_aEditWord
private

Definition at line 38 of file hyphen.hxx.

OUString SvxHyphenWordDialog::m_aLabel
private

Definition at line 34 of file hyphen.hxx.

Referenced by SetWindowTitle(), and SvxHyphenWordDialog().

bool SvxHyphenWordDialog::m_bBusy
private

Definition at line 45 of file hyphen.hxx.

LanguageType SvxHyphenWordDialog::m_nActLanguage
private

Definition at line 40 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

sal_Int32 SvxHyphenWordDialog::m_nHyphenationPositionsOffset
private

Definition at line 43 of file hyphen.hxx.

sal_Int16 SvxHyphenWordDialog::m_nMaxHyphenationPos
private

Definition at line 41 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

sal_Int32 SvxHyphenWordDialog::m_nOldPos
private

Definition at line 42 of file hyphen.hxx.

int SvxHyphenWordDialog::m_nWordEditWidth
private

Definition at line 44 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

SvxSpellWrapper* const SvxHyphenWordDialog::m_pHyphWrapper
private

Definition at line 35 of file hyphen.hxx.

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

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

Definition at line 54 of file hyphen.hxx.

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

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

Definition at line 51 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 52 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 53 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 36 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 48 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 50 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 37 of file hyphen.hxx.

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

Definition at line 49 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().

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

Definition at line 47 of file hyphen.hxx.

Referenced by SvxHyphenWordDialog().


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