summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-08-12 07:01:32 -0700
committerJoseph Powers <jpowers27@cox.net>2011-08-12 07:02:44 -0700
commit7ca3a646065bd9a0e4f61333ea474f8fca14a4fe (patch)
tree8e7f1d9692f38965781354756e955dc06dc4b6c9 /svx/source/dialog
parentd4ad67379eda381b43f6c636572e0064cb3527fd (diff)
unusedcode.easy: class Array cleanup.
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/framelinkarray.cxx140
1 files changed, 0 insertions, 140 deletions
diff --git a/svx/source/dialog/framelinkarray.cxx b/svx/source/dialog/framelinkarray.cxx
index 2c20e2bd1729..3107e7ac3408 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -186,11 +186,6 @@ const Cell& ArrayImpl::GetMergedOriginCell( size_t nCol, size_t nRow ) const
return GetCell( GetMergedFirstCol( nCol, nRow ), GetMergedFirstRow( nCol, nRow ) );
}
-Cell& ArrayImpl::GetMergedOriginCellAcc( size_t nCol, size_t nRow )
-{
- return GetCellAcc( GetMergedFirstCol( nCol, nRow ), GetMergedFirstRow( nCol, nRow ) );
-}
-
bool ArrayImpl::IsMergedOverlappedLeft( size_t nCol, size_t nRow ) const
{
const Cell& rCell = GetCell( nCol, nRow );
@@ -346,7 +341,6 @@ MergedCellIterator& MergedCellIterator::operator++()
#define CELL( col, row ) mxImpl->GetCell( col, row )
#define CELLACC( col, row ) mxImpl->GetCellAcc( col, row )
#define ORIGCELL( col, row ) mxImpl->GetMergedOriginCell( col, row )
-#define ORIGCELLACC( col, row ) mxImpl->GetMergedOriginCellAcc( col, row )
// ----------------------------------------------------------------------------
@@ -355,11 +349,6 @@ Array::Array()
Initialize( 0, 0 );
}
-Array::Array( size_t nWidth, size_t nHeight )
-{
- Initialize( nWidth, nHeight );
-}
-
Array::~Array()
{
}
@@ -372,11 +361,6 @@ void Array::Initialize( size_t nWidth, size_t nHeight )
mxImpl.reset( new ArrayImpl( nWidth, nHeight, bDiagDblClip ) );
}
-void Array::Clear()
-{
- Initialize( mxImpl->mnWidth, mxImpl->mnHeight );
-}
-
size_t Array::GetColCount() const
{
return mxImpl->mnWidth;
@@ -392,18 +376,6 @@ size_t Array::GetCellCount() const
return mxImpl->maCells.size();
}
-size_t Array::GetColFromIndex( size_t nCellIndex ) const
-{
- DBG_FRAME_CHECK_INDEX( nCellIndex, "GetColFromIndex" );
- return mxImpl->mnWidth ? (nCellIndex % mxImpl->mnWidth) : 0;
-}
-
-size_t Array::GetRowFromIndex( size_t nCellIndex ) const
-{
- DBG_FRAME_CHECK_INDEX( nCellIndex, "GetRowFromIndex" );
- return mxImpl->mnWidth ? (nCellIndex / mxImpl->mnWidth) : 0;
-}
-
size_t Array::GetCellIndex( size_t nCol, size_t nRow, bool bRTL ) const
{
DBG_FRAME_CHECK_COLROW( nCol, nRow, "GetCellIndex" );
@@ -649,17 +621,6 @@ void Array::SetMergedRange( size_t nFirstCol, size_t nFirstRow, size_t nLastCol,
lclSetMergedRange( mxImpl->maCells, mxImpl->mnWidth, nFirstCol, nFirstRow, nLastCol, nLastRow );
}
-void Array::RemoveMergedRange( size_t nCol, size_t nRow )
-{
- DBG_FRAME_CHECK_COLROW( nCol, nRow, "RemoveMergedRange" );
- for( MergedCellIterator aIt( *this, nCol, nRow ); aIt.Is(); ++aIt )
- {
- Cell& rCell = CELLACC( aIt.Col(), aIt.Row() );
- rCell.mbMergeOrig = rCell.mbOverlapX = rCell.mbOverlapY = false;
- rCell.mnAddLeft = rCell.mnAddRight = rCell.mnAddTop = rCell.mnAddBottom = 0;
- }
-}
-
void Array::SetAddMergedLeftSize( size_t nCol, size_t nRow, long nAddSize )
{
DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetAddMergedLeftSize" );
@@ -698,18 +659,6 @@ bool Array::IsMerged( size_t nCol, size_t nRow ) const
return CELL( nCol, nRow ).IsMerged();
}
-bool Array::IsMergedOrigin( size_t nCol, size_t nRow ) const
-{
- DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOrigin" );
- return CELL( nCol, nRow ).mbMergeOrig;
-}
-
-bool Array::IsMergedOverlapped( size_t nCol, size_t nRow ) const
-{
- DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlapped" );
- return CELL( nCol, nRow ).IsOverlapped();
-}
-
bool Array::IsMergedOverlappedLeft( size_t nCol, size_t nRow ) const
{
DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedLeft" );
@@ -722,18 +671,6 @@ bool Array::IsMergedOverlappedRight( size_t nCol, size_t nRow ) const
return mxImpl->IsMergedOverlappedRight( nCol, nRow );
}
-bool Array::IsMergedOverlappedTop( size_t nCol, size_t nRow ) const
-{
- DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedTop" );
- return mxImpl->IsMergedOverlappedTop( nCol, nRow );
-}
-
-bool Array::IsMergedOverlappedBottom( size_t nCol, size_t nRow ) const
-{
- DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedBottom" );
- return mxImpl->IsMergedOverlappedBottom( nCol, nRow );
-}
-
void Array::GetMergedOrigin( size_t& rnFirstCol, size_t& rnFirstRow, size_t nCol, size_t nRow ) const
{
DBG_FRAME_CHECK_COLROW( nCol, nRow, "GetMergedOrigin" );
@@ -741,14 +678,6 @@ void Array::GetMergedOrigin( size_t& rnFirstCol, size_t& rnFirstRow, size_t nCol
rnFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow );
}
-void Array::GetMergedSize( size_t& rnWidth, size_t& rnHeight, size_t nCol, size_t nRow ) const
-{
- size_t nFirstCol, nFirstRow, nLastCol, nLastRow;
- GetMergedRange( nFirstCol, nFirstRow, nLastCol, nLastRow, nCol, nRow );
- rnWidth = nLastCol - nFirstCol + 1;
- rnHeight = nLastRow - nFirstRow + 1;
-}
-
void Array::GetMergedRange( size_t& rnFirstCol, size_t& rnFirstRow,
size_t& rnLastCol, size_t& rnLastRow, size_t nCol, size_t nRow ) const
{
@@ -769,18 +698,6 @@ void Array::SetClipRange( size_t nFirstCol, size_t nFirstRow, size_t nLastCol, s
mxImpl->mnLastClipRow = nLastRow;
}
-void Array::RemoveClipRange()
-{
- if( !mxImpl->maCells.empty() )
- SetClipRange( 0, 0, mxImpl->mnWidth - 1, mxImpl->mnHeight - 1 );
-}
-
-bool Array::IsInClipRange( size_t nCol, size_t nRow ) const
-{
- DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsInClipRange" );
- return mxImpl->IsInClipRange( nCol, nRow );
-}
-
Rectangle Array::GetClipRangeRectangle() const
{
return Rectangle(
@@ -842,12 +759,6 @@ long Array::GetRowPosition( size_t nRow ) const
return mxImpl->GetRowPosition( nRow );
}
-long Array::GetColWidth( size_t nCol ) const
-{
- DBG_FRAME_CHECK_COL( nCol, "GetColWidth" );
- return mxImpl->maWidths[ nCol ];
-}
-
long Array::GetColWidth( size_t nFirstCol, size_t nLastCol ) const
{
DBG_FRAME_CHECK_COL( nFirstCol, "GetColWidth" );
@@ -855,12 +766,6 @@ long Array::GetColWidth( size_t nFirstCol, size_t nLastCol ) const
return GetColPosition( nLastCol + 1 ) - GetColPosition( nFirstCol );
}
-long Array::GetRowHeight( size_t nRow ) const
-{
- DBG_FRAME_CHECK_ROW( nRow, "GetRowHeight" );
- return mxImpl->maHeights[ nRow ];
-}
-
long Array::GetRowHeight( size_t nFirstRow, size_t nLastRow ) const
{
DBG_FRAME_CHECK_ROW( nFirstRow, "GetRowHeight" );
@@ -929,11 +834,6 @@ void Array::SetUseDiagDoubleClipping( bool bSet )
mxImpl->mbDiagDblClip = bSet;
}
-bool Array::GetUseDiagDoubleClipping() const
-{
- return mxImpl->mbDiagDblClip;
-}
-
// mirroring ------------------------------------------------------------------
void Array::MirrorSelfX( bool bMirrorStyles, bool bSwapDiag )
@@ -970,47 +870,8 @@ void Array::MirrorSelfX( bool bMirrorStyles, bool bSwapDiag )
mxImpl->mbXCoordsDirty = true;
}
-void Array::MirrorSelfY( bool bMirrorStyles, bool bSwapDiag )
-{
- CellVec aNewCells;
- aNewCells.reserve( GetCellCount() );
-
- size_t nCol, nRow;
- for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow )
- {
- for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol )
- {
- aNewCells.push_back( CELL( nCol, mxImpl->GetMirrorRow( nRow ) ) );
- aNewCells.back().MirrorSelfY( bMirrorStyles, bSwapDiag );
- }
- }
- for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow )
- {
- for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol )
- {
- if( CELL( nCol, nRow ).mbMergeOrig )
- {
- size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow );
- size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow );
- lclSetMergedRange( aNewCells, mxImpl->mnWidth,
- nCol, mxImpl->GetMirrorRow( nLastRow ),
- nLastCol, mxImpl->GetMirrorRow( nRow ) );
- }
- }
- }
- mxImpl->maCells.swap( aNewCells );
-
- std::reverse( mxImpl->maHeights.begin(), mxImpl->maHeights.end() );
- mxImpl->mbYCoordsDirty = true;
-}
-
// drawing --------------------------------------------------------------------
-void Array::DrawCell( OutputDevice& rDev, size_t nCol, size_t nRow, const Color* pForceColor ) const
-{
- DrawRange( rDev, nCol, nRow, nCol, nRow, pForceColor );
-}
-
void Array::DrawRange( drawinglayer::processor2d::BaseProcessor2D* pProcessor,
size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow,
const Color* pForceColor ) const
@@ -1427,7 +1288,6 @@ void Array::DrawArray( OutputDevice& rDev, const Color* pForceColor ) const
// ----------------------------------------------------------------------------
-#undef ORIGCELLACC
#undef ORIGCELL
#undef CELLACC
#undef CELL