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
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RMessageHandler.h:33
#define QCADCORE_EXPORT
Definition: core_global.h:10
Base class for file exporters.
Definition: RFileExporter.h:42
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
Abstract base class for exporters.
Definition: RExporter.h:63
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RProgressHandler.h:33