7 #ifndef COLLECT4OUTPUT_H
8 #define COLLECT4OUTPUT_H
13 #include "scribusstructs.h"
38 CollectForOutput(
ScribusDoc* doc, QString outputDirectory=QString::null,
bool withFonts=
false,
bool withProfiles=
false,
bool compressDoc=
false);
44 virtual QString
collect(QString &newFileName);
80 QStringList
findFontMetrics(
const QString& baseDir,
const QString& baseName)
const;
93 QString
collectFile(QString oldFile, QString newFile);
95 ProfilesL docProfiles;
104 void fontsCollected(
int);
105 void patternsCollected(
int);
106 void profilesCollected(
int);
107 void itemsCollected(
int);
PrefsContext * dirs
Definition: collect4output.h:63
bool collectDocument()
Definition: collect4output.cpp:155
void processItem(PageItem *ite)
Definition: collect4output.cpp:272
bool m_compressDoc
Definition: collect4output.h:50
the Document Class
Definition: scribusdoc.h:90
bool collectItems()
Definition: collect4output.cpp:191
Performs "Collect for Output" tasks. collect() method copies the document, fonts and images into user...
Definition: collect4output.h:27
virtual QString collect(QString &newFileName)
Main method doing everything. It calls all related methods.
Definition: collect4output.cpp:110
bool collectFonts()
Definition: collect4output.cpp:349
ScribusDoc * m_Doc
Definition: collect4output.h:48
bool m_withFonts
Definition: collect4output.h:52
QString collectFile(QString oldFile, QString newFile)
Copy used file into new location with magic checks. It looks into collectedFiles map. If there is newFile (key) already found - it will construct new filename to prevent overwriting. E.g. newFile.png can be newFile_0.png. It checks already collected files not to collect one item 2 times.
Definition: collect4output.cpp:499
CollectForOutput(ScribusDoc *doc, QString outputDirectory=QString::null, bool withFonts=false, bool withProfiles=false, bool compressDoc=false)
Setup the attributes.
Definition: collect4output.cpp:33
Definition: prefscontext.h:40
Definition: pageitem.h:92
bool collectProfiles()
Definition: collect4output.cpp:467
QString newName
Definition: collect4output.h:58
bool m_withProfiles
Definition: collect4output.h:54
QMap< QString, QString > collectedFiles
Remember already collected files to collect the same files only once. It's QMap - newFile...
Definition: collect4output.h:61
QStringList findFontMetrics(const QString &baseDir, const QString &baseName) const
Definition: collect4output.cpp:425
bool newDirDialog()
Definition: collect4output.cpp:62
QString m_outputDirectory
Definition: collect4output.h:56