diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-08 14:41:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-09 07:28:25 +0100 |
commit | 313744d4f23f242f5ee979d229fe394211ff7ffd (patch) | |
tree | 7c2e83e0eb5eb2b133c0eaa1a61bb179b554f14d /sc/source | |
parent | ccb6b8967ce3d84bb141379e51a339544f753446 (diff) |
loplugin:unusedmethods
Change-Id: I242f56f2bc5dc8fce6db1ba8f1f8269da4fec0fa
Reviewed-on: https://gerrit.libreoffice.org/68938
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 31 | ||||
-rw-r--r-- | sc/source/ui/inc/AccessibleSpreadsheet.hxx | 2 |
2 files changed, 0 insertions, 33 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 4370cbb66db2..aeef1aec99c8 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -1367,37 +1367,6 @@ ScDocument* ScAccessibleSpreadsheet::GetDocument(ScTabViewShell* pViewShell) return pDoc; } -tools::Rectangle ScAccessibleSpreadsheet::GetVisArea(ScTabViewShell* pViewShell, ScSplitPos eSplitPos) -{ - tools::Rectangle aVisArea; - if (pViewShell) - { - vcl::Window* pWindow = pViewShell->GetWindowByPos(eSplitPos); - if (pWindow) - { - aVisArea.SetPos(pViewShell->GetViewData().GetPixPos(eSplitPos)); - aVisArea.SetSize(pWindow->GetSizePixel()); - } - } - return aVisArea; -} - -tools::Rectangle ScAccessibleSpreadsheet::GetVisCells(const tools::Rectangle& rVisArea) -{ - if (mpViewShell) - { - SCCOL nStartX, nEndX; - SCROW nStartY, nEndY; - - mpViewShell->GetViewData().GetPosFromPixel( 1, 1, meSplitPos, nStartX, nStartY); - mpViewShell->GetViewData().GetPosFromPixel( rVisArea.GetWidth(), rVisArea.GetHeight(), meSplitPos, nEndX, nEndY); - - return tools::Rectangle(nStartX, nStartY, nEndX, nEndY); - } - else - return tools::Rectangle(); -} - sal_Bool SAL_CALL ScAccessibleSpreadsheet::selectRow( sal_Int32 row ) { SolarMutexGuard g; diff --git a/sc/source/ui/inc/AccessibleSpreadsheet.hxx b/sc/source/ui/inc/AccessibleSpreadsheet.hxx index 543526bc596f..7330f4743734 100644 --- a/sc/source/ui/inc/AccessibleSpreadsheet.hxx +++ b/sc/source/ui/inc/AccessibleSpreadsheet.hxx @@ -232,8 +232,6 @@ private: void SelectCell(sal_Int32 nRow, sal_Int32 nCol, bool bDeselect); static ScDocument* GetDocument(ScTabViewShell* pViewShell); - static tools::Rectangle GetVisArea(ScTabViewShell* pViewShell, ScSplitPos eSplitPos); - tools::Rectangle GetVisCells(const tools::Rectangle& rVisArea); typedef std::vector<ScMyAddress> VEC_MYADDR; typedef std::map<ScMyAddress,css::uno::Reference< css::accessibility::XAccessible > > |