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

Additional Inherited Members

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

Detailed Description

Definition at line 1417 of file cnttab.cxx.

Constructor & Destructor Documentation

◆ SwTOXEdit()

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

Definition at line 1429 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 1574 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 1477 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 1492 of file cnttab.cxx.

References m_xEntry.

◆ GetFormToken()

const SwFormToken & SwTOXEdit::GetFormToken ( )
inline

◆ GetText()

OUString SwTOXEdit::GetText ( ) const
inline

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

◆ GrabFocus()

virtual void SwTOXEdit::GrabFocus ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1452 of file cnttab.cxx.

References m_xEntry.

◆ Hide()

virtual void SwTOXEdit::Hide ( )
inlineoverridevirtual

Implements SwTOXWidget.

Definition at line 1457 of file cnttab.cxx.

References m_xEntry.

◆ IsNextControl()

bool SwTOXEdit::IsNextControl ( ) const
inline

Definition at line 1510 of file cnttab.cxx.

References bNextControl.

◆ select_region()

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

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

References m_xEntry, and nPos.

Referenced by SwTokenWindow::InsertItem().

◆ SetAccessibleName()

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

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

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

◆ SetModifyHdl()

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

Definition at line 1502 of file cnttab.cxx.

References aModifiedLink.

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

◆ SetPrevNextLink()

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

Definition at line 1511 of file cnttab.cxx.

References aPrevNextControlLink.

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

◆ SetText()

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

Definition at line 1487 of file cnttab.cxx.

References m_xEntry.

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

◆ Show()

void SwTOXEdit::Show ( )
inline

Definition at line 1462 of file cnttab.cxx.

References m_xEntry.

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

Member Data Documentation

◆ aFormToken

SwFormToken SwTOXEdit::aFormToken
private

Definition at line 1420 of file cnttab.cxx.

Referenced by GetFormToken(), and SetCharStyleName().

◆ aModifiedLink

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

Definition at line 1421 of file cnttab.cxx.

Referenced by SetModifyHdl().

◆ aPrevNextControlLink

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

Definition at line 1422 of file cnttab.cxx.

Referenced by SetPrevNextLink().

◆ bNextControl

bool SwTOXEdit::bNextControl
private

Definition at line 1423 of file cnttab.cxx.

Referenced by IsNextControl().

◆ m_pParent

SwTokenWindow* SwTOXEdit::m_pParent
private

Definition at line 1424 of file cnttab.cxx.

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

◆ m_xBuilder

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

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