LibreOffice Module svx (master) 1
Classes | Namespaces | Macros | Typedefs | Functions | Variables
framelinkarray.cxx File Reference
#include <svx/framelinkarray.hxx>
#include <math.h>
#include <vector>
#include <set>
#include <unordered_set>
#include <algorithm>
#include <svl/itempool.hxx>
#include <tools/debug.hxx>
#include <tools/gen.hxx>
#include <vcl/canvastools.hxx>
#include <svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolygonclipper.hxx>
Include dependency graph for framelinkarray.cxx:

Go to the source code of this file.

Classes

struct  svx::frame::ArrayImpl
 

Namespaces

namespace  svx
 
namespace  svx::frame
 

Macros

#define DBG_FRAME_CHECK(cond, funcname, error)   DBG_ASSERT( cond, "svx::frame::Array::" funcname " - " error )
 
#define DBG_FRAME_CHECK_COL(col, funcname)   DBG_FRAME_CHECK( (col) < GetColCount(), funcname, "invalid column index" )
 
#define DBG_FRAME_CHECK_ROW(row, funcname)   DBG_FRAME_CHECK( (row) < GetRowCount(), funcname, "invalid row index" )
 
#define DBG_FRAME_CHECK_COLROW(col, row, funcname)   DBG_FRAME_CHECK( ((col) < GetColCount()) && ((row) < GetRowCount()), funcname, "invalid cell index" )
 
#define DBG_FRAME_CHECK_COL_1(col, funcname)   DBG_FRAME_CHECK( (col) <= GetColCount(), funcname, "invalid column index" )
 
#define DBG_FRAME_CHECK_ROW_1(row, funcname)   DBG_FRAME_CHECK( (row) <= GetRowCount(), funcname, "invalid row index" )
 
#define CELL(col, row)   mxImpl->GetCell( col, row )
 
#define PUTCELL(col, row, cell)   mxImpl->PutCell( col, row, cell )
 
#define ORIGCELL(col, row)   mxImpl->GetMergedOriginCell( col, row )
 
#define LASTCELL(col, row)   mxImpl->GetMergedLastCell( col, row )
 

Typedefs

typedef std::vector< const Cell * > svx::frame::CellVec
 

Functions

static void svx::frame::lclRecalcCoordVec (std::vector< sal_Int32 > &rCoords, const std::vector< sal_Int32 > &rSizes)
 
static void svx::frame::lclSetMergedRange (SfxItemPool &rPool, CellVec &rCells, sal_Int32 nWidth, sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow)
 
static void svx::frame::HelperCreateHorizontalEntry (const Array &rArray, const Style &rStyle, sal_Int32 col, sal_Int32 row, const basegfx::B2DPoint &rOrigin, const basegfx::B2DVector &rX, const basegfx::B2DVector &rY, drawinglayer::primitive2d::SdrFrameBorderDataVector &rData, bool bUpper, const Color *pForceColor)
 
static void svx::frame::HelperCreateVerticalEntry (const Array &rArray, const Style &rStyle, sal_Int32 col, sal_Int32 row, const basegfx::B2DPoint &rOrigin, const basegfx::B2DVector &rX, const basegfx::B2DVector &rY, drawinglayer::primitive2d::SdrFrameBorderDataVector &rData, bool bLeft, const Color *pForceColor)
 
static void svx::frame::HelperClipLine (basegfx::B2DPoint &rStart, basegfx::B2DVector &rDirection, const basegfx::B2DRange &rClipRange)
 
static void svx::frame::HelperCreateTLBREntry (const Array &rArray, const Style &rStyle, drawinglayer::primitive2d::SdrFrameBorderDataVector &rData, const basegfx::B2DPoint &rOrigin, const basegfx::B2DVector &rX, const basegfx::B2DVector &rY, sal_Int32 nColLeft, sal_Int32 nColRight, sal_Int32 nRowTop, sal_Int32 nRowBottom, const Color *pForceColor, const basegfx::B2DRange *pClipRange)
 
static void svx::frame::HelperCreateBLTREntry (const Array &rArray, const Style &rStyle, drawinglayer::primitive2d::SdrFrameBorderDataVector &rData, const basegfx::B2DPoint &rOrigin, const basegfx::B2DVector &rX, const basegfx::B2DVector &rY, sal_Int32 nColLeft, sal_Int32 nColRight, sal_Int32 nRowTop, sal_Int32 nRowBottom, const Color *pForceColor, const basegfx::B2DRange *pClipRange)
 

Variables

const Style svx::frame::OBJ_STYLE_NONE
 
const Cell svx::frame::OBJ_CELL_NONE
 
const SfxItemInfo svx::frame::maItemInfos []
 

Macro Definition Documentation

