class SC_DLLPUBLIC ScDrawObjData final : public SdrObjUserData
{ public: enum Type { CellNote, ValidationCircle, DetectiveArrow, DrawingObject };
ScAddress maStart;
ScAddress maEnd;
Point maStartOffset;
Point maEndOffset;
Type meType; bool mbResizeWithCell = false; bool mbWasInHiddenRow = false;
explicit ScDrawObjData();
const tools::Rectangle & getShapeRect() const { return maShapeRect; }; const tools::Rectangle & getLastCellRect() const { return maLastCellRect; }; void setShapeRect(const ScDocument* rDoc, tools::Rectangle rNewRect, bool bIsVisible=true)
{ // bIsVisible should be false when the object is hidden obviously. We don't want to store the old cell rect in that // case because it will have height=0 if (maStart.IsValid() && mbResizeWithCell && bIsVisible)
maLastCellRect = ScDrawLayer::GetCellRect(*rDoc, maStart, true);
maShapeRect = rNewRect;
mbWasInHiddenRow = !bIsVisible;
};
// Stores the last cell rect this shape was anchored to. // Needed when the cell is resized to resize the image accordingly.
tools::Rectangle maLastCellRect; // Stores the rect of the shape to which this ScDrawObjData belongs.
tools::Rectangle maShapeRect;
};
class SAL_DLLPUBLIC_RTTI ScMacroInfo final : public SdrObjUserData
{ public:
ScMacroInfo(); virtual ~ScMacroInfo() override;
ScMacroInfo(ScMacroInfo const &) = default;
ScMacroInfo(ScMacroInfo &&) = default;
ScMacroInfo & operator =(ScMacroInfo const &) = delete; // due to SdrObjUserData
ScMacroInfo & operator =(ScMacroInfo &&) = delete; // due to SdrObjUserData
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.