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 <algorithm>
#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 CELLACC(col, row)   mxImpl->GetCellAcc( col, row )
 
#define ORIGCELL(col, row)   mxImpl->GetMergedOriginCell( col, row )
 
#define LASTCELL(col, row)   mxImpl->GetMergedLastCell( col, row )
 

Typedefs

typedef std::vector< Cellsvx::frame::CellVec
 

Functions

static void svx::frame::lclRecalcCoordVec (std::vector< sal_Int32 > &rCoords, const std::vector< sal_Int32 > &rSizes)
 
static void svx::frame::lclSetMergedRange (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
 

Macro Definition Documentation

◆ CELL

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

Definition at line 492 of file framelinkarray.cxx.

◆ CELLACC

#define CELLACC (   col,
  row 
)    mxImpl->GetCellAcc( col, row )

Definition at line 493 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 484 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 485 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 488 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 487 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 486 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 489 of file framelinkarray.cxx.

◆ LASTCELL

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

Definition at line 495 of file framelinkarray.cxx.

◆ ORIGCELL

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

Definition at line 494 of file framelinkarray.cxx.

Variable Documentation

◆ maBLTR

Style maBLTR
private

Definition at line 51 of file framelinkarray.cxx.

◆ maBottom

Style maBottom
private

Definition at line 49 of file framelinkarray.cxx.

◆ maLeft

Style maLeft
private

Definition at line 46 of file framelinkarray.cxx.

◆ maRight

Style maRight
private

Definition at line 47 of file framelinkarray.cxx.

◆ maTLBR

Style maTLBR
private

Definition at line 50 of file framelinkarray.cxx.

◆ maTop

Style maTop
private

Definition at line 48 of file framelinkarray.cxx.

◆ mbMergeOrig

bool mbMergeOrig

Definition at line 65 of file framelinkarray.cxx.

Referenced by svx::frame::Array::MirrorSelfX().

◆ mbOverlapX

bool mbOverlapX

◆ mbOverlapY

bool mbOverlapY

◆ meRotMode

SvxRotateMode meRotMode

Definition at line 62 of file framelinkarray.cxx.

◆ mfOrientation

double mfOrientation

Definition at line 63 of file framelinkarray.cxx.

◆ mnAddBottom

sal_Int32 mnAddBottom

Definition at line 60 of file framelinkarray.cxx.

◆ mnAddLeft

sal_Int32 mnAddLeft

Definition at line 57 of file framelinkarray.cxx.

◆ mnAddRight

sal_Int32 mnAddRight

Definition at line 58 of file framelinkarray.cxx.

◆ mnAddTop

sal_Int32 mnAddTop

Definition at line 59 of file framelinkarray.cxx.

◆ mnCol

sal_Int32 mnCol
private

Definition at line 458 of file framelinkarray.cxx.

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

◆ mnFirstCol

sal_Int32 mnFirstCol
private

Definition at line 454 of file framelinkarray.cxx.

◆ mnFirstRow

sal_Int32 mnFirstRow
private

Definition at line 455 of file framelinkarray.cxx.

◆ mnLastCol

sal_Int32 mnLastCol
private

Definition at line 456 of file framelinkarray.cxx.

◆ mnLastRow

sal_Int32 mnLastRow
private

Definition at line 457 of file framelinkarray.cxx.

◆ mnRow

sal_Int32 mnRow
private

Definition at line 459 of file framelinkarray.cxx.

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