Lines Matching refs:nRow

101         for( size_t nRow = nFirstRow; nRow <= nLastRow; ++nRow )  in lclSetMergedRange()  local
103 Cell& rCell = rCells[ nRow * nWidth + nCol ]; in lclSetMergedRange()
106 rCell.mbOverlapY = nRow > nFirstRow; in lclSetMergedRange()
140 const Cell& ArrayImpl::GetCell( size_t nCol, size_t nRow ) const in GetCell()
142 return IsValidPos( nCol, nRow ) ? maCells[ GetIndex( nCol, nRow ) ] : OBJ_CELL_NONE; in GetCell()
145 Cell& ArrayImpl::GetCellAcc( size_t nCol, size_t nRow ) in GetCellAcc() argument
148 return IsValidPos( nCol, nRow ) ? maCells[ GetIndex( nCol, nRow ) ] : aDummy; in GetCellAcc()
151 size_t ArrayImpl::GetMergedFirstCol( size_t nCol, size_t nRow ) const in GetMergedFirstCol()
154 while( (nFirstCol > 0) && GetCell( nFirstCol, nRow ).mbOverlapX ) --nFirstCol; in GetMergedFirstCol()
158 size_t ArrayImpl::GetMergedFirstRow( size_t nCol, size_t nRow ) const in GetMergedFirstRow()
160 size_t nFirstRow = nRow; in GetMergedFirstRow()
165 size_t ArrayImpl::GetMergedLastCol( size_t nCol, size_t nRow ) const in GetMergedLastCol()
168 while( (nLastCol < mnWidth) && GetCell( nLastCol, nRow ).mbOverlapX ) ++nLastCol; in GetMergedLastCol()
172 size_t ArrayImpl::GetMergedLastRow( size_t nCol, size_t nRow ) const in GetMergedLastRow()
174 size_t nLastRow = nRow + 1; in GetMergedLastRow()
179 const Cell& ArrayImpl::GetMergedOriginCell( size_t nCol, size_t nRow ) const in GetMergedOriginCell()
181 return GetCell( GetMergedFirstCol( nCol, nRow ), GetMergedFirstRow( nCol, nRow ) ); in GetMergedOriginCell()
184 Cell& ArrayImpl::GetMergedOriginCellAcc( size_t nCol, size_t nRow ) in GetMergedOriginCellAcc() argument
186 return GetCellAcc( GetMergedFirstCol( nCol, nRow ), GetMergedFirstRow( nCol, nRow ) ); in GetMergedOriginCellAcc()
189 bool ArrayImpl::IsMergedOverlappedLeft( size_t nCol, size_t nRow ) const in IsMergedOverlappedLeft()
191 const Cell& rCell = GetCell( nCol, nRow ); in IsMergedOverlappedLeft()
195 bool ArrayImpl::IsMergedOverlappedRight( size_t nCol, size_t nRow ) const in IsMergedOverlappedRight()
197 return GetCell( nCol + 1, nRow ).mbOverlapX || (GetCell( nCol, nRow ).mnAddRight > 0); in IsMergedOverlappedRight()
200 bool ArrayImpl::IsMergedOverlappedTop( size_t nCol, size_t nRow ) const in IsMergedOverlappedTop()
202 const Cell& rCell = GetCell( nCol, nRow ); in IsMergedOverlappedTop()
206 bool ArrayImpl::IsMergedOverlappedBottom( size_t nCol, size_t nRow ) const in IsMergedOverlappedBottom()
208 return GetCell( nCol, nRow + 1 ).mbOverlapY || (GetCell( nCol, nRow ).mnAddBottom > 0); in IsMergedOverlappedBottom()
216 bool ArrayImpl::IsRowInClipRange( size_t nRow ) const in IsRowInClipRange()
218 return (mnFirstClipRow <= nRow) && (nRow <= mnLastClipRow); in IsRowInClipRange()
221 bool ArrayImpl::IsInClipRange( size_t nCol, size_t nRow ) const in IsInClipRange()
223 return IsColInClipRange( nCol ) && IsRowInClipRange( nRow ); in IsInClipRange()
236 long ArrayImpl::GetRowPosition( size_t nRow ) const in GetRowPosition()
243 return maYCoords[ nRow ]; in GetRowPosition()
256 double ArrayImpl::GetHorDiagAngle( size_t nCol, size_t nRow, bool bSimple ) const in GetHorDiagAngle() argument
259 if( IsValidPos( nCol, nRow ) ) in GetHorDiagAngle()
261 if( bSimple || !GetCell( nCol, nRow ).IsMerged() ) in GetHorDiagAngle()
263 fAngle = frame::GetHorDiagAngle( maWidths[ nCol ] + 1, maHeights[ nRow ] + 1 ); in GetHorDiagAngle()
268 size_t nFirstCol = GetMergedFirstCol( nCol, nRow ); in GetHorDiagAngle()
269 size_t nFirstRow = GetMergedFirstRow( nCol, nRow ); in GetHorDiagAngle()
271 …long nWidth = GetColWidth( nFirstCol, GetMergedLastCol( nCol, nRow ) ) + rCell.mnAddLeft + rCell.m… in GetHorDiagAngle()
272 …long nHeight = GetRowHeight( nFirstRow, GetMergedLastRow( nCol, nRow ) ) + rCell.mnAddTop + rCell.… in GetHorDiagAngle()
279 double ArrayImpl::GetVerDiagAngle( size_t nCol, size_t nRow, bool bSimple ) const in GetVerDiagAngle() argument
281 double fAngle = GetHorDiagAngle( nCol, nRow, bSimple ); in GetVerDiagAngle()
290 explicit MergedCellIterator( const Array& rArray, size_t nCol, size_t nRow );
309 MergedCellIterator::MergedCellIterator( const Array& rArray, size_t nCol, size_t nRow ) in MergedCellIterator() argument
311 …DBG_ASSERT( rArray.IsMerged( nCol, nRow ), "svx::frame::MergedCellIterator::MergedCellIterator - n… in MergedCellIterator()
312 rArray.GetMergedRange( mnFirstCol, mnFirstRow, mnLastCol, mnLastRow, nCol, nRow ); in MergedCellIterator()
402 size_t Array::GetCellIndex( size_t nCol, size_t nRow, bool bRTL ) const in GetCellIndex() argument
404 DBG_FRAME_CHECK_COLROW( nCol, nRow, "GetCellIndex" ); in GetCellIndex()
407 return mxImpl->GetIndex( nCol, nRow ); in GetCellIndex()
412 void Array::SetCellStyleLeft( size_t nCol, size_t nRow, const Style& rStyle ) in SetCellStyleLeft() argument
414 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleLeft" ); in SetCellStyleLeft()
415 CELLACC( nCol, nRow ).maLeft = rStyle; in SetCellStyleLeft()
418 void Array::SetCellStyleRight( size_t nCol, size_t nRow, const Style& rStyle ) in SetCellStyleRight() argument
420 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleRight" ); in SetCellStyleRight()
421 CELLACC( nCol, nRow ).maRight = rStyle; in SetCellStyleRight()
424 void Array::SetCellStyleTop( size_t nCol, size_t nRow, const Style& rStyle ) in SetCellStyleTop() argument
426 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleTop" ); in SetCellStyleTop()
427 CELLACC( nCol, nRow ).maTop = rStyle; in SetCellStyleTop()
430 void Array::SetCellStyleBottom( size_t nCol, size_t nRow, const Style& rStyle ) in SetCellStyleBottom() argument
432 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleBottom" ); in SetCellStyleBottom()
433 CELLACC( nCol, nRow ).maBottom = rStyle; in SetCellStyleBottom()
436 void Array::SetCellStyleTLBR( size_t nCol, size_t nRow, const Style& rStyle ) in SetCellStyleTLBR() argument
438 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleTLBR" ); in SetCellStyleTLBR()
439 CELLACC( nCol, nRow ).maTLBR = rStyle; in SetCellStyleTLBR()
442 void Array::SetCellStyleBLTR( size_t nCol, size_t nRow, const Style& rStyle ) in SetCellStyleBLTR() argument
444 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleBLTR" ); in SetCellStyleBLTR()
445 CELLACC( nCol, nRow ).maBLTR = rStyle; in SetCellStyleBLTR()
448 void Array::SetCellStyleDiag( size_t nCol, size_t nRow, const Style& rTLBR, const Style& rBLTR ) in SetCellStyleDiag() argument
450 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetCellStyleDiag" ); in SetCellStyleDiag()
451 Cell& rCell = CELLACC( nCol, nRow ); in SetCellStyleDiag()
459 for( size_t nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in SetColumnStyleLeft() local
460 SetCellStyleLeft( nCol, nRow, rStyle ); in SetColumnStyleLeft()
466 for( size_t nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in SetColumnStyleRight() local
467 SetCellStyleRight( nCol, nRow, rStyle ); in SetColumnStyleRight()
470 void Array::SetRowStyleTop( size_t nRow, const Style& rStyle ) in SetRowStyleTop() argument
472 DBG_FRAME_CHECK_ROW( nRow, "SetRowStyleTop" ); in SetRowStyleTop()
474 SetCellStyleTop( nCol, nRow, rStyle ); in SetRowStyleTop()
477 void Array::SetRowStyleBottom( size_t nRow, const Style& rStyle ) in SetRowStyleBottom() argument
479 DBG_FRAME_CHECK_ROW( nRow, "SetRowStyleBottom" ); in SetRowStyleBottom()
481 SetCellStyleBottom( nCol, nRow, rStyle ); in SetRowStyleBottom()
484 const Style& Array::GetCellStyleLeft( size_t nCol, size_t nRow, bool bSimple ) const in GetCellStyleLeft() argument
488 return CELL( nCol, nRow ).maLeft; in GetCellStyleLeft()
490 if( !mxImpl->IsRowInClipRange( nRow ) || mxImpl->IsMergedOverlappedLeft( nCol, nRow ) ) in GetCellStyleLeft()
494 return ORIGCELL( nCol, nRow ).maLeft; in GetCellStyleLeft()
497 return ORIGCELL( nCol - 1, nRow ).maRight; in GetCellStyleLeft()
502 return std::max( ORIGCELL( nCol, nRow ).maLeft, ORIGCELL( nCol - 1, nRow ).maRight ); in GetCellStyleLeft()
505 const Style& Array::GetCellStyleRight( size_t nCol, size_t nRow, bool bSimple ) const in GetCellStyleRight() argument
509 return CELL( nCol, nRow ).maRight; in GetCellStyleRight()
511 if( !mxImpl->IsRowInClipRange( nRow ) || mxImpl->IsMergedOverlappedRight( nCol, nRow ) ) in GetCellStyleRight()
515 return ORIGCELL( nCol + 1, nRow ).maLeft; in GetCellStyleRight()
518 return ORIGCELL( nCol, nRow ).maRight; in GetCellStyleRight()
523 return std::max( ORIGCELL( nCol, nRow ).maRight, ORIGCELL( nCol + 1, nRow ).maLeft ); in GetCellStyleRight()
526 const Style& Array::GetCellStyleTop( size_t nCol, size_t nRow, bool bSimple ) const in GetCellStyleTop() argument
530 return CELL( nCol, nRow ).maTop; in GetCellStyleTop()
532 if( !mxImpl->IsColInClipRange( nCol ) || mxImpl->IsMergedOverlappedTop( nCol, nRow ) ) in GetCellStyleTop()
535 if( nRow == mxImpl->mnFirstClipRow ) in GetCellStyleTop()
536 return ORIGCELL( nCol, nRow ).maTop; in GetCellStyleTop()
538 if( nRow == mxImpl->mnLastClipRow + 1 ) in GetCellStyleTop()
539 return ORIGCELL( nCol, nRow - 1 ).maBottom; in GetCellStyleTop()
541 if( !mxImpl->IsRowInClipRange( nRow ) ) in GetCellStyleTop()
544 return std::max( ORIGCELL( nCol, nRow ).maTop, ORIGCELL( nCol, nRow - 1 ).maBottom ); in GetCellStyleTop()
547 const Style& Array::GetCellStyleBottom( size_t nCol, size_t nRow, bool bSimple ) const in GetCellStyleBottom() argument
551 return CELL( nCol, nRow ).maBottom; in GetCellStyleBottom()
553 if( !mxImpl->IsColInClipRange( nCol ) || mxImpl->IsMergedOverlappedBottom( nCol, nRow ) ) in GetCellStyleBottom()
556 if( nRow + 1 == mxImpl->mnFirstClipRow ) in GetCellStyleBottom()
557 return ORIGCELL( nCol, nRow + 1 ).maTop; in GetCellStyleBottom()
559 if( nRow == mxImpl->mnLastClipRow ) in GetCellStyleBottom()
560 return ORIGCELL( nCol, nRow ).maBottom; in GetCellStyleBottom()
562 if( !mxImpl->IsRowInClipRange( nRow ) ) in GetCellStyleBottom()
565 return std::max( ORIGCELL( nCol, nRow ).maBottom, ORIGCELL( nCol, nRow + 1 ).maTop ); in GetCellStyleBottom()
568 const Style& Array::GetCellStyleTLBR( size_t nCol, size_t nRow, bool bSimple ) const in GetCellStyleTLBR() argument
570 return bSimple ? CELL( nCol, nRow ).maTLBR : in GetCellStyleTLBR()
571 (mxImpl->IsInClipRange( nCol, nRow ) ? ORIGCELL( nCol, nRow ).maTLBR : OBJ_STYLE_NONE); in GetCellStyleTLBR()
574 const Style& Array::GetCellStyleBLTR( size_t nCol, size_t nRow, bool bSimple ) const in GetCellStyleBLTR() argument
576 return bSimple ? CELL( nCol, nRow ).maBLTR : in GetCellStyleBLTR()
577 (mxImpl->IsInClipRange( nCol, nRow ) ? ORIGCELL( nCol, nRow ).maBLTR : OBJ_STYLE_NONE); in GetCellStyleBLTR()
580 const Style& Array::GetCellStyleTL( size_t nCol, size_t nRow ) const in GetCellStyleTL()
583 if( !mxImpl->IsInClipRange( nCol, nRow ) ) in GetCellStyleTL()
586 size_t nFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow ); in GetCellStyleTL()
587 size_t nFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow ); in GetCellStyleTL()
588 return ((nCol == nFirstCol) && (nRow == nFirstRow)) ? in GetCellStyleTL()
592 const Style& Array::GetCellStyleBR( size_t nCol, size_t nRow ) const in GetCellStyleBR()
595 if( !mxImpl->IsInClipRange( nCol, nRow ) ) in GetCellStyleBR()
598 size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in GetCellStyleBR()
599 size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in GetCellStyleBR()
600 return ((nCol == nLastCol) && (nRow == nLastRow)) ? in GetCellStyleBR()
601 …CELL( mxImpl->GetMergedFirstCol( nCol, nRow ), mxImpl->GetMergedFirstRow( nCol, nRow ) ).maTLBR : … in GetCellStyleBR()
604 const Style& Array::GetCellStyleBL( size_t nCol, size_t nRow ) const in GetCellStyleBL()
607 if( !mxImpl->IsInClipRange( nCol, nRow ) ) in GetCellStyleBL()
610 size_t nFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow ); in GetCellStyleBL()
611 size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in GetCellStyleBL()
612 return ((nCol == nFirstCol) && (nRow == nLastRow)) ? in GetCellStyleBL()
613 CELL( nFirstCol, mxImpl->GetMergedFirstRow( nCol, nRow ) ).maBLTR : OBJ_STYLE_NONE; in GetCellStyleBL()
616 const Style& Array::GetCellStyleTR( size_t nCol, size_t nRow ) const in GetCellStyleTR()
619 if( !mxImpl->IsInClipRange( nCol, nRow ) ) in GetCellStyleTR()
622 size_t nFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow ); in GetCellStyleTR()
623 size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in GetCellStyleTR()
624 return ((nCol == nLastCol) && (nRow == nFirstRow)) ? in GetCellStyleTR()
625 CELL( mxImpl->GetMergedFirstCol( nCol, nRow ), nFirstRow ).maBLTR : OBJ_STYLE_NONE; in GetCellStyleTR()
647 void Array::RemoveMergedRange( size_t nCol, size_t nRow ) in RemoveMergedRange() argument
649 DBG_FRAME_CHECK_COLROW( nCol, nRow, "RemoveMergedRange" ); in RemoveMergedRange()
650 for( MergedCellIterator aIt( *this, nCol, nRow ); aIt.Is(); ++aIt ) in RemoveMergedRange()
658 void Array::SetAddMergedLeftSize( size_t nCol, size_t nRow, long nAddSize ) in SetAddMergedLeftSize() argument
660 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetAddMergedLeftSize" ); in SetAddMergedLeftSize()
661 …DBG_FRAME_CHECK( mxImpl->GetMergedFirstCol( nCol, nRow ) == 0, "SetAddMergedLeftSize", "additional… in SetAddMergedLeftSize()
662 for( MergedCellIterator aIt( *this, nCol, nRow ); aIt.Is(); ++aIt ) in SetAddMergedLeftSize()
666 void Array::SetAddMergedRightSize( size_t nCol, size_t nRow, long nAddSize ) in SetAddMergedRightSize() argument
668 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetAddMergedRightSize" ); in SetAddMergedRightSize()
669 …DBG_FRAME_CHECK( mxImpl->GetMergedLastCol( nCol, nRow ) + 1 == mxImpl->mnWidth, "SetAddMergedRight… in SetAddMergedRightSize()
670 for( MergedCellIterator aIt( *this, nCol, nRow ); aIt.Is(); ++aIt ) in SetAddMergedRightSize()
674 void Array::SetAddMergedTopSize( size_t nCol, size_t nRow, long nAddSize ) in SetAddMergedTopSize() argument
676 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetAddMergedTopSize" ); in SetAddMergedTopSize()
677 …DBG_FRAME_CHECK( mxImpl->GetMergedFirstRow( nCol, nRow ) == 0, "SetAddMergedTopSize", "additional … in SetAddMergedTopSize()
678 for( MergedCellIterator aIt( *this, nCol, nRow ); aIt.Is(); ++aIt ) in SetAddMergedTopSize()
682 void Array::SetAddMergedBottomSize( size_t nCol, size_t nRow, long nAddSize ) in SetAddMergedBottomSize() argument
684 DBG_FRAME_CHECK_COLROW( nCol, nRow, "SetAddMergedBottomSize" ); in SetAddMergedBottomSize()
685 …DBG_FRAME_CHECK( mxImpl->GetMergedLastRow( nCol, nRow ) + 1 == mxImpl->mnHeight, "SetAddMergedBott… in SetAddMergedBottomSize()
686 for( MergedCellIterator aIt( *this, nCol, nRow ); aIt.Is(); ++aIt ) in SetAddMergedBottomSize()
690 bool Array::IsMerged( size_t nCol, size_t nRow ) const in IsMerged()
692 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMerged" ); in IsMerged()
693 return CELL( nCol, nRow ).IsMerged(); in IsMerged()
696 bool Array::IsMergedOrigin( size_t nCol, size_t nRow ) const in IsMergedOrigin()
698 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOrigin" ); in IsMergedOrigin()
699 return CELL( nCol, nRow ).mbMergeOrig; in IsMergedOrigin()
702 bool Array::IsMergedOverlapped( size_t nCol, size_t nRow ) const in IsMergedOverlapped()
704 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlapped" ); in IsMergedOverlapped()
705 return CELL( nCol, nRow ).IsOverlapped(); in IsMergedOverlapped()
708 bool Array::IsMergedOverlappedLeft( size_t nCol, size_t nRow ) const in IsMergedOverlappedLeft()
710 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedLeft" ); in IsMergedOverlappedLeft()
711 return mxImpl->IsMergedOverlappedLeft( nCol, nRow ); in IsMergedOverlappedLeft()
714 bool Array::IsMergedOverlappedRight( size_t nCol, size_t nRow ) const in IsMergedOverlappedRight()
716 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedRight" ); in IsMergedOverlappedRight()
717 return mxImpl->IsMergedOverlappedRight( nCol, nRow ); in IsMergedOverlappedRight()
720 bool Array::IsMergedOverlappedTop( size_t nCol, size_t nRow ) const in IsMergedOverlappedTop()
722 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedTop" ); in IsMergedOverlappedTop()
723 return mxImpl->IsMergedOverlappedTop( nCol, nRow ); in IsMergedOverlappedTop()
726 bool Array::IsMergedOverlappedBottom( size_t nCol, size_t nRow ) const in IsMergedOverlappedBottom()
728 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsMergedOverlappedBottom" ); in IsMergedOverlappedBottom()
729 return mxImpl->IsMergedOverlappedBottom( nCol, nRow ); in IsMergedOverlappedBottom()
732 void Array::GetMergedOrigin( size_t& rnFirstCol, size_t& rnFirstRow, size_t nCol, size_t nRow ) con… in GetMergedOrigin()
734 DBG_FRAME_CHECK_COLROW( nCol, nRow, "GetMergedOrigin" ); in GetMergedOrigin()
735 rnFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow ); in GetMergedOrigin()
736 rnFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow ); in GetMergedOrigin()
739 void Array::GetMergedSize( size_t& rnWidth, size_t& rnHeight, size_t nCol, size_t nRow ) const in GetMergedSize()
742 GetMergedRange( nFirstCol, nFirstRow, nLastCol, nLastRow, nCol, nRow ); in GetMergedSize()
748 size_t& rnLastCol, size_t& rnLastRow, size_t nCol, size_t nRow ) const in GetMergedRange()
750 GetMergedOrigin( rnFirstCol, rnFirstRow, nCol, nRow ); in GetMergedRange()
751 rnLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in GetMergedRange()
752 rnLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in GetMergedRange()
773 bool Array::IsInClipRange( size_t nCol, size_t nRow ) const in IsInClipRange()
775 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsInClipRange" ); in IsInClipRange()
776 return mxImpl->IsInClipRange( nCol, nRow ); in IsInClipRange()
809 void Array::SetRowHeight( size_t nRow, long nHeight ) in SetRowHeight() argument
811 DBG_FRAME_CHECK_ROW( nRow, "SetRowHeight" ); in SetRowHeight()
812 mxImpl->maHeights[ nRow ] = nHeight; in SetRowHeight()
834 long Array::GetRowPosition( size_t nRow ) const in GetRowPosition()
836 DBG_FRAME_CHECK_ROW_1( nRow, "GetRowPosition" ); in GetRowPosition()
837 return mxImpl->GetRowPosition( nRow ); in GetRowPosition()
853 long Array::GetRowHeight( size_t nRow ) const in GetRowHeight()
855 DBG_FRAME_CHECK_ROW( nRow, "GetRowHeight" ); in GetRowHeight()
856 return mxImpl->maHeights[ nRow ]; in GetRowHeight()
876 Point Array::GetCellPosition( size_t nCol, size_t nRow, bool bSimple ) const in GetCellPosition() argument
878 size_t nFirstCol = bSimple ? nCol : mxImpl->GetMergedFirstCol( nCol, nRow ); in GetCellPosition()
879 size_t nFirstRow = bSimple ? nRow : mxImpl->GetMergedFirstRow( nCol, nRow ); in GetCellPosition()
883 Size Array::GetCellSize( size_t nCol, size_t nRow, bool bSimple ) const in GetCellSize() argument
885 size_t nFirstCol = bSimple ? nCol : mxImpl->GetMergedFirstCol( nCol, nRow ); in GetCellSize()
886 size_t nFirstRow = bSimple ? nRow : mxImpl->GetMergedFirstRow( nCol, nRow ); in GetCellSize()
887 size_t nLastCol = bSimple ? nCol : mxImpl->GetMergedLastCol( nCol, nRow ); in GetCellSize()
888 size_t nLastRow = bSimple ? nRow : mxImpl->GetMergedLastRow( nCol, nRow ); in GetCellSize()
892 Rectangle Array::GetCellRect( size_t nCol, size_t nRow, bool bSimple ) const in GetCellRect() argument
894 Rectangle aRect( GetCellPosition( nCol, nRow, bSimple ), GetCellSize( nCol, nRow, bSimple ) ); in GetCellRect()
897 const Cell& rCell = CELL( nCol, nRow ); in GetCellRect()
910 double Array::GetHorDiagAngle( size_t nCol, size_t nRow, bool bSimple ) const in GetHorDiagAngle() argument
912 DBG_FRAME_CHECK_COLROW( nCol, nRow, "GetHorDiagAngle" ); in GetHorDiagAngle()
913 return mxImpl->GetHorDiagAngle( nCol, nRow, bSimple ); in GetHorDiagAngle()
916 double Array::GetVerDiagAngle( size_t nCol, size_t nRow, bool bSimple ) const in GetVerDiagAngle() argument
918 DBG_FRAME_CHECK_COLROW( nCol, nRow, "GetVerDiagAngle" ); in GetVerDiagAngle()
919 return mxImpl->GetVerDiagAngle( nCol, nRow, bSimple ); in GetVerDiagAngle()
939 size_t nCol, nRow; in MirrorSelfX() local
940 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfX()
944 aNewCells.push_back( CELL( mxImpl->GetMirrorCol( nCol ), nRow ) ); in MirrorSelfX()
948 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfX()
952 if( CELL( nCol, nRow ).mbMergeOrig ) in MirrorSelfX()
954 size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in MirrorSelfX()
955 size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in MirrorSelfX()
957 mxImpl->GetMirrorCol( nLastCol ), nRow, in MirrorSelfX()
973 size_t nCol, nRow; in MirrorSelfY() local
974 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfY()
978 aNewCells.push_back( CELL( nCol, mxImpl->GetMirrorRow( nRow ) ) ); in MirrorSelfY()
982 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfY()
986 if( CELL( nCol, nRow ).mbMergeOrig ) in MirrorSelfY()
988 size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in MirrorSelfY()
989 size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in MirrorSelfY()
992 nLastCol, mxImpl->GetMirrorRow( nRow ) ); in MirrorSelfY()
1004 void Array::DrawCell( OutputDevice& rDev, size_t nCol, size_t nRow, const Color* pForceColor ) const in DrawCell() argument
1006 DrawRange( rDev, nCol, nRow, nCol, nRow, pForceColor ); in DrawCell()
1016 size_t nCol, nRow; in DrawRange() local
1023 for( nRow = nFirstRow; nRow <= nLastRow; ++nRow ) in DrawRange()
1027 const Cell& rCell = CELL( nCol, nRow ); in DrawRange()
1031 bool bFirstRow = nRow == nFirstRow; in DrawRange()
1035 Rectangle aRect( GetCellRect( nCol, nRow ) ); in DrawRange()
1038 size_t _nFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow ); in DrawRange()
1039 size_t _nFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow ); in DrawRange()
1040 size_t _nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in DrawRange()
1041 size_t _nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in DrawRange()
1058 for( nRow = nFirstRow; nRow <= nLastRow + 1; ++nRow ) in DrawRange()
1060 double fAngle = mxImpl->GetHorDiagAngle( nFirstCol, nRow ); in DrawRange()
1061 double fTAngle = mxImpl->GetHorDiagAngle( nFirstCol, nRow - 1 ); in DrawRange()
1064 Point aStartPos( mxImpl->GetColPosition( nFirstCol ), mxImpl->GetRowPosition( nRow ) ); in DrawRange()
1065 const Style* pStart = &GetCellStyleTop( nFirstCol, nRow ); in DrawRange()
1066 DiagStyle aStartLFromTR( GetCellStyleBL( nFirstCol, nRow - 1 ), fTAngle ); in DrawRange()
1067 const Style* pStartLFromT = &GetCellStyleLeft( nFirstCol, nRow - 1 ); in DrawRange()
1068 const Style* pStartLFromL = &GetCellStyleTop( nFirstCol - 1, nRow ); in DrawRange()
1069 const Style* pStartLFromB = &GetCellStyleLeft( nFirstCol, nRow ); in DrawRange()
1070 DiagStyle aStartLFromBR( GetCellStyleTL( nFirstCol, nRow ), fAngle ); in DrawRange()
1073 DiagStyle aEndRFromTL( GetCellStyleBR( nFirstCol, nRow - 1 ), fTAngle ); in DrawRange()
1074 const Style* pEndRFromT = &GetCellStyleRight( nFirstCol, nRow - 1 ); in DrawRange()
1075 const Style* pEndRFromR = &GetCellStyleTop( nFirstCol + 1, nRow ); in DrawRange()
1076 const Style* pEndRFromB = &GetCellStyleRight( nFirstCol, nRow ); in DrawRange()
1077 DiagStyle aEndRFromBL( GetCellStyleTR( nFirstCol, nRow ), fAngle ); in DrawRange()
1081 fAngle = mxImpl->GetHorDiagAngle( nCol, nRow ); in DrawRange()
1082 fTAngle = mxImpl->GetHorDiagAngle( nCol, nRow - 1 ); in DrawRange()
1086 DiagStyle aLFromTR( GetCellStyleBL( nCol, nRow - 1 ), fTAngle ); in DrawRange()
1090 DiagStyle aLFromBR( GetCellStyleTL( nCol, nRow ), fAngle ); in DrawRange()
1092 DiagStyle aRFromTL( GetCellStyleBR( nCol, nRow - 1 ), fTAngle ); in DrawRange()
1093 const Style& rRFromT = GetCellStyleRight( nCol, nRow - 1 ); in DrawRange()
1094 const Style& rRFromR = GetCellStyleTop( nCol + 1, nRow ); in DrawRange()
1095 const Style& rRFromB = GetCellStyleRight( nCol, nRow ); in DrawRange()
1096 DiagStyle aRFromBL( GetCellStyleTR( nCol, nRow ), fAngle ); in DrawRange()
1158 for( nRow = nFirstRow + 1; nRow <= nLastRow; ++nRow ) in DrawRange()
1160 fAngle = mxImpl->GetVerDiagAngle( nCol, nRow ); in DrawRange()
1161 fLAngle = mxImpl->GetVerDiagAngle( nCol - 1, nRow ); in DrawRange()
1165 DiagStyle aTFromBL( GetCellStyleTR( nCol - 1, nRow ), fLAngle ); in DrawRange()
1169 DiagStyle aTFromBR( GetCellStyleTL( nCol, nRow ), fAngle ); in DrawRange()
1171 DiagStyle aBFromTL( GetCellStyleBR( nCol - 1, nRow ), fLAngle ); in DrawRange()
1172 const Style& rBFromL = GetCellStyleBottom( nCol - 1, nRow ); in DrawRange()
1173 const Style& rBFromB = GetCellStyleLeft( nCol, nRow + 1 ); in DrawRange()
1174 const Style& rBFromR = GetCellStyleBottom( nCol, nRow ); in DrawRange()
1175 DiagStyle aBFromTR( GetCellStyleBL( nCol, nRow ), fAngle ); in DrawRange()
1182 Point aEndPos( aStartPos.X(), mxImpl->GetRowPosition( nRow ) ); in DrawRange()
1207 Point aEndPos( aStartPos.X(), mxImpl->GetRowPosition( nRow ) ); in DrawRange()