LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ScDrawObjData Class Referencefinal

#include <userdat.hxx>

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

Public Types

enum  Type {
  CellNote ,
  ValidationCircle ,
  DetectiveArrow ,
  DrawingObject
}
 

Public Member Functions

 ScDrawObjData ()
 
const tools::RectanglegetShapeRect () const
 
const tools::RectanglegetLastCellRect () const
 
void setShapeRect (const ScDocument *rDoc, tools::Rectangle rNewRect, bool bIsVisible=true)
 
- Public Member Functions inherited from SdrObjUserData
 SdrObjUserData (SdrInventor nInv, sal_uInt16 nId)
 
 SdrObjUserData (const SdrObjUserData &rData)
 
virtual ~SdrObjUserData ()
 
virtual std::unique_ptr< SdrObjUserDataClone (SdrObject *pObj1) const=0
 
SdrInventor GetInventor () const
 
sal_uInt16 GetId () const
 

Public Attributes

ScAddress maStart
 
ScAddress maEnd
 
Point maStartOffset
 
Point maEndOffset
 
Type meType
 
bool mbResizeWithCell = false
 
bool mbWasInHiddenRow = false
 

Private Member Functions

virtual std::unique_ptr< SdrObjUserDataClone (SdrObject *pObj) const override
 

Private Attributes

tools::Rectangle maLastCellRect
 
tools::Rectangle maShapeRect
 

Detailed Description

Definition at line 31 of file userdat.hxx.

Member Enumeration Documentation

◆ Type

Enumerator
CellNote 
ValidationCircle 
DetectiveArrow 
DrawingObject 

Definition at line 34 of file userdat.hxx.

Constructor & Destructor Documentation

◆ ScDrawObjData()

ScDrawObjData::ScDrawObjData ( )
explicit

Definition at line 23 of file userdat.cxx.

References maEnd, maStart, meType, and ScOrSwDraw.

Referenced by Clone().

Member Function Documentation

◆ Clone()

std::unique_ptr< SdrObjUserData > ScDrawObjData::Clone ( SdrObject pObj) const
overrideprivatevirtual

Implements SdrObjUserData.

Definition at line 32 of file userdat.cxx.

References ScDrawObjData().

◆ getLastCellRect()

const tools::Rectangle & ScDrawObjData::getLastCellRect ( ) const
inline

Definition at line 47 of file userdat.hxx.

Referenced by ScDrawLayer::ResizeLastRectFromAnchor().

◆ getShapeRect()

const tools::Rectangle & ScDrawObjData::getShapeRect ( ) const
inline

Definition at line 46 of file userdat.hxx.

Referenced by ScDrawLayer::InitializeCellAnchoredObj(), and ScDrawLayer::RecalcPos().

◆ setShapeRect()

void ScDrawObjData::setShapeRect ( const ScDocument rDoc,
tools::Rectangle  rNewRect,
bool  bIsVisible = true 
)
inline

Member Data Documentation

◆ maEnd

ScAddress ScDrawObjData::maEnd

◆ maEndOffset

Point ScDrawObjData::maEndOffset

◆ maLastCellRect

tools::Rectangle ScDrawObjData::maLastCellRect
private

Definition at line 63 of file userdat.hxx.

◆ maShapeRect

tools::Rectangle ScDrawObjData::maShapeRect
private

Definition at line 65 of file userdat.hxx.

◆ maStart

ScAddress ScDrawObjData::maStart

◆ maStartOffset

Point ScDrawObjData::maStartOffset

◆ mbResizeWithCell

bool ScDrawObjData::mbResizeWithCell = false

◆ mbWasInHiddenRow

bool ScDrawObjData::mbWasInHiddenRow = false

Definition at line 42 of file userdat.hxx.

Referenced by ScDrawLayer::ResizeLastRectFromAnchor().

◆ meType

Type ScDrawObjData::meType

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