28#include <bitmaps.hlst>
29#include <core_resource.hxx>
46 ParaWin& rParaWin, sal_uInt16 nArgCount)
70 bool bDoScroll =
false;
71 bool bChangeFocus =
false;
101 bDoScroll = ( nThumb >= 0 );
121 else if ( bChangeFocus )
169 OUString aPrivArgName;
243 aFxClickLink.Call(*
this);
248 if (&rControl == pBtnFx)
249 aFxFocusLink.Call(*
this);
254 if (&rControl == pEdArg)
255 aEdFocusLink.Call(*
this);
260 if (&rEdit == pEdArg)
261 aEdModifyLink.Call(*
this);
265 : xEntry(
std::move(xControl))
266 , aIdle(
"formula RefEdit Idle")
267 , pAnyRefDlg(nullptr)
268 , pLabelWidget(nullptr)
269 , mpFocusInEvent(nullptr)
270 , mpFocusOutEvent(nullptr)
293 if (
xEntry->get_text() != rStr)
333 pAnyRefDlg->HideReference();
394 mpFocusInEvent =
nullptr;
400 mpFocusOutEvent =
nullptr;
407 pAnyRefDlg->ShowReference(xEntry->get_text());
411 : xButton(
std::move(xControl))
412 , pAnyRefDlg( nullptr )
413 , pRefEdit( nullptr )
428 xButton->set_from_icon_name(RID_BMP_REFBTN1);
434 xButton->set_from_icon_name(RID_BMP_REFBTN2);
446 maClickHdl.Call(*
this);
448 pAnyRefDlg->ToggleCollapsed( pRefEdit,
this );
456 pAnyRefDlg->ReleaseFocus( pRefEdit );
464 return maActivateHdl.Call(*GetWidget());
472 maGetFocusHdl.Call(*
this);
474 pRefEdit->StartUpdateData();
479 maLoseFocusHdl.Call(*
this);
481 pRefEdit->DoModify();
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
static void RemoveUserEvent(ImplSVEvent *nUserEvent)
virtual void Start(bool bStartTimer=true) override
const vcl::KeyCode & GetKeyCode() const
void SetInvokeHandler(const Link< Timer *, void > &rLink)
void ClearInvokeHandler()
sal_uInt16 GetCode() const
sal_uInt16 GetModifier() const
virtual void set_font(const vcl::Font &rFont)=0
virtual void set_label(const OUString &rText)=0
virtual OUString get_label() const=0
Link< ColorFieldControl &, void > maModifyHdl
OUString ForResId(TranslateId aId)
constexpr sal_uInt16 KEY_RETURN
constexpr sal_uInt16 KEY_F2
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_DOWN
#define LINK(Instance, Class, Member)