diff options
Diffstat (limited to 'vcl/inc/generic')
-rw-r--r-- | vcl/inc/generic/gendisp.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/generic/genprn.h | 16 | ||||
-rw-r--r-- | vcl/inc/generic/genpspgraphics.h | 10 | ||||
-rw-r--r-- | vcl/inc/generic/printergfx.hxx | 24 | ||||
-rw-r--r-- | vcl/inc/generic/printerjob.hxx | 12 |
5 files changed, 32 insertions, 32 deletions
diff --git a/vcl/inc/generic/gendisp.hxx b/vcl/inc/generic/gendisp.hxx index 285a9dc2e70a..4aa5f356e2cf 100644 --- a/vcl/inc/generic/gendisp.hxx +++ b/vcl/inc/generic/gendisp.hxx @@ -68,7 +68,7 @@ public: virtual bool DispatchInternalEvent(); bool HasUserEvents() const; - sal_Bool MouseCaptured( const SalFrame *pFrameData ) const + bool MouseCaptured( const SalFrame *pFrameData ) const { return m_pCapture == pFrameData; } SalFrame* GetCaptureFrame() const { return m_pCapture; } diff --git a/vcl/inc/generic/genprn.h b/vcl/inc/generic/genprn.h index b63f8b43f88c..539c2b4fadd0 100644 --- a/vcl/inc/generic/genprn.h +++ b/vcl/inc/generic/genprn.h @@ -40,9 +40,9 @@ public: // overload all pure virtual methods virtual SalGraphics* GetGraphics(); virtual void ReleaseGraphics( SalGraphics* pGraphics ); - virtual sal_Bool Setup( SalFrame* pFrame, ImplJobSetup* pSetupData ); - virtual sal_Bool SetPrinterData( ImplJobSetup* pSetupData ); - virtual sal_Bool SetData( sal_uIntPtr nFlags, ImplJobSetup* pSetupData ); + virtual bool Setup( SalFrame* pFrame, ImplJobSetup* pSetupData ); + virtual bool SetPrinterData( ImplJobSetup* pSetupData ); + virtual bool SetData( sal_uIntPtr nFlags, ImplJobSetup* pSetupData ); virtual void GetPageInfo( const ImplJobSetup* pSetupData, long& rOutWidth, long& rOutHeight, long& rPageOffX, long& rPageOffY, @@ -76,22 +76,22 @@ public: virtual ~PspSalPrinter(); // overload all pure virtual methods - virtual sal_Bool StartJob( const OUString* pFileName, + virtual bool StartJob( const OUString* pFileName, const OUString& rJobName, const OUString& rAppName, sal_uIntPtr nCopies, bool bCollate, bool bDirect, ImplJobSetup* pSetupData ); - virtual sal_Bool StartJob( const OUString*, + virtual bool StartJob( const OUString*, const OUString&, const OUString&, ImplJobSetup*, vcl::PrinterController& i_rController ); - virtual sal_Bool EndJob(); - virtual sal_Bool AbortJob(); + virtual bool EndJob(); + virtual bool AbortJob(); virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, sal_Bool bNewJobData ); - virtual sal_Bool EndPage(); + virtual bool EndPage(); virtual sal_uIntPtr GetErrorCode(); }; diff --git a/vcl/inc/generic/genpspgraphics.h b/vcl/inc/generic/genpspgraphics.h index 044cb123fb21..9a2c8c559796 100644 --- a/vcl/inc/generic/genpspgraphics.h +++ b/vcl/inc/generic/genpspgraphics.h @@ -97,7 +97,7 @@ public: virtual void ClearDevFontCache(); virtual bool AddTempDevFont( ImplDevFontList*, const OUString& rFileURL, const OUString& rFontName ); - virtual sal_Bool CreateFontSubset( const OUString& rToFile, + virtual bool CreateFontSubset( const OUString& rToFile, const PhysicalFontFace*, sal_GlyphId* pGlyphIDs, sal_uInt8* pEncoding, @@ -137,13 +137,13 @@ public: const basegfx::B2DVector& rLineWidths, basegfx::B2DLineJoin, com::sun::star::drawing::LineCap); - virtual sal_Bool drawPolyLineBezier( sal_uInt32 nPoints, + virtual bool drawPolyLineBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry ); - virtual sal_Bool drawPolygonBezier( sal_uInt32 nPoints, + virtual bool drawPolygonBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry ); - virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly, + virtual bool drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const sal_uInt8* const* pFlgAry ); @@ -172,7 +172,7 @@ public: virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags ); virtual void invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nFlags ); - virtual sal_Bool drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, sal_uIntPtr nSize ); + virtual bool drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, sal_uIntPtr nSize ); virtual bool filterText( const OUString& rOrigText, OUString& rNewText, sal_Int32 nIndex, sal_Int32& rLen, sal_Int32& rCutStart, sal_Int32& rCutStop ); virtual bool drawAlphaBitmap( const SalTwoRect&, diff --git a/vcl/inc/generic/printergfx.hxx b/vcl/inc/generic/printergfx.hxx index 77ac4676b2fc..dee151c6541d 100644 --- a/vcl/inc/generic/printergfx.hxx +++ b/vcl/inc/generic/printergfx.hxx @@ -75,7 +75,7 @@ public: ~PrinterColor () {} - sal_Bool Is () const + bool Is () const { return meColorspace != eInvalid; } ColorSpace GetColorSpace () const @@ -86,14 +86,14 @@ public: { return mnGreen; } sal_uInt16 GetBlue () const { return mnBlue; } - sal_Bool operator== (const PrinterColor& aColor) const + bool operator== (const PrinterColor& aColor) const { return aColor.Is() && this->Is() && mnRed == aColor.mnRed && mnGreen == aColor.mnGreen && mnBlue == aColor.mnBlue; } - sal_Bool operator!= (const PrinterColor& aColor) const + bool operator!= (const PrinterColor& aColor) const { return ! (aColor==*this); } PrinterColor& operator= (const PrinterColor& aColor) { @@ -189,8 +189,8 @@ private: sal_uInt16 mnDepth; sal_uInt16 mnPSLevel; - sal_Bool mbColor; - sal_Bool mbUploadPS42Fonts; + bool mbColor; + bool mbUploadPS42Fonts; osl::File* mpPageHeader; osl::File* mpPageBody; @@ -219,7 +219,7 @@ private: /* bitmap drawing implementation */ - sal_Bool mbCompressBmp; + bool mbCompressBmp; void DrawPS1GrayImage (const PrinterBmp& rBitmap, const Rectangle& rArea); void writePS2ImageHeader (const Rectangle& rArea, psp::ImageType nType); @@ -232,7 +232,7 @@ private: /* clip region */ std::list< Rectangle > maClipRegion; - sal_Bool JoinVerticalClipRectangles( std::list< Rectangle >::iterator& it, + bool JoinVerticalClipRectangles( std::list< Rectangle >::iterator& it, Point& aOldPoint, sal_Int32& nColumn ); /* color settings */ @@ -247,7 +247,7 @@ private: /* font */ friend class Font2; - int getCharWidth (sal_Bool b_vert, sal_Unicode n_char, + int getCharWidth (bool b_vert, sal_Unicode n_char, CharacterMetric *p_bbox); fontID getCharMetric (const Font2 &rFont, sal_Unicode n_char, CharacterMetric *p_bbox); @@ -321,8 +321,8 @@ public: public: PrinterGfx(); ~PrinterGfx(); - sal_Bool Init (PrinterJob &rPrinterSpec); - sal_Bool Init (const JobData& rData); + bool Init (PrinterJob &rPrinterSpec); + bool Init (const JobData& rData); void Clear(); // query depth @@ -331,7 +331,7 @@ public: // clip region void ResetClipRegion (); void BeginSetClipRegion (sal_uInt32); - sal_Bool UnionClipRegion (sal_Int32 nX, sal_Int32 nY, + bool UnionClipRegion (sal_Int32 nX, sal_Int32 nY, sal_Int32 nDX, sal_Int32 nDY); void EndSetClipRegion (); @@ -364,7 +364,7 @@ public: const sal_uInt8* const* pFlgAry); // eps - sal_Bool DrawEPS ( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize); + bool DrawEPS ( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize); // image drawing void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc, diff --git a/vcl/inc/generic/printerjob.hxx b/vcl/inc/generic/printerjob.hxx index 5c521bb37675..c9ea6b7b5d92 100644 --- a/vcl/inc/generic/printerjob.hxx +++ b/vcl/inc/generic/printerjob.hxx @@ -89,7 +89,7 @@ public: // for usage in PrinterGfx void GetScale (double &rXScale, double &rYScale) const; sal_uInt16 GetDepth () const; sal_uInt16 GetPostscriptLevel (const JobData *pJobData = NULL) const; - sal_Bool IsColorPrinter () const; + bool IsColorPrinter () const; osl::File* GetCurrentPageHeader (); osl::File* GetCurrentPageBody (); @@ -114,7 +114,7 @@ public: * the quick command for spooling should be used instead * of the normal command */ - sal_Bool StartJob (const OUString& rFileName, + bool StartJob (const OUString& rFileName, int nMode, const OUString& rJobName, const OUString& rAppName, @@ -122,12 +122,12 @@ public: PrinterGfx* pGraphics, bool bIsQuickJob ); - sal_Bool EndJob (); + bool EndJob (); - sal_Bool AbortJob (); + bool AbortJob (); - sal_Bool StartPage (const JobData& rJobSetup); - sal_Bool EndPage (); + bool StartPage (const JobData& rJobSetup); + bool EndPage (); }; } /* namespace psp */ |