QCAD
Open Source 2D CAD
RExportListener.h
Go to the documentation of this file.
1 
20 #ifndef REXPORTLISTENER_H
21 #define REXPORTLISTENER_H
22 
23 #include <QMetaType>
24 
25 #include "core_global.h"
26 
27 class RDocumentInterface;
28 class RExporter;
29 
38 public:
39  virtual ~RExportListener() {}
40 
44  virtual void preExportEvent(RDocumentInterface* documentInterface) = 0;
45 
49  virtual void postExportEvent(RDocumentInterface* documentInterface) = 0;
50 
54  virtual void endOfExportEvent(RExporter* exporter) = 0;
55 };
56 
58 
59 #endif
RExportListener::preExportEvent
virtual void preExportEvent(RDocumentInterface *documentInterface)=0
Called by the document whenever a document is about to be exported.
RExportListener::~RExportListener
virtual ~RExportListener()
Definition: RExportListener.h:39
RExportListener::postExportEvent
virtual void postExportEvent(RDocumentInterface *documentInterface)=0
Called by the document whenever a document has been exported.
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
core_global.h
RExporter
Abstract base class for exporters.
Definition: RExporter.h:72
RExportListener
Abstract base class for classes that are interested in file export events.
Definition: RExportListener.h:37
RExportListener::endOfExportEvent
virtual void endOfExportEvent(RExporter *exporter)=0
Called by the exporter just before the export finishes.
RDocumentInterface
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10