20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_DRAWINGBASE_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_DRAWINGBASE_HXX
26 namespace oox {
class AttributeList; }
34 bool isValid()
const {
return (
X >= 0) && (
Y >= 0); }
53 bool isValid()
const {
return (mnCol >= 0) && (mnRow >= 0); }
92 void setCellPos( sal_Int32 nElement, sal_Int32 nParentContext,
const OUString& rValue );
107 css::awt::Rectangle
calcAnchorRectHmm(
const css::awt::Size& rPageSizeHmm )
const;
sal_Int64 mnRowOffset
X offset inside the column.
AnchorPointModel maPos
Type of the cell anchor models.
Absolute position in a spreadsheet (in EMUs) independent from cells.
AnchorClientDataModel maClientData
Bottom-right position, if anchor is of type two-cell.
AnchorSizeModel maSize
Top-left position, if anchor is of type absolute.
sal_Int64 mnColOffset
Row index.
::oox::drawingml::EmuRectangle calcAnchorRectEmu(const css::awt::Size &rPageSizeHmm) const
Calculates the resulting shape anchor in EMUs.
Offsets are given in EMUs.
Contains the position of a shape in the spreadsheet.
void importVmlAnchor(const OUString &rAnchor)
Imports the client anchor settings from a VML element.
Position in spreadsheet (cell position and offset inside cell).
AnchorType getEditAs() const
void importExt(const AttributeList &rAttribs)
Imports the absolute anchor size from the xdr:ext element.
void setCellPos(sal_Int32 nElement, sal_Int32 nParentContext, const OUString &rValue)
Sets an attribute of the cell-dependent anchor position from xdr:from and xdr:to elements.
Two-cell anchor (top-left and bottom-right corner at cell).
sal_Int32 mnRow
Column index.
AnchorType meEditAs
Shape client data.
void importClientData(const AttributeList &rAttribs)
Imports the shape client data from the xdr:clientData element.
ShapeAnchor(const WorksheetHelper &rHelper)
CellAnchorModel maTo
Top-left position, if anchor is not of type absolute.
Absolute size in a spreadsheet (in EMUs).
css::awt::Rectangle calcAnchorRectHmm(const css::awt::Size &rPageSizeHmm) const
Calculates the resulting shape anchor in 1/100 mm.
bool isAnchorValid() const
Checks whether the shape is visible based on the anchor.
Application-specific client data of a shape.
void importAnchor(sal_Int32 nElement, const AttributeList &rAttribs)
Imports the shape anchor (one of the elements xdr:absoluteAnchor, xdr:oneCellAnchor, xdr:twoCellAnchor).
CellAnchorType meCellAnchorType
Type of this shape anchor.
CellAnchorType
Specifies how cell positions from CellAnchorModel have to be processed.
CellAnchorModel maFrom
Anchor size, if anchor is not of type two-cell.
CellAnchorModel()
Y offset inside the row.
::oox::drawingml::EmuPoint calcCellAnchorEmu(const CellAnchorModel &rModel) const
Converts the passed anchor to an absolute position in EMUs.
One-cell anchor (top-left corner at cell, size in absolute units).
Absolute anchor (top-left corner and size in absolute units).
void importPos(const AttributeList &rAttribs)
Imports the absolute anchor position from the xdr:pos element.