LibreOffice Module sw (master) 1
|
#include <swuicnttab.hxx>
Public Member Functions | |
SwTokenWindow (std::unique_ptr< weld::Container > xParent) | |
weld::Container * | get_child_container () |
~SwTokenWindow () | |
void | SetTabPage (SwTOXEntryTabPage *pParent) |
void | SetForm (SwForm &rForm, sal_uInt16 nLevel) |
sal_uInt16 | GetLastLevel () const |
bool | IsValid () const |
void | SetInvalid () |
OUString | GetPattern () const |
void | SetButtonSelectedHdl (const Link< SwFormToken &, void > &rLink) |
void | SetModifyHdl (const Link< LinkParamNone *, void > &rLink) |
SwTOXWidget * | GetActiveControl () |
void | InsertAtSelection (const SwFormToken &aToken) |
void | RemoveControl (const SwTOXButton *pDel, bool bInternalCall=false) |
bool | Contains (FormTokenType) const |
OUString | CreateQuickHelp (const SwFormToken &rToken) |
void | SetFocus2theAllBtn () |
Private Member Functions | |
DECL_LINK (EditResize, SwTOXEdit &, void) | |
DECL_LINK (NextItemHdl, SwTOXEdit &, void) | |
DECL_LINK (TbxFocusHdl, SwTOXWidget &, void) | |
DECL_LINK (NextItemBtnHdl, SwTOXButton &, void) | |
DECL_LINK (TbxFocusBtnHdl, SwTOXWidget &, void) | |
DECL_LINK (ScrollBtnHdl, weld::Button &, void) | |
DECL_LINK (ScrollHdl, weld::ScrolledWindow &, void) | |
DECL_LINK (AdjustPositionsHdl, const Size &, void) | |
void | SetActiveControl (SwTOXWidget *pSet) |
SwTOXWidget * | InsertItem (const OUString &rText, const SwFormToken &aToken) |
void | AdjustPositions () |
void | AdjustScrolling () |
void | MoveControls (tools::Long nOffset) |
sal_uInt32 | GetControlIndex (FormTokenType eType) const |
Private Attributes | |
SwForm * | m_pForm |
sal_uInt16 | m_nLevel |
bool | m_bValid |
OUString | m_aButtonTexts [TOKEN_END] |
OUString | m_aButtonHelpTexts [TOKEN_END] |
OUString | m_sCharStyle |
Link< SwFormToken &, void > | m_aButtonSelectedHdl |
SwTOXWidget * | m_pActiveCtrl |
Link< LinkParamNone *, void > | m_aModifyHdl |
OUString | m_sAccessibleName |
OUString | m_sAdditionalAccnameString1 |
OUString | m_sAdditionalAccnameString2 |
OUString | m_sAdditionalAccnameString3 |
Idle | m_aAdjustPositionsIdle |
SwTOXEntryTabPage * | m_pParent |
std::unique_ptr< weld::Container > | m_xParentWidget |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
std::unique_ptr< weld::Button > | m_xLeftScrollWin |
std::unique_ptr< weld::Container > | m_xCtrlParentWin |
std::unique_ptr< weld::ScrolledWindow > | m_xScrollWin |
std::unique_ptr< weld::Button > | m_xRightScrollWin |
std::vector< std::unique_ptr< SwTOXWidget > > | m_aControlList |
Definition at line 227 of file swuicnttab.hxx.
SwTokenWindow::SwTokenWindow | ( | std::unique_ptr< weld::Container > | xParent | ) |
Definition at line 2738 of file cnttab.cxx.
References i, LINK, m_aButtonHelpTexts, m_aButtonTexts, m_nLevel, m_sAccessibleName, m_sAdditionalAccnameString1, m_sAdditionalAccnameString2, m_sAdditionalAccnameString3, m_xContainer, m_xCtrlParentWin, m_xLeftScrollWin, m_xRightScrollWin, m_xScrollWin, STR_TOKEN_ARY, STR_TOKEN_HELP_ARY, SwResId(), and TOKEN_END.
SwTokenWindow::~SwTokenWindow | ( | ) |
Definition at line 2777 of file cnttab.cxx.
|
private |
Definition at line 3186 of file cnttab.cxx.
References AdjustScrolling(), i, and m_aControlList.
Referenced by InsertAtSelection(), and RemoveControl().
|
private |
Definition at line 3203 of file cnttab.cxx.
References SwTOXWidget::get_extents_relative_to(), m_aControlList, m_pActiveCtrl, m_xCtrlParentWin, m_xLeftScrollWin, m_xRightScrollWin, m_xScrollWin, MoveControls(), x, and y.
Referenced by AdjustPositions(), and SetForm().
bool SwTokenWindow::Contains | ( | FormTokenType | eSearchFor | ) | const |
Definition at line 3340 of file cnttab.cxx.
References SwTOXEdit::GetFormToken(), SwTOXWidget::GetType(), m_aControlList, and rNewToken.
OUString SwTokenWindow::CreateQuickHelp | ( | const SwFormToken & | rToken | ) |
Definition at line 3361 of file cnttab.cxx.
References SwFormToken::eTokenType, SwAuthorityFieldType::GetAuthFieldName(), m_aButtonHelpTexts, m_sCharStyle, SwFormToken::nAuthorityField, SwFormToken::sCharStyleName, TOKEN_AUTHORITY, and TOKEN_TAB_STOP.
Referenced by SwTOXButton::SwTOXButton(), and SwTOXEdit::SwTOXEdit().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 273 of file swuicnttab.hxx.
References m_xCtrlParentWin.
Referenced by SwTOXButton::~SwTOXButton(), and SwTOXEdit::~SwTOXEdit().
|
inline |
|
private |
Definition at line 3496 of file cnttab.cxx.
References eType, SwTOXEdit::GetFormToken(), SwTOXWidget::GetType(), m_aControlList, nIndex, rNewToken, TOKEN_ENTRY_TEXT, and TOKEN_PAGE_NUMS.
Referenced by InsertAtSelection(), and InsertItem().
|
inline |
Definition at line 279 of file swuicnttab.hxx.
References m_nLevel.
OUString SwTokenWindow::GetPattern | ( | ) | const |
Definition at line 3320 of file cnttab.cxx.
References SwTOXEdit::GetFormToken(), SwTOXWidget::GetType(), m_aControlList, and rNewToken.
void SwTokenWindow::InsertAtSelection | ( | const SwFormToken & | aToken | ) |
Definition at line 2940 of file cnttab.cxx.
References AdjustPositions(), SwTOXEdit::AdjustSize(), SwTOXButton::Check(), SwFormToken::eTokenType, SwAuthorityFieldType::GetAuthFieldName(), GetControlIndex(), SwTOXWidget::GetType(), SwTOXWidget::Hide(), LINK, m_aButtonTexts, m_aControlList, m_pActiveCtrl, m_sAccessibleName, m_sAdditionalAccnameString1, m_sAdditionalAccnameString2, m_sAdditionalAccnameString3, min(), SwFormToken::nAuthorityField, nIndex, rNewToken, SwTOXEdit::SetAccessibleName(), SetActiveControl(), SwTOXWidget::SetGetFocusHdl(), SwTOXButton::SetLinkEnd(), SwTOXButton::SetLinkStart(), SwTOXEdit::SetModifyHdl(), SwTOXButton::SetPrevNextLink(), SwTOXEdit::SetPrevNextLink(), SetText(), SwTOXEdit::SetText(), SwTOXButton::SetText(), SwTOXEdit::Show(), SwTOXButton::Show(), SwFormToken::sText, TOKEN_AUTHORITY, TOKEN_LINK_END, TOKEN_LINK_START, and TOKEN_TEXT.
|
private |
Definition at line 2874 of file cnttab.cxx.
References SwTOXEdit::AdjustSize(), SwFormToken::eTokenType, SwAuthorityFieldType::GetAuthFieldName(), GetControlIndex(), LINK, m_aButtonHelpTexts, m_aButtonTexts, m_aControlList, m_sAccessibleName, m_sAdditionalAccnameString1, m_sAdditionalAccnameString2, m_sAdditionalAccnameString3, SwFormToken::nAuthorityField, nIndex, SwTOXEdit::set_grid_left_attach(), SwTOXButton::set_grid_left_attach(), SwTOXEdit::SetAccessibleName(), SwTOXButton::SetAccessibleName(), SwTOXWidget::SetGetFocusHdl(), SwTOXEdit::SetModifyHdl(), SwTOXButton::SetPrevNextLink(), SwTOXEdit::SetPrevNextLink(), SwTOXEdit::SetText(), SwTOXButton::SetText(), SwTOXEdit::Show(), SwTOXButton::Show(), TOKEN_AUTHORITY, and TOKEN_TEXT.
Referenced by SetForm().
|
inline |
Definition at line 281 of file swuicnttab.hxx.
References m_bValid.
|
private |
Definition at line 3193 of file cnttab.cxx.
References m_xScrollWin.
Referenced by AdjustScrolling().
void SwTokenWindow::RemoveControl | ( | const SwTOXButton * | pDel, |
bool | bInternalCall = false |
||
) |
Definition at line 3139 of file cnttab.cxx.
References AdjustPositions(), Link< typename Arg, typename Ret >::Call(), SwTOXButton::GetFormToken(), SwTOXEdit::GetText(), SwForm::GetTOXType(), SwTOXWidget::Hide(), m_aControlList, m_aModifyHdl, m_pActiveCtrl, m_pForm, m_pParent, SwTOXEntryTabPage::PreTokenButtonRemoved(), SetActiveControl(), SetText(), and TOX_AUTHORITIES.
|
private |
Definition at line 2853 of file cnttab.cxx.
References Link< typename Arg, typename Ret >::Call(), SwTOXWidget::GetType(), SwTOXWidget::GrabFocus(), m_aButtonSelectedHdl, and m_pActiveCtrl.
Referenced by InsertAtSelection(), RemoveControl(), and SetForm().
|
inline |
Definition at line 287 of file swuicnttab.hxx.
References m_aButtonSelectedHdl.
void SwTokenWindow::SetFocus2theAllBtn | ( | ) |
Definition at line 3488 of file cnttab.cxx.
References m_pParent, and SwTOXEntryTabPage::SetFocus2theAllBtn().
void SwTokenWindow::SetForm | ( | SwForm & | rForm, |
sal_uInt16 | nLevel | ||
) |
Definition at line 2781 of file cnttab.cxx.
References AdjustScrolling(), GetActiveControl(), SwForm::GetFormAuth(), SwForm::GetFormChapterMark(), SwForm::GetFormEntry(), SwForm::GetFormEntryNum(), SwForm::GetFormEntryText(), SwForm::GetFormLinkEnd(), SwForm::GetFormLinkStt(), SwForm::GetFormPageNums(), SwForm::GetFormTab(), SwForm::GetPattern(), SwForm::GetTOXType(), InsertItem(), m_aControlList, m_bValid, m_nLevel, m_pForm, MAXLEVEL, SAL_WARN_IF, SetActiveControl(), TOKEN_AUTHORITY, TOKEN_CHAPTER_INFO, TOKEN_ENTRY, TOKEN_ENTRY_NO, TOKEN_ENTRY_TEXT, TOKEN_LINK_END, TOKEN_LINK_START, TOKEN_PAGE_NUMS, TOKEN_TAB_STOP, TOKEN_TEXT, and TOX_AUTHORITIES.
|
inline |
Definition at line 283 of file swuicnttab.hxx.
References m_bValid.
|
inline |
Definition at line 290 of file swuicnttab.hxx.
References m_aModifyHdl.
|
inline |
Definition at line 276 of file swuicnttab.hxx.
References m_pParent.
|
private |
Definition at line 243 of file swuicnttab.hxx.
|
private |
Definition at line 233 of file swuicnttab.hxx.
Referenced by CreateQuickHelp(), InsertItem(), and SwTokenWindow().
|
private |
Definition at line 235 of file swuicnttab.hxx.
Referenced by SetActiveControl(), and SetButtonSelectedHdl().
|
private |
Definition at line 232 of file swuicnttab.hxx.
Referenced by InsertAtSelection(), InsertItem(), and SwTokenWindow().
|
private |
Definition at line 253 of file swuicnttab.hxx.
Referenced by AdjustPositions(), AdjustScrolling(), Contains(), GetControlIndex(), GetPattern(), InsertAtSelection(), InsertItem(), RemoveControl(), and SetForm().
|
private |
Definition at line 237 of file swuicnttab.hxx.
Referenced by RemoveControl(), and SetModifyHdl().
|
private |
Definition at line 231 of file swuicnttab.hxx.
Referenced by IsValid(), SetForm(), and SetInvalid().
|
private |
Definition at line 230 of file swuicnttab.hxx.
Referenced by GetLastLevel(), and SetForm().
|
private |
Definition at line 236 of file swuicnttab.hxx.
Referenced by AdjustScrolling(), GetActiveControl(), InsertAtSelection(), RemoveControl(), and SetActiveControl().
|
private |
Definition at line 229 of file swuicnttab.hxx.
Referenced by RemoveControl(), and SetForm().
|
private |
Definition at line 245 of file swuicnttab.hxx.
Referenced by RemoveControl(), SetFocus2theAllBtn(), and SetTabPage().
|
private |
Definition at line 238 of file swuicnttab.hxx.
Referenced by InsertAtSelection(), InsertItem(), and SwTokenWindow().
|
private |
Definition at line 239 of file swuicnttab.hxx.
Referenced by InsertAtSelection(), InsertItem(), and SwTokenWindow().
|
private |
Definition at line 240 of file swuicnttab.hxx.
Referenced by InsertAtSelection(), InsertItem(), and SwTokenWindow().
|
private |
Definition at line 241 of file swuicnttab.hxx.
Referenced by InsertAtSelection(), InsertItem(), and SwTokenWindow().
|
private |
Definition at line 234 of file swuicnttab.hxx.
Referenced by CreateQuickHelp().
|
private |
Definition at line 247 of file swuicnttab.hxx.
|
private |
Definition at line 248 of file swuicnttab.hxx.
|
private |
Definition at line 250 of file swuicnttab.hxx.
Referenced by AdjustScrolling(), get_child_container(), and SwTokenWindow().
|
private |
Definition at line 249 of file swuicnttab.hxx.
Referenced by AdjustScrolling(), and SwTokenWindow().
|
private |
Definition at line 246 of file swuicnttab.hxx.
|
private |
Definition at line 252 of file swuicnttab.hxx.
Referenced by AdjustScrolling(), and SwTokenWindow().
|
private |
Definition at line 251 of file swuicnttab.hxx.
Referenced by AdjustScrolling(), MoveControls(), and SwTokenWindow().