Diff of /gsoc2009/textfilter/scribus/plugins/idmlimplugin/importidml.h [000000] .. [r373] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/gsoc2009/textfilter/scribus/plugins/idmlimplugin/importidml.h
@@ -0,0 +1,95 @@
+/*
+For general Scribus (>=1.3.2) copyright and licensing information please refer
+to the COPYING file provided with the program. Following this notice may exist
+a copyright and/or license notice that predates the release of Scribus 1.3.2
+for which a new license (GPL+exception) is in place.
+*/
+
+#ifndef IMPORTIDML_H
+#define IMPORTIDML_H
+
+#include "pluginapi.h"
+#include "commonstrings.h"
+#include "pageitem.h"
+#include "sccolor.h"
+#include "fpointarray.h"
+#include <QList>
+#include <QTransform>
+#include <QMultiMap>
+#include <QtGlobal>
+#include <QObject>
+#include <QString>
+#include <QRect>
+#include <QStack>
+
+class MultiProgressDialog;
+class ScribusDoc;
+class Selection;
+class TransactionSettings;
+
+class IdmlPlug
+{
+  Q_OBJECT
+  public:
+	/*!
+	\author Jain Basil Aliyas
+	\date
+	\brief Create the Idml importer window.
+	\param fName QString
+	\param flags combination of loadFlags
+	\param showProgress if progress must be displayed
+	\retval 
+	*/
+	IdmlPlug( ScribusDoc* doc, int flags );
+	~IdmlPlug();
+	
+	/*!
+	\author Jain Basil Aliyas
+	\date
+	\brief Perform import.
+	\param fn QString
+	\param trSettings undo transaction settings
+	\param flags combination of loadFlags
+	\param showProgress if progress must be displayed
+	\retval bool true if import was ok
+	 */
+	bool import(QString fn, const TransactionSettings& trSettings, int flags, bool showProgress = true);
+	const QString DESIGNMAP = "designmap.xml";
+	const QString FONTS = "Resources/Fonts.xml";
+	const QString STYLES = "Resources/Styles.xml";
+	const QString GRAPHIC = "Resources/Graphic.xml";
+	const QString PREFERENCES = "Resources/Preferences.xml";
+	const QString MASTERSPREADS = "MasterSpreads/MasterSpreads.xml";
+	QStringList Stories;
+	QStringList Spreads;
+		
+	QString desmapPath, fontPath, stylePath, graphicPath, preferPath, mspreadPath;
+	
+  private:
+	/*!
+	\author Jain Basil Aliyas
+	Basic functions and variables for the import are declared below, of which bool convert(QString fn) is the important one :)
+	*/
+	bool convert(QString fn);
+	MultiProgressDialog * progressDialog;
+	ScribusDoc* m_Doc;
+	Selection *tmpSel;
+	bool interactive;
+	bool cancel;
+	int importerFlags;
+	FPointArray coords;
+	QString baseFile;
+	
+	double baseX, baseY;
+	double docWidth;
+	double docHeight;
+	bool firstLayer;
+	QString activeLayer;
+	int currentLayer;
+	QList<PageItem*> Elements;
+	
+};
+
+
+
+#endif