◆ CELL

#define CELL (   col,
  row 
)    mxImpl->GetCell( col, row )

Definition at line 552 of file framelinkarray.cxx.

◆ DBG_FRAME_CHECK

#define DBG_FRAME_CHECK (   cond,
  funcname,
  error 
)    DBG_ASSERT( cond, "svx::frame::Array::" funcname " - " error )

Definition at line 544 of file framelinkarray.cxx.

◆ DBG_FRAME_CHECK_COL

#define DBG_FRAME_CHECK_COL (   col,
  funcname 
)    DBG_FRAME_CHECK( (col) < GetColCount(), funcname, "invalid column index" )

Definition at line 545 of file framelinkarray.cxx.

◆ DBG_FRAME_CHECK_COL_1

#define DBG_FRAME_CHECK_COL_1 (   col,
  funcname 
)    DBG_FRAME_CHECK( (col) <= GetColCount(), funcname, "invalid column index" )

Definition at line 548 of file framelinkarray.cxx.

◆ DBG_FRAME_CHECK_COLROW

#define DBG_FRAME_CHECK_COLROW (   col,
  row,
  funcname 
)    DBG_FRAME_CHECK( ((col) < GetColCount()) && ((row) < GetRowCount()), funcname, "invalid cell index" )

Definition at line 547 of file framelinkarray.cxx.

◆ DBG_FRAME_CHECK_ROW

#define DBG_FRAME_CHECK_ROW (   row,
  funcname 
)    DBG_FRAME_CHECK( (row) < GetRowCount(), funcname, "invalid row index" )

Definition at line 546 of file framelinkarray.cxx.

◆ DBG_FRAME_CHECK_ROW_1

#define DBG_FRAME_CHECK_ROW_1 (   row,
  funcname 
)    DBG_FRAME_CHECK( (row) <= GetRowCount(), funcname, "invalid row index" )

Definition at line 549 of file framelinkarray.cxx.

◆ LASTCELL

#define LASTCELL (   col,
  row 
)    mxImpl->GetMergedLastCell( col, row )

Definition at line 555 of file framelinkarray.cxx.

◆ ORIGCELL

#define ORIGCELL (   col,
  row 
)    mxImpl->GetMergedOriginCell( col, row )

Definition at line 554 of file framelinkarray.cxx.

◆ PUTCELL

#define PUTCELL (   col,
  row,
  cell 
)    mxImpl->PutCell( col, row, cell )

Definition at line 553 of file framelinkarray.cxx.

Variable Documentation

◆ maBLTR

Style maBLTR
private

Definition at line 54 of file framelinkarray.cxx.

◆ maBottom

Style maBottom
private

Definition at line 52 of file framelinkarray.cxx.

◆ maLeft

Style maLeft
private

Definition at line 49 of file framelinkarray.cxx.

◆ maRight

Style maRight
private

Definition at line 50 of file framelinkarray.cxx.

◆ maTLBR

Style maTLBR
private

Definition at line 53 of file framelinkarray.cxx.

◆ maTop

Style maTop
private

Definition at line 51 of file framelinkarray.cxx.

◆ mbOverlapX

bool mbOverlapX

◆ mbOverlapY

bool mbOverlapY

◆ meRotMode

SvxRotateMode meRotMode

Definition at line 65 of file framelinkarray.cxx.

◆ mfOrientation

double mfOrientation

Definition at line 66 of file framelinkarray.cxx.

◆ mnAddBottom

sal_Int32 mnAddBottom

Definition at line 63 of file framelinkarray.cxx.

◆ mnAddLeft

sal_Int32 mnAddLeft

Definition at line 60 of file framelinkarray.cxx.

◆ mnAddRight

sal_Int32 mnAddRight

Definition at line 61 of file framelinkarray.cxx.

◆ mnAddTop

sal_Int32 mnAddTop

Definition at line 62 of file framelinkarray.cxx.

◆ mnCol

sal_Int32 mnCol
private

Definition at line 518 of file framelinkarray.cxx.

Referenced by sdr::table::SvxTableController::executeAction().

◆ mnFirstCol

sal_Int32 mnFirstCol
private

Definition at line 514 of file framelinkarray.cxx.

◆ mnFirstRow

sal_Int32 mnFirstRow
private

Definition at line 515 of file framelinkarray.cxx.

◆ mnLastCol

sal_Int32 mnLastCol
private

Definition at line 516 of file framelinkarray.cxx.

◆ mnLastRow

sal_Int32 mnLastRow
private

Definition at line 517 of file framelinkarray.cxx.

◆ mnRow

sal_Int32 mnRow
private

Definition at line 519 of file framelinkarray.cxx.

Referenced by sdr::table::SvxTableController::executeAction().