14 #include "scribusdoc.h"
15 #include "scribuscore.h"
17 #include "pythonize.h"
18 #include "api_prefs.h"
19 #include "api_printer.h"
20 #include "api_imageexport.h"
21 #include "api_layer.h"
23 #include "api_dialogs.h"
24 #include "api_window.h"
25 #include "api_document.h"
26 #include "api_color.h"
29 #define RAISE(msg) QApplication::instance()->setProperty("MIKRO_EXCEPTION", QVariant(msg))
30 #define COLLECTOR ScripterImpl::instance()->collector()
31 #define SCRIPTER ScripterImpl::instance()
41 Q_PROPERTY(QObject* collector READ collector);
42 Q_PROPERTY(QString language READ language);
43 Q_PROPERTY(QObject* activeDocument READ activeDocument);
44 Q_PROPERTY(QObject* activeWindow READ activeWindow);
45 Q_PROPERTY(QList<QVariant> colors READ colors);
46 Q_PROPERTY(QList<QVariant> fontInfo READ fontInfo);
47 Q_PROPERTY(QList<QVariant> extendedFontInfo READ xFontInfo);
65 double topMargin,
double bottomMargin,
66 double leftMargin,
double rightMargin,
67 double pageWidth,
double pageHeight,
68 int orientation,
int firstPageNr,
int unit,
int pagesType,
69 int facingPages,
int firstPageOrder,
int numPages);
74 void createMenu(QMainWindow *mainwin);
86 bool runScript(
const QString & filename);
88 QObject *activeDocument();
89 QObject *activeWindow();
90 QList<QVariant> colors();
91 QList<QVariant> fontInfo();
92 QList<QVariant> xFontInfo();
QObject * fromVariant(const QVariant &v)
Definition: scripterimpl.cpp:92
void aboutScripter()
Definition: scripterimpl.cpp:327
QObject * openDocument(const QString &filename)
Definition: scripterimpl.cpp:115
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: pythonize.h:39
the Document Class
Definition: scribusdoc.h:90
QObject * newDocument(double topMargin, double bottomMargin, double leftMargin, double rightMargin, double pageWidth, double pageHeight, int orientation, int firstPageNr, int unit, int pagesType, int facingPages, int firstPageOrder, int numPages)
Definition: scripterimpl.cpp:235
Definition: scripterimpl.h:38