summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-21 12:12:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-03 03:56:12 +0100
commit61d43ea6aaaa953e2243548932e03649bb36f7b4 (patch)
treedc600be92eea4bb84f1b99595b4cd22d45166709 /sc/source
parentc65e7ce3897fd9f9524e23039d39fad6d52fca28 (diff)
remove commented out methods and parameters in ScAnyRefDlg
Change-Id: Ie9e9baf42c93353a68ef35b456cd621bf42344c5
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/inc/IAnyRefDialog.hxx2
-rw-r--r--sc/source/ui/inc/anyrefdg.hxx19
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx20
3 files changed, 15 insertions, 26 deletions
diff --git a/sc/source/ui/inc/IAnyRefDialog.hxx b/sc/source/ui/inc/IAnyRefDialog.hxx
index afd90f5305f3..eddecd8f8091 100644
--- a/sc/source/ui/inc/IAnyRefDialog.hxx
+++ b/sc/source/ui/inc/IAnyRefDialog.hxx
@@ -53,7 +53,7 @@ public:
virtual sal_Bool IsDocAllowed( SfxObjectShell* pDocSh ) const = 0;
virtual void AddRefEntry() = 0;
virtual void SetActive() = 0;
- virtual void ViewShellChanged( ScTabViewShell* pScViewShell ) = 0;
+ virtual void ViewShellChanged() = 0;
};
#endif // SC_IANYREFDIALOG_HXX_INCLUDED
diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx
index b95aa084a26f..cd267191063f 100644
--- a/sc/source/ui/inc/anyrefdg.hxx
+++ b/sc/source/ui/inc/anyrefdg.hxx
@@ -98,7 +98,7 @@ public:
bool DoClose( sal_uInt16 nId );
void SetDispatcherLock( bool bLock );
void EnableSpreadsheets( bool bFlag = true, bool bChildren = true );
- void ViewShellChanged( ScTabViewShell* pScViewShell );
+ void ViewShellChanged();
static void enableInput(bool _bInput);
@@ -112,7 +112,7 @@ public:
//============================================================================
-class SC_DLLPUBLIC ScRefHandler : //public SfxModelessDialog,
+class SC_DLLPUBLIC ScRefHandler :
public IAnyRefDialog
{
Window & m_rWindow;
@@ -141,9 +141,6 @@ protected:
void SetDispatcherLock( bool bLock );
- //Overwrite TWindow will implemented by ScRefHdlrImplBase
- //virtual long PreNotify( NotifyEvent& rNEvt );
-
virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
virtual void RefInputDone( sal_Bool bForced = false );
void ShowSimpleReference( const XubString& rStr );
@@ -155,8 +152,7 @@ protected:
void stateChanged(const StateChangedType nStateChange, const bool bBindRef);
public:
- ScRefHandler( Window &rWindow, SfxBindings* pB/*, SfxChildWindow* pCW,
- Window* pParent, sal_uInt16 nResId*/, bool bBindRef );
+ ScRefHandler( Window &rWindow, SfxBindings* pB, bool bBindRef );
virtual ~ScRefHandler();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) = 0;
@@ -172,14 +168,10 @@ public:
virtual void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
virtual void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
- virtual void ViewShellChanged( ScTabViewShell* pScViewShell );
+ virtual void ViewShellChanged();
void SwitchToDocument();
- //SfxBindings& GetBindings();
virtual void SetActive() = 0;
-// virtual sal_Bool Close();
- //Overwrite TWindow will implemented by ScRefHdlrImplBase
- //virtual void StateChanged( StateChangedType nStateChange );
public:
bool EnterRefMode();
@@ -207,7 +199,6 @@ template< class TWindow, bool bBindRef = true >
class ScRefHdlrImplBase: public TWindow, public ScRefHandler
{
public:
- //Overwrite TWindow
virtual long PreNotify( NotifyEvent& rNEvt );
virtual void StateChanged( StateChangedType nStateChange );
@@ -231,7 +222,7 @@ ScRefHdlrImplBase<TWindow, bBindRef>::ScRefHdlrImplBase( TBindings* pB, TChildWi
template<class TWindow, bool bBindRef >
template<class TParentWindow, class TResId, class TArg>
-ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent, TResId nResIdP, const TArg &rArg, SfxBindings *pB /*= NULL*/ )
+ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent, TResId nResIdP, const TArg &rArg, SfxBindings *pB )
:TWindow( pParent, ScResId(static_cast<sal_uInt16>( nResIdP )), rArg ), ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef ){}
template<class TWindow, bool bBindRef >
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 9595cf37b08c..9dd9fb96a187 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -105,8 +105,8 @@ void ScFormulaReferenceHelper::enableInput( bool bEnable )
Window *pParent=pWin->GetParent();
if(pParent)
{
- pParent->EnableInput(bEnable,true /* sal_False */);
- if(true /*bChildren*/)
+ pParent->EnableInput(bEnable,true);
+ if(true)
pViewSh->EnableRefInput(bEnable);
}
}
@@ -181,7 +181,7 @@ bool ScFormulaReferenceHelper::ParseWithNames( ScRangeList& rRanges, const Strin
// -----------------------------------------------------------------------------
void ScFormulaReferenceHelper::ShowFormulaReference( const XubString& rStr )
{
- if( /*!pRefEdit &&*/ bEnableColorRef)
+ if( bEnableColorRef)
{
bHighLightRef=true;
ScViewData* pViewData=ScDocShell::GetViewData();
@@ -244,7 +244,7 @@ void ScFormulaReferenceHelper::HideReference( bool bDoneRefMode )
{
ScViewData* pViewData=ScDocShell::GetViewData();
- if( pViewData && /*!pRefEdit &&*/ bHighLightRef && bEnableColorRef)
+ if( pViewData && bHighLightRef && bEnableColorRef)
{
ScTabViewShell* pTabViewShell=pViewData->GetViewShell();
@@ -263,7 +263,7 @@ void ScFormulaReferenceHelper::HideReference( bool bDoneRefMode )
// -----------------------------------------------------------------------------
void ScFormulaReferenceHelper::ShowReference( const XubString& rStr )
{
- if( /*!pRefEdit &&*/ bEnableColorRef )
+ if( bEnableColorRef )
{
if( rStr.Search('(')!=STRING_NOTFOUND ||
rStr.Search('+')!=STRING_NOTFOUND ||
@@ -574,7 +574,7 @@ void ScFormulaReferenceHelper::SetDispatcherLock( bool bLock )
// for that view (ScTabViewShell::CreateRefDialog)
}
// -----------------------------------------------------------------------------
-void ScFormulaReferenceHelper::ViewShellChanged(ScTabViewShell* /* pScViewShell */)
+void ScFormulaReferenceHelper::ViewShellChanged()
{
enableInput( false );
@@ -669,16 +669,14 @@ static void lcl_HideAllReferences()
// class ScRefHandler
//----------------------------------------------------------------------------
-ScRefHandler::ScRefHandler( Window &rWindow, SfxBindings* pB/*, SfxChildWindow* pCW,
- Window* pParent, sal_uInt16 nResId*/, bool bBindRef )
- : //SfxModelessDialog ( pB, pCW, pParent, ScResId( nResId ) ),
+ScRefHandler::ScRefHandler( Window &rWindow, SfxBindings* pB, bool bBindRef ):
m_rWindow( rWindow ),
m_bInRefMode( false ),
m_aHelper(this,pB),
pMyBindings( pB ),
pActiveWin(NULL)
{
- m_aHelper.SetWindow(/*this*/&m_rWindow);
+ m_aHelper.SetWindow(&m_rWindow);
if(m_rWindow.GetHelpId().isEmpty()) //Hack, da im SfxModelessDialog die HelpId
m_rWindow.SetHelpId(m_rWindow.GetUniqueId()); //fuer einen ModelessDialog entfernt und
//in eine UniqueId gewandelt wird, machen
@@ -833,7 +831,7 @@ void ScRefHandler::SetDispatcherLock( bool bLock )
void ScRefHandler::ViewShellChanged()
{
- m_aHelper.ViewShellChanged(pScViewShell);
+ m_aHelper.ViewShellChanged();
}
//----------------------------------------------------------------------------