// Part of the Architektonas Project
// Originally part of QCad Community Edition by Andrew Mustun
// Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
//
// JLH = James L. Hammons <jlhamm@acm.org>
//
#include "rs_filtercxf.h"
#include "rs_filterdxf.h"
#include "rs_filterdxf1.h"
+#include "rs_filterinterface.h"
RS_FileIO * RS_FileIO::uniqueInstance = NULL;
* of the given file.
*
* @param graphic The container to which we will add
- * entities. Usually that's an RS_Graphic entity but
+ * entities. Usually that's an Drawing entity but
* it can also be a polyline, text, ...
* @param file Path and name of the file to import.
*/
-bool RS_FileIO::fileImport(RS_Graphic & graphic, const QString & file, RS2::FormatType type)
+bool RS_FileIO::fileImport(Drawing & graphic, const QString & file, RS2::FormatType type)
{
RS_DEBUG->print("Trying to import file '%s'...", file.toLatin1().data());
}
*/
- if (filter != NULL)
+ if (filter)
return filter->fileImport(graphic, file, t);
else
{
*
* @param file Path and name of the file to import.
*/
-bool RS_FileIO::fileExport(RS_Graphic & graphic, const QString & file, RS2::FormatType type)
+bool RS_FileIO::fileExport(Drawing & graphic, const QString & file, RS2::FormatType type)
{
RS_DEBUG->print("RS_FileIO::fileExport");
//RS_DEBUG->print("Trying to export file '%s'...", file.latin1());