LibreOffice Module formula (master) 1
|
#include <funcutl.hxx>
Public Member Functions | |
RefEdit (std::unique_ptr< weld::Entry > xControl) | |
weld::Entry * | GetWidget () 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::Label * | GetLabelWidgetForShrinkMode () |
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::Entry > | xEntry |
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 |
IControlReferenceHandler * | pAnyRefDlg |
weld::Label * | pLabelWidget |
ImplSVEvent * | mpFocusInEvent |
ImplSVEvent * | mpFocusOutEvent |
Link< RefEdit &, void > | maGetFocusHdl |
Link< RefEdit &, void > | maLoseFocusHdl |
Link< RefEdit &, void > | maModifyHdl |
Link< weld::Widget &, bool > | maActivateHdl |
Definition at line 36 of file funcutl.hxx.
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.
|
virtual |
Definition at line 279 of file funcutl.cxx.
References aIdle, Timer::ClearInvokeHandler(), mpFocusInEvent, mpFocusOutEvent, Application::RemoveUserEvent(), and Task::Stop().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 91 of file funcutl.hxx.
References Modify.
|
private |
Definition at line 360 of file funcutl.cxx.
References maGetFocusHdl, and StartUpdateData().
|
inline |
Definition at line 123 of file funcutl.hxx.
Definition at line 141 of file funcutl.hxx.
References maModifyHdl.
Referenced by formula::FormulaDlg_Impl::SetEdSelection().
|
inline |
Definition at line 116 of file funcutl.hxx.
Referenced by formula::FormulaDlg_Impl::RefInputStartBefore(), and formula::FormulaDlg_Impl::UpdateParaWin().
|
inline |
Definition at line 82 of file funcutl.hxx.
Referenced by formula::ArgInput::GetArgVal(), formula::FormulaDlg_Impl::RefInputStartBefore(), and formula::FormulaDlg_Impl::UpdateParaWin().
|
inline |
Definition at line 70 of file funcutl.hxx.
Referenced by formula::ArgInput::Hide(), KeyInput(), formula::FormulaDlg_Impl::RefInputStartBefore(), and formula::ArgInput::Show().
|
inline |
Definition at line 96 of file funcutl.hxx.
Referenced by formula::ArgEdit::KeyInput(), formula::FormulaDlg_Impl::RefInputDoneAfter(), formula::ParaWin::SetEdFocus(), and formula::FormulaDlg_Impl::SetEdSelection().
|
inline |
Definition at line 133 of file funcutl.hxx.
|
protectedvirtual |
Reimplemented in formula::ArgEdit.
Definition at line 341 of file funcutl.cxx.
References Link< typename Arg, typename Ret >::Call(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), GetWidget(), KEY_ESCAPE, KEY_F2, KEY_RETURN, maActivateHdl, pAnyRefDlg, and formula::IControlReferenceHandler::ReleaseFocus().
Referenced by formula::ArgEdit::KeyInput().
|
private |
Definition at line 366 of file funcutl.cxx.
References formula::IControlReferenceHandler::HideReference(), maLoseFocusHdl, and pAnyRefDlg.
|
inline |
Definition at line 128 of file funcutl.hxx.
|
inline |
Definition at line 101 of file funcutl.hxx.
Referenced by formula::ArgInput::SelectAll().
|
inline |
Definition at line 142 of file funcutl.hxx.
|
inline |
Definition at line 111 of file funcutl.hxx.
Definition at line 138 of file funcutl.hxx.
Referenced by formula::ArgInput::InitArgInput().
Definition at line 139 of file funcutl.hxx.
Definition at line 140 of file funcutl.hxx.
References maModifyHdl.
Referenced by formula::ArgInput::InitArgInput().
void formula::RefEdit::SetReferences | ( | IControlReferenceHandler * | pDlg, |
weld::Label * | pLabelWidget | ||
) |
Definition at line 313 of file funcutl.cxx.
References aIdle, Timer::ClearInvokeHandler(), LINK, pAnyRefDlg, pLabelWidget, Timer::SetInvokeHandler(), and Task::Stop().
Referenced by formula::ParaWin::InitArgInput().
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().
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.
|
inline |
Definition at line 106 of file funcutl.hxx.
References Selection::Max(), and Selection::Min().
Referenced by formula::FormulaDlg_Impl::SetEdSelection(), and formula::FormulaDlg_Impl::UpdateParaWin().
void formula::RefEdit::SetText | ( | const OUString & | rStr | ) |
Definition at line 302 of file funcutl.cxx.
void formula::RefEdit::StartUpdateData | ( | ) |
Definition at line 308 of file funcutl.cxx.
References aIdle, and Idle::Start().
Referenced by GetFocus().
|
private |
Definition at line 42 of file funcutl.hxx.
Referenced by RefEdit(), SetReferences(), SetText(), StartUpdateData(), and ~RefEdit().
|
private |
Definition at line 51 of file funcutl.hxx.
Referenced by KeyInput().
Definition at line 48 of file funcutl.hxx.
Referenced by GetFocus().
Definition at line 49 of file funcutl.hxx.
Referenced by LoseFocus().
Definition at line 50 of file funcutl.hxx.
|
private |
Definition at line 45 of file funcutl.hxx.
Referenced by ~RefEdit().
|
private |
Definition at line 46 of file funcutl.hxx.
Referenced by ~RefEdit().
|
private |
Definition at line 43 of file funcutl.hxx.
Referenced by KeyInput(), LoseFocus(), and SetReferences().
|
private |
Definition at line 44 of file funcutl.hxx.
Referenced by SetReferences().
|
protected |
Definition at line 39 of file funcutl.hxx.
Referenced by RefEdit(), SetRefString(), SetRefValid(), and SetText().