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 498 of file framelinkarray.cxx.
References Initialize().
svx::frame::Array::~Array | ( | ) |
Destructs the array.
Definition at line 503 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 1505 of file framelinkarray.cxx.
References CreateB2DPrimitiveRange(), and mxImpl.
Referenced by 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 1223 of file framelinkarray.cxx.
References aData, drawinglayer::primitive2d::Primitive2DContainer::append(), Cell, CELL, basegfx::utils::createPolygonFromRect(), DBG_FRAME_CHECK_COLROW, Tuple2D< double >::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(), Range2D< double, DoubleTraits >::intersect(), Range2D< double, DoubleTraits >::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 954 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 523 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 528 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 922 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 741 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 712 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 689 of file framelinkarray.cxx.
References LASTCELL, mxImpl, 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 729 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 635 of file framelinkarray.cxx.
References mxImpl, 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 653 of file framelinkarray.cxx.
References LASTCELL, mxImpl, 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 717 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 707 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 671 of file framelinkarray.cxx.
References mxImpl, 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 753 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 513 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.
The column index <array-width> returns the X output coordinate of the right array border.
Definition at line 886 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 898 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 917 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 821 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 828 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 518 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 905 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.
The row index <array-height> returns the Y output coordinate of the bottom array border.
Definition at line 892 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 912 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 624 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 508 of file framelinkarray.cxx.
References mxImpl.
Referenced by Array(), sdr::contact::ViewContactOfTableObj::createViewIndependentPrimitive2DSequence(), 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 815 of file framelinkarray.cxx.
References CELL, and DBG_FRAME_CHECK_COLROW.
void svx::frame::Array::MirrorSelfX | ( | ) |
Mirrors the entire array horizontally.
Definition at line 963 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).
Useful to handle merged ranges that are not completely part of the array. The merged range must be at the bottom border of the array.
Definition at line 807 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, mnAddBottom, 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).
Useful to handle merged ranges that are not completely part of the array. The merged range must be at the left border of the array.
Definition at line 783 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, mnAddLeft, 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).
Useful to handle merged ranges that are not completely part of the array. The merged range must be at the right border of the array.
Definition at line 791 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, mnAddRight, 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).
Useful to handle merged ranges that are not completely part of the array. The merged range must be at the top border of the array.
Definition at line 799 of file framelinkarray.cxx.
References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, mnAddTop, and mxImpl.
void svx::frame::Array::SetAllColWidths | ( | sal_Int32 | nWidth | ) |
Sets the same output width for all columns.
Definition at line 874 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 880 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 609 of file framelinkarray.cxx.
References Cell, CELLACC, DBG_FRAME_CHECK_COLROW, mxImpl, and rTarget.
Sets the bottom-left to top-right frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 567 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Sets the bottom frame style of the specified cell (nCol,nRow).
Ignores merged ranges.
Definition at line 555 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by 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 573 of file framelinkarray.cxx.
References Cell, CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
Sets the left frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 537 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by SetColumnStyleLeft().
Sets the right frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 543 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by SetColumnStyleRight().
Sets the top-left to bottom-right frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 561 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Sets the top frame style of the cell (nCol,nRow).
Ignores merged ranges.
Definition at line 549 of file framelinkarray.cxx.
References CELLACC, and DBG_FRAME_CHECK_COLROW.
Referenced by SetRowStyleTop().
void svx::frame::Array::SetClipRange | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nFirstRow, | ||
sal_Int32 | nLastCol, | ||
sal_Int32 | nLastRow | ||
) |
Sets a clipping range.
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 837 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COLROW, and mxImpl.
Sets the left frame style of the specified column.
Ignores merged ranges.
Definition at line 581 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL, mxImpl, and SetCellStyleLeft().
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
Sets the right frame style of the specified column.
Ignores merged ranges.
Definition at line 588 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 860 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_COL, and mxImpl.
void svx::frame::Array::SetMergedRange | ( | sal_Int32 | nFirstCol, |
sal_Int32 | nFirstRow, | ||
sal_Int32 | nLastCol, | ||
sal_Int32 | nLastRow | ||
) |
Inserts a new merged cell range.
The range must not intersect other merged ranges.
Definition at line 766 of file framelinkarray.cxx.
References CELL, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::lclSetMergedRange(), and mxImpl.
void svx::frame::Array::SetRowHeight | ( | sal_Int32 | nRow, |
sal_Int32 | nHeight | ||
) |
Sets the output height of the specified row.
Definition at line 867 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW, and mxImpl.
Sets the bottom frame style of the specified row.
Ignores merged ranges.
Definition at line 602 of file framelinkarray.cxx.
References DBG_FRAME_CHECK_ROW, mxImpl, and SetCellStyleBottom().
Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().
Sets the top frame style of the specified row.
Ignores merged ranges.
Definition at line 595 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 848 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 854 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().