Scribus
Open source desktop publishing at your fingertips
util_file.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef _UTIL_FILE_H
8 #define _UTIL_FILE_H
9 
10 #include "scribusapi.h"
11 
12 class QDataStream;
13 class QString;
14 class QByteArray;
15 class ScStreamFilter;
16 class ScribusDoc;
17 class PageItem;
18 
29 bool SCRIBUS_API copyFile(const QString& source, const QString& target);
40 bool SCRIBUS_API copyFileAtomic(const QString& source, const QString& target);
51 bool SCRIBUS_API copyFileToFilter(const QString& source, ScStreamFilter& target);
58 bool SCRIBUS_API copyFileToStream(const QString& source, QDataStream& target);
69 bool SCRIBUS_API moveFile(const QString& source, const QString& target);
78 bool SCRIBUS_API touchFile(const QString& file);
87 bool SCRIBUS_API fileInPath(const QString& filename);
88 
89 PageItem SCRIBUS_API * getVectorFileFromData(ScribusDoc *doc, QByteArray &data, QString ext, double x, double y, double w = -1.0, double h = -1.0);
90 #endif
ScribusDoc * doc() const
Get the document that this item belongs to.
Definition: pageitem.h:1178
the Document Class
Definition: scribusdoc.h:90
Definition: pageitem.h:92
Definition: scstreamfilter.h:14