Scribus
Open source desktop publishing at your fingertips
PSLib Class Reference

#include <pslib.h>

Inheritance diagram for PSLib:
Collaboration diagram for PSLib:

Public Types

enum  Optimization { OptimizeCompat = 0, OptimizeSize = 1 }
 

Public Member Functions

 PSLib (PrintOptions &options, bool psart, SCFonts &AllFonts, QMap< QString, QMap< uint, FPointArray > > DocFonts, ColorList DocColors, bool pdf=false, bool spot=true)
 
void setOptimization (Optimization opt)
 
virtual int CreatePS (ScribusDoc *Doc, PrintOptions &options)
 
virtual const QString & errorMessage (void)
 
virtual void PS_Error (const QString &message)
 
virtual void PS_Error_ImageDataWriteFailure (void)
 
virtual void PS_Error_ImageLoadFailure (const QString &fileName)
 
virtual void PS_Error_MaskLoadFailure (const QString &fileName)
 
virtual void PS_Error_InsufficientMemory (void)
 
virtual bool PS_set_file (QString fn)
 
virtual void PS_set_Info (QString art, QString was)
 
virtual bool PS_begin_doc (ScribusDoc *doc, double x, double y, double width, double height, int numpage, bool doDev, bool sep, bool farb)
 
virtual void PS_begin_page (ScPage *pg, MarginStruct *Ma, bool Clipping)
 
virtual void PS_end_page ()
 
virtual void PS_curve (double x1, double y1, double x2, double y2, double x3, double y3)
 
virtual void PS_moveto (double x, double y)
 
virtual void PS_lineto (double x, double y)
 
virtual void PS_closepath ()
 
virtual void PS_translate (double x, double y)
 
virtual void PS_scale (double x, double y)
 
virtual void PS_rotate (double x)
 
virtual void PS_clip (bool mu)
 
virtual void PS_save ()
 
virtual void PS_restore ()
 
virtual void PS_setcmykcolor_fill (double c, double m, double y, double k)
 
virtual void PS_setcmykcolor_dummy ()
 
virtual void PS_setcmykcolor_stroke (double c, double m, double y, double k)
 
virtual void PS_setlinewidth (double w)
 
virtual void PS_setcapjoin (Qt::PenCapStyle ca, Qt::PenJoinStyle jo)
 
virtual void PS_setdash (Qt::PenStyle st, double offset, QVector< double > dash)
 
virtual void PS_selectfont (QString f, double s)
 
virtual void PS_fill ()
 
virtual void PS_fillspot (QString color, double shade)
 
virtual void PS_stroke ()
 
virtual void PS_strokespot (QString color, double shade)
 
virtual void PS_fill_stroke ()
 
virtual void PS_newpath ()
 
virtual void PS_show (double x, double y)
 
virtual void PS_showSub (uint chr, QString font, double size, bool stroke)
 
virtual void PS_show_xyG (QString font, uint gl, double x, double y, QString colorName, double shade)
 
virtual bool PS_image (PageItem *c, double x, double y, QString fn, double scalex, double scaley, QString Prof, bool UseEmbedded, QString Name="")
 
virtual bool PS_ImageData (PageItem *c, QString fn, QString Name, QString Prof, bool UseEmbedded)
 
virtual void PS_plate (int nr, QString name="")
 
virtual void PS_setGray ()
 
virtual void PDF_Bookmark (QString text, uint Seite)
 
virtual void PDF_Annotation (PageItem *item, QString text, double x, double y, double b, double h)
 
virtual void PS_close ()
 
virtual void PS_insert (QString i)
 
virtual void PS_TemplateStart (QString Name)
 
virtual void PS_TemplateEnd ()
 
virtual void PS_UseTemplate (QString Name)
 
virtual bool ProcessItem (ScribusDoc *Doc, ScPage *a, PageItem *c, uint PNr, bool sep, bool farb, bool master, bool embedded=false, bool useTemplate=false)
 
virtual void ProcessPage (ScribusDoc *Doc, ScPage *a, uint PNr, bool sep=false, bool farb=true)
 
virtual bool ProcessMasterPageLayer (ScribusDoc *Doc, ScPage *a, ScLayer &ll, uint PNr, bool sep=false, bool farb=true)
 
virtual bool ProcessPageLayer (ScribusDoc *Doc, ScPage *a, ScLayer &ll, uint PNr, bool sep=false, bool farb=true)
 
virtual void PS_HatchFill (PageItem *currItem)
 
virtual void drawArrow (PageItem *ite, QTransform &arrowTrans, int arrowIndex)
 
virtual void putColor (const QString &color, double shade, bool fill)
 
virtual void putColorNoDraw (const QString &color, double shade)
 
virtual void GetBleeds (ScPage *page, double &left, double &right)
 
virtual void GetBleeds (ScPage *page, double &left, double &right, double &bottom, double &top)
 
virtual void SetClipPath (FPointArray *c, bool poly=true)
 
virtual void SetPathAndClip (FPointArray &c, bool clipRule)
 
virtual void HandleBrushPattern (PageItem *c, QPainterPath &path, ScPage *a, uint PNr, bool sep, bool farb, bool master)
 
virtual void HandleStrokePattern (PageItem *c)
 
virtual void HandleMeshGradient (PageItem *c)
 
virtual void HandlePatchMeshGradient (PageItem *c)
 
virtual void HandleDiamondGradient (PageItem *c)
 
virtual void HandleTensorGradient (PageItem *c)
 
virtual void HandleGradientFillStroke (PageItem *c, bool stroke=true, bool forArrow=false)
 
virtual void SetColor (const QString &color, double shade, int *h, int *s, int *v, int *k)
 
virtual void SetColor (const ScColor &color, double shade, int *h, int *s, int *v, int *k)
 
virtual void setTextSt (ScribusDoc *Doc, PageItem *ite, uint a, ScPage *pg, bool sep, bool farb, bool master)
 PSLib::setTextSt. More...
 
virtual void setTextCh (ScribusDoc *Doc, PageItem *ite, double x, double y, uint a, uint d, QChar chstr, const GlyphLayout *glyphs, const CharStyle &cstyle, const ParagraphStyle &pstyle, ScPage *pg, bool sep, bool farb, bool master)
 

Public Attributes

bool psExport
 

Protected Slots

void cancelRequested ()
 

Detailed Description

Author
Franz Schmid Diese Klasse erzeugt Postscript-Dateien

Member Function Documentation

void PSLib::setTextSt ( ScribusDoc Doc,
PageItem ite,
uint  argh,
ScPage pg,
bool  sep,
bool  farb,
bool  master 
)
virtual

PSLib::setTextSt.

Parameters
Docour dicument
itethe Textitem to set
arghcurrent page number
pgcurrent page
sepseparate colors option
farbuseColors option (== !grayscale)
icuse ICC profile option
mastertrue if setting master page item

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