LibreOffice Module sc (master)  1
Public Member Functions | Public Attributes | List of all members
XclObjAnchor Struct Reference

Represents the position (anchor) of an object in a Calc document. More...

#include <xlescher.hxx>

Inheritance diagram for XclObjAnchor:
[legend]
Collaboration diagram for XclObjAnchor:
[legend]

Public Member Functions

 XclObjAnchor ()
 Y offset in bottom row (1/256 of row height). More...
 
tools::Rectangle GetRect (const XclRoot &rRoot, SCTAB nScTab, MapUnit eMapUnit) const
 Calculates a rectangle from the contained coordinates. More...
 
void SetRect (const XclRoot &rRoot, SCTAB nScTab, const tools::Rectangle &rRect, MapUnit eMapUnit)
 Initializes the anchor coordinates for a sheet. More...
 
void SetRect (const Size &rPageSize, sal_Int32 nScaleX, sal_Int32 nScaleY, const tools::Rectangle &rRect, MapUnit eMapUnit)
 Initializes the anchor coordinates for an embedded draw page. More...
 
- Public Member Functions inherited from XclRange
 XclRange (ScAddress::Uninitialized e)
 
 XclRange ()
 
 XclRange (const XclAddress &rPos)
 
 XclRange (sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2)
 
void Set (sal_uInt16 nCol1, sal_uInt32 nRow1, sal_uInt16 nCol2, sal_uInt32 nRow2)
 
sal_uInt16 GetColCount () const
 
sal_uInt32 GetRowCount () const
 
bool Contains (const XclAddress &rPos) const
 
void Read (XclImpStream &rStrm, bool bCol16Bit=true)
 
void Write (XclExpStream &rStrm, bool bCol16Bit=true) const
 

Public Attributes

sal_uInt16 mnLX
 
sal_uInt32 mnTY
 X offset in left column (1/1024 of column width). More...
 
sal_uInt16 mnRX
 Y offset in top row (1/256 of row height). More...
 
sal_uInt32 mnBY
 X offset in right column (1/1024 of column width). More...
 
- Public Attributes inherited from XclRange
XclAddress maFirst
 
XclAddress maLast
 

Detailed Description

Represents the position (anchor) of an object in a Calc document.

Definition at line 284 of file xlescher.hxx.

Constructor & Destructor Documentation

XclObjAnchor::XclObjAnchor ( )
explicit

Y offset in bottom row (1/256 of row height).

Definition at line 134 of file xlescher.cxx.

Member Function Documentation

tools::Rectangle XclObjAnchor::GetRect ( const XclRoot rRoot,
SCTAB  nScTab,
MapUnit  eMapUnit 
) const
void XclObjAnchor::SetRect ( const XclRoot rRoot,
SCTAB  nScTab,
const tools::Rectangle rRect,
MapUnit  eMapUnit 
)
void XclObjAnchor::SetRect ( const Size rPageSize,
sal_Int32  nScaleX,
sal_Int32  nScaleY,
const tools::Rectangle rRect,
MapUnit  eMapUnit 
)

Member Data Documentation

sal_uInt32 XclObjAnchor::mnBY
sal_uInt16 XclObjAnchor::mnLX
sal_uInt16 XclObjAnchor::mnRX
sal_uInt32 XclObjAnchor::mnTY

X offset in left column (1/1024 of column width).

Definition at line 287 of file xlescher.hxx.

Referenced by XclImpChartDrawing::CalcAnchorRect(), GetRect(), operator>>(), SetRect(), WriteXclObjAnchor(), and XclExpDffDropDownAnchor::XclExpDffDropDownAnchor().


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