Scribus
Open source desktop publishing at your fingertips
ScripterImpl Class Reference
Inheritance diagram for ScripterImpl:
Collaboration diagram for ScripterImpl:

Public Slots

void aboutScripter ()
 
QObject * openDocument (const QString &filename)
 
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)
 
QObject * fromVariant (const QVariant &v)
 
bool test ()
 

Signals

void createMenu (QMainWindow *mainwin)
 

Public Member Functions

bool init ()
 
bool cleanup ()
 
void addToMainWindowMenu (ScribusMainWindow *mainwin)
 
QObject * collector ()
 

Static Public Member Functions

static ScripterImplinstance ()
 

Properties

QObject collector
 
QString language
 
QObject activeDocument
 
QObject activeWindow
 
QList< QVariant > colors
 
QList< QVariant > fontInfo
 
QList< QVariant > extendedFontInfo
 

Member Function Documentation

void ScripterImpl::aboutScripter ( )
slot

Scripter.aboutScripter()

Like qApp.aboutQt() The quickest way to see if calling Scripter works.

QObject * ScripterImpl::fromVariant ( const QVariant &  v)
slot

Scripter.fromVariant(variant) variant is a QVariant returns instance of QObject-subclass

This is a helper method for PyQt Because PyQt cannot cast a variant to a QObject or QWidget I hope that will change some time.

QObject * ScripterImpl::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 
)
slot

Scripter.newDocument(topMargin, bottomMargin, leftMargin, rightMargin, pageWIdth, pageHeight, orientation, firstPageNr, pagesTypes, facingPages, firstPageOrger, numPages) topMargin is double bottomMargin is double leftMargin is double rightMargin is double pageWidth is double pageHeight is double orientation is int firstPageNr is int unit is int pagesType is int facingPages is int firstPageOrder is int numPages is int returns new a new active Document object

QObject * ScripterImpl::openDocument ( const QString &  filename)
slot

Scripter.openDocument(filename) filename is a string returns opened active Document object

Property Documentation

QObject * ScripterImpl::activeDocument
read

Scripter.activeDocument Property returns a Document object if a document is open

QObject * ScripterImpl::activeWindow
read

Scripter.activeWindow Property returns a Window object if a window is open

QList< QVariant > ScripterImpl::colors
read

Scripter.colors Property returns a color object


The documentation for this class was generated from the following files: