QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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 "RExporter.h"
28
29class RDocument;
30class RMessageHandler;
32
33
43public:
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
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Abstract base class for exporters.
Definition RExporter.h:78
Base class for file exporters.
Definition RFileExporter.h:42
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...
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.
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMessageHandler.h:33
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RProgressHandler.h:33
#define QCADCORE_EXPORT
Definition core_global.h:10
#define NULL
Definition opennurbs_system.h:256