Skip to content

RFileExporter

Class in Core Module
Header: #include <src/core/RFileExporter.h>
Inherits: RExporter
Inherited by: RDxfExporter

Base class for file exporters.

File exporters export RDocument objects into files of a specific format.

Scriptable: This class is available in script environments.

RFileExporter()
RFileExporter(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)
virtual ~RFileExporter()
virtual bool exportFile(const QString &fileName, const QString &nameFilter, bool setFileName=true)=0 = 0
Must be implemented by file exporters to export the document into the given file.
virtual QString getCorrectedFileName(const QString &fileName, const QString &nameFilter)=0 = 0
Must be implemented by file exporters to correct the given file name if necessary (add extension based on chosen name filter).

RFileExporter::RFileExporter()

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

RFileExporter::RFileExporter(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)

virtual RFileExporter::~RFileExporter()

virtual

virtual bool RFileExporter::exportFile(const QString &fileName, const QString &nameFilter, bool setFileName=true)=0 = 0

pure virtual

Must be implemented by file exporters to export the document into the given file.

Reimplemented in exportFile.

virtual QString RFileExporter::getCorrectedFileName(const QString &fileName, const QString &nameFilter)=0 = 0

pure virtual

Must be implemented by file exporters to correct the given file name if necessary (add extension based on chosen name filter).

Reimplemented in getCorrectedFileName.