diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-17 20:49:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-17 20:49:14 +0100 |
commit | c842486ab0b9e1f8d51e0af23622ac88ea048124 (patch) | |
tree | f731b754308aa29bd4b2476c3cb06afcb8c1420a /formula | |
parent | b15230153ce620f2063e78e4ec61d0436b61dd10 (diff) |
restore these for the moment, still in use in sc
Change-Id: I6967a3c871338d1801d913d9bb54eba50a7660ca
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/funcutl.cxx | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 62ca9555d4f1..f833bf8c7019 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -466,6 +466,16 @@ RefEdit::RefEdit( Window* _pParent, Window* pShrinkModeLabel, WinBits nStyle ) aTimer.SetTimeout( SC_ENABLE_TIME ); } +RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent, + Window* pShrinkModeLabel, const ResId& rResId ) + : Edit( _pParent, rResId ) + , pAnyRefDlg( pParent ) + , pLabelWidget(pShrinkModeLabel) +{ + aTimer.SetTimeoutHdl( LINK( this, RefEdit, UpdateHdl ) ); + aTimer.SetTimeout( SC_ENABLE_TIME ); +} + extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefEdit(Window *pParent, VclBuilder::stringmap &) { return new RefEdit(pParent, NULL, WB_BORDER); @@ -561,7 +571,6 @@ IMPL_LINK_NOARG(RefEdit, UpdateHdl) } //class RefButton - RefButton::RefButton( Window* _pParent, WinBits nStyle ) : ImageButton( _pParent, nStyle ), aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ), @@ -574,6 +583,30 @@ RefButton::RefButton( Window* _pParent, WinBits nStyle ) : SetStartImage(); } +RefButton::RefButton( Window* _pParent, const ResId& rResId) : + ImageButton( _pParent, rResId ), + aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ), + aImgRefDone( ModuleRes( RID_BMP_REFBTN2 ) ), + aShrinkQuickHelp( ModuleRes( RID_STR_SHRINK ).toString() ), + aExpandQuickHelp( ModuleRes( RID_STR_EXPAND ).toString() ), + pAnyRefDlg( NULL ), + pRefEdit( NULL ) +{ + SetStartImage(); +} + +RefButton::RefButton( Window* _pParent, const ResId& rResId, RefEdit* pEdit, IControlReferenceHandler* _pDlg ) : + ImageButton( _pParent, rResId ), + aImgRefStart( ModuleRes( RID_BMP_REFBTN1 ) ), + aImgRefDone( ModuleRes( RID_BMP_REFBTN2 ) ), + aShrinkQuickHelp( ModuleRes( RID_STR_SHRINK ).toString() ), + aExpandQuickHelp( ModuleRes( RID_STR_EXPAND ).toString() ), + pAnyRefDlg( _pDlg ), + pRefEdit( pEdit ) +{ + SetStartImage(); +} + extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeRefButton(Window *pParent, VclBuilder::stringmap &) { return new RefButton(pParent, 0); |