Scribus
Open source desktop publishing at your fingertips
PPreview Class Reference

Print Preview dialog. More...

#include <preview.h>

Inheritance diagram for PPreview:
Collaboration diagram for PPreview:

Public Slots

void ToSeite (int num)
 Jump to newly selected page and create the new preview. More...
 
void redisplay ()
 Create the new preview. More...
 
void ToggleCMYK ()
 When CMYK preview is toggled, (dis)enable the CMYK controls and create the new preview. More...
 
void ToggleCMYK_Colour ()
 If CMYK preview is enabled, create a new preview with the new CMYK plate settings. More...
 
void doSpotTable (int row)
 
void toggleAllfromHeader ()
 
void scaleBox_valueChanged (int value)
 Recompute scaling factor of the preview image. More...
 

Signals

void doPrint ()
 

Public Member Functions

 PPreview (QWidget *parent, ScribusView *vin, ScribusDoc *docu, QString printer, PrintEngine engine)
 Create the Print Preview window. More...
 
int RenderPreview (int Seite, int Res)
 Renders the Preview to a file on Disk. More...
 
int RenderPreviewSep (int Seite, int Res)
 
void blendImages (QImage &target, ScImage &source, ScColor col)
 
void blendImagesSumUp (QImage &target, ScImage &scsource)
 
QPixmap CreatePreview (int Seite, int Res)
 Creates the Preview of the Actual Page. More...
 

Static Public Member Functions

static bool usePostscriptPreview (QString printerName, PrintEngine engine)
 

Public Attributes

PageSelectorPGSel
 
QCheckBox * AntiAlias
 
QCheckBox * AliasTr
 
QCheckBox * EnableCMYK
 
QCheckBox * EnableCMYK_C
 
QCheckBox * EnableCMYK_M
 
QCheckBox * EnableCMYK_Y
 
QCheckBox * EnableCMYK_K
 
QCheckBox * EnableGCR
 
QCheckBox * MirrorHor
 
QCheckBox * MirrorVert
 
QCheckBox * ClipMarg
 
QCheckBox * spotColors
 
QCheckBox * useGray
 
QCheckBox * EnableInkCover
 
ScrSpinBoxCoverThresholdValue
 
QLabel * ThresLabel
 
QScrollArea * Anzeige
 
QLabel * Anz
 
QGroupBox * devTitle
 
QGroupBox * jobTitle
 
QPushButton * closeButton
 
QPushButton * printButton
 
QLabel * scaleLabel
 
QComboBox * scaleBox
 
ScribusViewview
 
ScribusDocdoc
 
bool HavePngAlpha
 
bool HaveTiffSep
 
int APage
 
int MPage
 
int SMode
 
int GsMajor
 
int GsMinor
 
int inkMax
 
bool CMode
 
bool GsAl
 
bool Trans
 
bool GMode
 
bool mHor
 
bool mVer
 
bool fClip
 
bool fSpot
 
bool fGray
 
bool postscriptPreview
 
QMap< QString, int > sepsToFileNum
 
QMap< QString, QCheckBox * > flagsVisible
 
QTableWidget * Table
 

Protected Member Functions

void setValues ()
 
void getUserSelection (int)
 
void imageLoadError (QPixmap &, int)
 
void resizeEvent (QResizeEvent *event)
 repaint sample on the dialog change
 

Protected Attributes

double scaleFactor
 Percentage value of the scaling widget.
 
QVBoxLayout * PLayout
 
QVBoxLayout * Layout1
 
QVBoxLayout * Layout2
 
QHBoxLayout * Layout5
 
QHBoxLayout * Layout6
 
QHBoxLayout * Layout7
 
QVBoxLayout * settingsBarLayout
 
PrefsManagerprefsManager
 

Detailed Description

Print Preview dialog.

Constructor & Destructor Documentation

PPreview::PPreview ( QWidget *  parent,
ScribusView vin,
ScribusDoc docu,
QString  printer,
PrintEngine  engine 
)

Create the Print Preview window.

Author
Franz Schmid
Parameters
parentQWidget *
vinScribusView *
docuScribusDoc *
printera name of the printer
enginea printer engine

Member Function Documentation

QPixmap PPreview::CreatePreview ( int  Seite,
int  Res 
)

Creates the Preview of the Actual Page.

Author
Franz Schmid
Parameters
Seiteint page number
Resint
Return values
BildQPixmap print preview
void PPreview::redisplay ( )
slot

Create the new preview.

Author
Franz Schmid
int PPreview::RenderPreview ( int  Seite,
int  Res 
)

Renders the Preview to a file on Disk.

Author
Franz Schmid
Parameters
Seiteint page number
Resint
Return values
intFlag indicating error
void PPreview::scaleBox_valueChanged ( int  value)
slot

Recompute scaling factor of the preview image.

Author
Petr Vanek
Date
09/03/2005
Parameters
valuespinbox value from signal
void PPreview::ToggleCMYK ( )
slot

When CMYK preview is toggled, (dis)enable the CMYK controls and create the new preview.

Author
Craig Bradney
void PPreview::ToggleCMYK_Colour ( )
slot

If CMYK preview is enabled, create a new preview with the new CMYK plate settings.

Author
Craig Bradney
void PPreview::ToSeite ( int  num)
slot

Jump to newly selected page and create the new preview.

Author
Franz Schmid
Parameters
numint Page Number

Member Data Documentation

QLabel* PPreview::scaleLabel

scaling GUI


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