diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-02-06 16:05:46 +1100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 15:12:33 +0000 |
commit | 2a9b8358f75ca9117f5838dff41a25ec76cf1660 (patch) | |
tree | 7be6c1871d6ecdde6778fbeff947b8ab460a2f5c /include/vcl/outdev.hxx | |
parent | 0565a99a7598197f5354914927827fc7addd95f5 (diff) |
Reindent outdev.hxx - minor formatting change
Change-Id: I5095728ca486b6a609d26520ff45f8bc5bde1c21
Reviewed-on: https://gerrit.libreoffice.org/7888
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/outdev.hxx')
-rw-r--r-- | include/vcl/outdev.hxx | 1046 |
1 files changed, 523 insertions, 523 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 8bf356d1fa58..2c37b0be12b4 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -285,74 +285,74 @@ private: vcl::ExtOutDevData* mpExtOutDevData; // TEMP TEMP TEMP - VirtualDevice* mpAlphaVDev; + VirtualDevice* mpAlphaVDev; /// Additional output pixel offset, applied in LogicToPixel (used by SetPixelOffset/GetPixelOffset) - long mnOutOffOrigX; + long mnOutOffOrigX; /// Additional output offset in _logical_ coordinates, applied in PixelToLogic (used by SetPixelOffset/GetPixelOffset) - long mnOutOffLogicX; + long mnOutOffLogicX; /// Additional output pixel offset, applied in LogicToPixel (used by SetPixelOffset/GetPixelOffset) - long mnOutOffOrigY; + long mnOutOffOrigY; /// Additional output offset in _logical_ coordinates, applied in PixelToLogic (used by SetPixelOffset/GetPixelOffset) - long mnOutOffLogicY; + long mnOutOffLogicY; /// Output offset for device output in pixel (pseudo window offset within window system's frames) - long mnOutOffX; + long mnOutOffX; /// Output offset for device output in pixel (pseudo window offset within window system's frames) - long mnOutOffY; - long mnOutWidth; - long mnOutHeight; - sal_Int32 mnDPIX; - sal_Int32 mnDPIY; - sal_Int32 mnDPIScaleFactor; ///< For Hi-DPI displays, we want to draw everything mnDPIScaleFactor-times larger + long mnOutOffY; + long mnOutWidth; + long mnOutHeight; + sal_Int32 mnDPIX; + sal_Int32 mnDPIY; + sal_Int32 mnDPIScaleFactor; ///< For Hi-DPI displays, we want to draw everything mnDPIScaleFactor-times larger /// font specific text alignment offsets in pixel units - mutable long mnTextOffX; - mutable long mnTextOffY; - mutable long mnEmphasisAscent; - mutable long mnEmphasisDescent; - sal_uLong mnDrawMode; - sal_uLong mnTextLayoutMode; - ImplMapRes maMapRes; - ImplThresholdRes maThresRes; - OutDevType meOutDevType; - OutDevViewType meOutDevViewType; - Region maRegion; // contains the clip region, see SetClipRegion(...) - Color maLineColor; - Color maFillColor; - Font maFont; - Color maTextColor; - Color maTextLineColor; - Color maOverlineColor; - TextAlign meTextAlign; - RasterOp meRasterOp; - Wallpaper maBackground; - AllSettings maSettings; - MapMode maMapMode; - Point maRefPoint; - sal_uInt16 mnAntialiasing; - LanguageType meTextLanguage; + mutable long mnTextOffX; + mutable long mnTextOffY; + mutable long mnEmphasisAscent; + mutable long mnEmphasisDescent; + sal_uLong mnDrawMode; + sal_uLong mnTextLayoutMode; + ImplMapRes maMapRes; + ImplThresholdRes maThresRes; + OutDevType meOutDevType; + OutDevViewType meOutDevViewType; + Region maRegion; // contains the clip region, see SetClipRegion(...) + Color maLineColor; + Color maFillColor; + Font maFont; + Color maTextColor; + Color maTextLineColor; + Color maOverlineColor; + TextAlign meTextAlign; + RasterOp meRasterOp; + Wallpaper maBackground; + AllSettings maSettings; + MapMode maMapMode; + Point maRefPoint; + sal_uInt16 mnAntialiasing; + LanguageType meTextLanguage; /// bitfield - mutable bool mbMap : 1; - mutable bool mbMapIsDefault : 1; - mutable bool mbClipRegion : 1; - mutable bool mbBackground : 1; - mutable bool mbOutput : 1; - mutable bool mbDevOutput : 1; - mutable bool mbOutputClipped : 1; - mutable bool mbLineColor : 1; - mutable bool mbFillColor : 1; - mutable bool mbInitLineColor : 1; - mutable bool mbInitFillColor : 1; - mutable bool mbInitFont : 1; - mutable bool mbInitTextColor : 1; - mutable bool mbInitClipRegion : 1; - mutable bool mbClipRegionSet : 1; - mutable bool mbKerning : 1; - mutable bool mbNewFont : 1; - mutable bool mbTextLines : 1; - mutable bool mbTextSpecial : 1; - mutable bool mbRefPoint : 1; - mutable bool mbEnableRTL : 1; + mutable bool mbMap : 1; + mutable bool mbMapIsDefault : 1; + mutable bool mbClipRegion : 1; + mutable bool mbBackground : 1; + mutable bool mbOutput : 1; + mutable bool mbDevOutput : 1; + mutable bool mbOutputClipped : 1; + mutable bool mbLineColor : 1; + mutable bool mbFillColor : 1; + mutable bool mbInitLineColor : 1; + mutable bool mbInitFillColor : 1; + mutable bool mbInitFont : 1; + mutable bool mbInitTextColor : 1; + mutable bool mbInitClipRegion : 1; + mutable bool mbClipRegionSet : 1; + mutable bool mbKerning : 1; + mutable bool mbNewFont : 1; + mutable bool mbTextLines : 1; + mutable bool mbTextSpecial : 1; + mutable bool mbRefPoint : 1; + mutable bool mbEnableRTL : 1; public: SAL_DLLPRIVATE sal_Int32 ImplGetDPIX() const { return mnDPIX; } @@ -499,105 +499,105 @@ public: SAL_DLLPRIVATE void ImplGetFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize, OutputDevice& rOutDev ); - SAL_DLLPRIVATE sal_Bool ImplIsRecordLayout() const; + SAL_DLLPRIVATE sal_Bool ImplIsRecordLayout() const; SAL_DLLPRIVATE static FontEmphasisMark ImplGetEmphasisMarkStyle( const Font& rFont ); SAL_DLLPRIVATE static sal_Bool ImplIsUnderlineAbove( const Font& ); // tells whether this output device is RTL in an LTR UI or LTR in a RTL UI - SAL_DLLPRIVATE bool ImplIsAntiparallel() const ; - SAL_DLLPRIVATE Color ImplDrawModeToColor( const Color& rColor ) const; + SAL_DLLPRIVATE bool ImplIsAntiparallel() const ; + SAL_DLLPRIVATE Color ImplDrawModeToColor( const Color& rColor ) const; // #i101491# // Helper which holds the old line geometry creation and is extended to use AA when // switched on. Advantage is that line geometry is only temporarily used for paint - SAL_DLLPRIVATE void ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineInfo& rLineInfo); + SAL_DLLPRIVATE void ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineInfo& rLineInfo); // #i101491# // Helper who implements the DrawPolyPolygon functionality for basegfx::B2DPolyPolygon // without MetaFile processing - SAL_DLLPRIVATE void ImpDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyPolygon& rB2DPolyPoly); + SAL_DLLPRIVATE void ImpDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyPolygon& rB2DPolyPoly); // #i101491# // Helper who tries to use SalGDI's DrawPolyLine direct and returns it's bool. Contains no AA check. - SAL_DLLPRIVATE bool ImpTryDrawPolyLineDirect( - const basegfx::B2DPolygon& rB2DPolygon, - double fLineWidth = 0.0, - double fTransparency = 0.0, - basegfx::B2DLineJoin eLineJoin = basegfx::B2DLINEJOIN_NONE, - com::sun::star::drawing::LineCap eLineCap = com::sun::star::drawing::LineCap_BUTT); + SAL_DLLPRIVATE bool ImpTryDrawPolyLineDirect( + const basegfx::B2DPolygon& rB2DPolygon, + double fLineWidth = 0.0, + double fTransparency = 0.0, + basegfx::B2DLineJoin eLineJoin = basegfx::B2DLINEJOIN_NONE, + com::sun::star::drawing::LineCap eLineCap = com::sun::star::drawing::LineCap_BUTT); // Helper for line geometry paint with support for graphic expansion (pattern and fat_to_area) - void impPaintLineGeometryWithEvtlExpand(const LineInfo& rInfo, basegfx::B2DPolyPolygon aLinePolyPolygon); + void impPaintLineGeometryWithEvtlExpand(const LineInfo& rInfo, basegfx::B2DPolyPolygon aLinePolyPolygon); - SAL_DLLPRIVATE SalLayout* getFallbackFont(ImplFontEntry &rFallbackFont, - FontSelectPattern &rFontSelData, int nFallbackLevel, - ImplLayoutArgs& rLayoutArgs) const; + SAL_DLLPRIVATE SalLayout* getFallbackFont(ImplFontEntry &rFallbackFont, + FontSelectPattern &rFontSelData, int nFallbackLevel, + ImplLayoutArgs& rLayoutArgs) const; protected: - OutputDevice(); + OutputDevice(); private: typedef void ( OutputDevice::* FontUpdateHandler_t )( bool ); - SAL_DLLPRIVATE OutputDevice( const OutputDevice& rOutDev ); - SAL_DLLPRIVATE OutputDevice& operator =( const OutputDevice& rOutDev ); + SAL_DLLPRIVATE OutputDevice( const OutputDevice& rOutDev ); + SAL_DLLPRIVATE OutputDevice& operator =( const OutputDevice& rOutDev ); SAL_DLLPRIVATE void ImplClearFontData( bool bNewFontLists ); SAL_DLLPRIVATE void ImplRefreshFontData( bool bNewFontLists ); SAL_DLLPRIVATE static void ImplUpdateFontDataForAllFrames( FontUpdateHandler_t pHdl, bool bNewFontLists ); public: - virtual ~OutputDevice(); + virtual ~OutputDevice(); - OutDevType GetOutDevType() const { return meOutDevType; } + OutDevType GetOutDevType() const { return meOutDevType; } /** query an <code>OutputDevice</code> to see whether it supports a specific operation @return true if operation supported, else false */ - bool supportsOperation( OutDevSupportType ) const; + bool supportsOperation( OutDevSupportType ) const; - sal_Int32 GetDPIScaleFactor() const { return mnDPIScaleFactor; } + sal_Int32 GetDPIScaleFactor() const { return mnDPIScaleFactor; } - vcl::PDFWriterImpl* GetPDFWriter() const { return mpPDFWriter; } + vcl::PDFWriterImpl* GetPDFWriter() const { return mpPDFWriter; } - void SetExtOutDevData( vcl::ExtOutDevData* pExtOutDevData ) { mpExtOutDevData = pExtOutDevData; } - vcl::ExtOutDevData* GetExtOutDevData() const { return mpExtOutDevData; } + void SetExtOutDevData( vcl::ExtOutDevData* pExtOutDevData ) { mpExtOutDevData = pExtOutDevData; } + vcl::ExtOutDevData* GetExtOutDevData() const { return mpExtOutDevData; } - void DrawTextLine( const Point& rPos, long nWidth, - FontStrikeout eStrikeout, - FontUnderline eUnderline, - FontUnderline eOverline, - sal_Bool bUnderlineAbove = sal_False ); + void DrawTextLine( const Point& rPos, long nWidth, + FontStrikeout eStrikeout, + FontUnderline eUnderline, + FontUnderline eOverline, + sal_Bool bUnderlineAbove = sal_False ); - void DrawText( const Point& rStartPt, const OUString& rStr, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1, - MetricVector* pVector = NULL, OUString* pDisplayText = NULL ); - long GetTextWidth( const OUString& rStr, sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; + void DrawText( const Point& rStartPt, const OUString& rStr, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1, + MetricVector* pVector = NULL, OUString* pDisplayText = NULL ); + long GetTextWidth( const OUString& rStr, sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; /// Height where any character of the current font fits; in logic coordinates. - long GetTextHeight() const; - float approximate_char_width() const; - void DrawTextArray( const Point& rStartPt, const OUString& rStr, - const sal_Int32* pDXAry = NULL, - sal_Int32 nIndex = 0, - sal_Int32 nLen = -1 ); - long GetTextArray( const OUString& rStr, sal_Int32* pDXAry = NULL, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; - bool GetCaretPositions( const OUString&, sal_Int32* pCaretXArray, - sal_Int32 nIndex, sal_Int32 nLen, - sal_Int32* pDXAry = NULL, long nWidth = 0, - sal_Bool bCellBreaking = sal_True ) const; - void DrawStretchText( const Point& rStartPt, sal_uLong nWidth, - const OUString& rStr, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ); - sal_Int32 GetTextBreak( const OUString& rStr, long nTextWidth, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1, - long nCharExtra = 0 ) const; - sal_Int32 GetTextBreak( const OUString& rStr, long nTextWidth, - sal_Unicode nExtraChar, sal_Int32& rExtraCharPos, - sal_Int32 nIndex, sal_Int32 nLen, - long nCharExtra = 0 ) const; + long GetTextHeight() const; + float approximate_char_width() const; + void DrawTextArray( const Point& rStartPt, const OUString& rStr, + const sal_Int32* pDXAry = NULL, + sal_Int32 nIndex = 0, + sal_Int32 nLen = -1 ); + long GetTextArray( const OUString& rStr, sal_Int32* pDXAry = NULL, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; + bool GetCaretPositions( const OUString&, sal_Int32* pCaretXArray, + sal_Int32 nIndex, sal_Int32 nLen, + sal_Int32* pDXAry = NULL, long nWidth = 0, + sal_Bool bCellBreaking = sal_True ) const; + void DrawStretchText( const Point& rStartPt, sal_uLong nWidth, + const OUString& rStr, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ); + sal_Int32 GetTextBreak( const OUString& rStr, long nTextWidth, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1, + long nCharExtra = 0 ) const; + sal_Int32 GetTextBreak( const OUString& rStr, long nTextWidth, + sal_Unicode nExtraChar, sal_Int32& rExtraCharPos, + sal_Int32 nIndex, sal_Int32 nLen, + long nCharExtra = 0 ) const; /** Generate MetaTextActions for the text rect This method splits up the text rect into multiple @@ -606,60 +606,60 @@ public: constituent polygons. Parameter semantics fully compatible to DrawText(). */ - void AddTextRectActions( const Rectangle& rRect, - const OUString& rOrigStr, - sal_uInt16 nStyle, - GDIMetaFile& rMtf ); - void DrawText( const Rectangle& rRect, - const OUString& rStr, sal_uInt16 nStyle = 0, - MetricVector* pVector = NULL, OUString* pDisplayText = NULL, - ::vcl::ITextLayout* _pTextLayout = NULL ); - Rectangle GetTextRect( const Rectangle& rRect, - const OUString& rStr, sal_uInt16 nStyle = TEXT_DRAW_WORDBREAK, - TextRectInfo* pInfo = NULL, - const ::vcl::ITextLayout* _pTextLayout = NULL ) const; - OUString GetEllipsisString( const OUString& rStr, long nMaxWidth, - sal_uInt16 nStyle = TEXT_DRAW_ENDELLIPSIS ) const; - void DrawCtrlText( const Point& rPos, const OUString& rStr, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1, - sal_uInt16 nStyle = TEXT_DRAW_MNEMONIC, MetricVector* pVector = NULL, OUString* pDisplayText = NULL ); - long GetCtrlTextWidth( const OUString& rStr, sal_Int32 nIndex = 0, - sal_Int32 nLen = -1, - sal_uInt16 nStyle = TEXT_DRAW_MNEMONIC ) const; - static OUString GetNonMnemonicString( const OUString& rStr, sal_Int32& rMnemonicPos ); - static OUString GetNonMnemonicString( const OUString& rStr ) - { sal_Int32 nDummy; return GetNonMnemonicString( rStr, nDummy ); } - - sal_Bool GetTextBoundRect( Rectangle& rRect, - const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, sal_Int32 nLen = -1, - sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; - - sal_Bool GetTextOutline( PolyPolygon&, - const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, - sal_Int32 nLen = -1, sal_Bool bOptimize = sal_True, - sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; - - sal_Bool GetTextOutlines( PolyPolyVector&, - const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, - sal_Int32 nLen = -1, sal_Bool bOptimize = sal_True, - sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; - - sal_Bool GetTextOutlines( ::basegfx::B2DPolyPolygonVector &rVector, - const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, - sal_Int32 nLen = -1, sal_Bool bOptimize = sal_True, - sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; - - sal_Bool GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, - int nLen, int nBase, MetricVector& rVector ); - - void DrawPixel( const Point& rPt ); - void DrawPixel( const Point& rPt, const Color& rColor ); - void DrawPixel( const Polygon& rPts, const Color* pColors = NULL ); - void DrawPixel( const Polygon& rPts, const Color& rColor ); - - void DrawLine( const Point& rStartPt, const Point& rEndPt ); - void DrawLine( const Point& rStartPt, const Point& rEndPt, - const LineInfo& rLineInfo ); + void AddTextRectActions( const Rectangle& rRect, + const OUString& rOrigStr, + sal_uInt16 nStyle, + GDIMetaFile& rMtf ); + void DrawText( const Rectangle& rRect, + const OUString& rStr, sal_uInt16 nStyle = 0, + MetricVector* pVector = NULL, OUString* pDisplayText = NULL, + ::vcl::ITextLayout* _pTextLayout = NULL ); + Rectangle GetTextRect( const Rectangle& rRect, + const OUString& rStr, sal_uInt16 nStyle = TEXT_DRAW_WORDBREAK, + TextRectInfo* pInfo = NULL, + const ::vcl::ITextLayout* _pTextLayout = NULL ) const; + OUString GetEllipsisString( const OUString& rStr, long nMaxWidth, + sal_uInt16 nStyle = TEXT_DRAW_ENDELLIPSIS ) const; + void DrawCtrlText( const Point& rPos, const OUString& rStr, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1, + sal_uInt16 nStyle = TEXT_DRAW_MNEMONIC, MetricVector* pVector = NULL, OUString* pDisplayText = NULL ); + long GetCtrlTextWidth( const OUString& rStr, sal_Int32 nIndex = 0, + sal_Int32 nLen = -1, + sal_uInt16 nStyle = TEXT_DRAW_MNEMONIC ) const; + static OUString GetNonMnemonicString( const OUString& rStr, sal_Int32& rMnemonicPos ); + static OUString GetNonMnemonicString( const OUString& rStr ) + { sal_Int32 nDummy; return GetNonMnemonicString( rStr, nDummy ); } + + sal_Bool GetTextBoundRect( Rectangle& rRect, + const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, sal_Int32 nLen = -1, + sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; + + sal_Bool GetTextOutline( PolyPolygon&, + const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, + sal_Int32 nLen = -1, sal_Bool bOptimize = sal_True, + sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; + + sal_Bool GetTextOutlines( PolyPolyVector&, + const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, + sal_Int32 nLen = -1, sal_Bool bOptimize = sal_True, + sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; + + sal_Bool GetTextOutlines( ::basegfx::B2DPolyPolygonVector &rVector, + const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0, + sal_Int32 nLen = -1, sal_Bool bOptimize = sal_True, + sal_uLong nLayoutWidth = 0, const sal_Int32* pDXArray = NULL ) const; + + sal_Bool GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, + int nLen, int nBase, MetricVector& rVector ); + + void DrawPixel( const Point& rPt ); + void DrawPixel( const Point& rPt, const Color& rColor ); + void DrawPixel( const Polygon& rPts, const Color* pColors = NULL ); + void DrawPixel( const Polygon& rPts, const Color& rColor ); + + void DrawLine( const Point& rStartPt, const Point& rEndPt ); + void DrawLine( const Point& rStartPt, const Point& rEndPt, + const LineInfo& rLineInfo ); /** Render the given polygon as a line stroke @@ -669,18 +669,18 @@ public: @see DrawPolygon @see DrawPolyPolygon */ - void DrawPolyLine( const Polygon& rPoly ); - void DrawPolyLine( - const basegfx::B2DPolygon&, - double fLineWidth = 0.0, - basegfx::B2DLineJoin = basegfx::B2DLINEJOIN_ROUND, - com::sun::star::drawing::LineCap = com::sun::star::drawing::LineCap_BUTT); - bool TryDrawPolyLineDirect( - const basegfx::B2DPolygon& rB2DPolygon, - double fLineWidth = 0.0, - double fTransparency = 0.0, - basegfx::B2DLineJoin eLineJoin = basegfx::B2DLINEJOIN_NONE, - com::sun::star::drawing::LineCap eLineCap = com::sun::star::drawing::LineCap_BUTT); + void DrawPolyLine( const Polygon& rPoly ); + void DrawPolyLine( + const basegfx::B2DPolygon&, + double fLineWidth = 0.0, + basegfx::B2DLineJoin = basegfx::B2DLINEJOIN_ROUND, + com::sun::star::drawing::LineCap = com::sun::star::drawing::LineCap_BUTT); + bool TryDrawPolyLineDirect( + const basegfx::B2DPolygon& rB2DPolygon, + double fLineWidth = 0.0, + double fTransparency = 0.0, + basegfx::B2DLineJoin eLineJoin = basegfx::B2DLINEJOIN_NONE, + com::sun::star::drawing::LineCap eLineCap = com::sun::star::drawing::LineCap_BUTT); /** Render the given polygon as a line stroke @@ -692,8 +692,8 @@ public: @see DrawPolygon @see DrawPolyPolygon */ - void DrawPolyLine( const Polygon& rPoly, - const LineInfo& rLineInfo ); + void DrawPolyLine( const Polygon& rPoly, + const LineInfo& rLineInfo ); /** Render the given polygon @@ -705,8 +705,8 @@ public: @see DrawPolyLine */ - void DrawPolygon( const Polygon& rPoly ); - void DrawPolygon( const basegfx::B2DPolygon& ); + void DrawPolygon( const Polygon& rPoly ); + void DrawPolygon( const basegfx::B2DPolygon& ); /** Render the given poly-polygon @@ -718,44 +718,44 @@ public: @see DrawPolyLine */ - void DrawPolyPolygon( const PolyPolygon& rPolyPoly ); - void DrawPolyPolygon( const basegfx::B2DPolyPolygon& ); - - void DrawRect( const Rectangle& rRect ); - void DrawRect( const Rectangle& rRect, - sal_uLong nHorzRount, sal_uLong nVertRound ); - void DrawEllipse( const Rectangle& rRect ); - void DrawArc( const Rectangle& rRect, - const Point& rStartPt, const Point& rEndPt ); - void DrawPie( const Rectangle& rRect, - const Point& rStartPt, const Point& rEndPt ); - void DrawChord( const Rectangle& rRect, - const Point& rStartPt, const Point& rEndPt ); - - void DrawOutDev( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPt, const Size& rSrcSize ); - void DrawOutDev( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPt, const Size& rSrcSize, - const OutputDevice& rOutDev ); - void CopyArea( const Point& rDestPt, - const Point& rSrcPt, const Size& rSrcSize, - sal_uInt16 nFlags = 0 ); - - void DrawBitmap( const Point& rDestPt, - const Bitmap& rBitmap ); - void DrawBitmap( const Point& rDestPt, const Size& rDestSize, - const Bitmap& rBitmap ); - void DrawBitmap( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPtPixel, const Size& rSrcSizePixel, - const Bitmap& rBitmap ); - - void DrawBitmapEx( const Point& rDestPt, - const BitmapEx& rBitmapEx ); - void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, - const BitmapEx& rBitmapEx ); - void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPtPixel, const Size& rSrcSizePixel, - const BitmapEx& rBitmapEx ); + void DrawPolyPolygon( const PolyPolygon& rPolyPoly ); + void DrawPolyPolygon( const basegfx::B2DPolyPolygon& ); + + void DrawRect( const Rectangle& rRect ); + void DrawRect( const Rectangle& rRect, + sal_uLong nHorzRount, sal_uLong nVertRound ); + void DrawEllipse( const Rectangle& rRect ); + void DrawArc( const Rectangle& rRect, + const Point& rStartPt, const Point& rEndPt ); + void DrawPie( const Rectangle& rRect, + const Point& rStartPt, const Point& rEndPt ); + void DrawChord( const Rectangle& rRect, + const Point& rStartPt, const Point& rEndPt ); + + void DrawOutDev( const Point& rDestPt, const Size& rDestSize, + const Point& rSrcPt, const Size& rSrcSize ); + void DrawOutDev( const Point& rDestPt, const Size& rDestSize, + const Point& rSrcPt, const Size& rSrcSize, + const OutputDevice& rOutDev ); + void CopyArea( const Point& rDestPt, + const Point& rSrcPt, const Size& rSrcSize, + sal_uInt16 nFlags = 0 ); + + void DrawBitmap( const Point& rDestPt, + const Bitmap& rBitmap ); + void DrawBitmap( const Point& rDestPt, const Size& rDestSize, + const Bitmap& rBitmap ); + void DrawBitmap( const Point& rDestPt, const Size& rDestSize, + const Point& rSrcPtPixel, const Size& rSrcSizePixel, + const Bitmap& rBitmap ); + + void DrawBitmapEx( const Point& rDestPt, + const BitmapEx& rBitmapEx ); + void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, + const BitmapEx& rBitmapEx ); + void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, + const Point& rSrcPtPixel, const Size& rSrcSizePixel, + const BitmapEx& rBitmapEx ); /** Draw BitampEx transformed @@ -767,48 +767,48 @@ public: @param rBitmapEx The BitmapEx to be painted */ - void DrawTransformedBitmapEx( - const basegfx::B2DHomMatrix& rTransformation, - const BitmapEx& rBitmapEx); - - void DrawMask( const Point& rDestPt, - const Bitmap& rBitmap, const Color& rMaskColor ); - void DrawMask( const Point& rDestPt, const Size& rDestSize, - const Bitmap& rBitmap, const Color& rMaskColor ); - void DrawMask( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPtPixel, const Size& rSrcSizePixel, - const Bitmap& rBitmap, const Color& rMaskColor ); - - void DrawImage( const Point& rPos, - const Image& rImage, sal_uInt16 nStyle = 0 ); - void DrawImage( const Point& rPos, const Size& rSize, - const Image& rImage, sal_uInt16 nStyle = 0 ); - - void DrawGradient( const Rectangle& rRect, const Gradient& rGradient ); - void DrawGradient( const PolyPolygon& rPolyPoly, const Gradient& rGradient ); - void AddGradientActions( const Rectangle& rRect, - const Gradient& rGradient, - GDIMetaFile& rMtf ); + void DrawTransformedBitmapEx( + const basegfx::B2DHomMatrix& rTransformation, + const BitmapEx& rBitmapEx); + + void DrawMask( const Point& rDestPt, + const Bitmap& rBitmap, const Color& rMaskColor ); + void DrawMask( const Point& rDestPt, const Size& rDestSize, + const Bitmap& rBitmap, const Color& rMaskColor ); + void DrawMask( const Point& rDestPt, const Size& rDestSize, + const Point& rSrcPtPixel, const Size& rSrcSizePixel, + const Bitmap& rBitmap, const Color& rMaskColor ); + + void DrawImage( const Point& rPos, + const Image& rImage, sal_uInt16 nStyle = 0 ); + void DrawImage( const Point& rPos, const Size& rSize, + const Image& rImage, sal_uInt16 nStyle = 0 ); + + void DrawGradient( const Rectangle& rRect, const Gradient& rGradient ); + void DrawGradient( const PolyPolygon& rPolyPoly, const Gradient& rGradient ); + void AddGradientActions( const Rectangle& rRect, + const Gradient& rGradient, + GDIMetaFile& rMtf ); #ifdef _MSC_VER - void DrawHatch( const PolyPolygon& rPolyPoly, const ::Hatch& rHatch ); - void AddHatchActions( const PolyPolygon& rPolyPoly, - const ::Hatch& rHatch, - GDIMetaFile& rMtf ); + void DrawHatch( const PolyPolygon& rPolyPoly, const ::Hatch& rHatch ); + void AddHatchActions( const PolyPolygon& rPolyPoly, + const ::Hatch& rHatch, + GDIMetaFile& rMtf ); #else - void DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch ); - void AddHatchActions( const PolyPolygon& rPolyPoly, - const Hatch& rHatch, - GDIMetaFile& rMtf ); + void DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch ); + void AddHatchActions( const PolyPolygon& rPolyPoly, + const Hatch& rHatch, + GDIMetaFile& rMtf ); #endif - void DrawWallpaper( const Rectangle& rRect, const Wallpaper& rWallpaper ); - void DrawWaveLine( const Point& rStartPos, const Point& rEndPos, sal_uInt16 nStyle ); - void DrawGrid( const Rectangle& rRect, const Size& rDist, sal_uLong nFlags ); + void DrawWallpaper( const Rectangle& rRect, const Wallpaper& rWallpaper ); + void DrawWaveLine( const Point& rStartPos, const Point& rEndPos, sal_uInt16 nStyle ); + void DrawGrid( const Rectangle& rRect, const Size& rDist, sal_uLong nFlags ); - void DrawTransparent( const PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent ); - void DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly, double fTransparency); - void DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos, const Size& rSize, + void DrawTransparent( const PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent ); + void DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly, double fTransparency); + void DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos, const Size& rSize, const Gradient& rTransparenceGradient ); /** Added return value to see if EPS could be painted directly. @@ -816,65 +816,65 @@ public: painting rotated EPS files (e.g. contained in Metafiles). This would then need to be supported for Mac and PS printers, but that's too much for now, wrote \#i107046# for this */ - bool DrawEPS( const Point& rPt, const Size& rSz, - const GfxLink& rGfxLink, GDIMetaFile* pSubst = NULL ); + bool DrawEPS( const Point& rPt, const Size& rSz, + const GfxLink& rGfxLink, GDIMetaFile* pSubst = NULL ); /// Fill the given rectangle with checkered rectangles of size nLen x nLen using the colors aStart and aEnd - void DrawCheckered( - const Point& rPos, - const Size& rSize, - sal_uInt32 nLen = 8, - Color aStart = Color(COL_WHITE), - Color aEnd = Color(COL_BLACK)); + void DrawCheckered( + const Point& rPos, + const Size& rSize, + sal_uInt32 nLen = 8, + Color aStart = Color(COL_WHITE), + Color aEnd = Color(COL_BLACK)); - Color GetPixel( const Point& rPt ) const; + Color GetPixel( const Point& rPt ) const; - Bitmap GetBitmap( const Point& rSrcPt, const Size& rSize ) const; + Bitmap GetBitmap( const Point& rSrcPt, const Size& rSize ) const; /** Query extended bitmap (with alpha channel, if available). */ - BitmapEx GetBitmapEx( const Point& rSrcPt, const Size& rSize ) const; + BitmapEx GetBitmapEx( const Point& rSrcPt, const Size& rSize ) const; - void EnableMapMode( sal_Bool bEnable = sal_True ); - sal_Bool IsMapModeEnabled() const { return mbMap; } + void EnableMapMode( sal_Bool bEnable = sal_True ); + sal_Bool IsMapModeEnabled() const { return mbMap; } // Enabling/disabling RTL only makes sense for OutputDevices that use a mirroring SalGraphisLayout - void EnableRTL( sal_Bool bEnable = sal_True); - sal_Bool IsRTLEnabled() const { return mbEnableRTL; } + void EnableRTL( sal_Bool bEnable = sal_True); + sal_Bool IsRTLEnabled() const { return mbEnableRTL; } - void SetConnectMetaFile( GDIMetaFile* pMtf ); - GDIMetaFile* GetConnectMetaFile() const { return mpMetaFile; } + void SetConnectMetaFile( GDIMetaFile* pMtf ); + GDIMetaFile* GetConnectMetaFile() const { return mpMetaFile; } - void EnableOutput( sal_Bool bEnable = sal_True ); - sal_Bool IsOutputEnabled() const { return mbOutput; } - sal_Bool IsDeviceOutput() const { return mbDevOutput; } - sal_Bool IsDeviceOutputNecessary() const { return (mbOutput && mbDevOutput); } - sal_Bool IsOutputNecessary() const { return ((mbOutput && mbDevOutput) || (mpMetaFile != NULL)); } + void EnableOutput( sal_Bool bEnable = sal_True ); + sal_Bool IsOutputEnabled() const { return mbOutput; } + sal_Bool IsDeviceOutput() const { return mbDevOutput; } + sal_Bool IsDeviceOutputNecessary() const { return (mbOutput && mbDevOutput); } + sal_Bool IsOutputNecessary() const { return ((mbOutput && mbDevOutput) || (mpMetaFile != NULL)); } - void SetClipRegion(); - void SetClipRegion( const Region& rRegion ); - Region GetClipRegion() const; - sal_Bool IsClipRegion() const { return mbClipRegion; } - Region GetActiveClipRegion() const; + void SetClipRegion(); + void SetClipRegion( const Region& rRegion ); + Region GetClipRegion() const; + sal_Bool IsClipRegion() const { return mbClipRegion; } + Region GetActiveClipRegion() const; - void MoveClipRegion( long nHorzMove, long nVertMove ); - void IntersectClipRegion( const Rectangle& rRect ); - void IntersectClipRegion( const Region& rRegion ); + void MoveClipRegion( long nHorzMove, long nVertMove ); + void IntersectClipRegion( const Rectangle& rRect ); + void IntersectClipRegion( const Region& rRegion ); - void SetAntialiasing( sal_uInt16 nMode = 0 ); - sal_uInt16 GetAntialiasing() const { return mnAntialiasing; } + void SetAntialiasing( sal_uInt16 nMode = 0 ); + sal_uInt16 GetAntialiasing() const { return mnAntialiasing; } - void SetDrawMode( sal_uLong nDrawMode ); - sal_uLong GetDrawMode() const { return mnDrawMode; } + void SetDrawMode( sal_uLong nDrawMode ); + sal_uLong GetDrawMode() const { return mnDrawMode; } - void SetLayoutMode( sal_uLong nTextLayoutMode ); - sal_uLong GetLayoutMode() const { return mnTextLayoutMode; } + void SetLayoutMode( sal_uLong nTextLayoutMode ); + sal_uLong GetLayoutMode() const { return mnTextLayoutMode; } - void SetDigitLanguage( LanguageType ); - LanguageType GetDigitLanguage() const { return meTextLanguage; } + void SetDigitLanguage( LanguageType ); + LanguageType GetDigitLanguage() const { return meTextLanguage; } - void SetRasterOp( RasterOp eRasterOp ); - RasterOp GetRasterOp() const { return meRasterOp; } + void SetRasterOp( RasterOp eRasterOp ); + RasterOp GetRasterOp() const { return meRasterOp; } /** If this OutputDevice is used for displaying a Print Preview @@ -883,74 +883,74 @@ public: A View can then make painting decisions dependent on this OutDevViewType. E.g. text colors need to be handled differently, dependent on whether it's a PrintPreview or not. (see #106611# for more) */ - void SetOutDevViewType( OutDevViewType eOutDevViewType ) { meOutDevViewType=eOutDevViewType; } - OutDevViewType GetOutDevViewType() const { return meOutDevViewType; } - - void SetLineColor(); - void SetLineColor( const Color& rColor ); - const Color& GetLineColor() const { return maLineColor; } - sal_Bool IsLineColor() const { return mbLineColor; } - - void SetFillColor(); - void SetFillColor( const Color& rColor ); - const Color& GetFillColor() const { return maFillColor; } - sal_Bool IsFillColor() const { return mbFillColor; } - - void SetBackground(); - void SetBackground( const Wallpaper& rBackground ); - - const Wallpaper& GetBackground() const { return maBackground; } - sal_Bool IsBackground() const { return mbBackground; } - - void SetFont( const Font& rNewFont ); - const Font& GetFont() const { return maFont; } - - SystemFontData GetSysFontData( int nFallbacklevel ) const; - SystemTextLayoutData GetSysTextLayoutData( const Point& rStartPt, const OUString& rStr, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1, - const sal_Int32* pDXAry = NULL ) const; - - void SetTextColor( const Color& rColor ); - const Color& GetTextColor() const { return maTextColor; } - void SetTextFillColor(); - void SetTextFillColor( const Color& rColor ); - - Color GetTextFillColor() const; - sal_Bool IsTextFillColor() const { return !maFont.IsTransparent(); } - void SetTextLineColor(); - void SetTextLineColor( const Color& rColor ); - const Color& GetTextLineColor() const { return maTextLineColor; } - sal_Bool IsTextLineColor() const { return (maTextLineColor.GetTransparency() == 0); } - void SetOverlineColor(); - void SetOverlineColor( const Color& rColor ); - const Color& GetOverlineColor() const { return maOverlineColor; } - sal_Bool IsOverlineColor() const { return (maOverlineColor.GetTransparency() == 0); } - void SetTextAlign( TextAlign eAlign ); - TextAlign GetTextAlign() const { return maFont.GetAlign(); } - - virtual void SetSettings( const AllSettings& rSettings ); - const AllSettings& GetSettings() const { return maSettings; } - - SystemGraphicsData GetSystemGfxData() const; - ::com::sun::star::uno::Any GetSystemGfxDataAny() const; - - virtual void SetMapMode(); - virtual void SetMapMode( const MapMode& rNewMapMode ); - virtual void SetRelativeMapMode( const MapMode& rNewMapMode ); - const MapMode& GetMapMode() const { return maMapMode; } - sal_Bool IsMapMode() const { return mbMap; } - - void SetRefPoint(); - void SetRefPoint( const Point& rRefPoint ); - const Point& GetRefPoint() const { return maRefPoint; } - sal_Bool IsRefPoint() const { return mbRefPoint; } + void SetOutDevViewType( OutDevViewType eOutDevViewType ) { meOutDevViewType=eOutDevViewType; } + OutDevViewType GetOutDevViewType() const { return meOutDevViewType; } + + void SetLineColor(); + void SetLineColor( const Color& rColor ); + const Color& GetLineColor() const { return maLineColor; } + sal_Bool IsLineColor() const { return mbLineColor; } + + void SetFillColor(); + void SetFillColor( const Color& rColor ); + const Color& GetFillColor() const { return maFillColor; } + sal_Bool IsFillColor() const { return mbFillColor; } + + void SetBackground(); + void SetBackground( const Wallpaper& rBackground ); + + const Wallpaper& GetBackground() const { return maBackground; } + sal_Bool IsBackground() const { return mbBackground; } + + void SetFont( const Font& rNewFont ); + const Font& GetFont() const { return maFont; } + + SystemFontData GetSysFontData( int nFallbacklevel ) const; + SystemTextLayoutData GetSysTextLayoutData( const Point& rStartPt, const OUString& rStr, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1, + const sal_Int32* pDXAry = NULL ) const; + + void SetTextColor( const Color& rColor ); + const Color& GetTextColor() const { return maTextColor; } + void SetTextFillColor(); + void SetTextFillColor( const Color& rColor ); + + Color GetTextFillColor() const; + sal_Bool IsTextFillColor() const { return !maFont.IsTransparent(); } + void SetTextLineColor(); + void SetTextLineColor( const Color& rColor ); + const Color& GetTextLineColor() const { return maTextLineColor; } + sal_Bool IsTextLineColor() const { return (maTextLineColor.GetTransparency() == 0); } + void SetOverlineColor(); + void SetOverlineColor( const Color& rColor ); + const Color& GetOverlineColor() const { return maOverlineColor; } + sal_Bool IsOverlineColor() const { return (maOverlineColor.GetTransparency() == 0); } + void SetTextAlign( TextAlign eAlign ); + TextAlign GetTextAlign() const { return maFont.GetAlign(); } + + virtual void SetSettings( const AllSettings& rSettings ); + const AllSettings& GetSettings() const { return maSettings; } + + SystemGraphicsData GetSystemGfxData() const; + ::com::sun::star::uno::Any GetSystemGfxDataAny() const; + + virtual void SetMapMode(); + virtual void SetMapMode( const MapMode& rNewMapMode ); + virtual void SetRelativeMapMode( const MapMode& rNewMapMode ); + const MapMode& GetMapMode() const { return maMapMode; } + sal_Bool IsMapMode() const { return mbMap; } + + void SetRefPoint(); + void SetRefPoint( const Point& rRefPoint ); + const Point& GetRefPoint() const { return maRefPoint; } + sal_Bool IsRefPoint() const { return mbRefPoint; } // #i75163# - basegfx::B2DHomMatrix GetViewTransformation() const; - basegfx::B2DHomMatrix GetInverseViewTransformation() const; + basegfx::B2DHomMatrix GetViewTransformation() const; + basegfx::B2DHomMatrix GetInverseViewTransformation() const; - basegfx::B2DHomMatrix GetViewTransformation( const MapMode& rMapMode ) const; - basegfx::B2DHomMatrix GetInverseViewTransformation( const MapMode& rMapMode ) const; + basegfx::B2DHomMatrix GetViewTransformation( const MapMode& rMapMode ) const; + basegfx::B2DHomMatrix GetInverseViewTransformation( const MapMode& rMapMode ) const; /** Set an offset in pixel @@ -975,7 +975,7 @@ public: @param rOffset The offset in pixel */ - void SetPixelOffset( const Size& rOffset ); + void SetPixelOffset( const Size& rOffset ); /** Get the offset in pixel @@ -983,80 +983,80 @@ public: @return the current offset in pixel */ - Size GetPixelOffset() const; - - Point LogicToPixel( const Point& rLogicPt ) const; - Size LogicToPixel( const Size& rLogicSize ) const; - Rectangle LogicToPixel( const Rectangle& rLogicRect ) const; - Polygon LogicToPixel( const Polygon& rLogicPoly ) const; - PolyPolygon LogicToPixel( const PolyPolygon& rLogicPolyPoly ) const; - basegfx::B2DPolyPolygon LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly ) const; - Region LogicToPixel( const Region& rLogicRegion )const; - Point LogicToPixel( const Point& rLogicPt, - const MapMode& rMapMode ) const; - Size LogicToPixel( const Size& rLogicSize, - const MapMode& rMapMode ) const; - Rectangle LogicToPixel( const Rectangle& rLogicRect, - const MapMode& rMapMode ) const; - Polygon LogicToPixel( const Polygon& rLogicPoly, - const MapMode& rMapMode ) const; - basegfx::B2DPolygon LogicToPixel( const basegfx::B2DPolygon& rLogicPoly, - const MapMode& rMapMode ) const; - PolyPolygon LogicToPixel( const PolyPolygon& rLogicPolyPoly, - const MapMode& rMapMode ) const; - basegfx::B2DPolyPolygon LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly, - const MapMode& rMapMode ) const; - Region LogicToPixel( const Region& rLogicRegion, - const MapMode& rMapMode ) const; - Point PixelToLogic( const Point& rDevicePt ) const; - Size PixelToLogic( const Size& rDeviceSize ) const; - Rectangle PixelToLogic( const Rectangle& rDeviceRect ) const; - Polygon PixelToLogic( const Polygon& rDevicePoly ) const; - basegfx::B2DPolygon LogicToPixel( const basegfx::B2DPolygon& rLogicPoly ) const; - PolyPolygon PixelToLogic( const PolyPolygon& rDevicePolyPoly ) const; - basegfx::B2DPolyPolygon PixelToLogic( const basegfx::B2DPolyPolygon& rDevicePolyPoly ) const; - Region PixelToLogic( const Region& rDeviceRegion ) const; - Point PixelToLogic( const Point& rDevicePt, - const MapMode& rMapMode ) const; - Size PixelToLogic( const Size& rDeviceSize, - const MapMode& rMapMode ) const; - Rectangle PixelToLogic( const Rectangle& rDeviceRect, - const MapMode& rMapMode ) const; - Polygon PixelToLogic( const Polygon& rDevicePoly, - const MapMode& rMapMode ) const; - basegfx::B2DPolygon PixelToLogic( const basegfx::B2DPolygon& rDevicePoly, - const MapMode& rMapMode ) const; - PolyPolygon PixelToLogic( const PolyPolygon& rDevicePolyPoly, - const MapMode& rMapMode ) const; - basegfx::B2DPolyPolygon PixelToLogic( const basegfx::B2DPolyPolygon& rDevicePolyPoly, - const MapMode& rMapMode ) const; - Region PixelToLogic( const Region& rDeviceRegion, - const MapMode& rMapMode ) const; - Point LogicToLogic( const Point& rPtSource, - const MapMode* pMapModeSource, - const MapMode* pMapModeDest ) const; - Size LogicToLogic( const Size& rSzSource, - const MapMode* pMapModeSource, - const MapMode* pMapModeDest ) const; - Rectangle LogicToLogic( const Rectangle& rRectSource, - const MapMode* pMapModeSource, - const MapMode* pMapModeDest ) const; - static Point LogicToLogic( const Point& rPtSource, - const MapMode& rMapModeSource, - const MapMode& rMapModeDest ); - static Size LogicToLogic( const Size& rSzSource, - const MapMode& rMapModeSource, - const MapMode& rMapModeDest ); - static Rectangle LogicToLogic( const Rectangle& rRectSource, - const MapMode& rMapModeSource, - const MapMode& rMapModeDest ); - static long LogicToLogic( long nLongSource, - MapUnit eUnitSource, - MapUnit eUnitDest ); - - static basegfx::B2DPolygon LogicToLogic( const basegfx::B2DPolygon& rPoly, - const MapMode& rMapModeSource, - const MapMode& rMapModeDest ); + Size GetPixelOffset() const; + + Point LogicToPixel( const Point& rLogicPt ) const; + Size LogicToPixel( const Size& rLogicSize ) const; + Rectangle LogicToPixel( const Rectangle& rLogicRect ) const; + Polygon LogicToPixel( const Polygon& rLogicPoly ) const; + PolyPolygon LogicToPixel( const PolyPolygon& rLogicPolyPoly ) const; + basegfx::B2DPolyPolygon LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly ) const; + Region LogicToPixel( const Region& rLogicRegion )const; + Point LogicToPixel( const Point& rLogicPt, + const MapMode& rMapMode ) const; + Size LogicToPixel( const Size& rLogicSize, + const MapMode& rMapMode ) const; + Rectangle LogicToPixel( const Rectangle& rLogicRect, + const MapMode& rMapMode ) const; + Polygon LogicToPixel( const Polygon& rLogicPoly, + const MapMode& rMapMode ) const; + basegfx::B2DPolygon LogicToPixel( const basegfx::B2DPolygon& rLogicPoly, + const MapMode& rMapMode ) const; + PolyPolygon LogicToPixel( const PolyPolygon& rLogicPolyPoly, + const MapMode& rMapMode ) const; + basegfx::B2DPolyPolygon LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly, + const MapMode& rMapMode ) const; + Region LogicToPixel( const Region& rLogicRegion, + const MapMode& rMapMode ) const; + Point PixelToLogic( const Point& rDevicePt ) const; + Size PixelToLogic( const Size& rDeviceSize ) const; + Rectangle PixelToLogic( const Rectangle& rDeviceRect ) const; + Polygon PixelToLogic( const Polygon& rDevicePoly ) const; + basegfx::B2DPolygon LogicToPixel( const basegfx::B2DPolygon& rLogicPoly ) const; + PolyPolygon PixelToLogic( const PolyPolygon& rDevicePolyPoly ) const; + basegfx::B2DPolyPolygon PixelToLogic( const basegfx::B2DPolyPolygon& rDevicePolyPoly ) const; + Region PixelToLogic( const Region& rDeviceRegion ) const; + Point PixelToLogic( const Point& rDevicePt, + const MapMode& rMapMode ) const; + Size PixelToLogic( const Size& rDeviceSize, + const MapMode& rMapMode ) const; + Rectangle PixelToLogic( const Rectangle& rDeviceRect, + const MapMode& rMapMode ) const; + Polygon PixelToLogic( const Polygon& rDevicePoly, + const MapMode& rMapMode ) const; + basegfx::B2DPolygon PixelToLogic( const basegfx::B2DPolygon& rDevicePoly, + const MapMode& rMapMode ) const; + PolyPolygon PixelToLogic( const PolyPolygon& rDevicePolyPoly, + const MapMode& rMapMode ) const; + basegfx::B2DPolyPolygon PixelToLogic( const basegfx::B2DPolyPolygon& rDevicePolyPoly, + const MapMode& rMapMode ) const; + Region PixelToLogic( const Region& rDeviceRegion, + const MapMode& rMapMode ) const; + Point LogicToLogic( const Point& rPtSource, + const MapMode* pMapModeSource, + const MapMode* pMapModeDest ) const; + Size LogicToLogic( const Size& rSzSource, + const MapMode* pMapModeSource, + const MapMode* pMapModeDest ) const; + Rectangle LogicToLogic( const Rectangle& rRectSource, + const MapMode* pMapModeSource, + const MapMode* pMapModeDest ) const; + static Point LogicToLogic( const Point& rPtSource, + const MapMode& rMapModeSource, + const MapMode& rMapModeDest ); + static Size LogicToLogic( const Size& rSzSource, + const MapMode& rMapModeSource, + const MapMode& rMapModeDest ); + static Rectangle LogicToLogic( const Rectangle& rRectSource, + const MapMode& rMapModeSource, + const MapMode& rMapModeDest ); + static long LogicToLogic( long nLongSource, + MapUnit eUnitSource, + MapUnit eUnitDest ); + + static basegfx::B2DPolygon LogicToLogic( const basegfx::B2DPolygon& rPoly, + const MapMode& rMapModeSource, + const MapMode& rMapModeDest ); static basegfx::B2DPolyPolygon LogicToLogic( const basegfx::B2DPolyPolygon& rPolyPoly, const MapMode& rMapModeSource, const MapMode& rMapModeDest ); @@ -1065,94 +1065,94 @@ public: // for B2DPoly/Polygons use this internally anyway to transform the B2DPolygon) static basegfx::B2DHomMatrix LogicToLogic(const MapMode& rMapModeSource, const MapMode& rMapModeDest); - Size GetOutputSizePixel() const - { return Size( mnOutWidth, mnOutHeight ); } - long GetOutputWidthPixel() const { return mnOutWidth; } - long GetOutputHeightPixel() const { return mnOutHeight; } - long GetOutOffXPixel() const { return mnOutOffX; } - long GetOutOffYPixel() const { return mnOutOffY; } + Size GetOutputSizePixel() const + { return Size( mnOutWidth, mnOutHeight ); } + long GetOutputWidthPixel() const { return mnOutWidth; } + long GetOutputHeightPixel() const { return mnOutHeight; } + long GetOutOffXPixel() const { return mnOutOffX; } + long GetOutOffYPixel() const { return mnOutOffY; } - Size GetOutputSize() const - { return PixelToLogic( GetOutputSizePixel() ); } + Size GetOutputSize() const + { return PixelToLogic( GetOutputSizePixel() ); } - void Erase(); - void Erase( const Rectangle& rRect ) { DrawWallpaper( rRect, GetBackground() ); } + void Erase(); + void Erase( const Rectangle& rRect ) { DrawWallpaper( rRect, GetBackground() ); } - sal_Bool AddTempDevFont( const OUString& rFileURL, const OUString& rFontName ); - int GetDevFontCount() const; - FontInfo GetDevFont( int nDevFontIndex ) const; - int GetDevFontSizeCount( const Font& ) const; - Size GetDevFontSize( const Font& rFont, int nSizeIndex ) const; - sal_Bool IsFontAvailable( const OUString& rFontName ) const; + sal_Bool AddTempDevFont( const OUString& rFileURL, const OUString& rFontName ); + int GetDevFontCount() const; + FontInfo GetDevFont( int nDevFontIndex ) const; + int GetDevFontSizeCount( const Font& ) const; + Size GetDevFontSize( const Font& rFont, int nSizeIndex ) const; + sal_Bool IsFontAvailable( const OUString& rFontName ) const; - FontMetric GetFontMetric() const; - FontMetric GetFontMetric( const Font& rFont ) const; - sal_Bool GetFontCharMap( FontCharMap& rFontCharMap ) const; - bool GetFontCapabilities( vcl::FontCapabilities& rFontCapabilities ) const; + FontMetric GetFontMetric() const; + FontMetric GetFontMetric( const Font& rFont ) const; + sal_Bool GetFontCharMap( FontCharMap& rFontCharMap ) const; + bool GetFontCapabilities( vcl::FontCapabilities& rFontCapabilities ) const; - sal_Int32 HasGlyphs( const Font& rFont, const OUString& rStr, - sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; + sal_Int32 HasGlyphs( const Font& rFont, const OUString& rStr, + sal_Int32 nIndex = 0, sal_Int32 nLen = -1 ) const; - long GetMinKashida() const; + long GetMinKashida() const; // i60594 // validate kashida positions against the current font // returns count of invalid kashida positions - sal_Int32 ValidateKashidas(const OUString& rTxt, sal_Int32 nIdx, sal_Int32 nLen, - sal_Int32 nKashCount, // number of suggested kashida positions (in) - const sal_Int32* pKashidaPos, // suggested kashida positions (in) - sal_Int32* pKashidaPosDropped // invalid kashida positions (out) - ) const; + sal_Int32 ValidateKashidas( const OUString& rTxt, sal_Int32 nIdx, sal_Int32 nLen, + sal_Int32 nKashCount, // number of suggested kashida positions (in) + const sal_Int32* pKashidaPos, // suggested kashida positions (in) + sal_Int32* pKashidaPosDropped // invalid kashida positions (out) + ) const; - sal_uInt16 GetBitCount() const; + sal_uInt16 GetBitCount() const; - sal_Bool GetTextIsRTL( const OUString&, sal_Int32 nIndex, sal_Int32 nLen ) const; + sal_Bool GetTextIsRTL( const OUString&, sal_Int32 nIndex, sal_Int32 nLen ) const; /** Query the existence and depth of the alpha channel @return 0, if no alpha channel available, and the bit depth of the alpha channel otherwise. */ - sal_uInt16 GetAlphaBitCount() const; - sal_uLong GetColorCount() const; + sal_uInt16 GetAlphaBitCount() const; + sal_uLong GetColorCount() const; - void Push( sal_uInt16 nFlags = PUSH_ALL ); - void Pop(); + void Push( sal_uInt16 nFlags = PUSH_ALL ); + void Pop(); // returns the current stack depth; that is the number of Push() calls minus the number of Pop() calls // this should not normally be used since Push and Pop must always be used symmetrically // however this may be e.g. a help when debugging code in which this somehow is not the case - sal_uInt32 GetGCStackDepth() const; + sal_uInt32 GetGCStackDepth() const; /** Query availability of alpha channel @return sal_True, if this device has an alpha channel. */ - sal_Bool HasAlpha(); + sal_Bool HasAlpha(); /// request XCanvas render interface for this OutputDevice ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > GetCanvas() const; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > CreateUnoGraphics(); - VCLXGraphicsList_impl* GetUnoGraphicsList() const { return mpUnoGraphicsList; } - VCLXGraphicsList_impl* CreateUnoGraphicsList() - { - mpUnoGraphicsList = new VCLXGraphicsList_impl(); - return mpUnoGraphicsList; - } - - static void BeginFontSubstitution(); - static void EndFontSubstitution(); - static void AddFontSubstitute( const OUString& rFontName, - const OUString& rReplaceFontName, - sal_uInt16 nFlags = 0 ); - static void RemoveFontSubstitute( sal_uInt16 n ); - static sal_uInt16 GetFontSubstituteCount(); - - static Font GetDefaultFont( sal_uInt16 nType, - LanguageType eLang, - sal_uLong nFlags, - const OutputDevice* pOutDev = NULL ); + VCLXGraphicsList_impl* GetUnoGraphicsList() const { return mpUnoGraphicsList; } + VCLXGraphicsList_impl* CreateUnoGraphicsList() + { + mpUnoGraphicsList = new VCLXGraphicsList_impl(); + return mpUnoGraphicsList; + } + + static void BeginFontSubstitution(); + static void EndFontSubstitution(); + static void AddFontSubstitute( const OUString& rFontName, + const OUString& rReplaceFontName, + sal_uInt16 nFlags = 0 ); + static void RemoveFontSubstitute( sal_uInt16 n ); + static sal_uInt16 GetFontSubstituteCount(); + + static Font GetDefaultFont( sal_uInt16 nType, + LanguageType eLang, + sal_uLong nFlags, + const OutputDevice* pOutDev = NULL ); /** helper method removing transparencies from a metafile (e.g. for printing) @@ -1164,53 +1164,53 @@ public: @attention the output metafile is prepared in pixel mode for the currentOutputDevice state. It can not be moved or rotated reliably anymore. */ - bool RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, GDIMetaFile& rOutMtf, - long nMaxBmpDPIX, long nMaxBmpDPIY, - bool bReduceTransparency, - bool bTransparencyAutoMode, - bool bDownsampleBitmaps, - const Color& rBackground = Color( COL_TRANSPARENT ) - ); + bool RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, GDIMetaFile& rOutMtf, + long nMaxBmpDPIX, long nMaxBmpDPIY, + bool bReduceTransparency, + bool bTransparencyAutoMode, + bool bDownsampleBitmaps, + const Color& rBackground = Color( COL_TRANSPARENT ) + ); /** Retrieve downsampled and cropped bitmap @attention This method ignores negative rDstSz values, thus mirroring must happen outside this method (e.g. in DrawBitmap) */ - Bitmap GetDownsampledBitmap( const Size& rDstSz, - const Point& rSrcPt, const Size& rSrcSz, - const Bitmap& rBmp, long nMaxBmpDPIX, long nMaxBmpDPIY ); + Bitmap GetDownsampledBitmap( const Size& rDstSz, + const Point& rSrcPt, const Size& rSrcSz, + const Bitmap& rBmp, long nMaxBmpDPIX, long nMaxBmpDPIY ); // Native Widget Rendering functions // These all just call through to the private mpGraphics functions of the same name. // Query the platform layer for control support - sal_Bool IsNativeControlSupported( ControlType nType, ControlPart nPart ) const; + sal_Bool IsNativeControlSupported( ControlType nType, ControlPart nPart ) const; // Query the native control to determine if it was acted upon - sal_Bool HitTestNativeControl( ControlType nType, - ControlPart nPart, - const Rectangle& rControlRegion, - const Point& aPos, - bool& rIsInside ) const; + sal_Bool HitTestNativeControl( ControlType nType, + ControlPart nPart, + const Rectangle& rControlRegion, + const Point& aPos, + bool& rIsInside ) const; // Request rendering of a particular control and/or part - sal_Bool DrawNativeControl( ControlType nType, - ControlPart nPart, - const Rectangle& rControlRegion, - ControlState nState, - const ImplControlValue& aValue, - OUString aCaption ); + sal_Bool DrawNativeControl( ControlType nType, + ControlPart nPart, + const Rectangle& rControlRegion, + ControlState nState, + const ImplControlValue& aValue, + OUString aCaption ); // Query the native control's actual drawing region (including adornment) - sal_Bool GetNativeControlRegion( ControlType nType, - ControlPart nPart, - const Rectangle& rControlRegion, - ControlState nState, - const ImplControlValue& aValue, - OUString aCaption, - Rectangle &rNativeBoundingRegion, - Rectangle &rNativeContentRegion ) const; + sal_Bool GetNativeControlRegion( ControlType nType, + ControlPart nPart, + const Rectangle& rControlRegion, + ControlState nState, + const ImplControlValue& aValue, + OUString aCaption, + Rectangle &rNativeBoundingRegion, + Rectangle &rNativeContentRegion ) const; }; |