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 rtl::Reference< SdrObjectMakeNewObject (SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind nObjIdentifier, const tools::Rectangle *pSnapRect=nullptr)
 
static void InsertMakeObjectHdl (Link< SdrObjCreatorParams, rtl::Reference< SdrObject > > const &rLink)
 
static void RemoveMakeObjectHdl (Link< SdrObjCreatorParams, rtl::Reference< SdrObject > > const &rLink)
 

Private Member Functions

 SdrObjFactory ()=delete
 

Static Private Member Functions

static SVX_DLLPRIVATE rtl::Reference< SdrObjectCreateObjectFromFactory (SdrModel &rSdrModel, SdrInventor nInventor, SdrObjKind 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 1022 of file svdobj.hxx.

Constructor & Destructor Documentation

◆ SdrObjFactory()

SdrObjFactory::SdrObjFactory ( )
privatedelete

Member Function Documentation

◆ CreateObjectFromFactory()

rtl::Reference< SdrObject > SdrObjFactory::CreateObjectFromFactory ( SdrModel rSdrModel,
SdrInventor  nInventor,
SdrObjKind  nIdentifier 
)
staticprivate

Definition at line 3221 of file svdobj.cxx.

References i, and ImpGetUserMakeObjHdl().

Referenced by MakeNewObject().

◆ InsertMakeObjectHdl()

void SdrObjFactory::InsertMakeObjectHdl ( Link< SdrObjCreatorParams, rtl::Reference< SdrObject > > const &  rLink)
static

◆ MakeNewObject()

rtl::Reference< SdrObject > SdrObjFactory::MakeNewObject ( SdrModel rSdrModel,
SdrInventor  nInventor,
SdrObjKind  nObjIdentifier,
const tools::Rectangle pSnapRect = nullptr 
)
static

◆ RemoveMakeObjectHdl()

void SdrObjFactory::RemoveMakeObjectHdl ( Link< SdrObjCreatorParams, rtl::Reference< SdrObject > > const &  rLink)
static

Definition at line 3432 of file svdobj.cxx.

References ImpGetUserMakeObjHdl().


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