LibreOffice Module svx (master) 1
|
Stores frame styles of an array of cells, supports merged ranges. More...
#include <framelinkarray.hxx>
Public Member Functions | |
Array () | |
Constructs an empty array. More... | |
~Array () | |
Destructs the array. More... | |
void | Initialize (sal_Int32 nWidth, sal_Int32 nHeight) |
Reinitializes the array with the specified size. More... | |
sal_Int32 | GetColCount () const |
Returns the number of columns in the array. More... | |
sal_Int32 | GetRowCount () const |
Returns the number of rows in the array. More... | |
sal_Int32 | GetCellCount () const |
Returns the number of cells in the array. More... | |
sal_Int32 | GetCellIndex (sal_Int32 nCol, sal_Int32 nRow, bool bRTL) const |
Returns the cell index from the cell address (nCol,nRow). More... | |
void | SetCellStyleLeft (sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle) |
Sets the left frame style of the cell (nCol,nRow). More... | |
void | SetCellStyleRight (sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle) |
Sets the right frame style of the cell (nCol,nRow). More... | |
void | SetCellStyleTop (sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle) |
Sets the top frame style of the cell (nCol,nRow). More... | |
void | SetCellStyleBottom (sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle) |
Sets the bottom frame style of the specified cell (nCol,nRow). More... | |
void | SetCellStyleTLBR (sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle) |
Sets the top-left to bottom-right frame style of the cell (nCol,nRow). More... | |
void | SetCellStyleBLTR (sal_Int32 nCol, sal_Int32 nRow, const Style &rStyle) |
Sets the bottom-left to top-right frame style of the cell (nCol,nRow). More... | |
void | SetCellStyleDiag (sal_Int32 nCol, sal_Int32 nRow, const Style &rTLBR, const Style &rBLTR) |
Sets both diagonal frame styles of the specified cell (nCol,nRow). More... | |
void | SetColumnStyleLeft (sal_Int32 nCol, const Style &rStyle) |
Sets the left frame style of the specified column. More... | |
void | SetColumnStyleRight (sal_Int32 nCol, const Style &rStyle) |
Sets the right frame style of the specified column. More... | |
void | SetRowStyleTop (sal_Int32 nRow, const Style &rStyle) |
Sets the top frame style of the specified row. More... | |
void | SetRowStyleBottom (sal_Int32 nRow, const Style &rStyle) |
Sets the bottom frame style of the specified row. More... | |
void | SetCellRotation (sal_Int32 nCol, sal_Int32 nRow, SvxRotateMode eRotMode, double fOrientation) |
Sets the rotation parameters of the cell (nCol,nRow). More... | |
bool | HasCellRotation () const |
Check if at least one cell is rotated. More... | |
const Style & | GetCellStyleLeft (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the left frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleRight (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the right frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleTop (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the top frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleBottom (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the top frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleTLBR (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the top-left to bottom-right frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleBLTR (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the bottom-left to top-right frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleTL (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the top-left to bottom-right frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleBR (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the top-left to bottom-right frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleBL (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the bottom-left to top-right frame style of the cell (nCol,nRow). More... | |
const Style & | GetCellStyleTR (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the bottom-left to top-right frame style of the cell (nCol,nRow). More... | |
void | SetMergedRange (sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow) |
Inserts a new merged cell range. More... | |
void | SetAddMergedLeftSize (sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize) |
Sets an additional left width for the merged range that contains (nCol,nRow). More... | |
void | SetAddMergedRightSize (sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize) |
Sets an additional right width for the merged range that contains (nCol,nRow). More... | |
void | SetAddMergedTopSize (sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize) |
Sets an additional top height for the merged range that contains (nCol,nRow). More... | |
void | SetAddMergedBottomSize (sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize) |
Sets an additional bottom height for the merged range that contains (nCol,nRow). More... | |
bool | IsMerged (sal_Int32 nCol, sal_Int32 nRow) const |
Returns true, if the cell (nCol,nRow) is part of a merged range. More... | |
void | GetMergedOrigin (sal_Int32 &rnFirstCol, sal_Int32 &rnFirstRow, sal_Int32 nCol, sal_Int32 nRow) const |
Returns the address of the top-left cell of the merged range that contains (nCol,nRow). More... | |
void | GetMergedRange (sal_Int32 &rnFirstCol, sal_Int32 &rnFirstRow, sal_Int32 &rnLastCol, sal_Int32 &rnLastRow, sal_Int32 nCol, sal_Int32 nRow) const |
Returns the top-left and bottom-right address of the merged range that contains (nCol,nRow). More... | |
void | SetClipRange (sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow) |
Sets a clipping range. More... | |
void | SetXOffset (sal_Int32 nXOffset) |
Sets the X output coordinate of the left column. More... | |
void | SetYOffset (sal_Int32 nYOffset) |
Sets the Y output coordinate of the top row. More... | |
void | SetColWidth (sal_Int32 nCol, sal_Int32 nWidth) |
Sets the output width of the specified column. More... | |
void | SetRowHeight (sal_Int32 nRow, sal_Int32 nHeight) |
Sets the output height of the specified row. More... | |
void | SetAllColWidths (sal_Int32 nWidth) |
Sets the same output width for all columns. More... | |
void | SetAllRowHeights (sal_Int32 nHeight) |
Sets the same output height for all rows. More... | |
sal_Int32 | GetColPosition (sal_Int32 nCol) const |
Returns the X output coordinate of the left border of the specified column. More... | |
sal_Int32 | GetRowPosition (sal_Int32 nRow) const |
Returns the Y output coordinate of the top border of the specified row. More... | |
sal_Int32 | GetColWidth (sal_Int32 nFirstCol, sal_Int32 nLastCol) const |
Returns the output width of the specified range of columns. More... | |
sal_Int32 | GetRowHeight (sal_Int32 nFirstRow, sal_Int32 nLastRow) const |
Returns the output height of the specified range of rows. More... | |
sal_Int32 | GetWidth () const |
Returns the output width of the entire array. More... | |
sal_Int32 | GetHeight () const |
Returns the output height of the entire array. More... | |
basegfx::B2DRange | GetCellRange (sal_Int32 nCol, sal_Int32 nRow) const |
Returns the output range of the cell (nCol,nRow). More... | |
basegfx::B2DRange | GetB2DRange (sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow) const |
void | MirrorSelfX () |
Mirrors the entire array horizontally. More... | |
drawinglayer::primitive2d::Primitive2DContainer | CreateB2DPrimitiveRange (sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow, const Color *pForceColor) const |
Draws the part of the specified range, that is inside the clipping range. More... | |
drawinglayer::primitive2d::Primitive2DContainer | CreateB2DPrimitiveArray () const |
Draws the part of the array, that is inside the clipping range. More... | |
Private Attributes | |
std::unique_ptr< ArrayImpl > | mxImpl |
Stores frame styles of an array of cells, supports merged ranges.
This class is able to store the frame styles of an array of cells and to draw the entire array or parts of it to any output device.
Every cell contains the style of the left, right, top, bottom, top-left to bottom-right, and bottom-left to top-right frame border.
On drawing, the thicker frame border of neighbored cells is selected automatically. All borders are drawn "connected", that means, the correct start and end coordinates of all lines of the borders are calculated, especially, if they are drawn together with diagonal frame borders.
This array fully supports merged cell ranges. In a merged range, the frame borders of the top-left cell is extended to the entire range, and all other cells in that range are overlapped. Again, all connected frame borders, also diagonals and frame borders from adjacent merged ranges, are handled automatically.
Additionally, a clipping range can be set. If such a range is used, all frame borders outside this range are completely ignored, and are not used in the connected border calculation anymore.
The array can be mirrored in both directions. It is possible to specify, whether to mirror the double frame styles, and whether to swap diagonal frame borders.
Definition at line 62 of file framelinkarray.hxx.
|
explicit |
Constructs an empty array.
Definition at line 520 of file framelinkarray.cxx.
References Initialize().
svx::frame::Array::~Array | ( | ) |
Destructs the array.
Definition at line 525 of file framelinkarray.cxx.
drawinglayer::primitive2d::Primitive2DContainer svx::frame::Array::CreateB2DPrimitiveArray | ( | ) | const |
Draws the part of the array, that is inside the clipping range.
Definition at line 1526 of file framelinkarray.cxx.
References CreateB2DPrimitiveRange(), and mxImpl.
Referenced by sdr::contact::createPrimitive2DSequenceImpl(), and svx::FrameSelectorImpl::DrawAllFrameBorders().
drawinglayer::primitive2d::Primitive2DContainer svx::frame::Array::CreateB2DPrimitiveRange | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nFirstRow, | ||
sal_Int32 | nLastCol, | ||
sal_Int32 | nLastRow, | ||
const Color * | pForceColor | ||
) | const |
Draws the part of the specified range, that is inside the clipping range.
pForceColor | If not NULL, only this color will be used to draw all frame borders. |
Definition at line 1245 of file framelinkarray.cxx.
References aData, drawinglayer::primitive2d::Primitive2DContainer::append(), Cell, CELL, basegfx::utils::createPolygonFromRect(), DBG_FRAME_CHECK_COLROW, basegfx::Tuple2D< typename TYPE >::equalZero(), GetB2DRange(), GetCellStyleBLTR(), GetCellStyleBottom(), GetCellStyleLeft(), GetCellStyleRight(), GetCellStyleTLBR(), GetCellStyleTop(), GetColCount(), basegfx::utils::getColumn(), GetMergedRange(), GetRowCount(), svx::frame::HelperCreateBLTREntry(), svx::frame::HelperCreateHorizontalEntry(), svx::frame::HelperCreateTLBREntry(), svx::frame::HelperCreateVerticalEntry(), basegfx::Range2D< typename TYPE, typename TRAITS >::intersect(), basegfx::Range2D< typename TYPE, typename TRAITS >::isEmpty(), IsRotated(), svx::frame::Style::IsUsed(), and mxImpl.
Referenced by CreateB2DPrimitiveArray().
basegfx::B2DRange svx::frame::Array::GetB2DRange | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nFirstRow, | ||
sal_Int32 | nLastCol, | ||
sal_Int32 | nLastRow | ||
) | const |
Definition at line 976 of file framelinkarray.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), GetColPosition(), GetColWidth(), GetRowHeight(), GetRowPosition(), and Point.
Referenced by CreateB2DPrimitiveRange().
sal_Int32 svx::frame::Array::GetCellCount | ( | ) | const |
Returns the number of cells in the array.
Definition at line 545 of file framelinkarray.cxx.
References mxImpl.
Referenced by MirrorSelfX().
sal_Int32 svx::frame::Array::GetCellIndex | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
bool | bRTL | ||
) | const |
Returns the cell index from the cell address (nCol,nRow).
Definition at line 550 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COLROW, and mxImpl.
basegfx::B2DRange svx::frame::Array::GetCellRange | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the output range of the cell (nCol,nRow).
Returns total output range of merged ranges.
Definition at line 944 of file framelinkarray.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), vcl::unotools::b2DRectangleFromRectangle(), Cell, CELL, GetColPosition(), GetColWidth(), GetRowHeight(), GetRowPosition(), mxImpl, and Point.
Referenced by svx::FrameSelectorImpl::InitBorderGeometry().
const Style & svx::frame::Array::GetCellStyleBL | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the bottom-left to top-right frame style of the cell (nCol,nRow).
Definition at line 763 of file framelinkarray.cxx.
References CELL, mxImpl, and svx::frame::OBJ_STYLE_NONE.
Referenced by svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().
const Style & svx::frame::Array::GetCellStyleBLTR | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the bottom-left to top-right frame style of the cell (nCol,nRow).
Ignores merged ranges;
Definition at line 734 of file framelinkarray.cxx.
References CELL.
Referenced by CreateB2DPrimitiveRange().
const Style & svx::frame::Array::GetCellStyleBottom | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the top frame style of the cell (nCol,nRow).
Returns thicker of own top style or bottom style of the cell above. Returns the style only if visible (i.e. at top border of a merged range).
Definition at line 711 of file framelinkarray.cxx.
References LASTCELL, mxImpl, svx::frame::OBJ_STYLE_NONE, and ORIGCELL.
Referenced by CreateB2DPrimitiveRange(), svx::frame::HelperCreateBLTREntry(), svx::frame::HelperCreateTLBREntry(), and svx::frame::HelperCreateVerticalEntry().
const Style & svx::frame::Array::GetCellStyleBR | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the top-left to bottom-right frame style of the cell (nCol,nRow).
Definition at line 751 of file framelinkarray.cxx.
References CELL, mxImpl, and svx::frame::OBJ_STYLE_NONE.
Referenced by svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().
const Style & svx::frame::Array::GetCellStyleLeft | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the left frame style of the cell (nCol,nRow).
Returns thicker of own left style or right style of the cell to the left. Returns the style only if visible (i.e. at left border of a merged range).
Definition at line 657 of file framelinkarray.cxx.
References mxImpl, svx::frame::OBJ_STYLE_NONE, and ORIGCELL.
Referenced by CreateB2DPrimitiveRange(), svx::frame::HelperCreateBLTREntry(), svx::frame::HelperCreateHorizontalEntry(), svx::frame::HelperCreateTLBREntry(), and svx::frame::HelperCreateVerticalEntry().
const Style & svx::frame::Array::GetCellStyleRight | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the right frame style of the cell (nCol,nRow).
Returns thicker of own right style or left style of the cell to the right. Returns the style only if visible (i.e. at right border of a merged range).
Definition at line 675 of file framelinkarray.cxx.
References LASTCELL, mxImpl, svx::frame::OBJ_STYLE_NONE, and ORIGCELL.
Referenced by CreateB2DPrimitiveRange(), svx::frame::HelperCreateBLTREntry(), svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateTLBREntry().
const Style & svx::frame::Array::GetCellStyleTL | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the top-left to bottom-right frame style of the cell (nCol,nRow).
Definition at line 739 of file framelinkarray.cxx.
References CELL, mxImpl, and svx::frame::OBJ_STYLE_NONE.
Referenced by svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().
const Style & svx::frame::Array::GetCellStyleTLBR | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the top-left to bottom-right frame style of the cell (nCol,nRow).
Ignores merged ranges;
Definition at line 729 of file framelinkarray.cxx.
References CELL.
Referenced by CreateB2DPrimitiveRange().
const Style & svx::frame::Array::GetCellStyleTop | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the top frame style of the cell (nCol,nRow).
Returns thicker of own top style or bottom style of the cell above. Returns the style only if visible (i.e. at top border of a merged range).
Definition at line 693 of file framelinkarray.cxx.
References mxImpl, svx::frame::OBJ_STYLE_NONE, and ORIGCELL.
Referenced by CreateB2DPrimitiveRange(), svx::frame::HelperCreateBLTREntry(), svx::frame::HelperCreateHorizontalEntry(), svx::frame::HelperCreateTLBREntry(), and svx::frame::HelperCreateVerticalEntry().
const Style & svx::frame::Array::GetCellStyleTR | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns the bottom-left to top-right frame style of the cell (nCol,nRow).
Definition at line 775 of file framelinkarray.cxx.
References CELL, mxImpl, and svx::frame::OBJ_STYLE_NONE.
Referenced by svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().
sal_Int32 svx::frame::Array::GetColCount | ( | ) | const |
Returns the number of columns in the array.
Definition at line 535 of file framelinkarray.cxx.
References mxImpl.
Referenced by CreateB2DPrimitiveRange(), svx::FrameSelectorImpl::DrawAllFrameBorders(), and svx::FrameSelectorImpl::InitBorderGeometry().
sal_Int32 svx::frame::Array::GetColPosition | ( | sal_Int32 | nCol | ) | const |
Returns the X output coordinate of the left border of the specified column.
@descr The column index <array-width> returns the X output coordinate of the right array border.
Definition at line 908 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL_1, and mxImpl.
Referenced by GetB2DRange(), GetCellRange(), GetColWidth(), and GetWidth().
sal_Int32 svx::frame::Array::GetColWidth | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nLastCol | ||
) | const |
Returns the output width of the specified range of columns.
Definition at line 920 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL, and GetColPosition().
Referenced by GetB2DRange(), and GetCellRange().
sal_Int32 svx::frame::Array::GetHeight | ( | ) | const |
Returns the output height of the entire array.
Definition at line 939 of file framelinkarray.cxx.
References GetRowPosition(), and mxImpl.
void svx::frame::Array::GetMergedOrigin | ( | sal_Int32 & | rnFirstCol, |
sal_Int32 & | rnFirstRow, | ||
sal_Int32 | nCol, | ||
sal_Int32 | nRow | ||
) | const |
Returns the address of the top-left cell of the merged range that contains (nCol,nRow).
Definition at line 843 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COLROW, and mxImpl.
Referenced by GetMergedRange().
void svx::frame::Array::GetMergedRange | ( | sal_Int32 & | rnFirstCol, |
sal_Int32 & | rnFirstRow, | ||
sal_Int32 & | rnLastCol, | ||
sal_Int32 & | rnLastRow, | ||
sal_Int32 | nCol, | ||
sal_Int32 | nRow | ||
) | const |
Returns the top-left and bottom-right address of the merged range that contains (nCol,nRow).
Definition at line 850 of file framelinkarray.cxx.
References GetMergedOrigin(), and mxImpl.
Referenced by CreateB2DPrimitiveRange().
sal_Int32 svx::frame::Array::GetRowCount | ( | ) | const |
Returns the number of rows in the array.
Definition at line 540 of file framelinkarray.cxx.
References mxImpl.
Referenced by CreateB2DPrimitiveRange(), svx::FrameSelectorImpl::DrawAllFrameBorders(), and svx::FrameSelectorImpl::InitBorderGeometry().
sal_Int32 svx::frame::Array::GetRowHeight | ( | sal_Int32 | nFirstRow, |
sal_Int32 | nLastRow | ||
) | const |
Returns the output height of the specified range of rows.
Definition at line 927 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW, and GetRowPosition().
Referenced by GetB2DRange(), and GetCellRange().
sal_Int32 svx::frame::Array::GetRowPosition | ( | sal_Int32 | nRow | ) | const |
Returns the Y output coordinate of the top border of the specified row.
@descr The row index <array-height> returns the Y output coordinate of the bottom array border.
Definition at line 914 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW_1, and mxImpl.
Referenced by GetB2DRange(), GetCellRange(), GetHeight(), and GetRowHeight().
sal_Int32 svx::frame::Array::GetWidth | ( | ) | const |
Returns the output width of the entire array.
Definition at line 934 of file framelinkarray.cxx.
References GetColPosition(), and mxImpl.
bool svx::frame::Array::HasCellRotation | ( | ) | const |
Check if at least one cell is rotated.
Definition at line 646 of file framelinkarray.cxx.
References mxImpl.
void svx::frame::Array::Initialize | ( | sal_Int32 | nWidth, |
sal_Int32 | nHeight | ||
) |
Reinitializes the array with the specified size.
Clears all styles.
Definition at line 530 of file framelinkarray.cxx.
References mxImpl.
Referenced by Array(), sdr::contact::createPrimitive2DSequenceImpl(), and svx::FrameSelectorImpl::InitBorderGeometry().
bool svx::frame::Array::IsMerged | ( | sal_Int32 | nCol, |
sal_Int32 | nRow | ||
) | const |
Returns true, if the cell (nCol,nRow) is part of a merged range.
Definition at line 837 of file framelinkarray.cxx.
References CELL, and DBG_FRAME_CHECK_COLROW.
void svx::frame::Array::MirrorSelfX | ( | ) |
Mirrors the entire array horizontally.
Definition at line 985 of file framelinkarray.cxx.
References CELL, GetCellCount(), svx::frame::lclSetMergedRange(), mbMergeOrig, and mxImpl.
void svx::frame::Array::SetAddMergedBottomSize | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
sal_Int32 | nAddSize | ||
) |
Sets an additional bottom height for the merged range that contains (nCol,nRow).
@descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the bottom border of the array.
Definition at line 829 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, and mxImpl.
void svx::frame::Array::SetAddMergedLeftSize | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
sal_Int32 | nAddSize | ||
) |
Sets an additional left width for the merged range that contains (nCol,nRow).
@descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the left border of the array.
Definition at line 805 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, and mxImpl.
void svx::frame::Array::SetAddMergedRightSize | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
sal_Int32 | nAddSize | ||
) |
Sets an additional right width for the merged range that contains (nCol,nRow).
@descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the right border of the array.
Definition at line 813 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, and mxImpl.
void svx::frame::Array::SetAddMergedTopSize | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
sal_Int32 | nAddSize | ||
) |
Sets an additional top height for the merged range that contains (nCol,nRow).
@descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the top border of the array.
Definition at line 821 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, and mxImpl.
void svx::frame::Array::SetAllColWidths | ( | sal_Int32 | nWidth | ) |
Sets the same output width for all columns.
Definition at line 896 of file framelinkarray.cxx.
References mxImpl.
Referenced by svx::FrameSelectorImpl::InitBorderGeometry().
void svx::frame::Array::SetAllRowHeights | ( | sal_Int32 | nHeight | ) |
Sets the same output height for all rows.
Definition at line 902 of file framelinkarray.cxx.
References mxImpl.
Referenced by svx::FrameSelectorImpl::InitBorderGeometry().
void svx::frame::Array::SetCellRotation | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
SvxRotateMode | eRotMode, | ||
double | fOrientation | ||
) |
Sets the rotation parameters of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 631 of file framelinkarray.cxx.
References Cell, CELLACC, DBG_FRAME_CHECK_COLROW, mxImpl, and rTarget.
void svx::frame::Array::SetCellStyleBLTR | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rStyle | ||
) |
Sets the bottom-left to top-right frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 589 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
void svx::frame::Array::SetCellStyleBottom | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rStyle | ||
) |
Sets the bottom frame style of the specified cell (nCol,nRow).
Ignores merged ranges.
Definition at line 577 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by sdr::contact::createPrimitive2DSequenceImpl(), and SetRowStyleBottom().
void svx::frame::Array::SetCellStyleDiag | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rTLBR, | ||
const Style & | rBLTR | ||
) |
Sets both diagonal frame styles of the specified cell (nCol,nRow).
Ignores merged ranges.
Definition at line 595 of file framelinkarray.cxx.
References Cell, CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
void svx::frame::Array::SetCellStyleLeft | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rStyle | ||
) |
Sets the left frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 559 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by sdr::contact::createPrimitive2DSequenceImpl(), and SetColumnStyleLeft().
void svx::frame::Array::SetCellStyleRight | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rStyle | ||
) |
Sets the right frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 565 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by sdr::contact::createPrimitive2DSequenceImpl(), and SetColumnStyleRight().
void svx::frame::Array::SetCellStyleTLBR | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rStyle | ||
) |
Sets the top-left to bottom-right frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 583 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
void svx::frame::Array::SetCellStyleTop | ( | sal_Int32 | nCol, |
sal_Int32 | nRow, | ||
const Style & | rStyle | ||
) |
Sets the top frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 571 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by sdr::contact::createPrimitive2DSequenceImpl(), and SetRowStyleTop().
void svx::frame::Array::SetClipRange | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nFirstRow, | ||
sal_Int32 | nLastCol, | ||
sal_Int32 | nLastRow | ||
) |
Sets a clipping range.
@descr No cell borders outside of this clipping range will be drawn. In difference to simply using the CreateB2DPrimitiveRange() function with the same range, a clipping range causes the drawing functions to completely ignore the frame styles connected from outside. This is used i.e. in Calc to print single pages and to draw the print preview. Partly visible diagonal frame borders in merged ranges are correctly clipped too. This array can handle only one clip range at a time.
Definition at line 859 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COLROW, and mxImpl.
void svx::frame::Array::SetColumnStyleLeft | ( | sal_Int32 | nCol, |
const Style & | rStyle | ||
) |
Sets the left frame style of the specified column.
Ignores merged ranges.
Definition at line 603 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL, mxImpl, and SetCellStyleLeft().
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
void svx::frame::Array::SetColumnStyleRight | ( | sal_Int32 | nCol, |
const Style & | rStyle | ||
) |
Sets the right frame style of the specified column.
Ignores merged ranges.
Definition at line 610 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL, mxImpl, and SetCellStyleRight().
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
void svx::frame::Array::SetColWidth | ( | sal_Int32 | nCol, |
sal_Int32 | nWidth | ||
) |
Sets the output width of the specified column.
Definition at line 882 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL, and mxImpl.
Referenced by sdr::contact::createPrimitive2DSequenceImpl().
void svx::frame::Array::SetMergedRange | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nFirstRow, | ||
sal_Int32 | nLastCol, | ||
sal_Int32 | nLastRow | ||
) |
Inserts a new merged cell range.
@precond The range must not intersect other merged ranges.
Definition at line 788 of file framelinkarray.cxx.
References CELL, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::lclSetMergedRange(), and mxImpl.
Referenced by sdr::contact::createPrimitive2DSequenceImpl().
void svx::frame::Array::SetRowHeight | ( | sal_Int32 | nRow, |
sal_Int32 | nHeight | ||
) |
Sets the output height of the specified row.
Definition at line 889 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW, and mxImpl.
Referenced by sdr::contact::createPrimitive2DSequenceImpl().
void svx::frame::Array::SetRowStyleBottom | ( | sal_Int32 | nRow, |
const Style & | rStyle | ||
) |
Sets the bottom frame style of the specified row.
Ignores merged ranges.
Definition at line 624 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW, mxImpl, and SetCellStyleBottom().
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
void svx::frame::Array::SetRowStyleTop | ( | sal_Int32 | nRow, |
const Style & | rStyle | ||
) |
Sets the top frame style of the specified row.
Ignores merged ranges.
Definition at line 617 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW, mxImpl, and SetCellStyleTop().
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
void svx::frame::Array::SetXOffset | ( | sal_Int32 | nXOffset | ) |
Sets the X output coordinate of the left column.
Definition at line 870 of file framelinkarray.cxx.
References mxImpl.
Referenced by svx::FrameSelectorImpl::InitBorderGeometry().
void svx::frame::Array::SetYOffset | ( | sal_Int32 | nYOffset | ) |
Sets the Y output coordinate of the top row.
Definition at line 876 of file framelinkarray.cxx.
References mxImpl.
Referenced by svx::FrameSelectorImpl::InitBorderGeometry().
|
private |
Definition at line 318 of file framelinkarray.hxx.
Referenced by CreateB2DPrimitiveArray(), CreateB2DPrimitiveRange(), GetCellCount(), GetCellIndex(), GetCellRange(), GetCellStyleBL(), GetCellStyleBottom(), GetCellStyleBR(), GetCellStyleLeft(), GetCellStyleRight(), GetCellStyleTL(), GetCellStyleTop(), GetCellStyleTR(), GetColCount(), GetColPosition(), GetHeight(), GetMergedOrigin(), GetMergedRange(), GetRowCount(), GetRowPosition(), GetWidth(), HasCellRotation(), Initialize(), MirrorSelfX(), SetAddMergedBottomSize(), SetAddMergedLeftSize(), SetAddMergedRightSize(), SetAddMergedTopSize(), SetAllColWidths(), SetAllRowHeights(), SetCellRotation(), SetClipRange(), SetColumnStyleLeft(), SetColumnStyleRight(), SetColWidth(), SetMergedRange(), SetRowHeight(), SetRowStyleBottom(), SetRowStyleTop(), SetXOffset(), and SetYOffset().