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