Lines Matching refs:mxImpl

341 #define CELL( col, row )        mxImpl->GetCell( col, row )
342 #define CELLACC( col, row ) mxImpl->GetCellAcc( col, row )
343 #define ORIGCELL( col, row ) mxImpl->GetMergedOriginCell( col, row )
344 #define ORIGCELLACC( col, row ) mxImpl->GetMergedOriginCellAcc( col, row )
366 bool bDiagDblClip = mxImpl.get() ? mxImpl->mbDiagDblClip : DIAG_DBL_CLIP_DEFAULT; in Initialize()
367 mxImpl.reset( new ArrayImpl( nWidth, nHeight, bDiagDblClip ) ); in Initialize()
372 Initialize( mxImpl->mnWidth, mxImpl->mnHeight ); in Clear()
377 return mxImpl->mnWidth; in GetColCount()
382 return mxImpl->mnHeight; in GetRowCount()
387 return mxImpl->maCells.size(); in GetCellCount()
393 return mxImpl->mnWidth ? (nCellIndex % mxImpl->mnWidth) : 0; in GetColFromIndex()
399 return mxImpl->mnWidth ? (nCellIndex / mxImpl->mnWidth) : 0; in GetRowFromIndex()
406 nCol = mxImpl->GetMirrorCol(nCol); in GetCellIndex()
407 return mxImpl->GetIndex( nCol, nRow ); in GetCellIndex()
459 for( size_t nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in SetColumnStyleLeft()
466 for( size_t nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in SetColumnStyleRight()
473 for( size_t nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in SetRowStyleTop()
480 for( size_t nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in SetRowStyleBottom()
490 if( !mxImpl->IsRowInClipRange( nRow ) || mxImpl->IsMergedOverlappedLeft( nCol, nRow ) ) in GetCellStyleLeft()
493 if( nCol == mxImpl->mnFirstClipCol ) in GetCellStyleLeft()
496 if( nCol == mxImpl->mnLastClipCol + 1 ) in GetCellStyleLeft()
499 if( !mxImpl->IsColInClipRange( nCol ) ) in GetCellStyleLeft()
511 if( !mxImpl->IsRowInClipRange( nRow ) || mxImpl->IsMergedOverlappedRight( nCol, nRow ) ) in GetCellStyleRight()
514 if( nCol + 1 == mxImpl->mnFirstClipCol ) in GetCellStyleRight()
517 if( nCol == mxImpl->mnLastClipCol ) in GetCellStyleRight()
520 if( !mxImpl->IsColInClipRange( nCol ) ) in GetCellStyleRight()
532 if( !mxImpl->IsColInClipRange( nCol ) || mxImpl->IsMergedOverlappedTop( nCol, nRow ) ) in GetCellStyleTop()
535 if( nRow == mxImpl->mnFirstClipRow ) in GetCellStyleTop()
538 if( nRow == mxImpl->mnLastClipRow + 1 ) in GetCellStyleTop()
541 if( !mxImpl->IsRowInClipRange( nRow ) ) in GetCellStyleTop()
553 if( !mxImpl->IsColInClipRange( nCol ) || mxImpl->IsMergedOverlappedBottom( nCol, nRow ) ) in GetCellStyleBottom()
556 if( nRow + 1 == mxImpl->mnFirstClipRow ) in GetCellStyleBottom()
559 if( nRow == mxImpl->mnLastClipRow ) in GetCellStyleBottom()
562 if( !mxImpl->IsRowInClipRange( nRow ) ) in GetCellStyleBottom()
571 (mxImpl->IsInClipRange( nCol, nRow ) ? ORIGCELL( nCol, nRow ).maTLBR : OBJ_STYLE_NONE); in GetCellStyleTLBR()
577 (mxImpl->IsInClipRange( nCol, nRow ) ? ORIGCELL( nCol, nRow ).maBLTR : OBJ_STYLE_NONE); in GetCellStyleBLTR()
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()
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()
601 …CELL( mxImpl->GetMergedFirstCol( nCol, nRow ), mxImpl->GetMergedFirstRow( nCol, nRow ) ).maTLBR : … in GetCellStyleBR()
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()
613 CELL( nFirstCol, mxImpl->GetMergedFirstRow( nCol, nRow ) ).maBLTR : OBJ_STYLE_NONE; in GetCellStyleBL()
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()
625 CELL( mxImpl->GetMergedFirstCol( nCol, nRow ), nFirstRow ).maBLTR : OBJ_STYLE_NONE; in GetCellStyleTR()
643 if( mxImpl->IsValidPos( nFirstCol, nFirstRow ) && mxImpl->IsValidPos( nLastCol, nLastRow ) ) in SetMergedRange()
644 … lclSetMergedRange( mxImpl->maCells, mxImpl->mnWidth, nFirstCol, nFirstRow, nLastCol, nLastRow ); in SetMergedRange()
661 …DBG_FRAME_CHECK( mxImpl->GetMergedFirstCol( nCol, nRow ) == 0, "SetAddMergedLeftSize", "additional… in SetAddMergedLeftSize()
669 …DBG_FRAME_CHECK( mxImpl->GetMergedLastCol( nCol, nRow ) + 1 == mxImpl->mnWidth, "SetAddMergedRight… in SetAddMergedRightSize()
677 …DBG_FRAME_CHECK( mxImpl->GetMergedFirstRow( nCol, nRow ) == 0, "SetAddMergedTopSize", "additional … in SetAddMergedTopSize()
685 …DBG_FRAME_CHECK( mxImpl->GetMergedLastRow( nCol, nRow ) + 1 == mxImpl->mnHeight, "SetAddMergedBott… in SetAddMergedBottomSize()
711 return mxImpl->IsMergedOverlappedLeft( nCol, nRow ); in IsMergedOverlappedLeft()
717 return mxImpl->IsMergedOverlappedRight( nCol, nRow ); in IsMergedOverlappedRight()
723 return mxImpl->IsMergedOverlappedTop( nCol, nRow ); in IsMergedOverlappedTop()
729 return mxImpl->IsMergedOverlappedBottom( nCol, nRow ); in IsMergedOverlappedBottom()
735 rnFirstCol = mxImpl->GetMergedFirstCol( nCol, nRow ); in GetMergedOrigin()
736 rnFirstRow = mxImpl->GetMergedFirstRow( nCol, nRow ); in GetMergedOrigin()
751 rnLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in GetMergedRange()
752 rnLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in GetMergedRange()
761 mxImpl->mnFirstClipCol = nFirstCol; in SetClipRange()
762 mxImpl->mnFirstClipRow = nFirstRow; in SetClipRange()
763 mxImpl->mnLastClipCol = nLastCol; in SetClipRange()
764 mxImpl->mnLastClipRow = nLastRow; in SetClipRange()
769 if( !mxImpl->maCells.empty() ) in RemoveClipRange()
770 SetClipRange( 0, 0, mxImpl->mnWidth - 1, mxImpl->mnHeight - 1 ); in RemoveClipRange()
776 return mxImpl->IsInClipRange( nCol, nRow ); in IsInClipRange()
782 mxImpl->GetColPosition( mxImpl->mnFirstClipCol ), in GetClipRangeRectangle()
783 mxImpl->GetRowPosition( mxImpl->mnFirstClipRow ), in GetClipRangeRectangle()
784 mxImpl->GetColPosition( mxImpl->mnLastClipCol + 1 ), in GetClipRangeRectangle()
785 mxImpl->GetRowPosition( mxImpl->mnLastClipRow + 1 ) ); in GetClipRangeRectangle()
792 mxImpl->maXCoords[ 0 ] = nXOffset; in SetXOffset()
793 mxImpl->mbXCoordsDirty = true; in SetXOffset()
798 mxImpl->maYCoords[ 0 ] = nYOffset; in SetYOffset()
799 mxImpl->mbYCoordsDirty = true; in SetYOffset()
805 mxImpl->maWidths[ nCol ] = nWidth; in SetColWidth()
806 mxImpl->mbXCoordsDirty = true; in SetColWidth()
812 mxImpl->maHeights[ nRow ] = nHeight; in SetRowHeight()
813 mxImpl->mbYCoordsDirty = true; in SetRowHeight()
818 std::fill( mxImpl->maWidths.begin(), mxImpl->maWidths.end(), nWidth ); in SetAllColWidths()
819 mxImpl->mbXCoordsDirty = true; in SetAllColWidths()
824 std::fill( mxImpl->maHeights.begin(), mxImpl->maHeights.end(), nHeight ); in SetAllRowHeights()
825 mxImpl->mbYCoordsDirty = true; in SetAllRowHeights()
831 return mxImpl->GetColPosition( nCol ); in GetColPosition()
837 return mxImpl->GetRowPosition( nRow ); in GetRowPosition()
843 return mxImpl->maWidths[ nCol ]; in GetColWidth()
856 return mxImpl->maHeights[ nRow ]; in GetRowHeight()
868 return GetColPosition( mxImpl->mnWidth ) - GetColPosition( 0 ); in GetWidth()
873 return GetRowPosition( mxImpl->mnHeight ) - GetRowPosition( 0 ); in GetHeight()
878 size_t nFirstCol = bSimple ? nCol : mxImpl->GetMergedFirstCol( nCol, nRow ); in GetCellPosition()
879 size_t nFirstRow = bSimple ? nRow : mxImpl->GetMergedFirstRow( nCol, nRow ); in GetCellPosition()
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()
913 return mxImpl->GetHorDiagAngle( nCol, nRow, bSimple ); in GetHorDiagAngle()
919 return mxImpl->GetVerDiagAngle( nCol, nRow, bSimple ); in GetVerDiagAngle()
924 mxImpl->mbDiagDblClip = bSet; in SetUseDiagDoubleClipping()
929 return mxImpl->mbDiagDblClip; in GetUseDiagDoubleClipping()
940 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfX()
942 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in MirrorSelfX()
944 aNewCells.push_back( CELL( mxImpl->GetMirrorCol( nCol ), nRow ) ); in MirrorSelfX()
948 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfX()
950 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in MirrorSelfX()
954 size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in MirrorSelfX()
955 size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in MirrorSelfX()
956 lclSetMergedRange( aNewCells, mxImpl->mnWidth, in MirrorSelfX()
957 mxImpl->GetMirrorCol( nLastCol ), nRow, in MirrorSelfX()
958 mxImpl->GetMirrorCol( nCol ), nLastRow ); in MirrorSelfX()
962 mxImpl->maCells.swap( aNewCells ); in MirrorSelfX()
964 std::reverse( mxImpl->maWidths.begin(), mxImpl->maWidths.end() ); in MirrorSelfX()
965 mxImpl->mbXCoordsDirty = true; in MirrorSelfX()
974 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfY()
976 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in MirrorSelfY()
978 aNewCells.push_back( CELL( nCol, mxImpl->GetMirrorRow( nRow ) ) ); in MirrorSelfY()
982 for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) in MirrorSelfY()
984 for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) in MirrorSelfY()
988 size_t nLastCol = mxImpl->GetMergedLastCol( nCol, nRow ); in MirrorSelfY()
989 size_t nLastRow = mxImpl->GetMergedLastRow( nCol, nRow ); in MirrorSelfY()
990 lclSetMergedRange( aNewCells, mxImpl->mnWidth, in MirrorSelfY()
991 nCol, mxImpl->GetMirrorRow( nLastRow ), in MirrorSelfY()
992 nLastCol, mxImpl->GetMirrorRow( nRow ) ); in MirrorSelfY()
996 mxImpl->maCells.swap( aNewCells ); in MirrorSelfY()
998 std::reverse( mxImpl->maHeights.begin(), mxImpl->maHeights.end() ); in MirrorSelfY()
999 mxImpl->mbYCoordsDirty = true; in MirrorSelfY()
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()
1049 pForceColor, mxImpl->mbDiagDblClip ); 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()
1081 fAngle = mxImpl->GetHorDiagAngle( nCol, nRow ); in DrawRange()
1082 fTAngle = mxImpl->GetHorDiagAngle( nCol, nRow - 1 ); in DrawRange()
1103 Point aEndPos( mxImpl->GetColPosition( nCol ), aStartPos.Y() ); in DrawRange()
1128 Point aEndPos( mxImpl->GetColPosition( nCol ), aStartPos.Y() ); 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()
1160 fAngle = mxImpl->GetVerDiagAngle( nCol, nRow ); in DrawRange()
1161 fLAngle = mxImpl->GetVerDiagAngle( nCol - 1, nRow ); in DrawRange()
1182 Point aEndPos( aStartPos.X(), mxImpl->GetRowPosition( nRow ) ); in DrawRange()
1207 Point aEndPos( aStartPos.X(), mxImpl->GetRowPosition( nRow ) ); in DrawRange()
1217 if( mxImpl->mnWidth && mxImpl->mnHeight ) in DrawArray()
1218 DrawRange( rDev, 0, 0, mxImpl->mnWidth - 1, mxImpl->mnHeight - 1, pForceColor ); in DrawArray()