QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDxfExporterFactory.h
Go to the documentation of this file.
1
20#ifndef RDXFEXPORTERFACTORY_H_
21#define RDXFEXPORTERFACTORY_H_
22
23#include "dxf_global.h"
24
25#include <QMetaType>
26
27#include "RDxfExporter.h"
30
31class RDocument;
32class RMessageHandler;
34
39public:
45
46 virtual QStringList getFilterStrings();
47
49 RMessageHandler* messageHandler = NULL,
50 RProgressHandler* progressHandler = NULL) {
51
52 return new RDxfExporter(document, messageHandler, progressHandler);
53 }
54
55 virtual int canExport(const QString& fileName, const QString& nameFilter);
56};
57
59
60#endif
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Definition RDxfExporterFactory.h:38
virtual RFileExporter * instantiate(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)
Definition RDxfExporterFactory.h:48
static void registerFileExporter()
Definition RDxfExporterFactory.h:40
Exporter for the DXF format, based on dxflib.
Definition RDxfExporter.h:64
Needs to be implemented by RFileExporter implementations to check if the exporter is suitable to expo...
Definition RFileExporterFactory.h:41
virtual int canExport(const QString &fileName, const QString &nameFilter="")=0
virtual QStringList getFilterStrings()=0
Base class for file exporters.
Definition RFileExporter.h:42
static void registerFileExporter(RFileExporterFactory *factory, bool prepend=false)
Registers a file exporter.
Definition RFileExporterRegistry.cpp:34
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMessageHandler.h:33
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RProgressHandler.h:33
#define QCADDXF_EXPORT
Definition dxf_global.h:10
#define NULL
Definition opennurbs_system.h:256