LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwTOXButton Class Reference
Inheritance diagram for SwTOXButton:
[legend]
Collaboration diagram for SwTOXButton:
[legend]

Public Member Functions

 SwTOXButton (SwTokenWindow *pTokenWin, const SwFormToken &rToken)
 
virtual ~SwTOXButton () override
 
virtual WindowType GetType () const override
 
virtual void GrabFocus () override
 
virtual void Hide () override
 
void Show ()
 
void SetAccessibleName (const OUString &rName)
 
virtual void set_grid_left_attach (int nPos) override
 
void get_extents_relative_to (weld::Widget &rRelative, int &x, int &y, int &width, int &height) override
 
void Check (bool bCheck=true)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (FocusInHdl, weld::Widget &, void)
 
bool IsNextControl () const
 
void SetPrevNextLink (const Link< SwTOXButton &, void > &rLink)
 
const SwFormTokenGetFormToken () const
 
void SetCharStyleName (const OUString &rSet, sal_uInt16 nPoolId)
 
void SetTabPosition (SwTwips nSet)
 
void SetFillChar (sal_Unicode cSet)
 
void SetTabAlign (SvxTabAdjust eAlign)
 
void SetEntryNumberFormat (sal_uInt16 nSet)
 
void SetChapterInfo (sal_uInt16 nSet)
 
void SetOutlineLevel (sal_uInt16 nSet)
 
void SetText (const OUString &rText)
 
void SetLinkEnd ()
 
void SetLinkStart ()
 
- Public Member Functions inherited from SwTOXWidget
virtual WindowType GetType () const =0
 
virtual void GrabFocus ()=0
 
virtual void Hide ()=0
 
virtual void set_grid_left_attach (int nPos)=0
 
virtual void get_extents_relative_to (weld::Widget &rRelative, int &x, int &y, int &width, int &height)=0
 
void SetGetFocusHdl (const Link< SwTOXWidget &, void > &rLink)
 
virtual ~SwTOXWidget ()
 

Private Attributes

std::unique_ptr< weld::Builderm_xBuilder
 
SwFormToken m_aFormToken
 
Link< SwTOXButton &, void > m_aPrevNextControlLink
 
bool m_bNextControl
 
SwTokenWindowm_pParent
 
std::unique_ptr< weld::ToggleButtonm_xButton
 

Additional Inherited Members

- Protected Attributes inherited from SwTOXWidget
Link< SwTOXWidget &, void > m_aGetFocusLink
 

Detailed Description

Definition at line 1681 of file cnttab.cxx.

Constructor & Destructor Documentation

◆ SwTOXButton()

SwTOXButton::SwTOXButton ( SwTokenWindow pTokenWin,
const SwFormToken rToken 
)
inline

Definition at line 1690 of file cnttab.cxx.

References SwTokenWindow::CreateQuickHelp(), LINK, m_pParent, and m_xButton.

◆ ~SwTOXButton()

virtual SwTOXButton::~SwTOXButton ( )
inlineoverridevirtual

Member Function Documentation

◆ Check()

void SwTOXButton::Check ( bool  bCheck = true)
inline

Definition at line 1742 of file cnttab.cxx.

References m_xButton.

Referenced by IMPL_LINK(), and SwTokenWindow::InsertAtSelection().

◆ DECL_LINK() [1/2]

SwTOXButton::DECL_LINK ( FocusInHdl  ,
weld::Widget ,
void   
)

◆ DECL_LINK() [2/2]

SwTOXButton::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)

◆ get_extents_relative_to()

void SwTOXButton::get_extents_relative_to ( weld::Widget rRelative,
int x,
int y,
int width,
int height 
)
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1737 of file cnttab.cxx.

References m_xButton, x, and y.

◆ GetFormToken()

const SwFormToken & SwTOXButton::GetFormToken ( ) const
inline

Definition at line 1752 of file cnttab.cxx.

References m_aFormToken.

Referenced by IMPL_LINK(), and SwTokenWindow::RemoveControl().

◆ GetType()

virtual WindowType SwTOXButton::GetType ( ) const
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1707 of file cnttab.cxx.

◆ GrabFocus()

