LibreOffice Module svx (master)  1
Public Member Functions | Private Attributes | List of all members
svx::frame::Array Class Reference

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 (size_t nWidth, size_t nHeight)
 Reinitializes the array with the specified size. More...
 
size_t GetColCount () const
 Returns the number of columns in the array. More...
 
size_t GetRowCount () const
 Returns the number of rows in the array. More...
 
size_t GetCellCount () const
 Returns the number of cells in the array. More...
 
size_t GetCellIndex (size_t nCol, size_t nRow, bool bRTL) const
 Returns the cell index from the cell address (nCol,nRow). More...
 
void SetCellStyleLeft (size_t nCol, size_t nRow, const Style &rStyle)
 Sets the left frame style of the cell (nCol,nRow). More...
 
void SetCellStyleRight (size_t nCol, size_t nRow, const Style &rStyle)
 Sets the right frame style of the cell (nCol,nRow). More...
 
void SetCellStyleTop (size_t nCol, size_t nRow, const Style &rStyle)
 Sets the top frame style of the cell (nCol,nRow). More...
 
void SetCellStyleBottom (size_t nCol, size_t nRow, const Style &rStyle)
 Sets the bottom frame style of the specified cell (nCol,nRow). More...
 
void SetCellStyleTLBR (size_t nCol, size_t nRow, const Style &rStyle)
 Sets the top-left to bottom-right frame style of the cell (nCol,nRow). More...
 
void SetCellStyleBLTR (size_t nCol, size_t nRow, const Style &rStyle)
 Sets the bottom-left to top-right frame style of the cell (nCol,nRow). More...
 
void SetCellStyleDiag (size_t nCol, size_t nRow, const Style &rTLBR, const Style &rBLTR)
 Sets both diagonal frame styles of the specified cell (nCol,nRow). More...
 
void SetColumnStyleLeft (size_t nCol, const Style &rStyle)
 Sets the left frame style of the specified column. More...
 
void SetColumnStyleRight (size_t nCol, const Style &rStyle)
 Sets the right frame style of the specified column. More...
 
void SetRowStyleTop (size_t nRow, const Style &rStyle)
 Sets the top frame style of the specified row. More...
 
void SetRowStyleBottom (size_t nRow, const Style &rStyle)
 Sets the bottom frame style of the specified row. More...
 
