LibreOffice Module formula (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
formula::RefEdit Class Reference

#include <funcutl.hxx>

Inheritance diagram for formula::RefEdit:
[legend]
Collaboration diagram for formula::RefEdit:
[legend]

Public Member Functions

 RefEdit (std::unique_ptr< weld::Entry > xControl)
 
weld::EntryGetWidget () const
 
virtual ~RefEdit ()
 
void SetRefString (const OUString &rStr)
 
void SetRefValid (bool bValid)
 Flag reference valid or invalid, which in turn changes the visual appearance of the control accordingly. More...
 
void SetText (const OUString &rStr)
 
OUString GetText () const
 
void StartUpdateData ()
 
void SetReferences (IControlReferenceHandler *pDlg, weld::Label *pLabelWidget)
 
void DoModify ()
 
void GrabFocus ()
 
void SelectAll ()
 
void SetSelection (const Selection &rSelection)
 
void SetCursorAtLast ()
 
Selection GetSelection () const
 
weld::LabelGetLabelWidgetForShrinkMode ()
 
void SaveValue ()
 
bool IsValueChangedFromSaved () const
 
void SetGetFocusHdl (const Link< RefEdit &, void > &rLink)
 
void SetLoseFocusHdl (const Link< RefEdit &, void > &rLink)
 
void SetModifyHdl (const Link< RefEdit &, void > &rLink)
 
const Link< RefEdit &, void > & GetModifyHdl () const
 
void SetActivateHdl (const Link< weld::Widget &, bool > &rLink)
 

Protected Member Functions

virtual bool KeyInput (const KeyEvent &rKEvt)
 

Protected Attributes

std::unique_ptr< weld::EntryxEntry
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (UpdateHdl, Timer *, void)
 
 DECL_DLLPRIVATE_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_DLLPRIVATE_LINK (GetFocusHdl, weld::Widget &, void)
 
 DECL_DLLPRIVATE_LINK (LoseFocusHdl, weld::Widget &, void)
 
 DECL_DLLPRIVATE_LINK (AsyncFocusInHdl, void *, void)
 
 DECL_DLLPRIVATE_LINK (AsyncFocusOutHdl, void *, void)
 
 DECL_DLLPRIVATE_LINK (Modify, weld::Entry &, void)
 
void GetFocus ()
 
void LoseFocus ()
 

Private Attributes

Idle aIdle
 
IControlReferenceHandlerpAnyRefDlg
 
weld::LabelpLabelWidget
 
ImplSVEventmpFocusInEvent
 
ImplSVEventmpFocusOutEvent
 
Link< RefEdit &, void > maGetFocusHdl
 
Link< RefEdit &, void > maLoseFocusHdl
 
Link< RefEdit &, void > maModifyHdl
 
Link< weld::Widget &, bool > maActivateHdl
 

Detailed Description

Definition at line 36 of file funcutl.hxx.

Constructor & Destructor Documentation

◆ RefEdit()

formula::RefEdit::RefEdit ( std::unique_ptr< weld::Entry xControl)

Definition at line 264 of file funcutl.cxx.

References aIdle, LINK, Modify, Timer::SetInvokeHandler(), and xEntry.

◆ ~RefEdit()

formula::RefEdit::~RefEdit ( )
virtual

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK() [1/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( AsyncFocusInHdl  ,
void *  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( AsyncFocusOutHdl  ,
void *  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( GetFocusHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [5/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( LoseFocusHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [6/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( Modify  ,
weld::Entry ,
void   
)
private

References GetFocus, KeyInput, and LoseFocus.

◆ DECL_DLLPRIVATE_LINK() [7/7]

formula::RefEdit::DECL_DLLPRIVATE_LINK ( UpdateHdl  ,
Timer ,
void   
)
private

◆ DoModify()

void formula::RefEdit::DoModify ( )
inline

Definition at line 91 of file funcutl.hxx.

References Modify.

◆ GetFocus()

void formula::RefEdit::GetFocus ( )
private

Definition at line 360 of file funcutl.cxx.

References maGetFocusHdl, and StartUpdateData().

◆ GetLabelWidgetForShrinkMode()

weld::Label * formula::RefEdit::GetLabelWidgetForShrinkMode ( )
inline

Definition at line 123 of file funcutl.hxx.

◆ GetModifyHdl()

const Link< RefEdit &, void > & formula::RefEdit::GetModifyHdl ( ) const
inline

Definition at line 141 of file funcutl.hxx.

References maModifyHdl.

Referenced by formula::FormulaDlg_Impl::SetEdSelection().

◆ GetSelection()

Selection formula::RefEdit::GetSelection ( ) const
inline

◆ GetText()

OUString formula::RefEdit::GetText ( ) const
inline

◆ GetWidget()

weld::Entry * formula::RefEdit::GetWidget ( ) const
inline

◆ GrabFocus()

void formula::RefEdit::GrabFocus ( )
inline

◆ IsValueChangedFromSaved()

bool formula::RefEdit::IsValueChangedFromSaved ( ) const
inline

Definition at line 133 of file funcutl.hxx.

◆ KeyInput()

bool formula::RefEdit::KeyInput ( const KeyEvent rKEvt)
protectedvirtual

◆ LoseFocus()

void formula::RefEdit::LoseFocus ( )
private

◆ SaveValue()

void formula::RefEdit::SaveValue ( )
inline

Definition at line 128 of file funcutl.hxx.

◆ SelectAll()

void formula::RefEdit::SelectAll ( )
inline

Definition at line 101 of file funcutl.hxx.

Referenced by formula::ArgInput::SelectAll().

◆ SetActivateHdl()

void formula::RefEdit::SetActivateHdl ( const Link< weld::Widget &, bool > &  rLink)
inline

Definition at line 142 of file funcutl.hxx.

◆ SetCursorAtLast()

void formula::RefEdit::SetCursorAtLast ( )
inline

Definition at line 111 of file funcutl.hxx.

◆ SetGetFocusHdl()

void formula::RefEdit::SetGetFocusHdl ( const Link< RefEdit &, void > &  rLink)
inline

Definition at line 138 of file funcutl.hxx.

Referenced by formula::ArgInput::InitArgInput().

◆ SetLoseFocusHdl()

void formula::RefEdit::SetLoseFocusHdl ( const Link< RefEdit &, void > &  rLink)
inline

Definition at line 139 of file funcutl.hxx.

◆ SetModifyHdl()

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

Definition at line 140 of file funcutl.hxx.

References maModifyHdl.

Referenced by formula::ArgInput::InitArgInput().

◆ SetReferences()

void formula::RefEdit::SetReferences ( IControlReferenceHandler pDlg,
weld::Label pLabelWidget 
)

◆ SetRefString()

void formula::RefEdit::SetRefString ( const OUString &  rStr)

Definition at line 289 of file funcutl.cxx.

References xEntry.

Referenced by formula::FormulaDlg_Impl::RefInputDoneAfter(), and formula::ArgInput::SetArgVal().

◆ SetRefValid()

void formula::RefEdit::SetRefValid ( bool  bValid)

Flag reference valid or invalid, which in turn changes the visual appearance of the control accordingly.

Definition at line 297 of file funcutl.cxx.

References weld::Error, weld::Normal, and xEntry.

◆ SetSelection()

void formula::RefEdit::SetSelection ( const Selection rSelection)
inline

◆ SetText()

void formula::RefEdit::SetText ( const OUString &  rStr)

Definition at line 302 of file funcutl.cxx.

References aIdle, and xEntry.

◆ StartUpdateData()

void formula::RefEdit::StartUpdateData ( )

Definition at line 308 of file funcutl.cxx.

References aIdle, and Idle::Start().

Referenced by GetFocus().

Member Data Documentation

◆ aIdle

Idle formula::RefEdit::aIdle
private

Definition at line 42 of file funcutl.hxx.

Referenced by RefEdit(), SetReferences(), SetText(), StartUpdateData(), and ~RefEdit().

◆ maActivateHdl

Link<weld::Widget&,bool> formula::RefEdit::maActivateHdl
private

Definition at line 51 of file funcutl.hxx.

Referenced by KeyInput().

◆ maGetFocusHdl

Link<RefEdit&,void> formula::RefEdit::maGetFocusHdl
private

Definition at line 48 of file funcutl.hxx.

Referenced by GetFocus().

◆ maLoseFocusHdl

Link<RefEdit&,void> formula::RefEdit::maLoseFocusHdl
private

Definition at line 49 of file funcutl.hxx.

Referenced by LoseFocus().

◆ maModifyHdl

Link<RefEdit&,void> formula::RefEdit::maModifyHdl
private

Definition at line 50 of file funcutl.hxx.

◆ mpFocusInEvent

ImplSVEvent* formula::RefEdit::mpFocusInEvent
private

Definition at line 45 of file funcutl.hxx.

Referenced by ~RefEdit().

◆ mpFocusOutEvent

ImplSVEvent* formula::RefEdit::mpFocusOutEvent
private

Definition at line 46 of file funcutl.hxx.

Referenced by ~RefEdit().

◆ pAnyRefDlg

IControlReferenceHandler* formula::RefEdit::pAnyRefDlg
private

Definition at line 43 of file funcutl.hxx.

Referenced by KeyInput(), LoseFocus(), and SetReferences().

◆ pLabelWidget

weld::Label* formula::RefEdit::pLabelWidget
private

Definition at line 44 of file funcutl.hxx.

Referenced by SetReferences().

◆ xEntry

std::unique_ptr<weld::Entry> formula::RefEdit::xEntry
protected

Definition at line 39 of file funcutl.hxx.

Referenced by RefEdit(), SetRefString(), SetRefValid(), and SetText().


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