LibreOffice Module sd (master) 1
Public Member Functions | List of all members
sd::ShellFactory< ShellType > Class Template Referenceabstract

#include <ShellFactory.hxx>

Public Member Functions

virtual ~ShellFactory ()
 This abstract virtual class needs a destructor so that the destructors of derived classes are called. More...
 
virtual ShellType * CreateShell (ShellId nId)=0
 Create a new instance of a view shell for the given id that will be stacked onto the given view shell base. More...
 
virtual void ReleaseShell (ShellType *pShell)=0
 Tell the factory that a shell is no longer in use. More...
 

Detailed Description

template<class ShellType>
class sd::ShellFactory< ShellType >

Definition at line 28 of file ShellFactory.hxx.

Constructor & Destructor Documentation

◆ ~ShellFactory()

template<class ShellType >
virtual sd::ShellFactory< ShellType >::~ShellFactory ( )
inlinevirtual

This abstract virtual class needs a destructor so that the destructors of derived classes are called.

Definition at line 34 of file ShellFactory.hxx.

Member Function Documentation

◆ CreateShell()

template<class ShellType >
virtual ShellType * sd::ShellFactory< ShellType >::CreateShell ( ShellId  nId)
pure virtual

Create a new instance of a view shell for the given id that will be stacked onto the given view shell base.

Returns
Return the new view shell or NULL when a creation is not possible.

◆ ReleaseShell()

template<class ShellType >
virtual void sd::ShellFactory< ShellType >::ReleaseShell ( ShellType *  pShell)
pure virtual

Tell the factory that a shell is no longer in use.

It may destroy it or put it for future use in a cache.


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