summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-10-05 11:48:37 +0200
committerNoel Grandin <noel@peralex.com>2016-10-05 11:48:37 +0200
commit315c06d79256ddcc50c4817a2c93c161a01c9f8d (patch)
tree8d46e0efa24ed21fc82b4db44946ee22e148598d
parentc47c1e3551e9bdfb92bbbb8bc87b5e2314449efd (diff)
loplugin:unnecessaryoverride in sc
Change-Id: I149e65eb605d405be54c7340ff2e668cc18c7552
-rw-r--r--sc/inc/AccessibleFilterMenu.hxx3
-rw-r--r--sc/qa/unit/functions_test.cxx7
-rw-r--r--sc/source/ui/Accessibility/AccessibleFilterMenu.cxx5
-rw-r--r--sc/source/ui/app/inputwin.cxx10
-rw-r--r--sc/source/ui/dbgui/textimportoptions.cxx5
-rw-r--r--sc/source/ui/drawfunc/fuconstr.cxx5
-rw-r--r--sc/source/ui/drawfunc/fusel.cxx30
-rw-r--r--sc/source/ui/inc/acredlin.hxx2
-rw-r--r--sc/source/ui/inc/fuconstr.hxx1
-rw-r--r--sc/source/ui/inc/fusel.hxx4
-rw-r--r--sc/source/ui/inc/inputwin.hxx3
-rw-r--r--sc/source/ui/inc/linkarea.hxx2
-rw-r--r--sc/source/ui/inc/protectiondlg.hxx2
-rw-r--r--sc/source/ui/inc/retypepassdlg.hxx2
-rw-r--r--sc/source/ui/inc/textimportoptions.hxx1
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx5
-rw-r--r--sc/source/ui/miscdlgs/linkarea.cxx5
-rw-r--r--sc/source/ui/miscdlgs/protectiondlg.cxx5
-rw-r--r--sc/source/ui/miscdlgs/retypepassdlg.cxx5
-rw-r--r--sc/source/ui/vba/vbaworksheets.cxx6
-rw-r--r--sc/source/ui/vba/vbaworksheets.hxx3
21 files changed, 0 insertions, 111 deletions
diff --git a/sc/inc/AccessibleFilterMenu.hxx b/sc/inc/AccessibleFilterMenu.hxx
index 9955d7c16741..fba3061cd555 100644
--- a/sc/inc/AccessibleFilterMenu.hxx
+++ b/sc/inc/AccessibleFilterMenu.hxx
@@ -72,9 +72,6 @@ public:
/// XAccessibleContext
- virtual OUString SAL_CALL getAccessibleName()
- throw (css::uno::RuntimeException, std::exception) override;
-
virtual sal_Int32 SAL_CALL getAccessibleChildCount()
throw (css::uno::RuntimeException, std::exception) override;
diff --git a/sc/qa/unit/functions_test.cxx b/sc/qa/unit/functions_test.cxx
index 3362dfd5268a..35387c79030d 100644
--- a/sc/qa/unit/functions_test.cxx
+++ b/sc/qa/unit/functions_test.cxx
@@ -23,8 +23,6 @@ public:
virtual void setUp() override;
- virtual void tearDown() override;
-
virtual bool load(
const OUString &rFilter,
const OUString &rURL,
@@ -59,11 +57,6 @@ void FunctionsTest::setUp()
CPPUNIT_ASSERT_MESSAGE("no calc component!", m_xCalcComponent.is());
}
-void FunctionsTest::tearDown()
-{
- ScBootstrapFixture::tearDown();
-}
-
bool FunctionsTest::load(const OUString& rFilter, const OUString& rURL,
const OUString& rUserData, SfxFilterFlags nFilterFlags,
SotClipboardFormatId nClipboardID,
diff --git a/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx b/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx
index 15a63a2fb9b8..4078549c20d2 100644
--- a/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx
+++ b/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx
@@ -122,11 +122,6 @@ sal_Int32 ScAccessibleFilterMenu::getBackground()
// XAccessibleContext
-OUString ScAccessibleFilterMenu::getAccessibleName() throw (RuntimeException, std::exception)
-{
- return ScAccessibleContextBase::getAccessibleName();
-}
-
sal_Int32 ScAccessibleFilterMenu::getAccessibleChildCount()
throw (RuntimeException, std::exception)
{
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 5f875fb59d9d..e779989951d8 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -677,16 +677,6 @@ void ScInputWindow::SetFormulaMode( bool bSet )
aTextWindow.SetFormulaMode(bSet);
}
-void ScInputWindow::SetText( const OUString& rString )
-{
- ToolBox::SetText(rString);
-}
-
-OUString ScInputWindow::GetText() const
-{
- return ToolBox::GetText();
-}
-
bool ScInputWindow::IsInputActive()
{
return aTextWindow.IsInputActive();
diff --git a/sc/source/ui/dbgui/textimportoptions.cxx b/sc/source/ui/dbgui/textimportoptions.cxx
index 69d6ffc4dc71..7c93e0777130 100644
--- a/sc/source/ui/dbgui/textimportoptions.cxx
+++ b/sc/source/ui/dbgui/textimportoptions.cxx
@@ -52,11 +52,6 @@ void ScTextImportOptionsDlg::dispose()
}
-short ScTextImportOptionsDlg::Execute()
-{
- return ModalDialog::Execute();
-}
-
LanguageType ScTextImportOptionsDlg::getLanguageType() const
{
if (m_pRbAutomatic->IsChecked())
diff --git a/sc/source/ui/drawfunc/fuconstr.cxx b/sc/source/ui/drawfunc/fuconstr.cxx
index f8920c2dd0d8..343262832353 100644
--- a/sc/source/ui/drawfunc/fuconstr.cxx
+++ b/sc/source/ui/drawfunc/fuconstr.cxx
@@ -58,11 +58,6 @@ FuConstruct::~FuConstruct()
{
}
-sal_uInt8 FuConstruct::Command(const CommandEvent& rCEvt)
-{
- return FuDraw::Command( rCEvt );
-}
-
// Calculate and return offset at current zoom. rInOutPos is adjusted by
// the calculated offset. rInOutPos now points to the position than when
// scaled to 100% actually would be at the position you see at the current zoom
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx
index 9cc6382e58f0..aa0ff4b41bdd 100644
--- a/sc/source/ui/drawfunc/fusel.cxx
+++ b/sc/source/ui/drawfunc/fusel.cxx
@@ -79,11 +79,6 @@ FuSelection::~FuSelection()
{
}
-sal_uInt8 FuSelection::Command(const CommandEvent& rCEvt)
-{
- return FuDraw::Command( rCEvt );
-}
-
/*************************************************************************
|*
|* MouseButtonDown-event
@@ -572,29 +567,4 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt)
return bReturn;
}
-/*************************************************************************
-|*
-|* Function aktivieren
-|*
-\************************************************************************/
-
-void FuSelection::Activate()
-{
- FuDraw::Activate();
-}
-
-/*************************************************************************
-|*
-|* Function deaktivieren
-|*
-\************************************************************************/
-
-void FuSelection::Deactivate()
-{
- /**************************************************************************
- * Hide Cursor
- **************************************************************************/
- FuDraw::Deactivate();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index 8d036f7adf85..c12f31668e93 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -167,8 +167,6 @@ public:
void ReInit(ScViewData* ptrViewData);
- virtual bool PreNotify( NotifyEvent& rNEvt ) override;
-
void Initialize (SfxChildWinInfo* pInfo);
virtual void FillInfo(SfxChildWinInfo&) const override;
diff --git a/sc/source/ui/inc/fuconstr.hxx b/sc/source/ui/inc/fuconstr.hxx
index 18f940a2a60a..ddb741866107 100644
--- a/sc/source/ui/inc/fuconstr.hxx
+++ b/sc/source/ui/inc/fuconstr.hxx
@@ -35,7 +35,6 @@ class FuConstruct : public FuDraw
virtual bool MouseMove(const MouseEvent& rMEvt) override;
virtual bool MouseButtonUp(const MouseEvent& rMEvt) override;
virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
- virtual sal_uInt8 Command(const CommandEvent& rCEvt) override;
bool SimpleMouseButtonUp(const MouseEvent& rMEvt);
diff --git a/sc/source/ui/inc/fusel.hxx b/sc/source/ui/inc/fusel.hxx
index bae43ecf886e..63c2cf19d5e8 100644
--- a/sc/source/ui/inc/fusel.hxx
+++ b/sc/source/ui/inc/fusel.hxx
@@ -36,10 +36,6 @@ public:
virtual bool MouseMove(const MouseEvent& rMEvt) override;
virtual bool MouseButtonUp(const MouseEvent& rMEvt) override;
virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
- virtual sal_uInt8 Command(const CommandEvent& rCEvt) override;
-
- virtual void Activate() override;
- virtual void Deactivate() override;
void ActivateNoteHandles(SdrObject* pObj);
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index 63318f20931f..a48d4fec87f8 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -265,9 +265,6 @@ public:
virtual void MouseMove( const MouseEvent& rMEvt ) override;
protected:
- virtual void SetText( const OUString& rString ) override;
- virtual OUString GetText() const override;
-
static bool UseSubTotal( ScRangeList* pRangeList );
bool IsPointerAtResizePos();
diff --git a/sc/source/ui/inc/linkarea.hxx b/sc/source/ui/inc/linkarea.hxx
index f199e42c0621..86037048d324 100644
--- a/sc/source/ui/inc/linkarea.hxx
+++ b/sc/source/ui/inc/linkarea.hxx
@@ -71,8 +71,6 @@ public:
const OUString& rOptions, const OUString& rSource,
sal_uLong nRefresh );
- virtual short Execute() override; // overwritten to set dialog parent
-
OUString GetURL();
OUString GetFilter(); // may be empty
OUString GetOptions(); // filter options
diff --git a/sc/source/ui/inc/protectiondlg.hxx b/sc/source/ui/inc/protectiondlg.hxx
index fb1948491b0d..752fee048706 100644
--- a/sc/source/ui/inc/protectiondlg.hxx
+++ b/sc/source/ui/inc/protectiondlg.hxx
@@ -40,8 +40,6 @@ public:
virtual ~ScTableProtectionDlg() override;
virtual void dispose() override;
- virtual short Execute() override;
-
void SetDialogData(const ScTableProtection& rData);
void WriteData(ScTableProtection& rData) const;
diff --git a/sc/source/ui/inc/retypepassdlg.hxx b/sc/source/ui/inc/retypepassdlg.hxx
index bced3fbd507e..54da7647411a 100644
--- a/sc/source/ui/inc/retypepassdlg.hxx
+++ b/sc/source/ui/inc/retypepassdlg.hxx
@@ -105,8 +105,6 @@ public:
virtual ~ScRetypePassInputDlg() override;
virtual void dispose() override;
- virtual short Execute() override;
-
bool IsRemovePassword() const;
OUString GetNewPassword() const;
diff --git a/sc/source/ui/inc/textimportoptions.hxx b/sc/source/ui/inc/textimportoptions.hxx
index 934df868eb5e..9a1e005986c7 100644
--- a/sc/source/ui/inc/textimportoptions.hxx
+++ b/sc/source/ui/inc/textimportoptions.hxx
@@ -32,7 +32,6 @@ public:
ScTextImportOptionsDlg(vcl::Window* pParent);
virtual ~ScTextImportOptionsDlg() override;
virtual void dispose() override;
- virtual short Execute() override;
LanguageType getLanguageType() const;
bool isDateConversionSet() const;
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index 7180c3c05a3b..0a4923d6ea10 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -735,11 +735,6 @@ SvTreeListEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionC
return pEntry;
}
-bool ScAcceptChgDlg::PreNotify( NotifyEvent& rNEvt )
-{
- return SfxModelessDialog::PreNotify(rNEvt);
-}
-
void ScAcceptChgDlg::UpdateView()
{
SvTreeListEntry* pParent=nullptr;
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx
index 37a6020c168b..67bc379f9c7f 100644
--- a/sc/source/ui/miscdlgs/linkarea.cxx
+++ b/sc/source/ui/miscdlgs/linkarea.cxx
@@ -78,11 +78,6 @@ void ScLinkedAreaDlg::dispose()
ModalDialog::dispose();
}
-short ScLinkedAreaDlg::Execute()
-{
- return ModalDialog::Execute();
-}
-
#define FILTERNAME_HTML "HTML (StarCalc)"
#define FILTERNAME_QUERY "calc_HTML_WebQuery"
diff --git a/sc/source/ui/miscdlgs/protectiondlg.cxx b/sc/source/ui/miscdlgs/protectiondlg.cxx
index 9375f3301073..ddfd337a220b 100644
--- a/sc/source/ui/miscdlgs/protectiondlg.cxx
+++ b/sc/source/ui/miscdlgs/protectiondlg.cxx
@@ -65,11 +65,6 @@ void ScTableProtectionDlg::dispose()
ModalDialog::dispose();
}
-short ScTableProtectionDlg::Execute()
-{
- return ModalDialog::Execute();
-}
-
void ScTableProtectionDlg::SetDialogData(const ScTableProtection& rData)
{
for (sal_uInt16 i = 0; i < nOptionCount; ++i)
diff --git a/sc/source/ui/miscdlgs/retypepassdlg.cxx b/sc/source/ui/miscdlgs/retypepassdlg.cxx
index 1a9a8e166f33..4ab1183674c0 100644
--- a/sc/source/ui/miscdlgs/retypepassdlg.cxx
+++ b/sc/source/ui/miscdlgs/retypepassdlg.cxx
@@ -343,11 +343,6 @@ void ScRetypePassInputDlg::dispose()
ModalDialog::dispose();
}
-short ScRetypePassInputDlg::Execute()
-{
- return ModalDialog::Execute();
-}
-
bool ScRetypePassInputDlg::IsRemovePassword() const
{
return m_pBtnRemovePassword->IsChecked();
diff --git a/sc/source/ui/vba/vbaworksheets.cxx b/sc/source/ui/vba/vbaworksheets.cxx
index ccb1cdd40e21..7340fc26ff03 100644
--- a/sc/source/ui/vba/vbaworksheets.cxx
+++ b/sc/source/ui/vba/vbaworksheets.cxx
@@ -462,12 +462,6 @@ ScVbaWorksheets::Item(const uno::Any& Index, const uno::Any& Index2)
return ScVbaWorksheets_BASE::Item( Index, Index2 );
}
-uno::Any
-ScVbaWorksheets::getItemByStringIndex( const OUString& sIndex ) throw (uno::RuntimeException)
-{
- return ScVbaWorksheets_BASE::getItemByStringIndex( sIndex );
-}
-
OUString
ScVbaWorksheets::getServiceImplName()
{
diff --git a/sc/source/ui/vba/vbaworksheets.hxx b/sc/source/ui/vba/vbaworksheets.hxx
index 286f68e68a39..e8a13e7e2d00 100644
--- a/sc/source/ui/vba/vbaworksheets.hxx
+++ b/sc/source/ui/vba/vbaworksheets.hxx
@@ -35,9 +35,6 @@ class ScVbaWorksheets : public ScVbaWorksheets_BASE
{
css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::sheet::XSpreadsheets > m_xSheets;
-protected:
- // ScVbaWorksheets_BASE
- virtual css::uno::Any getItemByStringIndex( const OUString& sIndex ) throw (css::uno::RuntimeException) override;
public:
ScVbaWorksheets( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XIndexAccess >& xSheets, const css::uno::Reference< css::frame::XModel >& xModel );
ScVbaWorksheets( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XEnumerationAccess >& xEnum, const css::uno::Reference< css::frame::XModel >& xModel );