Scribus
Open source desktop publishing at your fingertips
|
Public Member Functions | |
void | setForceGDI (bool force) |
Force use of gdi even on ps printers. More... | |
virtual bool | print (ScribusDoc &doc, PrintOptions &options) |
Print a document using gdi or ps methods. More... | |
bool | gdiPrintPreview (ScribusDoc *doc, ScPage *page, QImage *image, PrintOptions &options, double scale=1.0) |
Draw print preview to an image using gdi method. More... | |
Public Member Functions inherited from ScPrintEngine | |
virtual const QString & | errorMessage (void) |
Static Public Member Functions | |
static QString | getDefaultPrinter (void) |
Get the default printer name. More... | |
Protected Types | |
typedef bool(ScPrintEngine_GDI::* | PrintPageFunc) (ScribusDoc *doc, ScPage *page, PrintOptions &options, HDC printerDC, cairo_t *context) |
Protected Member Functions | |
void | resetData (void) |
bool | printPages (ScribusDoc *doc, PrintOptions &options, HDC printerDC, DEVMODEW *devMode, QString &fileName) |
Print selected pages to a printer or a file. More... | |
bool | printPage_GDI (ScribusDoc *doc, ScPage *page, PrintOptions &options, HDC printerDC, cairo_t *context) |
Print a page to a gdi printer Print a page using GDI drawing code ( works on all printers : PS, PCL, GDI... ) More... | |
bool | printPage_PS (ScribusDoc *doc, ScPage *page, PrintOptions &options, HDC printerDC, cairo_t *context) |
Print a page to a PostScript printer using passthroughs Print a page using PS drawing code and PS passthroughs ( works on PS printers only ) More... | |
bool | printPage_PS_Sep (ScribusDoc *doc, ScPage *page, PrintOptions &options, HDC printerDC, cairo_t *context) |
Print a page separations to a PostScript printer using passthroughs Print a page using PS drawing code and PS passthroughs ( works on PS printers only ) More... | |
bool | sendPSFile (QString filePath, HDC printerDC, int pageWidth, int pageHeight, bool landscape) |
Send a file to printer using PostScript Passthrough Send a postscript file to a printer using ps passthrough ( works on PS printers only ) More... | |
void | setDeviceParams (ScribusDoc *doc, PrintOptions &options, DEVMODEW *devMode) |
Set device params into DEVMODE structure according to print options Set printing params according to options and DEVMODE structure. More... | |
int | getPSPassthroughSupport (HDC printerDC) |
Get support for PostScript Passthrough Get ps passthrough support and escape code. More... | |
bool | printerUseFilePort (QString &printerName) |
Check if a specified printer use the FILE: port. More... | |
bool | isPostscriptPrinter (HDC dc) |
Check if PostScript is supported by a printer device context. More... | |
Protected Attributes | |
bool | m_forceGDI |
Protected Attributes inherited from ScPrintEngine | |
bool | m_abort |
QString | m_errorMessage |
Additional Inherited Members | |
Public Slots inherited from ScPrintEngine | |
void | cancelRequested (void) |
bool ScPrintEngine_GDI::gdiPrintPreview | ( | ScribusDoc * | doc, |
ScPage * | page, | ||
QImage * | image, | ||
PrintOptions & | options, | ||
double | scale = 1.0 |
||
) |
Draw print preview to an image using gdi method.
doc | the document whose page is to be preview |
page | the page to be previewed |
image | the image on which preview is to be drawn |
options | print options |
scale | optional double value for scaling. 1:1 = 1.0 |
bool | true on success |
|
static |
Get the default printer name.
QString | the default printer name on success or an empty string |
|
protected |
Get support for PostScript Passthrough Get ps passthrough support and escape code.
printerDC | the printer device context |
int | the postscript passthrough escape code if success, 0 if the function fails |
|
protected |
Check if PostScript is supported by a printer device context.
dc | the printer device context |
bool | return true if PostScript is supported |
|
virtual |
Print a document using gdi or ps methods.
doc | the document whose pages are to be printer |
options | print options |
bool | return true if no error occurred |
Implements ScPrintEngine.
|
protected |
Check if a specified printer use the FILE: port.
printerName | the printer name |
bool | return true if the specified printer print to the FILE: port |
|
protected |
Print a page to a gdi printer Print a page using GDI drawing code ( works on all printers : PS, PCL, GDI... )
doc | the document whose page is to be printed |
page | the page to print |
options | print options |
printerDC | an initialized printer device context |
context | cairo context (not used by this function) |
bool | true on success |
|
protected |
Print a page to a PostScript printer using passthroughs Print a page using PS drawing code and PS passthroughs ( works on PS printers only )
doc | the document whose page is to be printed |
page | the page to print |
options | print options |
printerDC | an initialized printer device context |
context | cairo context (not used by this function) |
bool | true on success |
|
protected |
Print a page separations to a PostScript printer using passthroughs Print a page using PS drawing code and PS passthroughs ( works on PS printers only )
doc | the document whose page is to be printed |
page | the page to print |
options | print options |
printerDC | an initialized printer device context |
context | cairo context (not used by this function) |
bool | true on success |
|
protected |
Print selected pages to a printer or a file.
doc | the document whose pages are to be printer |
options | print options |
printerDC | an initialized printer device context |
devMode | the DEVMODE structure used for creating printerDC |
fileName | file name to print into |
bool | true on success |
|
protected |
Send a file to printer using PostScript Passthrough Send a postscript file to a printer using ps passthrough ( works on PS printers only )
filePath | the Postscript file path |
printerDC | the printer deice context |
pageWidth | width |
pageHeight | height landscape the page is to be printer in landscape mode |
bool | true on success |
|
protected |
Set device params into DEVMODE structure according to print options Set printing params according to options and DEVMODE structure.
options | print options |
devMode | pointer to a DEVMODE structure |
void ScPrintEngine_GDI::setForceGDI | ( | bool | force | ) |
Force use of gdi even on ps printers.
force | if gdi should be forced |