LibreOffice Module cui (master) 1
|
#include <hyphen.hxx>
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::Entry > | m_xWordEdit |
std::unique_ptr< weld::Button > | m_xLeftBtn |
std::unique_ptr< weld::Button > | m_xRightBtn |
std::unique_ptr< weld::Button > | m_xOkBtn |
std::unique_ptr< weld::Button > | m_xContBtn |
std::unique_ptr< weld::Button > | m_xDelBtn |
std::unique_ptr< weld::Button > | m_xHyphAll |
std::unique_ptr< weld::Button > | m_xCloseBtn |
Definition at line 31 of file hyphen.hxx.
SvxHyphenWordDialog::SvxHyphenWordDialog | ( | OUString | aWord, |
LanguageType | nLang, | ||
weld::Widget * | pParent, | ||
css::uno::Reference< css::linguistic2::XHyphenator > const & | xHyphen, | ||
SvxSpellWrapper * | pWrapper | ||
) |
Definition at line 405 of file hyphen.cxx.
References DBG_ASSERT, LanguageTag::getLanguageType(), SvxSpellWrapper::GetLast(), InitControls_Impl(), LINK, m_aActWord, m_aLabel, m_nActLanguage, m_nMaxHyphenationPos, m_nWordEditWidth, m_pHyphWrapper, m_xCloseBtn, m_xContBtn, m_xDelBtn, m_xDialog, m_xHyphAll, m_xHyphenator, m_xLeftBtn, m_xOkBtn, m_xRightBtn, m_xWordEdit, and SetWindowTitle().
|
overridevirtual |
Definition at line 461 of file hyphen.cxx.
References m_pHyphWrapper, m_xCloseBtn, and SvxSpellWrapper::SpellEnd().
|
private |
calling with 0 as argument will remove hyphens!
Definition at line 199 of file hyphen.cxx.
References aSeq, DBG_ASSERT, SvxSpellWrapper::FindSpellError(), LanguageTag::getLanguageType(), SvxSpellWrapper::GetLast(), HYPH_POS_CHAR, i, InitControls_Impl(), SvxSpellWrapper::InsertHyphen(), m_aActWord, m_aEditWord, m_nActLanguage, m_nHyphenationPositionsOffset, m_nMaxHyphenationPos, m_pHyphWrapper, m_xCloseBtn, m_xDialog, m_xPossHyph, RET_OK, and SetWindowTitle().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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().
|
private |
Definition at line 81 of file hyphen.cxx.
References DBG_ASSERT, HYPH_POS_CHAR, i, m_aActWord, m_nHyphenationPositionsOffset, m_nMaxHyphenationPos, m_xPossHyph, and nPos.
Referenced by InitControls_Impl().
|
private |
Definition at line 181 of file hyphen.cxx.
References LanguageTag::convertToLocale(), EnableLRBtn_Impl(), EraseUnusableHyphens_Impl(), m_aActWord, m_aEditWord, m_nActLanguage, m_nOldPos, m_xHyphenator, m_xPossHyph, m_xWordEdit, and SelLeft().
Referenced by ContinueHyph_Impl(), and SvxHyphenWordDialog().
Definition at line 387 of file hyphen.cxx.
References m_aEditWord, m_nWordEditWidth, and m_xWordEdit.
Referenced by SelLeft(), and SelRight().
bool SvxHyphenWordDialog::SelLeft | ( | ) |
Definition at line 255 of file hyphen.cxx.
References CUR_HYPH_POS_CHAR, DBG_ASSERT, EnableLRBtn_Impl(), HYPH_POS_CHAR, i, m_aEditWord, m_nOldPos, m_xWordEdit, and select_region().
Referenced by InitControls_Impl().
bool SvxHyphenWordDialog::SelRight | ( | ) |
Definition at line 282 of file hyphen.cxx.
References CUR_HYPH_POS_CHAR, EnableLRBtn_Impl(), HYPH_POS_CHAR, i, m_aEditWord, m_nOldPos, m_xWordEdit, and select_region().
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().
|
private |
Definition at line 38 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), EraseUnusableHyphens_Impl(), InitControls_Impl(), and SvxHyphenWordDialog().
|
private |
Definition at line 37 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), EnableLRBtn_Impl(), InitControls_Impl(), select_region(), SelLeft(), and SelRight().
|
private |
Definition at line 33 of file hyphen.hxx.
Referenced by SetWindowTitle(), and SvxHyphenWordDialog().
|
private |
Definition at line 44 of file hyphen.hxx.
|
private |
Definition at line 39 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), InitControls_Impl(), and SvxHyphenWordDialog().
|
private |
Definition at line 42 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), and EraseUnusableHyphens_Impl().
|
private |
Definition at line 40 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), EraseUnusableHyphens_Impl(), and SvxHyphenWordDialog().
|
private |
Definition at line 41 of file hyphen.hxx.
Referenced by EnableLRBtn_Impl(), InitControls_Impl(), SelLeft(), and SelRight().
|
private |
Definition at line 43 of file hyphen.hxx.
Referenced by select_region(), and SvxHyphenWordDialog().
|
private |
Definition at line 34 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), SvxHyphenWordDialog(), and ~SvxHyphenWordDialog().
|
private |
Definition at line 53 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), SvxHyphenWordDialog(), and ~SvxHyphenWordDialog().
|
private |
Definition at line 50 of file hyphen.hxx.
Referenced by SvxHyphenWordDialog().
|
private |
Definition at line 51 of file hyphen.hxx.
Referenced by SvxHyphenWordDialog().
|
private |
Definition at line 52 of file hyphen.hxx.
Referenced by SvxHyphenWordDialog().
|
private |
Definition at line 35 of file hyphen.hxx.
Referenced by InitControls_Impl(), and SvxHyphenWordDialog().
|
private |
Definition at line 47 of file hyphen.hxx.
Referenced by EnableLRBtn_Impl(), and SvxHyphenWordDialog().
|
private |
Definition at line 49 of file hyphen.hxx.
Referenced by SvxHyphenWordDialog().
|
private |
Definition at line 36 of file hyphen.hxx.
Referenced by ContinueHyph_Impl(), EraseUnusableHyphens_Impl(), and InitControls_Impl().
|
private |
Definition at line 48 of file hyphen.hxx.
Referenced by EnableLRBtn_Impl(), and SvxHyphenWordDialog().
|
private |
Definition at line 46 of file hyphen.hxx.
Referenced by InitControls_Impl(), select_region(), SelLeft(), SelRight(), and SvxHyphenWordDialog().