27#define SC_UD_OBJDATA 1
29#define SC_UD_MACRODATA 3
34 enum Type {
CellNote, ValidationCircle, DetectiveArrow, DrawingObject };
41 bool mbResizeWithCell =
false;
42 bool mbWasInHiddenRow =
false;
52 if (
maStart.IsValid() && mbResizeWithCell && bIsVisible)
54 maShapeRect = rNewRect;
55 mbWasInHiddenRow = !bIsVisible;
59 virtual std::unique_ptr<SdrObjUserData>
Clone(
SdrObject* pObj )
const override;
79 virtual std::unique_ptr<SdrObjUserData>
Clone(
SdrObject* pObj )
const override;
81 void SetMacro(
const OUString& rMacro ) { maMacro = rMacro; }
82 const OUString&
GetMacro()
const {
return maMacro; }
static tools::Rectangle GetCellRect(const ScDocument &rDoc, const ScAddress &rPos, bool bMergedCell)
Returns the rectangle for the passed cell address in 1/100 mm.
const tools::Rectangle & getShapeRect() const
tools::Rectangle maLastCellRect
const tools::Rectangle & getLastCellRect() const
void setShapeRect(const ScDocument *rDoc, tools::Rectangle rNewRect, bool bIsVisible=true)
tools::Rectangle maShapeRect
const OUString & GetMacro() const
ScMacroInfo(ScMacroInfo &&)=default
void SetMacro(const OUString &rMacro)
ScMacroInfo(ScMacroInfo const &)=default
void operator=(const SdrObjUserData &rData)=delete
virtual std::unique_ptr< SdrObjUserData > Clone(SdrObject *pObj1) const=0