QCAD
Open Source 2D CAD
REntityExportListener Class Referenceabstract

Abstract base class for classes that wish to be notified when an entity is exported. More...

#include <REntityExportListener.h>

Public Member Functions

virtual bool checkCustomProperty (REntity *e) const
 
virtual void exportEntity (RExporter *exporter, REntity *entity)=0
 Called by the document whenever an entity is exporter with one of the registered custom properties. More...
 
virtual void registerCustomProperty (const QString &title, const QString &regExp)
 Registers the given custom property as trigger. More...
 
virtual ~REntityExportListener ()
 

Private Attributes

QSet< QPair< QString, QString > > registeredProperties
 

Detailed Description

Abstract base class for classes that wish to be notified when an entity is exported.

Scriptable:
This class is available in script environments.

Constructor & Destructor Documentation

virtual REntityExportListener::~REntityExportListener ( )
inlinevirtual

Member Function Documentation

virtual bool REntityExportListener::checkCustomProperty ( REntity e) const
inlinevirtual
virtual void REntityExportListener::exportEntity ( RExporter exporter,
REntity entity 
)
pure virtual

Called by the document whenever an entity is exporter with one of the registered custom properties.

Can be used to for example to 'decorate' the entity.

Parameters
exporterThe exporter to use to export decorations to.
entityThe entity currently being drawn.
virtual void REntityExportListener::registerCustomProperty ( const QString &  title,
const QString &  regExp 
)
inlinevirtual

Registers the given custom property as trigger.

The exportEntity function is only called for entities with a custom property that matches the given title and regular expression.

Member Data Documentation

QSet<QPair<QString, QString> > REntityExportListener::registeredProperties
private

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