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

Public Member Functions

 SwTOXEdit (SwTokenWindow *pTokenWin, const SwFormToken &rToken)
 
virtual ~SwTOXEdit () 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
 
virtual void get_extents_relative_to (weld::Widget &rRelative, int &x, int &y, int &width, int &height) override
 
OUString GetText () const
 
void SetText (const OUString &rText)
 
void get_selection_bounds (int &rStartPos, int &rEndPos)
 
void select_region (int nStartPos, int nEndPos)
 
void SetModifyHdl (const Link< SwTOXEdit &, void > &rLink)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (FocusInHdl, weld::Widget &, void)
 
bool IsNextControl () const
 
void SetPrevNextLink (const Link< SwTOXEdit &, void > &rLink)
 
const SwFormTokenGetFormToken ()
 
void SetCharStyleName (const OUString &rSet, sal_uInt16 nPoolId)
 
void AdjustSize ()
 
- 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 Member Functions

 DECL_LINK (ModifyHdl, weld::Entry &, void)
 

Private Attributes

std::unique_ptr< weld::Builderm_xBuilder
 
SwFormToken m_aFormToken
 
Link< SwTOXEdit &, void > m_aModifiedLink
 
Link< SwTOXEdit &, void > m_aPrevNextControlLink
 
bool m_bNextControl
 
SwTokenWindowm_pParent
 
std::unique_ptr< weld::Entrym_xEntry
 

Additional Inherited Members

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

Detailed Description

Definition at line 1517 of file cnttab.cxx.

Constructor & Destructor Documentation

◆ SwTOXEdit()

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

Definition at line 1529 of file cnttab.cxx.

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

◆ ~SwTOXEdit()

virtual SwTOXEdit::~SwTOXEdit ( )
inlineoverridevirtual

Member Function Documentation

◆ AdjustSize()

void SwTOXEdit::AdjustSize ( )

Definition at line 1674 of file cnttab.cxx.

References GetText(), and m_xEntry.

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

◆ DECL_LINK() [1/3]

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

◆ DECL_LINK() [2/3]

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

◆ DECL_LINK() [3/3]

SwTOXEdit::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ get_extents_relative_to()

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

Implements SwTOXWidget.

Definition at line 1577 of file cnttab.cxx.

References m_xEntry, x, and y.

◆ get_selection_bounds()

void SwTOXEdit::get_selection_bounds ( int rStartPos,
int rEndPos 
)
inline

Definition at line 1592 of file cnttab.cxx.

References m_xEntry.

◆ GetFormToken()

const SwFormToken & SwTOXEdit::GetFormToken ( )
inline

◆ GetText()

OUString SwTOXEdit::GetText ( ) const
inline

Definition at line 1582 of file cnttab.cxx.

References m_xEntry.

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

◆ GetType()

virtual WindowType SwTOXEdit::GetType ( ) const
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1547 of file cnttab.cxx.

◆ GrabFocus()

virtual void SwTOXEdit::GrabFocus ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1552 of file cnttab.cxx.

References m_xEntry.

◆ Hide()

virtual void SwTOXEdit::Hide ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1557 of file cnttab.cxx.

References m_xEntry.

◆ IsNextControl()

bool SwTOXEdit::IsNextControl ( ) const
inline

Definition at line 1610 of file cnttab.cxx.

References m_bNextControl.

◆ select_region()

void SwTOXEdit::select_region ( int  nStartPos,
int  nEndPos 
)
inline

Definition at line 1597 of file cnttab.cxx.

References m_xEntry.

◆ set_grid_left_attach()

virtual void SwTOXEdit::set_grid_left_attach ( int  nPos)
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1572 of file cnttab.cxx.

References m_xEntry, and nPos.

Referenced by SwTokenWindow::InsertItem().

◆ SetAccessibleName()

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

Definition at line 1567 of file cnttab.cxx.

References m_xEntry.

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

◆ SetCharStyleName()

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

Definition at line 1619 of file cnttab.cxx.

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

◆ SetModifyHdl()

void SwTOXEdit::SetModifyHdl ( const Link< SwTOXEdit &, void > &  rLink)
inline

Definition at line 1602 of file cnttab.cxx.

References m_aModifiedLink.

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

◆ SetPrevNextLink()

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

Definition at line 1611 of file cnttab.cxx.

References m_aPrevNextControlLink.

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

◆ SetText()

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

Definition at line 1587 of file cnttab.cxx.

References m_xEntry.

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

◆ Show()

void SwTOXEdit::Show ( )
inline

Definition at line 1562 of file cnttab.cxx.

References m_xEntry.

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

Member Data Documentation

◆ m_aFormToken

SwFormToken SwTOXEdit::m_aFormToken
private

Definition at line 1520 of file cnttab.cxx.

Referenced by GetFormToken(), and SetCharStyleName().

◆ m_aModifiedLink

Link<SwTOXEdit&,void> SwTOXEdit::m_aModifiedLink
private

Definition at line 1521 of file cnttab.cxx.

Referenced by SetModifyHdl().

◆ m_aPrevNextControlLink

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

Definition at line 1522 of file cnttab.cxx.

Referenced by SetPrevNextLink().

◆ m_bNextControl

bool SwTOXEdit::m_bNextControl
private

Definition at line 1523 of file cnttab.cxx.

Referenced by IsNextControl().

◆ m_pParent

SwTokenWindow* SwTOXEdit::m_pParent
private

Definition at line 1524 of file cnttab.cxx.

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

◆ m_xBuilder

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

Definition at line 1519 of file cnttab.cxx.

◆ m_xEntry

std::unique_ptr<weld::Entry> SwTOXEdit::m_xEntry
private

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