Performs "Collect for Output" tasks. collect() method copies the document, fonts and images into user defined directory. QObject inheritance mainly due moc speedup and tr() methods.
More...
#include <collect4output.h>
|
void | fontsCollected (int) |
|
void | patternsCollected (int) |
|
void | profilesCollected (int) |
|
void | itemsCollected (int) |
|
|
| CollectForOutput (ScribusDoc *doc, QString outputDirectory=QString::null, bool withFonts=false, bool withProfiles=false, bool compressDoc=false) |
| Setup the attributes. More...
|
|
virtual QString | collect (QString &newFileName) |
| Main method doing everything. It calls all related methods.
|
|
Performs "Collect for Output" tasks. collect() method copies the document, fonts and images into user defined directory. QObject inheritance mainly due moc speedup and tr() methods.
- Author
- Petr Vanek, Franz Schmid
CollectForOutput::CollectForOutput |
( |
ScribusDoc * |
doc, |
|
|
QString |
outputDirectory = QString::null , |
|
|
bool |
withFonts = false , |
|
|
bool |
withProfiles = false , |
|
|
bool |
compressDoc = false |
|
) |
| |
Setup the attributes.
- Parameters
-
doc | a Scribus doecument reference |
withFonts | collect/move fonts into output directory too |
withProfiles | collect/move CMS profiles into output directory too |
compressDoc | use gzipped document |
bool CollectForOutput::collectDocument |
( |
| ) |
|
|
protected |
Check permissions and export document itself.
- Return values
-
QString CollectForOutput::collectFile |
( |
QString |
oldFile, |
|
|
QString |
newFile |
|
) |
| |
|
protected |
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.
- Parameters
-
oldFile | full path of the original file |
newFile | suggested fullpath of the collected file |
- Return values
-
QString | really used fullpath of the new file |
bool CollectForOutput::collectFonts |
( |
| ) |
|
|
protected |
Collect used fonts if requested.
- Return values
-
bool CollectForOutput::collectItems |
( |
| ) |
|
|
protected |
Collect all related items, esp. images.
- Return values
-
bool CollectForOutput::collectProfiles |
( |
| ) |
|
|
protected |
Collect used profiles if requested.
- Return values
-
QStringList CollectForOutput::findFontMetrics |
( |
const QString & |
baseDir, |
|
|
const QString & |
baseName |
|
) |
| const |
|
protected |
bool CollectForOutput::newDirDialog |
( |
| ) |
|
|
protected |
Ask user for output directory via GUI.
- Return values
-
void CollectForOutput::processItem |
( |
PageItem * |
ite | ) |
|
|
protected |
Reference to the preferences
bool CollectForOutput::m_compressDoc |
|
protected |
Use compressed document. See the constructor
QString CollectForOutput::m_outputDirectory |
|
protected |
User defined directory via GUI
bool CollectForOutput::m_withFonts |
|
protected |
Collect fonts too. See the constructor
bool CollectForOutput::m_withProfiles |
|
protected |
Collect icc profiles too. See the constructor
QString CollectForOutput::newName |
|
protected |
Name of the moved file with the new directory path
The documentation for this class was generated from the following files:
- /Users/ale/src/Scribus/scribus/collect4output.h
- /Users/ale/src/Scribus/scribus/collect4output.cpp