Back to index

scribus-ng  1.3.4.dfsg+svn20071115
collect4output.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef COLLECT4OUTPUT_H
00008 #define COLLECT4OUTPUT_H
00009 
00010 #include <qobject.h>
00011 #include <qmap.h>
00012 
00013 class QString;
00014 class ScribusDoc;
00015 class PrefsContext;
00016 class PageItem;
00017 
00018 
00025 class CollectForOutput : public QObject
00026 {
00027        Q_OBJECT
00028 
00029 public:
00034        CollectForOutput(ScribusDoc* doc, bool withFontsA=false, bool withProfilesA=false, bool compressDocA=false);
00035        ~CollectForOutput(){};
00036 
00040        QString collect();
00041 
00042 private:
00044        ScribusDoc* m_Doc;
00046        bool compressDoc;
00048        bool withFonts;
00050        bool withProfiles;
00052        QString outputDirectory;
00054        QString newName;
00057        QMap<QString, QString> collectedFiles;
00059        PrefsContext* dirs;
00060 
00063        bool newDirDialog();
00066        bool collectDocument();
00069        bool collectItems();
00071        void processItem(PageItem *ite);
00074        bool collectFonts();
00077        bool collectProfiles();
00087        QString collectFile(QString oldFile, QString newFile);
00088 
00089 };
00090 
00091 #endif