LibreOffice Module svx (master)  1
Classes | Typedefs | Enumerations | Functions | Variables
svx::frame Namespace Reference

Classes

class  Array
 Stores frame styles of an array of cells, supports merged ranges. More...
 
struct  ArrayImpl
 
class  Style
 Contains the widths of primary and secondary line of a frame style. More...
 

Typedefs

typedef std::vector< CellCellVec
 

Enumerations

enum  RefMode : sal_uInt8 {
  RefMode::Centered,
  RefMode::Begin,
  RefMode::End
}
 Specifies how the reference points for frame borders are used. More...
 

Functions

static void lclRecalcCoordVec (std::vector< sal_Int32 > &rCoords, const std::vector< sal_Int32 > &rSizes)
 
static void lclSetMergedRange (CellVec &rCells, sal_Int32 nWidth, sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow)
 
static void 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 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 HelperClipLine (basegfx::B2DPoint &rStart, basegfx::B2DVector &rDirection, const basegfx::B2DRange &rClipRange)
 
static void 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 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)
 
bool operator> (const Style &rL, const Style &rR)
 

Variables

const Style OBJ_STYLE_NONE
 
const Cell OBJ_CELL_NONE
 

Typedef Documentation

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

Definition at line 99 of file framelinkarray.cxx.

Enumeration Type Documentation

Specifies how the reference points for frame borders are used.

Enumerator
Centered 

Frame borders are drawn centered to the reference points.

Begin 

The reference points specify the begin of the frame border width.

The result is that horizontal lines are drawn below, and vertical lines are drawn right of the reference points.

End 

The reference points specify the end of the frame border width.

The result is that horizontal lines are drawn above, and vertical lines are drawn left of the reference points.

Definition at line 36 of file framelink.hxx.

Function Documentation

static void svx::frame::HelperClipLine ( basegfx::B2DPoint rStart,
basegfx::B2DVector rDirection,
const basegfx::B2DRange rClipRange 
)
static
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 
)
static

prepare geometry line data

check if we need to clip geometry line data and do it

bottom-left and top-right Style Tables

Fill bottom-left Style Table

Fill top-right Style Table

Definition at line 1173 of file framelinkarray.cxx.

References aDirection, svx::frame::Array::GetCellStyleBottom(), svx::frame::Array::GetCellStyleLeft(), svx::frame::Array::GetCellStyleRight(), svx::frame::Array::GetCellStyleTop(), HelperClipLine(), and svx::frame::Style::IsUsed().

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

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
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

prepare geometry line data

check if we need to clip geometry line data and do it

top-left and bottom-right Style Tables

Fill top-left Style Table

Fill bottom-right Style Table

Definition at line 1123 of file framelinkarray.cxx.

References aDirection, svx::frame::Array::GetCellStyleBottom(), svx::frame::Array::GetCellStyleLeft(), svx::frame::Array::GetCellStyleRight(), svx::frame::Array::GetCellStyleTop(), HelperClipLine(), and svx::frame::Style::IsUsed().

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

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
static void svx::frame::lclRecalcCoordVec ( std::vector< sal_Int32 > &  rCoords,
const std::vector< sal_Int32 > &  rSizes 
)
static
static void svx::frame::lclSetMergedRange ( CellVec rCells,
sal_Int32  nWidth,
sal_Int32  nFirstCol,
sal_Int32  nFirstRow,
sal_Int32  nLastCol,
sal_Int32  nLastRow 
)
static

Definition at line 211 of file framelinkarray.cxx.

References Cell.

Referenced by svx::frame::Array::MirrorSelfX(), and svx::frame::Array::SetMergedRange().

bool svx::frame::operator> ( const Style rL,
const Style rR 
)
inline

Definition at line 168 of file framelink.hxx.

Variable Documentation

const Cell svx::frame::OBJ_CELL_NONE

Definition at line 228 of file framelinkarray.cxx.

Referenced by svx::frame::ArrayImpl::GetCell().

const Style svx::frame::OBJ_STYLE_NONE