LibreOffice Module svx (master)  1
Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
SdrObjFactory Class Reference

Whoever creates his own objects must set a link in the SdrObjFactory class. More...

#include <svdobj.hxx>

Static Public Member Functions

static SdrObjectMakeNewObject (SdrModel &rSdrModel, SdrInventor nInventor, sal_uInt16 nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
 
static void InsertMakeObjectHdl (Link< SdrObjCreatorParams, SdrObject * > const &rLink)
 
static void RemoveMakeObjectHdl (Link< SdrObjCreatorParams, SdrObject * > const &rLink)
 

Private Member Functions

 SdrObjFactory ()=delete
 

Static Private Member Functions

static SVX_DLLPRIVATE SdrObjectCreateObjectFromFactory (SdrModel &rSdrModel, SdrInventor nInventor, sal_uInt16 nIdentifier)
 

Detailed Description

Whoever creates his own objects must set a link in the SdrObjFactory class.

The handler must have the following signature: void Hdl(SdrObjFactory*) He must take a look at the referenced instance's nInventor and nIdentifier values, and must create a new drawing object instance accordingly. He must also make the pNewObj pointer reference to this instance.

Definition at line 1057 of file svdobj.hxx.

Constructor & Destructor Documentation

SdrObjFactory::SdrObjFactory ( )
privatedelete

Member Function Documentation

SdrObject * SdrObjFactory::CreateObjectFromFactory ( SdrModel rSdrModel,
SdrInventor  nInventor,
sal_uInt16  nIdentifier 
)
staticprivate

Definition at line 3059 of file svdobj.cxx.

References i, and ImpGetUserMakeObjHdl().

Referenced by MakeNewObject().

void SdrObjFactory::InsertMakeObjectHdl ( Link< SdrObjCreatorParams, SdrObject * > const &  rLink)
static
SdrObject * SdrObjFactory::MakeNewObject ( SdrModel rSdrModel,
SdrInventor  nInventor,
sal_uInt16  nObjIdentifier,
const tools::Rectangle pSnapRect = nullptr 
)
static
void SdrObjFactory::RemoveMakeObjectHdl ( Link< SdrObjCreatorParams, SdrObject * > const &  rLink)
static

Definition at line 3219 of file svdobj.cxx.

References ImpGetUserMakeObjHdl().


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