summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-08 11:48:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-08 13:04:46 +0100
commit5298b1b32d90002be8d09fe82955550c18eae8bc (patch)
tree3af0cf62eed719894b77c99d1e0896c7ad260c25 /formula
parent3e6613964f10ff10b71188293a2e4d4d1b29944c (diff)
callcatcher: ditch some more methods
Diffstat (limited to 'formula')
-rw-r--r--formula/inc/formula/funcutl.hxx3
-rw-r--r--formula/source/ui/dlg/funcutl.cxx12
2 files changed, 1 insertions, 14 deletions
diff --git a/formula/inc/formula/funcutl.hxx b/formula/inc/formula/funcutl.hxx
index fd6c3a76032e..188e0b4e3f45 100644
--- a/formula/inc/formula/funcutl.hxx
+++ b/formula/inc/formula/funcutl.hxx
@@ -43,7 +43,6 @@ class FORMULA_DLLPUBLIC RefEdit : public Edit
private:
Timer aTimer;
IControlReferenceHandler* pAnyRefDlg; // parent dialog
- sal_Bool bSilentFocus; // for SilentGrabFocus()
DECL_LINK( UpdateHdl, Timer* );
@@ -71,8 +70,6 @@ public:
void StartUpdateData();
- void SilentGrabFocus(); // does not update any references
-
void SetRefDialog( IControlReferenceHandler* pDlg );
inline IControlReferenceHandler* GetRefDialog() { return pAnyRefDlg; }
};
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index 884ecb7e6096..b780286671f5 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -930,7 +930,6 @@ void EditBox::UpdateOldSel()
RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent, const ResId& rResId ) :
Edit( _pParent, rResId ),
pAnyRefDlg( pParent ),
- bSilentFocus( sal_False )
{
aTimer.SetTimeoutHdl( LINK( this, RefEdit, UpdateHdl ) );
aTimer.SetTimeout( SC_ENABLE_TIME );
@@ -939,7 +938,6 @@ RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent, const ResI
RefEdit::RefEdit( Window* pParent, const ResId& rResId ) :
Edit( pParent, rResId ),
pAnyRefDlg( NULL ),
- bSilentFocus( sal_False )
{
}
@@ -979,13 +977,6 @@ void RefEdit::StartUpdateData()
aTimer.Start();
}
-void RefEdit::SilentGrabFocus()
-{
- bSilentFocus = sal_True;
- GrabFocus();
- bSilentFocus = sal_False;
-}
-
void RefEdit::SetRefDialog( IControlReferenceHandler* pDlg )
{
pAnyRefDlg = pDlg;
@@ -1021,8 +1012,7 @@ void RefEdit::KeyInput( const KeyEvent& rKEvt )
void RefEdit::GetFocus()
{
Edit::GetFocus();
- if( !bSilentFocus )
- StartUpdateData();
+ StartUpdateData();
}
void RefEdit::LoseFocus()