summaryrefslogtreecommitdiff
path: root/sw/inc/viewsh.hxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2009-08-14 13:56:56 +0000
committerThomas Lange <tl@openoffice.org>2009-08-14 13:56:56 +0000
commita6e4f39c82a75fb2684d3563b9c2a7af3518d2bc (patch)
tree586e8f59b9b2c1c2e0c06db0300bee4db1313524 /sw/inc/viewsh.hxx
parent6f114639ebbd358fbe45f389e838595fea1cf88b (diff)
#i101242# new print UI
Diffstat (limited to 'sw/inc/viewsh.hxx')
-rw-r--r--sw/inc/viewsh.hxx36
1 files changed, 25 insertions, 11 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 007fc7c05ed3..9e4f89fb1134 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -71,7 +71,7 @@ class SfxViewShell;
class SwViewOption;
class SwViewImp;
class SwPrtOptions;
-class SwPrintUIOptions;
+class SwPrintData;
class SwPagePreViewPrtData;
class Window;
class OutputDevice;
@@ -94,12 +94,19 @@ class SwPostItMgr;
// #i74769#
class SdrPaintWindow;
+namespace vcl
+{
+ class PrinterController;
+};
+
+
//JP 19.07.98: - Bug 52312
// define fuer Flags, die im CTOR oder den darunter liegenden Schichten
// benoetigt werden.
// Zur Zeit wird fuer die DrawPage das PreView Flag benoetigt
#define VSHELLFLAG_ISPREVIEW ((long)0x1)
+
class SW_DLLPUBLIC ViewShell : public Ring
{
friend void SetOutDev( ViewShell *pSh, OutputDevice *pOut );
@@ -188,7 +195,7 @@ class SW_DLLPUBLIC ViewShell : public Ring
SW_DLLPRIVATE void Scroll(); //Scrollen wenn sich aus der LayAction Scrollmoeglichkeiten
//ergaben.
- SW_DLLPRIVATE void PrepareForPrint( const SwPrtOptions &rOptions );
+ SW_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions );
SW_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
@@ -363,20 +370,27 @@ public:
void ChgAllPageOrientation( sal_uInt16 eOri );
void ChgAllPageSize( Size &rSz );
- //Druckauftrag abwickeln.
+ // printing of one page.
// bIsPDFExport == true is: do PDF Export (no printing!)
- sal_Bool PrintOrPDFExport( OutputDevice* pOutDev, SwPrtOptions& rOptions,
- const SwPrintUIOptions &rPrintUIOptions,
+ sal_Bool PrintOrPDFExport( OutputDevice *pOutDev, const SwPrtOptions &rPrintData,
sal_Int32 nRenderer, /* offset in vector of pages to print */
bool bIsPDFExport = sal_False );
- // Prospekt-Format drucken
- void PrintProspect( OutputDevice* pOutDev, SwPrtOptions& rOptions,
- const SwPrintUIOptions &rPrintUIOptions,
- sal_Int32 nRenderer /* offset in vector of page pairs for prospect */ );
+ // printing of one brochure page
+ void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
+ sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
+
+ // printing of a complete document for mail merge
+ // bIsPDFExport == true is: do PDF Export (no printing!)
+ sal_Bool PrintOrPDFExportMM( const boost::shared_ptr< vcl::PrinterController > & rpPrinterController,
+ const SwPrtOptions &rPrintData, bool bIsPDFExport = sal_False );
+
+ // printing of a complete brochure for mail merge
+ void PrintProspectMM( const boost::shared_ptr< vcl::PrinterController > & rpPrinterController,
+ const SwPrintData &rPrintData, bool bProspectRTL );
- //"Drucken" fuer OLE 2.0
- static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, SwPrtOptions& rOptions,
+ // printing for OLE 2.0
+ static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
OutputDevice* pOleOut, const Rectangle& rRect );
// creates temporary doc with selected text for PDF export