diff options
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
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; |