diff options
author | Kurt Zenker <kz@openoffice.org> | 2003-11-18 13:50:00 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2003-11-18 13:50:00 +0000 |
commit | 7c676750596c8c75de1103ed0c4e4f376ef01901 (patch) | |
tree | c43228d57406358280c6235c15d8209cbf2be519 /vcl | |
parent | 2551cd986f02ece3cc0c408a8dfe193b4cea74da (diff) |
INTEGRATION: CWS vclplug (1.1.1.1.348); FILE MERGED
2003/10/24 13:35:07 pl 1.1.1.1.348.1: #21232# win port of virtualiing sal part
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/inc/salprn.h | 69 | ||||
-rw-r--r-- | vcl/win/inc/salvd.h | 24 |
2 files changed, 70 insertions, 23 deletions
diff --git a/vcl/win/inc/salprn.h b/vcl/win/inc/salprn.h index 6baca8eaf352..11577a10a640 100644 --- a/vcl/win/inc/salprn.h +++ b/vcl/win/inc/salprn.h @@ -2,9 +2,9 @@ * * $RCSfile: salprn.h,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:05:49 $ + * last change: $Author: kz $ $Date: 2003-11-18 14:49:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,8 +66,9 @@ #include <sv.h> #endif -class SalGraphics; -class SalInfoPrinter; +#ifndef _SV_SALPRN_HXX +#include <salprn.hxx> +#endif // ----------------- // - SalDriverData - @@ -105,14 +106,16 @@ struct SalSysQueueData BOOL mbAnsi; // TRUE - use A functions }; -// ---------------------- -// - SalInfoPrinterData - -// ---------------------- +// --------------------- +// - WinSalInfoPrinter - +// --------------------- + +class WinSalGraphics; -class SalInfoPrinterData +class WinSalInfoPrinter : public SalInfoPrinter { public: - SalGraphics* mpGraphics; // current Printer graphics + WinSalGraphics* mpGraphics; // current Printer graphics XubString maDriverName; // printer driver name XubString maDeviceName; // printer device name XubString maPortName; // printer port name @@ -122,23 +125,57 @@ public: HDC mhDC; // printer hdc BOOL mbGraphics; // is Graphics used BOOL mbAnsi; + +public: + WinSalInfoPrinter(); + virtual ~WinSalInfoPrinter(); + + virtual SalGraphics* GetGraphics(); + virtual void ReleaseGraphics( SalGraphics* pGraphics ); + virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData ); + virtual BOOL SetPrinterData( ImplJobSetup* pSetupData ); + virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData ); + virtual void GetPageInfo( const ImplJobSetup* pSetupData, + long& rOutWidth, long& rOutHeight, + long& rPageOffX, long& rPageOffY, + long& rPageWidth, long& rPageHeight ); + virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType ); + virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData ); + virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin ); + virtual void InitPaperFormats( const ImplJobSetup* pSetupData ); + virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData ); }; -// ------------------ -// - SalPrinterData - -// ------------------ +// ----------------- +// - WinSalPrinter - +// ----------------- -class SalPrinterData +class WinSalPrinter : public SalPrinter { public: - SalGraphics* mpGraphics; // current Printer graphics - SalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter - SalPrinter* mpNextPrinter; // next printing printer + WinSalGraphics* mpGraphics; // current Printer graphics + WinSalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter + WinSalPrinter* mpNextPrinter; // next printing printer HDC mhDC; // printer hdc ULONG mnError; // Error Code ULONG mnCopies; // Kopien BOOL mbCollate; // Sortierte Kopien BOOL mbAbort; // Job Aborted + +public: + WinSalPrinter(); + virtual ~WinSalPrinter(); + + virtual BOOL StartJob( const XubString* pFileName, + const XubString& rJobName, + const XubString& rAppName, + ULONG nCopies, BOOL bCollate, + ImplJobSetup* pSetupData ); + virtual BOOL EndJob(); + virtual BOOL AbortJob(); + virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData ); + virtual BOOL EndPage(); + virtual ULONG GetErrorCode(); }; #endif // _SV_SALPRN_H diff --git a/vcl/win/inc/salvd.h b/vcl/win/inc/salvd.h index 33439dc618f0..91f1255635cd 100644 --- a/vcl/win/inc/salvd.h +++ b/vcl/win/inc/salvd.h @@ -2,9 +2,9 @@ * * $RCSfile: salvd.h,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:05:49 $ + * last change: $Author: kz $ $Date: 2003-11-18 14:50:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,23 +66,33 @@ #include <sv.h> #endif -class SalGraphics; -class SalVirtualDevice; +#ifndef _SV_SALVD_HXX +#include <salvd.hxx> +#endif + +class WinSalGraphics; // ----------------- // - SalVirDevData - // ----------------- -class SalVirDevData +class WinSalVirtualDevice : public SalVirtualDevice { public: HDC mhDC; // HDC or 0 for Cache Device HBITMAP mhBmp; // Memory Bitmap HBITMAP mhDefBmp; // Default Bitmap - SalGraphics* mpGraphics; // current VirDev graphics - SalVirtualDevice* mpNext; // next VirDev + WinSalGraphics* mpGraphics; // current VirDev graphics + WinSalVirtualDevice* mpNext; // next VirDev USHORT mnBitCount; // BitCount (0 or 1) BOOL mbGraphics; // is Graphics used + + WinSalVirtualDevice(); + virtual ~WinSalVirtualDevice(); + + virtual SalGraphics* GetGraphics(); + virtual void ReleaseGraphics( SalGraphics* pGraphics ); + virtual BOOL SetSize( long nNewDX, long nNewDY ); }; #endif // _SV_SALVD_H |