virtual void SwTOXButton::GrabFocus ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1712 of file cnttab.cxx.

References m_xButton.

◆ Hide()

virtual void SwTOXButton::Hide ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1717 of file cnttab.cxx.

References m_xButton.

◆ IsNextControl()

bool SwTOXButton::IsNextControl ( ) const
inline

Definition at line 1750 of file cnttab.cxx.

References m_bNextControl.

◆ set_grid_left_attach()

virtual void SwTOXButton::set_grid_left_attach ( int  nPos)
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1732 of file cnttab.cxx.

References m_xButton, and nPos.

Referenced by SwTokenWindow::InsertItem().

◆ SetAccessibleName()

void SwTOXButton::SetAccessibleName ( const OUString &  rName)
inline

Definition at line 1727 of file cnttab.cxx.

References m_xButton.

Referenced by SwTokenWindow::InsertItem().

◆ SetChapterInfo()

void SwTOXButton::SetChapterInfo ( sal_uInt16  nSet)
inline

◆ SetCharStyleName()

void SwTOXButton::SetCharStyleName ( const OUString &  rSet,
sal_uInt16  nPoolId 
)
inline

Definition at line 1754 of file cnttab.cxx.

References m_aFormToken, SwFormToken::nPoolId, rSet, and SwFormToken::sCharStyleName.

◆ SetEntryNumberFormat()

void SwTOXButton::SetEntryNumberFormat ( sal_uInt16  nSet)
inline

◆ SetFillChar()

void SwTOXButton::SetFillChar ( sal_Unicode  cSet)
inline

Definition at line 1763 of file cnttab.cxx.

References SwFormToken::cTabFillChar, and m_aFormToken.

◆ SetLinkEnd()

void SwTOXButton::SetLinkEnd ( )
inline

◆ SetLinkStart()

void SwTOXButton::SetLinkStart ( )
inline

◆ SetOutlineLevel()

void SwTOXButton::SetOutlineLevel ( sal_uInt16  nSet)
inline

Definition at line 1801 of file cnttab.cxx.

References m_aFormToken, and SwFormToken::nOutlineLevel.

◆ SetPrevNextLink()

void SwTOXButton::SetPrevNextLink ( const Link< SwTOXButton &, void > &  rLink)
inline

Definition at line 1751 of file cnttab.cxx.

References m_aPrevNextControlLink.

Referenced by SwTokenWindow::InsertAtSelection(), and SwTokenWindow::InsertItem().

◆ SetTabAlign()

void SwTOXButton::SetTabAlign ( SvxTabAdjust  eAlign)
inline

Definition at line 1766 of file cnttab.cxx.

References SwFormToken::eTabAlign, and m_aFormToken.

◆ SetTabPosition()

void SwTOXButton::SetTabPosition ( SwTwips  nSet)
inline

Definition at line 1760 of file cnttab.cxx.

References m_aFormToken, and SwFormToken::nTabStopPosition.

◆ SetText()

void SwTOXButton::SetText ( const OUString &  rText)
inline

◆ Show()

void SwTOXButton::Show ( )
inline

Definition at line 1722 of file cnttab.cxx.

References m_xButton.

Referenced by SwTokenWindow::InsertAtSelection(), and SwTokenWindow::InsertItem().

Member Data Documentation

◆ m_aFormToken

SwFormToken SwTOXButton::m_aFormToken
private

◆ m_aPrevNextControlLink

Link<SwTOXButton&,void> SwTOXButton::m_aPrevNextControlLink
private

Definition at line 1685 of file cnttab.cxx.

Referenced by SetPrevNextLink().

◆ m_bNextControl

bool SwTOXButton::m_bNextControl
private

Definition at line 1686 of file cnttab.cxx.

Referenced by IsNextControl().

◆ m_pParent

SwTokenWindow* SwTOXButton::m_pParent
private

Definition at line 1687 of file cnttab.cxx.

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

◆ m_xBuilder

std::unique_ptr<weld::Builder> SwTOXButton::m_xBuilder
private

Definition at line 1683 of file cnttab.cxx.

◆ m_xButton

std::unique_ptr<weld::ToggleButton> SwTOXButton::m_xButton
private

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