QCAD
Open Source 2D CAD
RFileExporter.h
Go to the documentation of this file.
1 
20 #ifndef RFILEEXPORTER_H
21 #define RFILEEXPORTER_H
22 
23 #include "core_global.h"
24 
25 #include <QString>
26 
27 #include "RDocument.h"
28 #include "RExporter.h"
29 
30 class RMessageHandler;
31 class RProgressHandler;
32 
33 
43 public:
44  RFileExporter();
45  RFileExporter(RDocument& document, RMessageHandler* messageHandler = NULL, RProgressHandler* progressHandler = NULL);
46  virtual ~RFileExporter();
47 
52  virtual QString getCorrectedFileName(const QString& fileName, const QString& nameFilter) = 0;
53 
58  virtual bool exportFile(const QString& fileName, const QString& nameFilter, bool setFileName = true) = 0;
59 };
60 
62 
63 #endif
RMessageHandler
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RMessageHandler.h:33
RProgressHandler
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RProgressHandler.h:33
RFileExporter
Base class for file exporters.
Definition: RFileExporter.h:42
RDocument.h
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
core_global.h
RExporter
Abstract base class for exporters.
Definition: RExporter.h:72
RFileExporter::exportFile
virtual bool exportFile(const QString &fileName, const QString &nameFilter, bool setFileName=true)=0
Must be implemented by file exporters to export the document into the given file.
RDocument
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
RExporter.h
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10
RFileExporter::getCorrectedFileName
virtual QString getCorrectedFileName(const QString &fileName, const QString &nameFilter)=0
Must be implemented by file exporters to correct the given file name if necessary (add extension base...