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 aFormToken
 
Link< SwTOXButton &, void > aPrevNextControlLink
 
bool bNextControl
 
SwTokenWindowm_pParent
 
std::unique_ptr< weld::ToggleButtonm_xButton
 

Additional Inherited Members

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

Detailed Description

Definition at line 1581 of file cnttab.cxx.

Constructor & Destructor Documentation

◆ SwTOXButton()

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

Definition at line 1590 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 1642 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 1637 of file cnttab.cxx.

References m_xButton, x, and y.

◆ GetFormToken()

const SwFormToken & SwTOXButton::GetFormToken ( ) const
inline

Definition at line 1652 of file cnttab.cxx.

References aFormToken.

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

◆ GetType()

virtual WindowType SwTOXButton::GetType ( ) const
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1607 of file cnttab.cxx.

◆ GrabFocus()

virtual void SwTOXButton::GrabFocus ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1612 of file cnttab.cxx.

References m_xButton.

◆ Hide()

virtual void SwTOXButton::Hide ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1617 of file cnttab.cxx.

References m_xButton.

◆ IsNextControl()

bool SwTOXButton::IsNextControl ( ) const
inline

Definition at line 1650 of file cnttab.cxx.

References bNextControl.

◆ set_grid_left_attach()

virtual void SwTOXButton::set_grid_left_attach ( int  nPos)
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1632 of file cnttab.cxx.

References m_xButton, and nPos.

Referenced by SwTokenWindow::InsertItem().

◆ SetAccessibleName()

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

Definition at line 1627 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 1654 of file cnttab.cxx.

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

◆ SetEntryNumberFormat()

void SwTOXButton::SetEntryNumberFormat ( sal_uInt16  nSet)
inline

Definition at line 1672 of file cnttab.cxx.

References aFormToken, CF_NUM_NOPREPST_TITLE, CF_NUMBER, and SwFormToken::nChapterFormat.

◆ SetFillChar()

void SwTOXButton::SetFillChar ( sal_Unicode  cSet)
inline

Definition at line 1663 of file cnttab.cxx.

References aFormToken, and SwFormToken::cTabFillChar.

◆ SetLinkEnd()

void SwTOXButton::SetLinkEnd ( )
inline

◆ SetLinkStart()

void SwTOXButton::SetLinkStart ( )
inline

◆ SetOutlineLevel()

void SwTOXButton::SetOutlineLevel ( sal_uInt16  nSet)
inline

Definition at line 1701 of file cnttab.cxx.

References aFormToken, and SwFormToken::nOutlineLevel.

◆ SetPrevNextLink()

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

Definition at line 1651 of file cnttab.cxx.

References aPrevNextControlLink.

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

◆ SetTabAlign()

void SwTOXButton::SetTabAlign ( SvxTabAdjust  eAlign)
inline

Definition at line 1666 of file cnttab.cxx.

References aFormToken, and SwFormToken::eTabAlign.

◆ SetTabPosition()

void SwTOXButton::SetTabPosition ( SwTwips  nSet)
inline

Definition at line 1660 of file cnttab.cxx.

References aFormToken, and SwFormToken::nTabStopPosition.

◆ SetText()

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

◆ Show()

void SwTOXButton::Show ( )
inline

Definition at line 1622 of file cnttab.cxx.

References m_xButton.

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

Member Data Documentation

◆ aFormToken

SwFormToken SwTOXButton::aFormToken
private

◆ aPrevNextControlLink

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

Definition at line 1585 of file cnttab.cxx.

Referenced by SetPrevNextLink().

◆ bNextControl

bool SwTOXButton::bNextControl
private

Definition at line 1586 of file cnttab.cxx.

Referenced by IsNextControl().

◆ m_pParent

SwTokenWindow* SwTOXButton::m_pParent
private

Definition at line 1587 of file cnttab.cxx.

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

◆ m_xBuilder

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

Definition at line 1583 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: