summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/prevloc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/prevloc.cxx')
-rw-r--r--sc/source/ui/view/prevloc.cxx46
1 files changed, 23 insertions, 23 deletions
diff --git a/sc/source/ui/view/prevloc.cxx b/sc/source/ui/view/prevloc.cxx
index fd36a1b2c1d0..a5fd77cf0f1e 100644
--- a/sc/source/ui/view/prevloc.cxx
+++ b/sc/source/ui/view/prevloc.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,11 +55,11 @@ enum ScPreviewLocationType
struct ScPreviewLocationEntry
{
- ScPreviewLocationType eType;
- Rectangle aPixelRect;
- ScRange aCellRange;
- BOOL bRepeatCol;
- BOOL bRepeatRow;
+ ScPreviewLocationType eType;
+ Rectangle aPixelRect;
+ ScRange aCellRange;
+ BOOL bRepeatCol;
+ BOOL bRepeatRow;
ScPreviewLocationEntry( ScPreviewLocationType eNewType, const Rectangle& rPixel, const ScRange& rRange,
BOOL bRepCol, BOOL bRepRow ) :
@@ -112,12 +112,12 @@ void ScPreviewTableInfo::LimitToArea( const Rectangle& rPixelArea )
{
if ( pColInfo )
{
- // cells completely left of the visible area
+ // cells completely left of the visible area
SCCOL nStart = 0;
while ( nStart < nCols && pColInfo[nStart].nPixelEnd < rPixelArea.Left() )
++nStart;
- // cells completely right of the visible area
+ // cells completely right of the visible area
SCCOL nEnd = nCols;
while ( nEnd > 0 && pColInfo[nEnd-1].nPixelStart > rPixelArea.Right() )
--nEnd;
@@ -133,18 +133,18 @@ void ScPreviewTableInfo::LimitToArea( const Rectangle& rPixelArea )
SetColInfo( nNewCount, pNewInfo );
}
else
- SetColInfo( 0, NULL ); // all invisible
+ SetColInfo( 0, NULL ); // all invisible
}
}
if ( pRowInfo )
{
- // cells completely above the visible area
+ // cells completely above the visible area
SCROW nStart = 0;
while ( nStart < nRows && pRowInfo[nStart].nPixelEnd < rPixelArea.Top() )
++nStart;
- // cells completely below the visible area
+ // cells completely below the visible area
SCROW nEnd = nRows;
while ( nEnd > 0 && pRowInfo[nEnd-1].nPixelStart > rPixelArea.Bottom() )
--nEnd;
@@ -160,7 +160,7 @@ void ScPreviewTableInfo::LimitToArea( const Rectangle& rPixelArea )
SetRowInfo( nNewCount, pNewInfo );
}
else
- SetRowInfo( 0, NULL ); // all invisible
+ SetRowInfo( 0, NULL ); // all invisible
}
}
}
@@ -230,7 +230,7 @@ void ScPreviewLocationData::AddCellRange( const Rectangle& rRect, const ScRange&
void ScPreviewLocationData::AddColHeaders( const Rectangle& rRect, SCCOL nStartCol, SCCOL nEndCol, BOOL bRepCol )
{
- SCTAB nTab = 0; //! ?
+ SCTAB nTab = 0; //! ?
ScRange aRange( nStartCol, 0, nTab, nEndCol, 0, nTab );
Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
aEntries.Insert( new ScPreviewLocationEntry( SC_PLOC_COLHEADER, aPixelRect, aRange, bRepCol, FALSE ) );
@@ -238,7 +238,7 @@ void ScPreviewLocationData::AddColHeaders( const Rectangle& rRect, SCCOL nStartC
void ScPreviewLocationData::AddRowHeaders( const Rectangle& rRect, SCROW nStartRow, SCROW nEndRow, BOOL bRepRow )
{
- SCTAB nTab = 0; //! ?
+ SCTAB nTab = 0; //! ?
ScRange aRange( 0, nStartRow, nTab, 0, nEndRow, nTab );
Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
aEntries.Insert( new ScPreviewLocationEntry( SC_PLOC_ROWHEADER, aPixelRect, aRange, FALSE, bRepRow ) );
@@ -246,7 +246,7 @@ void ScPreviewLocationData::AddRowHeaders( const Rectangle& rRect, SCROW nStartR
void ScPreviewLocationData::AddHeaderFooter( const Rectangle& rRect, BOOL bHeader, BOOL bLeft )
{
- ScRange aRange; //! ?
+ ScRange aRange; //! ?
Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
ScPreviewLocationType eType = bHeader ?
@@ -298,10 +298,10 @@ ScPreviewLocationEntry* lcl_GetEntryByAddress( const List& rEntries, const ScAdd
//UNUSED2008-05 {
//UNUSED2008-05 const double nScaleX = HMM_PER_TWIPS;
//UNUSED2008-05 const double nScaleY = HMM_PER_TWIPS;
-//UNUSED2008-05
+//UNUSED2008-05
//UNUSED2008-05 Size aOffsetLogic = pWindow->PixelToLogic( rOffsetPixel, aCellMapMode );
//UNUSED2008-05 SCTAB nTab = rRange.aStart.Tab();
-//UNUSED2008-05
+//UNUSED2008-05
//UNUSED2008-05 long nPosX = 0;
//UNUSED2008-05 SCCOL nCol = rRange.aStart.Col();
//UNUSED2008-05 SCCOL nEndCol = rRange.aEnd.Col();
@@ -314,7 +314,7 @@ ScPreviewLocationEntry* lcl_GetEntryByAddress( const List& rEntries, const ScAdd
//UNUSED2008-05 }
//UNUSED2008-05 if ( nCol > rRange.aStart.Col() )
//UNUSED2008-05 --nCol;
-//UNUSED2008-05
+//UNUSED2008-05
//UNUSED2008-05 long nPosY = 0;
//UNUSED2008-05 ScCoupledCompressedArrayIterator< SCROW, BYTE, USHORT> aIter(
//UNUSED2008-05 pDoc->GetRowFlagsArray( nTab), rRange.aStart.Row(),
@@ -329,7 +329,7 @@ ScPreviewLocationEntry* lcl_GetEntryByAddress( const List& rEntries, const ScAdd
//UNUSED2008-05 SCROW nRow = aIter.GetPos();
//UNUSED2008-05 if ( nRow > rRange.aStart.Row() )
//UNUSED2008-05 --nRow;
-//UNUSED2008-05
+//UNUSED2008-05
//UNUSED2008-05 return ScAddress( nCol, nRow, nTab );
//UNUSED2008-05 }
@@ -571,7 +571,7 @@ void ScPreviewLocationData::GetTableInfo( const Rectangle& rVisiblePixel, ScPrev
aMainRect.Top() = pEntry->aPixelRect.Top();
aMainRect.Bottom() = pEntry->aPixelRect.Bottom();
}
- nTab = pEntry->aCellRange.aStart.Tab(); //! store separately?
+ nTab = pEntry->aCellRange.aStart.Tab(); //! store separately?
}
else if ( pEntry->eType == SC_PLOC_ROWHEADER )
{
@@ -590,7 +590,7 @@ void ScPreviewLocationData::GetTableInfo( const Rectangle& rVisiblePixel, ScPrev
}
//
- // get column info
+ // get column info
//
SCCOL nColCount = 0;
@@ -660,7 +660,7 @@ void ScPreviewLocationData::GetTableInfo( const Rectangle& rVisiblePixel, ScPrev
rInfo.SetColInfo( 0, NULL );
//
- // get row info
+ // get row info
//
SCROW nRowCount = 0;
@@ -729,7 +729,7 @@ void ScPreviewLocationData::GetTableInfo( const Rectangle& rVisiblePixel, ScPrev
rInfo.SetRowInfo( 0, NULL );
//
- // limit to visible area
+ // limit to visible area
//
rInfo.SetTab( nTab );