summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-26 10:44:44 +0200
committerNoel Grandin <noel@peralex.com>2014-02-27 10:27:30 +0200
commit1466096e2248ef6aaa8c0d37e440c6397b59af24 (patch)
tree12ce803627f0633046664dc32683084c97048da1 /sc
parenta7e69f7c2040203f5560c003af779083cd97e10d (diff)
remove unused code ScGridWindow::HasScenarioRange
Change-Id: Ifd89a7bb3846ae3979ef378853aa9cb0b6585833
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/gridwin.hxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx38
2 files changed, 0 insertions, 40 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index 37d42da2f3ab..b862aba4187b 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -243,8 +243,6 @@ class ScGridWindow : public Window, public DropTargetHelper, public DragSourceHe
bool HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange );
- bool HasScenarioRange( sal_uInt16 nCol, sal_Int32 nRow, ScRange& rScenRange );
-
bool DropScroll( const Point& rMousePos );
sal_Int8 AcceptPrivateDrop( const AcceptDropEvent& rEvt );
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 4ff4264c3ab9..e41a07c83212 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1071,44 +1071,6 @@ void ScGridWindow::DoScenarioMenu( const ScRange& rScenRange )
CaptureMouse();
}
-bool ScGridWindow::HasScenarioRange( sal_uInt16 nCol, sal_Int32 nRow, ScRange& rScenRange )
-{
- ScDocument* pDoc = pViewData->GetDocument();
- sal_uInt16 nTab = pViewData->GetTabNo();
- sal_uInt16 nTabCount = pDoc->GetTableCount();
- if ( nTab+1<nTabCount && pDoc->IsScenario(nTab+1) && !pDoc->IsScenario(nTab) )
- {
- SCTAB i;
- ScMarkData aMarks;
- for (i=nTab+1; i<nTabCount && pDoc->IsScenario(i); i++)
- pDoc->MarkScenario( i, nTab, aMarks, false, SC_SCENARIO_SHOWFRAME );
- ScRangeList aRanges;
- aMarks.FillRangeListWithMarks( &aRanges, false );
- SCTAB nRangeCount = aRanges.size();
- for (i=0; i<nRangeCount; i++)
- {
- ScRange aRange = *aRanges[i];
- pDoc->ExtendTotalMerge( aRange );
- sal_Bool bTextBelow = ( aRange.aStart.Row() == 0 );
- sal_Bool bIsInScen = sal_False;
- if ( bTextBelow )
- {
- bIsInScen = (aRange.aStart.Col() == nCol && aRange.aEnd.Row() == nRow-1);
- }
- else
- {
- bIsInScen = (aRange.aStart.Col() == nCol && aRange.aStart.Row() == nRow+1);
- }
- if (bIsInScen)
- {
- rScenRange = aRange;
- return true;
- }
- }
- }
- return false;
-}
-
void ScGridWindow::LaunchDataSelectMenu( SCCOL nCol, SCROW nRow, bool bDataSelect )
{
delete pFilterBox;