Lines Matching refs:nCol

99     for( size_t nCol = nFirstCol; nCol <= nLastCol; ++nCol )  in lclSetMergedRange()  local
103 Cell& rCell = rCells[ nRow * nWidth + nCol ]; in lclSetMergedRange()
105 rCell.mbOverlapX = nCol > nFirstCol; in lclSetMergedRange()
140 const Cell& ArrayImpl::GetCell( size_t nCol, size_t nRow ) const in GetCell() argument
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() argument
153 size_t nFirstCol = nCol; in GetMergedFirstCol()
158 size_t ArrayImpl::GetMergedFirstRow( size_t nCol, size_t nRow ) const in GetMergedFirstRow() argument
161 while( (nFirstRow > 0) && GetCell( nCol, nFirstRow ).mbOverlapY ) --nFirstRow; in GetMergedFirstRow()
165 size_t ArrayImpl::GetMergedLastCol( size_t nCol, size_t nRow ) const in GetMergedLastCol() argument
167 size_t nLastCol = nCol + 1; in GetMergedLastCol()
172 size_t ArrayImpl::GetMergedLastRow( size_t nCol, size_t nRow ) const in GetMergedLastRow() argument
175 while( (nLastRow < mnHeight) && GetCell( nCol, nLastRow ).mbOverlapY ) ++nLastRow; in GetMergedLastRow()
179 const Cell& ArrayImpl::GetMergedOriginCell( size_t nCol, size_t nRow ) const in GetMergedOriginCell() argument
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() argument
191 const Cell& rCell = GetCell( nCol, nRow ); in IsMergedOverlappedLeft()
195 bool ArrayImpl::IsMergedOverlappedRight( size_t nCol, size_t nRow ) const in IsMergedOverlappedRight() argument
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() argument
202 const Cell& rCell = GetCell( nCol, nRow ); in IsMergedOverlappedTop()
206 bool ArrayImpl::IsMergedOverlappedBottom( size_t nCol, size_t nRow ) const in IsMergedOverlappedBottom() argument
208 return GetCell( nCol, nRow + 1 ).mbOverlapY || (GetCell( nCol, nRow ).mnAddBottom > 0); in IsMergedOverlappedBottom()
211 bool ArrayImpl::IsColInClipRange( size_t nCol ) const in IsColInClipRange()
213 return (mnFirstClipCol <= nCol) && (nCol <= mnLastClipCol); in IsColInClipRange()
221 bool ArrayImpl::IsInClipRange( size_t nCol, size_t nRow ) const in IsInClipRange() argument
223 return IsColInClipRange( nCol ) && IsRowInClipRange( nRow ); in IsInClipRange()
226 long ArrayImpl::GetColPosition( size_t nCol ) const in GetColPosition()
233 return maXCoords[ nCol ]; in GetColPosition()
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()
406 nCol = mxImpl->GetMirrorCol(nCol); 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()
456 void Array::SetColumnStyleLeft( size_t nCol, const Style& rStyle ) in SetColumnStyleLeft() argument
458 DBG_FRAME_CHECK_COL( nCol, "SetColumnStyleLeft" ); in SetColumnStyleLeft()
460 SetCellStyleLeft( nCol, nRow, rStyle ); in SetColumnStyleLeft()
463 void Array::SetColumnStyleRight( size_t nCol, const Style& rStyle ) in SetColumnStyleRight() argument
465 DBG_FRAME_CHECK_COL( nCol, "SetColumnStyleRight" ); in SetColumnStyleRight()
467 SetCellStyleRight( nCol, nRow, rStyle ); in SetColumnStyleRight()
473 for( size_t nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in SetRowStyleTop() local
474 SetCellStyleTop( nCol, nRow, rStyle ); in SetRowStyleTop()
480 for( size_t nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in SetRowStyleBottom() local
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()
493 if( nCol == mxImpl->mnFirstClipCol ) in GetCellStyleLeft()
494 return ORIGCELL( nCol, nRow ).maLeft; in GetCellStyleLeft()
496 if( nCol == mxImpl->mnLastClipCol + 1 ) in GetCellStyleLeft()
497 return ORIGCELL( nCol - 1, nRow ).maRight; in GetCellStyleLeft()
499 if( !mxImpl->IsColInClipRange( nCol ) ) 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()
514 if( nCol + 1 == mxImpl->mnFirstClipCol ) in GetCellStyleRight()
515 return ORIGCELL( nCol + 1, nRow ).maLeft; in GetCellStyleRight()
517 if( nCol == mxImpl->mnLastClipCol ) in GetCellStyleRight()
518 return ORIGCELL( nCol, nRow ).maRight; in GetCellStyleRight()
520 if( !mxImpl->IsColInClipRange( nCol ) ) 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()
536 return ORIGCELL( nCol, nRow ).maTop; in GetCellStyleTop()
539 return ORIGCELL( nCol, nRow - 1 ).maBottom; 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()
557 return ORIGCELL( nCol, nRow + 1 ).maTop; in GetCellStyleBottom()
560 return ORIGCELL( nCol, nRow ).maBottom; 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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
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() argument
775 DBG_FRAME_CHECK_COLROW( nCol, nRow, "IsInClipRange" ); in IsInClipRange()
776 return mxImpl->IsInClipRange( nCol, nRow ); in IsInClipRange()
802 void Array::SetColWidth( size_t nCol, long nWidth ) in SetColWidth() argument
804 DBG_FRAME_CHECK_COL( nCol, "SetColWidth" ); in SetColWidth()
805 mxImpl->maWidths[ nCol ] = nWidth; in SetColWidth()
828 long Array::GetColPosition( size_t nCol ) const in GetColPosition()
830 DBG_FRAME_CHECK_COL_1( nCol, "GetColPosition" ); in GetColPosition()
831 return mxImpl->GetColPosition( nCol ); in GetColPosition()
840 long Array::GetColWidth( size_t nCol ) const in GetColWidth()
842 DBG_FRAME_CHECK_COL( nCol, "GetColWidth" ); in GetColWidth()
843 return mxImpl->maWidths[ nCol ]; in GetColWidth()
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
942 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in MirrorSelfX()
944 aNewCells.push_back( CELL( mxImpl->GetMirrorCol( nCol ), nRow ) ); in MirrorSelfX()
950 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) 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()
958 mxImpl->GetMirrorCol( nCol ), nLastRow ); in MirrorSelfX()
973 size_t nCol, nRow; in MirrorSelfY() local
976 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in MirrorSelfY()
978 aNewCells.push_back( CELL( nCol, mxImpl->GetMirrorRow( nRow ) ) ); in MirrorSelfY()
984 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) 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()
991 nCol, mxImpl->GetMirrorRow( nLastRow ), 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
1025 for( nCol = nFirstCol; nCol <= nLastCol; ++nCol ) in DrawRange()
1027 const Cell& rCell = CELL( nCol, nRow ); in DrawRange()
1030 bool bFirstCol = nCol == nFirstCol; 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()
1079 for( nCol = nFirstCol + 1; nCol <= nLastCol; ++nCol ) 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()
1103 Point aEndPos( mxImpl->GetColPosition( nCol ), aStartPos.Y() ); in DrawRange()
1128 Point aEndPos( mxImpl->GetColPosition( nCol ), aStartPos.Y() ); in DrawRange()
1137 for( nCol = nFirstCol; nCol <= nLastCol + 1; ++nCol ) in DrawRange()
1139 double fAngle = mxImpl->GetVerDiagAngle( nCol, nFirstRow ); in DrawRange()
1140 double fLAngle = mxImpl->GetVerDiagAngle( nCol - 1, nFirstRow ); in DrawRange()
1143 Point aStartPos( mxImpl->GetColPosition( nCol ), mxImpl->GetRowPosition( nFirstRow ) ); in DrawRange()
1144 const Style* pStart = &GetCellStyleLeft( nCol, nFirstRow ); in DrawRange()
1145 DiagStyle aStartTFromBL( GetCellStyleTR( nCol - 1, nFirstRow ), fLAngle ); in DrawRange()
1146 const Style* pStartTFromL = &GetCellStyleTop( nCol - 1, nFirstRow ); in DrawRange()
1147 const Style* pStartTFromT = &GetCellStyleLeft( nCol, nFirstRow - 1 ); in DrawRange()
1148 const Style* pStartTFromR = &GetCellStyleTop( nCol, nFirstRow ); in DrawRange()
1149 DiagStyle aStartTFromBR( GetCellStyleTL( nCol, nFirstRow ), fAngle ); in DrawRange()
1152 DiagStyle aEndBFromTL( GetCellStyleBR( nCol - 1, nFirstRow ), fLAngle ); in DrawRange()
1153 const Style* pEndBFromL = &GetCellStyleBottom( nCol - 1, nFirstRow ); in DrawRange()
1154 const Style* pEndBFromB = &GetCellStyleLeft( nCol, nFirstRow + 1 ); in DrawRange()
1155 const Style* pEndBFromR = &GetCellStyleBottom( nCol, nFirstRow ); in DrawRange()
1156 DiagStyle aEndBFromTR( GetCellStyleBL( nCol, nFirstRow ), fAngle ); 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()