diff options
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/optsolver.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cursuno.cxx | 18 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh3.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 4 |
12 files changed, 28 insertions, 28 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index e2a7bc0d9453..001aa27bb664 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -339,7 +339,7 @@ void ScInputHandler::UpdateRange( sal_uInt16 nIndex, const ScRange& rNew ) ColorData nNewColor = pRangeFindList->FindColor( rNew, nIndex ); ScRange aJustified = rNew; - aJustified.Justify(); // Always display Ref in the Formula the right way + aJustified.PutInOrder(); // Always display Ref in the Formula the right way ScDocument* pDoc = pDocView->GetViewData().GetDocument(); const ScAddress::Details aAddrDetails( pDoc, aCursorPos ); OUString aNewStr(aJustified.Format(rData.nFlags, pDoc, aAddrDetails)); diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index c135b531975a..754ba8b1efa8 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -1723,7 +1723,7 @@ void ScModule::SetReference( const ScRange& rRef, ScDocument* pDoc, // In RefDialogs we also trigger the ZoomIn, if the Ref's Start and End are different ScRange aNew = rRef; - aNew.Justify(); // Always in the right direction + aNew.PutInOrder(); // Always in the right direction if( nCurRefDlgId ) { diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index 042201ded1c8..ce775508dab0 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -2170,7 +2170,7 @@ ScExternalRefCache::TokenArrayRef ScExternalRefManager::getDoubleRefTokensFromSr } ScRange aRange(rRange); - aRange.Justify(); + aRange.PutInOrder(); SCTAB nTabSpan = aRange.aEnd.Tab() - aRange.aStart.Tab(); vector<ScExternalRefCache::SingleRangeData> aCacheData; diff --git a/sc/source/ui/miscdlgs/optsolver.cxx b/sc/source/ui/miscdlgs/optsolver.cxx index 7f960aca2994..bb55b6f134e4 100644 --- a/sc/source/ui/miscdlgs/optsolver.cxx +++ b/sc/source/ui/miscdlgs/optsolver.cxx @@ -896,7 +896,7 @@ bool ScOptSolverDlg::CallSolver() // return true -> close dialog after cal for ( size_t nRangePos=0, nRange = aVarRanges.size(); nRangePos < nRange; ++nRangePos ) { ScRange aRange(*aVarRanges[ nRangePos ] ); - aRange.Justify(); + aRange.PutInOrder(); SCTAB nTab = aRange.aStart.Tab(); // resolve into single cells diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index b7922d608ee6..6f0a83569789 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -1414,7 +1414,7 @@ ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, const ScRange& rR) : --m_refCount; ScRange aCellRange(rR); - aCellRange.Justify(); + aCellRange.PutInOrder(); aRanges.Append( aCellRange ); if (pDocShell) // Null if created with createInstance @@ -1705,7 +1705,7 @@ void ScCellRangesBase::InitInsertRange(ScDocShell* pDocSh, const ScRange& rR) pDocShell = pDocSh; ScRange aCellRange(rR); - aCellRange.Justify(); + aCellRange.PutInOrder(); aRanges.RemoveAll(); aRanges.Append( aCellRange ); @@ -1727,7 +1727,7 @@ void ScCellRangesBase::AddRange(const ScRange& rRange, const bool bMergeRanges) void ScCellRangesBase::SetNewRange(const ScRange& rNew) { ScRange aCellRange(rNew); - aCellRange.Justify(); + aCellRange.PutInOrder(); aRanges.RemoveAll(); aRanges.Append( aCellRange ); @@ -4792,7 +4792,7 @@ ScCellRangeObj::ScCellRangeObj(ScDocShell* pDocSh, const ScRange& rR) : pRangePropSet( lcl_GetRangePropertySet() ), aRange( rR ) { - aRange.Justify(); // Anfang / Ende richtig + aRange.PutInOrder(); // Anfang / Ende richtig } ScCellRangeObj::~ScCellRangeObj() @@ -4809,7 +4809,7 @@ void ScCellRangeObj::RefChanged() { const ScRange* pFirst = rRanges[0]; aRange = ScRange(*pFirst); - aRange.Justify(); + aRange.PutInOrder(); } } diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index d98cea5b3c18..755b7aa8477f 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -3125,7 +3125,7 @@ public: ScRange r; bool bExternal = ScRefTokenHelper::isExternalRef(pToken); ScRefTokenHelper::getRangeFromToken(r, pToken, ScAddress(), bExternal); - r.Justify(); + r.PutInOrder(); mnCols += r.aEnd.Col() - r.aStart.Col() + 1; mnRows += r.aEnd.Row() - r.aStart.Row() + 1; } diff --git a/sc/source/ui/unoobj/cursuno.cxx b/sc/source/ui/unoobj/cursuno.cxx index 285042f76ff3..fd30a8a048c1 100644 --- a/sc/source/ui/unoobj/cursuno.cxx +++ b/sc/source/ui/unoobj/cursuno.cxx @@ -100,7 +100,7 @@ void SAL_CALL ScCellCursorObj::collapseToCurrentRegion() throw(uno::RuntimeExcep OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ] ); - aOneRange.Justify(); + aOneRange.PutInOrder(); ScDocShell* pDocSh = GetDocShell(); if ( pDocSh ) { @@ -126,7 +126,7 @@ void SAL_CALL ScCellCursorObj::collapseToCurrentArray() OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ] ); - aOneRange.Justify(); + aOneRange.PutInOrder(); ScAddress aCursor(aOneRange.aStart); // use the start address of the range ScDocShell* pDocSh = GetDocShell(); @@ -210,7 +210,7 @@ void SAL_CALL ScCellCursorObj::collapseToSize( sal_Int32 nColumns, sal_Int32 nRo OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aNewRange( *rRanges[ 0 ] ); - aNewRange.Justify(); //! wirklich? + aNewRange.PutInOrder(); //! wirklich? long nEndX = aNewRange.aStart.Col() + nColumns - 1; long nEndY = aNewRange.aStart.Row() + nRows - 1; @@ -223,7 +223,7 @@ void SAL_CALL ScCellCursorObj::collapseToSize( sal_Int32 nColumns, sal_Int32 nRo aNewRange.aEnd.SetCol((SCCOL)nEndX); aNewRange.aEnd.SetRow((SCROW)nEndY); - aNewRange.Justify(); //! wirklich? + aNewRange.PutInOrder(); //! wirklich? SetNewRange( aNewRange ); } @@ -299,7 +299,7 @@ void SAL_CALL ScCellCursorObj::gotoStart() throw(uno::RuntimeException, std::exc OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ]); - aOneRange.Justify(); + aOneRange.PutInOrder(); ScDocShell* pDocSh = GetDocShell(); if ( pDocSh ) { @@ -327,7 +327,7 @@ void SAL_CALL ScCellCursorObj::gotoEnd() throw(uno::RuntimeException, std::excep OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ] ); - aOneRange.Justify(); + aOneRange.PutInOrder(); ScDocShell* pDocSh = GetDocShell(); if ( pDocSh ) { @@ -352,7 +352,7 @@ void SAL_CALL ScCellCursorObj::gotoNext() throw(uno::RuntimeException, std::exce OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ] ); - aOneRange.Justify(); + aOneRange.PutInOrder(); ScAddress aCursor(aOneRange.aStart); // bei Block immer den Start nehmen ScMarkData aMark; // not used with bMarked=FALSE @@ -374,7 +374,7 @@ void SAL_CALL ScCellCursorObj::gotoPrevious() throw(uno::RuntimeException, std:: OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ] ); - aOneRange.Justify(); + aOneRange.PutInOrder(); ScAddress aCursor(aOneRange.aStart); // bei Block immer den Start nehmen ScMarkData aMark; // not used with bMarked=FALSE @@ -396,7 +396,7 @@ void SAL_CALL ScCellCursorObj::gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nR const ScRangeList& rRanges = GetRangeList(); OSL_ENSURE( rRanges.size() == 1, "Range? Ranges?" ); ScRange aOneRange( *rRanges[ 0 ] ); - aOneRange.Justify(); + aOneRange.PutInOrder(); if ( aOneRange.aStart.Col() + nColumnOffset >= 0 && aOneRange.aEnd.Col() + nColumnOffset <= MAXCOL && diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 5acc912fa2af..c6ba729d9f2c 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5068,8 +5068,8 @@ static void lcl_PaintRefChanged( ScDocShell* pDocSh, const ScRange& rOldUn, cons ScRange aOld = rOldUn; ScRange aNew = rNewUn; - aOld.Justify(); - aNew.Justify(); + aOld.PutInOrder(); + aNew.PutInOrder(); if ( aOld.aStart == aOld.aEnd ) //! Tab ignorieren? pDocSh->GetDocument().ExtendMerge(aOld); @@ -5255,7 +5255,7 @@ void ScGridWindow::RFMouseMove( const MouseEvent& rMEvt, bool bUp ) } if ( bUp ) - aNew.Justify(); // beim ButtonUp wieder richtigherum + aNew.PutInOrder(); // beim ButtonUp wieder richtigherum if ( aNew != aOld ) { diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 4357f52c46df..9a0dfd6d68e7 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -855,7 +855,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI ScRangeFindData& rData = pRangeFinder->GetObject(i); ScRange aRef = rData.aRef; - aRef.Justify(); + aRef.PutInOrder(); if ( aRef.aStart.Tab() >= nTab && aRef.aEnd.Tab() <= nTab ) aOutputData.DrawRefMark( aRef.aStart.Col(), aRef.aStart.Row(), aRef.aEnd.Col(), aRef.aEnd.Row(), diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 3229f08d8446..80f7858f6363 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2028,7 +2028,7 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO void ScTabView::PaintRangeFinderEntry (ScRangeFindData* pData, const SCTAB nTab) { ScRange aRef = pData->aRef; - aRef.Justify(); // Justify fuer die Abfragen unten + aRef.PutInOrder(); // PutInOrder fuer die Abfragen unten if ( aRef.aStart == aRef.aEnd ) //! Tab ignorieren? aViewData.GetDocument()->ExtendMerge(aRef); diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx index 8fdce4451234..f0fc87f34a63 100644 --- a/sc/source/ui/view/tabvwsh3.cxx +++ b/sc/source/ui/view/tabvwsh3.cxx @@ -360,9 +360,9 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) { ScRange aOldMark; rMark.GetMarkArea( aOldMark ); - aOldMark.Justify(); + aOldMark.PutInOrder(); ScRange aCurrent = aScRange; - aCurrent.Justify(); + aCurrent.PutInOrder(); bNothing = ( aCurrent == aOldMark ); } else diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 991995636e5d..ce0457a47791 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -1503,7 +1503,7 @@ void ScViewFunc::FillCrossDblClick() { ScRange aRange; GetViewData().GetSimpleArea( aRange ); - aRange.Justify(); + aRange.PutInOrder(); SCTAB nTab = GetViewData().GetCurPos().Tab(); SCCOL nStartX = aRange.aStart.Col(); @@ -1563,7 +1563,7 @@ void ScViewFunc::ConvertFormulaToValue() { ScRange aRange; GetViewData().GetSimpleArea(aRange); - aRange.Justify(); + aRange.PutInOrder(); ScDocShell* pDocSh = GetViewData().GetDocShell(); pDocSh->GetDocFunc().ConvertFormulaToValue(aRange, true, true); |