RFileExporter
Class in Core Module
Header: #include <src/core/RFileExporter.h>
Inherits: RExporter
Inherited by: RDxfExporter
Description
Section titled “Description”Base class for file exporters.
File exporters export RDocument objects into files of a specific format.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”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 = 0Must be implemented by file exporters to export the document into the given file. |
| virtual QString | getCorrectedFileName(const QString &fileName, const QString &nameFilter)=0 = 0Must be implemented by file exporters to correct the given file name if necessary (add extension based on chosen name filter). |
Member Documentation
Section titled “Member Documentation”RFileExporter
Section titled “RFileExporter”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
Section titled “RFileExporter”RFileExporter::RFileExporter(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)~RFileExporter
Section titled “~RFileExporter”virtual RFileExporter::~RFileExporter()virtual
exportFile
Section titled “exportFile”virtual bool RFileExporter::exportFile(const QString &fileName, const QString &nameFilter, bool setFileName=true)=0 = 0pure virtual
Must be implemented by file exporters to export the document into the given file.
Reimplemented in exportFile.
getCorrectedFileName
Section titled “getCorrectedFileName”virtual QString RFileExporter::getCorrectedFileName(const QString &fileName, const QString &nameFilter)=0 = 0pure 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.