7 #ifndef SCRIBUS13FORMAT_H
8 #define SCRIBUS13FORMAT_H
10 #include "pluginapi.h"
11 #include "loadsaveplugin.h"
13 #include "scribusstructs.h"
14 #include "styles/styleset.h"
16 #include <QDomElement>
20 #include <QProgressBar>
32 virtual void deleteAboutData(
const AboutData* about)
const;
35 virtual bool fileSupported(QIODevice* file,
const QString & fileName=QString::null)
const;
37 virtual bool loadFile(
const QString & fileName,
const FileFormat & fmt,
int flags,
int index = 0);
38 virtual bool saveFile(
const QString & fileName,
const FileFormat & fmt) {
return false; };
42 virtual bool loadPage(
const QString & fileName,
int pageNumber,
bool Mpage, QString renamedPageName=QString::null);
44 virtual bool readLineStyles(
const QString& fileName, QHash<QString, multiLine> *Sty);
45 virtual bool readColors(
const QString& fileName,
ColorList & colors);
46 virtual bool readPageCount(
const QString& fileName,
int *num1,
int *num2, QStringList & masterPageNames);
47 virtual void getReplacedFontData(
bool & getNewReplacement, QMap<QString,QString> &getReplacedFonts, QList<ScFace> &getDummyScFaces);
50 void registerFormats();
54 PageItem* PasteItem(QDomElement *obj,
ScribusDoc *doc,
const QString& baseDir,
int pagenr = -2 );
56 QString readSLA(
const QString & fileName);
57 QString AskForFont(QString fStr,
ScribusDoc *doc);
60 QMap<int, int> itemRemap;
61 QMap<int, int> itemNext;
62 QList<PageItem*> FrameItems;
65 QMap<QString,QString> ReplacedFonts;
66 QMap<uint,QString> DoVorl;
68 QList<PDFPresentationData> EffVal;
71 extern "C" PLUGIN_API
int scribus13format_getPluginAPIVersion();
72 extern "C" PLUGIN_API
ScPlugin* scribus13format_getPlugin();
73 extern "C" PLUGIN_API
void scribus13format_freePlugin(
ScPlugin* plugin);
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
Abstract super class for all Scribus plug-ins.
Definition: scplugin.h:90
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
Definition: paragraphstyle.h:27
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73
Superclass for all file import/export/load/save plugins.
Definition: loadsaveplugin.h:33
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
Definition: pageitem.h:92
Definition: scribusstructs.h:338