void SetCellRotation (size_t nCol, size_t 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 StyleGetCellStyleLeft (size_t nCol, size_t nRow) const
 Returns the left frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleRight (size_t nCol, size_t nRow) const
 Returns the right frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleTop (size_t nCol, size_t nRow) const
 Returns the top frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleBottom (size_t nCol, size_t nRow) const
 Returns the top frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleTLBR (size_t nCol, size_t nRow) const
 Returns the top-left to bottom-right frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleBLTR (size_t nCol, size_t nRow) const
 Returns the bottom-left to top-right frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleTL (size_t nCol, size_t nRow) const
 Returns the top-left to bottom-right frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleBR (size_t nCol, size_t nRow) const
 Returns the top-left to bottom-right frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleBL (size_t nCol, size_t nRow) const
 Returns the bottom-left to top-right frame style of the cell (nCol,nRow). More...
 
const StyleGetCellStyleTR (size_t nCol, size_t nRow) const
 Returns the bottom-left to top-right frame style of the cell (nCol,nRow). More...
 
void SetMergedRange (size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow)
 Inserts a new merged cell range. More...
 
void SetAddMergedLeftSize (size_t nCol, size_t nRow, long nAddSize)
 Sets an additional left width for the merged range that contains (nCol,nRow). More...
 
void SetAddMergedRightSize (size_t nCol, size_t nRow, long nAddSize)
 Sets an additional right width for the merged range that contains (nCol,nRow). More...
 
void SetAddMergedTopSize (size_t nCol, size_t nRow, long nAddSize)
 Sets an additional top height for the merged range that contains (nCol,nRow). More...
 
void SetAddMergedBottomSize (size_t nCol, size_t nRow, long nAddSize)
 Sets an additional bottom height for the merged range that contains (nCol,nRow). More...
 
bool IsMerged (size_t nCol, size_t nRow) const
 Returns true, if the cell (nCol,nRow) is part of a merged range. More...
 
void GetMergedOrigin (size_t &rnFirstCol, size_t &rnFirstRow, size_t nCol, size_t nRow) const
 Returns the address of the top-left cell of the merged range that contains (nCol,nRow). More...
 
void GetMergedRange (size_t &rnFirstCol, size_t &rnFirstRow, size_t &rnLastCol, size_t &rnLastRow, size_t nCol, size_t nRow) const
 Returns the top-left and bottom-right address of the merged range that contains (nCol,nRow). More...
 
void SetClipRange (size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow)
 Sets a clipping range. More...
 
void SetXOffset (long nXOffset)
 Sets the X output coordinate of the left column. More...
 
void SetYOffset (long nYOffset)
 Sets the Y output coordinate of the top row. More...
 
void SetColWidth (size_t nCol, long nWidth)
 Sets the output width of the specified column. More...
 
void SetRowHeight (size_t nRow, long nHeight)
 Sets the output height of the specified row. More...
 
void SetAllColWidths (long nWidth)
 Sets the same output width for all columns. More...
 
void SetAllRowHeights (long nHeight)
 Sets the same output height for all rows. More...
 
long GetColPosition (size_t nCol) const
 Returns the X output coordinate of the left border of the specified column. More...
 
long GetRowPosition (size_t nRow) const
 Returns the Y output coordinate of the top border of the specified row. More...
 
long GetColWidth (size_t nFirstCol, size_t nLastCol) const
 Returns the output width of the specified range of columns. More...
 
long GetRowHeight (size_t nFirstRow, size_t nLastRow) const
 Returns the output height of the specified range of rows. More...
 
long GetWidth () const
 Returns the output width of the entire array. More...
 
long GetHeight () const
 Returns the output height of the entire array. More...
 
basegfx::B2DRange GetCellRange (size_t nCol, size_t nRow, bool bExpandMerged) const
 Returns the output range of the cell (nCol,nRow). More...
 
void MirrorSelfX ()
 Mirrors the entire array horizontally. More...
 
drawinglayer::primitive2d::Primitive2DContainer CreateB2DPrimitiveRange (size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t 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< ArrayImplmxImpl
 

Detailed Description

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 63 of file framelinkarray.hxx.

Constructor & Destructor Documentation

svx::frame::Array::Array ( )
explicit

Constructs an empty array.

Definition at line 422 of file framelinkarray.cxx.

References Initialize().

svx::frame::Array::~Array ( )

Destructs the array.

Definition at line 427 of file framelinkarray.cxx.

Member Function Documentation

drawinglayer::primitive2d::Primitive2DContainer svx::frame::Array::CreateB2DPrimitiveArray ( ) const

Draws the part of the array, that is inside the clipping range.

Definition at line 1262 of file framelinkarray.cxx.

References CreateB2DPrimitiveRange(), and mxImpl.

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

drawinglayer::primitive2d::Primitive2DContainer svx::frame::Array::CreateB2DPrimitiveRange ( size_t  nFirstCol,
size_t  nFirstRow,
size_t  nLastCol,
size_t  nLastRow,
const Color pForceColor 
) const
size_t svx::frame::Array::GetCellCount ( ) const

Returns the number of cells in the array.

Definition at line 447 of file framelinkarray.cxx.

References mxImpl.

Referenced by MirrorSelfX().

size_t svx::frame::Array::GetCellIndex ( size_t  nCol,
size_t  nRow,
bool  bRTL 
) const

Returns the cell index from the cell address (nCol,nRow).

Definition at line 452 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COLROW, and mxImpl.

basegfx::B2DRange svx::frame::Array::GetCellRange ( size_t  nCol,
size_t  nRow,
bool  bExpandMerged 
) const
const Style & svx::frame::Array::GetCellStyleBL ( size_t  nCol,
size_t  nRow 
) const

Returns the bottom-left to top-right frame style of the cell (nCol,nRow).

Returns
The bottom-left to top-right frame style, if the cell is not part of a merged range, or if (nCol,nRow) is the bottom-left corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses.

Definition at line 665 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 ( size_t  nCol,
size_t  nRow 
) const

Returns the bottom-left to top-right frame style of the cell (nCol,nRow).

Ignores merged ranges;

Returns
The bottom-left to top-right frame style or an invisible style for invalid cell addresses.

Definition at line 636 of file framelinkarray.cxx.

References CELL.

Referenced by CreateB2DPrimitiveRange().

const Style & svx::frame::Array::GetCellStyleBottom ( size_t  nCol,
size_t  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).

Returns
The top frame style or an invisible style for invalid cell addresses.

Definition at line 613 of file framelinkarray.cxx.

References mxImpl, and ORIGCELL.

Referenced by CreateB2DPrimitiveRange(), and svx::frame::HelperCreateVerticalEntry().

const Style & svx::frame::Array::GetCellStyleBR ( size_t  nCol,
size_t  nRow 
) const

Returns the top-left to bottom-right frame style of the cell (nCol,nRow).

Returns
The top-left to bottom-right frame style, if the cell is not part of a merged range, or if (nCol,nRow) is the bottom-right corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses.

Definition at line 653 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 ( size_t  nCol,
size_t  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).

Returns
The left frame style or an invisible style for invalid cell addresses.

Definition at line 559 of file framelinkarray.cxx.

References mxImpl, and ORIGCELL.

Referenced by CreateB2DPrimitiveRange(), svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().

const Style & svx::frame::Array::GetCellStyleRight ( size_t  nCol,
size_t  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).

Returns
The left frame style or an invisible style for invalid cell addresses.

Definition at line 577 of file framelinkarray.cxx.

References mxImpl, and ORIGCELL.

Referenced by CreateB2DPrimitiveRange(), and svx::frame::HelperCreateHorizontalEntry().

const Style & svx::frame::Array::GetCellStyleTL ( size_t  nCol,
size_t  nRow 
) const

Returns the top-left to bottom-right frame style of the cell (nCol,nRow).

Returns
The top-left to bottom-right frame style, if the cell is not part of a merged range, or if (nCol,nRow) is the top-left corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses.

Definition at line 641 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 ( size_t  nCol,
size_t  nRow 
) const

Returns the top-left to bottom-right frame style of the cell (nCol,nRow).

Ignores merged ranges;

Returns
The top-left to bottom-right frame style or an invisible style for invalid cell addresses.

Definition at line 631 of file framelinkarray.cxx.

References CELL.

Referenced by CreateB2DPrimitiveRange().

const Style & svx::frame::Array::GetCellStyleTop ( size_t  nCol,
size_t  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).

Returns
The top frame style or an invisible style for invalid cell addresses.

Definition at line 595 of file framelinkarray.cxx.

References mxImpl, and ORIGCELL.

Referenced by CreateB2DPrimitiveRange(), svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().

const Style & svx::frame::Array::GetCellStyleTR ( size_t  nCol,
size_t  nRow 
) const

Returns the bottom-left to top-right frame style of the cell (nCol,nRow).

Returns
The bottom-left to top-right frame style, if the cell is not part of a merged range, or if (nCol,nRow) is the top-right corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses.

Definition at line 677 of file framelinkarray.cxx.

References CELL, mxImpl, and svx::frame::OBJ_STYLE_NONE.

Referenced by svx::frame::HelperCreateHorizontalEntry(), and svx::frame::HelperCreateVerticalEntry().

size_t svx::frame::Array::GetColCount ( ) const

Returns the number of columns in the array.

Definition at line 437 of file framelinkarray.cxx.

References mxImpl.

Referenced by CreateB2DPrimitiveRange(), svx::FrameSelectorImpl::DrawAllFrameBorders(), and svx::FrameSelectorImpl::InitBorderGeometry().

long svx::frame::Array::GetColPosition ( size_t  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 810 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COL_1, and mxImpl.

Referenced by GetCellRange(), GetColWidth(), and GetWidth().

long svx::frame::Array::GetColWidth ( size_t  nFirstCol,
size_t  nLastCol 
) const

Returns the output width of the specified range of columns.

Definition at line 822 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COL, and GetColPosition().

Referenced by GetCellRange().

long svx::frame::Array::GetHeight ( ) const

Returns the output height of the entire array.

Definition at line 841 of file framelinkarray.cxx.

References GetRowPosition(), and mxImpl.

void svx::frame::Array::GetMergedOrigin ( size_t &  rnFirstCol,
size_t &  rnFirstRow,
size_t  nCol,
size_t  nRow 
) const

Returns the address of the top-left cell of the merged range that contains (nCol,nRow).

Definition at line 745 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COLROW, and mxImpl.

Referenced by GetMergedRange().

void svx::frame::Array::GetMergedRange ( size_t &  rnFirstCol,
size_t &  rnFirstRow,
size_t &  rnLastCol,
size_t &  rnLastRow,
size_t  nCol,
size_t  nRow 
) const

Returns the top-left and bottom-right address of the merged range that contains (nCol,nRow).

Definition at line 752 of file framelinkarray.cxx.

References GetMergedOrigin(), and mxImpl.

Referenced by svx::frame::MergedCellIterator::MergedCellIterator().

size_t svx::frame::Array::GetRowCount ( ) const

Returns the number of rows in the array.

Definition at line 442 of file framelinkarray.cxx.

References mxImpl.

Referenced by CreateB2DPrimitiveRange(), svx::FrameSelectorImpl::DrawAllFrameBorders(), and svx::FrameSelectorImpl::InitBorderGeometry().

long svx::frame::Array::GetRowHeight ( size_t  nFirstRow,
size_t  nLastRow 
) const

Returns the output height of the specified range of rows.

Definition at line 829 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_ROW, and GetRowPosition().

Referenced by GetCellRange().

long svx::frame::Array::GetRowPosition ( size_t  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 816 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_ROW_1, and mxImpl.

Referenced by GetCellRange(), GetHeight(), and GetRowHeight().

long svx::frame::Array::GetWidth ( ) const

Returns the output width of the entire array.

Definition at line 836 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 548 of file framelinkarray.cxx.

References mxImpl.

void svx::frame::Array::Initialize ( size_t  nWidth,
size_t  nHeight 
)

Reinitializes the array with the specified size.

Clears all styles.

Definition at line 432 of file framelinkarray.cxx.

References mxImpl.

Referenced by Array(), sdr::contact::ViewContactOfTableObj::createViewIndependentPrimitive2DSequence(), and svx::FrameSelectorImpl::InitBorderGeometry().

bool svx::frame::Array::IsMerged ( size_t  nCol,
size_t  nRow 
) const

Returns true, if the cell (nCol,nRow) is part of a merged range.

Definition at line 739 of file framelinkarray.cxx.

References CELL, and DBG_FRAME_CHECK_COLROW.

Referenced by svx::frame::MergedCellIterator::MergedCellIterator().

void svx::frame::Array::MirrorSelfX ( )

Mirrors the entire array horizontally.

Definition at line 889 of file framelinkarray.cxx.

References CELL, GetCellCount(), svx::frame::lclSetMergedRange(), and mxImpl.

void svx::frame::Array::SetAddMergedBottomSize ( size_t  nCol,
size_t  nRow,
long  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 731 of file framelinkarray.cxx.

References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::MergedCellIterator::Is(), and mxImpl.

void svx::frame::Array::SetAddMergedLeftSize ( size_t  nCol,
size_t  nRow,
long  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 707 of file framelinkarray.cxx.

References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::MergedCellIterator::Is(), and mxImpl.

void svx::frame::Array::SetAddMergedRightSize ( size_t  nCol,
size_t  nRow,
long  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 715 of file framelinkarray.cxx.

References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::MergedCellIterator::Is(), and mxImpl.

void svx::frame::Array::SetAddMergedTopSize ( size_t  nCol,
size_t  nRow,
long  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 723 of file framelinkarray.cxx.

References CELLACC, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::MergedCellIterator::Is(), and mxImpl.

void svx::frame::Array::SetAllColWidths ( long  nWidth)

Sets the same output width for all columns.

Definition at line 798 of file framelinkarray.cxx.

References mxImpl.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

void svx::frame::Array::SetAllRowHeights ( long  nHeight)

Sets the same output height for all rows.

Definition at line 804 of file framelinkarray.cxx.

References mxImpl.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

void svx::frame::Array::SetCellRotation ( size_t  nCol,
size_t  nRow,
SvxRotateMode  eRotMode,
double  fOrientation 
)

Sets the rotation parameters of the cell (nCol,nRow).

Ignores merged ranges.

Definition at line 533 of file framelinkarray.cxx.

References CELLACC, DBG_FRAME_CHECK_COLROW, svx::frame::Cell::IsRotated(), svx::frame::Cell::meRotMode, svx::frame::Cell::mfOrientation, and mxImpl.

void svx::frame::Array::SetCellStyleBLTR ( size_t  nCol,
size_t  nRow,
const Style rStyle 
)

Sets the bottom-left to top-right frame style of the cell (nCol,nRow).

Ignores merged ranges.

Definition at line 491 of file framelinkarray.cxx.

References CELLACC, and DBG_FRAME_CHECK_COLROW.

void svx::frame::Array::SetCellStyleBottom ( size_t  nCol,
size_t  nRow,
const Style rStyle 
)

Sets the bottom frame style of the specified cell (nCol,nRow).

Ignores merged ranges.

Definition at line 479 of file framelinkarray.cxx.

References CELLACC, and DBG_FRAME_CHECK_COLROW.

Referenced by SetRowStyleBottom().

void svx::frame::Array::SetCellStyleDiag ( size_t  nCol,
size_t  nRow,
const Style rTLBR,
const Style rBLTR 
)

Sets both diagonal frame styles of the specified cell (nCol,nRow).

Ignores merged ranges.

Definition at line 497 of file framelinkarray.cxx.

References CELLACC, DBG_FRAME_CHECK_COLROW, svx::frame::Cell::SetStyleBLTR(), and svx::frame::Cell::SetStyleTLBR().

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

void svx::frame::Array::SetCellStyleLeft ( size_t  nCol,
size_t  nRow,
const Style rStyle 
)

Sets the left frame style of the cell (nCol,nRow).

Ignores merged ranges.

Definition at line 461 of file framelinkarray.cxx.

References CELLACC, and DBG_FRAME_CHECK_COLROW.

Referenced by SetColumnStyleLeft().

void svx::frame::Array::SetCellStyleRight ( size_t  nCol,
size_t  nRow,
const Style rStyle 
)

Sets the right frame style of the cell (nCol,nRow).

Ignores merged ranges.

Definition at line 467 of file framelinkarray.cxx.

References CELLACC, and DBG_FRAME_CHECK_COLROW.

Referenced by SetColumnStyleRight().

void svx::frame::Array::SetCellStyleTLBR ( size_t  nCol,
size_t  nRow,
const Style rStyle 
)

Sets the top-left to bottom-right frame style of the cell (nCol,nRow).

Ignores merged ranges.

Definition at line 485 of file framelinkarray.cxx.

References CELLACC, and DBG_FRAME_CHECK_COLROW.

void svx::frame::Array::SetCellStyleTop ( size_t  nCol,
size_t  nRow,
const Style rStyle 
)

Sets the top frame style of the cell (nCol,nRow).

Ignores merged ranges.

Definition at line 473 of file framelinkarray.cxx.

References CELLACC, and DBG_FRAME_CHECK_COLROW.

Referenced by SetRowStyleTop().

void svx::frame::Array::SetClipRange ( size_t  nFirstCol,
size_t  nFirstRow,
size_t  nLastCol,
size_t  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 761 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COLROW, and mxImpl.

void svx::frame::Array::SetColumnStyleLeft ( size_t  nCol,
const Style rStyle 
)

Sets the left frame style of the specified column.

Ignores merged ranges.

Definition at line 505 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COL, mxImpl, and SetCellStyleLeft().

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

void svx::frame::Array::SetColumnStyleRight ( size_t  nCol,
const Style rStyle 
)

Sets the right frame style of the specified column.

Ignores merged ranges.

Definition at line 512 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COL, mxImpl, and SetCellStyleRight().

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

void svx::frame::Array::SetColWidth ( size_t  nCol,
long  nWidth 
)

Sets the output width of the specified column.

Definition at line 784 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_COL, and mxImpl.

void svx::frame::Array::SetMergedRange ( size_t  nFirstCol,
size_t  nFirstRow,
size_t  nLastCol,
size_t  nLastRow 
)

Inserts a new merged cell range.

The range must not intersect other merged ranges.

Definition at line 690 of file framelinkarray.cxx.

References CELL, DBG_FRAME_CHECK, DBG_FRAME_CHECK_COLROW, svx::frame::lclSetMergedRange(), and mxImpl.

void svx::frame::Array::SetRowHeight ( size_t  nRow,
long  nHeight 
)

Sets the output height of the specified row.

Definition at line 791 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_ROW, and mxImpl.

void svx::frame::Array::SetRowStyleBottom ( size_t  nRow,
const Style rStyle 
)

Sets the bottom frame style of the specified row.

Ignores merged ranges.

Definition at line 526 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_ROW, mxImpl, and SetCellStyleBottom().

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

void svx::frame::Array::SetRowStyleTop ( size_t  nRow,
const Style rStyle 
)

Sets the top frame style of the specified row.

Ignores merged ranges.

Definition at line 519 of file framelinkarray.cxx.

References DBG_FRAME_CHECK_ROW, mxImpl, and SetCellStyleTop().

Referenced by svx::FrameSelectorImpl::DrawAllFrameBorders().

void svx::frame::Array::SetXOffset ( long  nXOffset)

Sets the X output coordinate of the left column.

Definition at line 772 of file framelinkarray.cxx.

References mxImpl.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

void svx::frame::Array::SetYOffset ( long  nYOffset)

Sets the Y output coordinate of the top row.

Definition at line 778 of file framelinkarray.cxx.

References mxImpl.

Referenced by svx::FrameSelectorImpl::InitBorderGeometry().

Member Data Documentation

std::unique_ptr<ArrayImpl> svx::frame::Array::mxImpl
private

The documentation for this class was generated from the following files: