LibreOffice Module toolkit (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VCLXGraphics Class Referencefinal

#include <vclxgraphics.hxx>

Inheritance diagram for VCLXGraphics:
[legend]
Collaboration diagram for VCLXGraphics:
[legend]

Public Member Functions

 VCLXGraphics ()
 
virtual ~VCLXGraphics () override
 
void Init (OutputDevice *pOutDev)
 
void InitOutputDevice (InitOutDevFlags nFlags)
 
void SetOutputDevice (OutputDevice *pOutDev)
 
OutputDeviceGetOutputDevice () const
 
virtual css::uno::Reference< css::awt::XDevice > SAL_CALL getDevice () override
 
virtual void SAL_CALL setTextColor (::sal_Int32 _textcolor) override
 
virtual void SAL_CALL setTextFillColor (::sal_Int32 _textfillcolor) override
 
virtual void SAL_CALL setLineColor (::sal_Int32 _linecolor) override
 
virtual void SAL_CALL setFillColor (::sal_Int32 _fillcolor) override
 
virtual void SAL_CALL setRasterOp (css::awt::RasterOperation _rasterop) override
 
virtual void SAL_CALL setFont (const css::uno::Reference< css::awt::XFont > &_font) override
 
virtual css::awt::SimpleFontMetric SAL_CALL getFontMetric () override
 
virtual void SAL_CALL selectFont (const css::awt::FontDescriptor &aDescription) override
 
virtual void SAL_CALL setClipRegion (const css::uno::Reference< css::awt::XRegion > &Clipping) override
 
virtual void SAL_CALL intersectClipRegion (const css::uno::Reference< css::awt::XRegion > &xClipping) override
 
virtual void SAL_CALL push () override
 
virtual void SAL_CALL pop () override
 
virtual void SAL_CALL clear (const css::awt::Rectangle &aRect) override
 
virtual void SAL_CALL copy (const css::uno::Reference< css::awt::XDevice > &xSource, ::sal_Int32 nSourceX, ::sal_Int32 nSourceY, ::sal_Int32 nSourceWidth, ::sal_Int32 nSourceHeight, ::sal_Int32 nDestX, ::sal_Int32 nDestY, ::sal_Int32 nDestWidth, ::sal_Int32 nDestHeight) override
 
virtual void SAL_CALL draw (const css::uno::Reference< css::awt::XDisplayBitmap > &xBitmapHandle, ::sal_Int32 SourceX, ::sal_Int32 SourceY, ::sal_Int32 SourceWidth, ::sal_Int32 SourceHeight, ::sal_Int32 DestX, ::sal_Int32 DestY, ::sal_Int32 DestWidth, ::sal_Int32 DestHeight) override
 
virtual void SAL_CALL drawPixel (::sal_Int32 X, ::sal_Int32 Y) override
 
virtual void SAL_CALL drawLine (::sal_Int32 X1, ::sal_Int32 Y1, ::sal_Int32 X2, ::sal_Int32 Y2) override
 
virtual void SAL_CALL drawRect (::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height) override
 
virtual void SAL_CALL drawRoundedRect (::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height, ::sal_Int32 nHorzRound, ::sal_Int32 nVertRound) override
 
virtual void SAL_CALL drawPolyLine (const css::uno::Sequence< ::sal_Int32 > &DataX, const css::uno::Sequence< ::sal_Int32 > &DataY) override
 
virtual void SAL_CALL drawPolygon (const css::uno::Sequence< ::sal_Int32 > &DataX, const css::uno::Sequence< ::sal_Int32 > &DataY) override
 
virtual void SAL_CALL drawPolyPolygon (const css::uno::Sequence< css::uno::Sequence< ::sal_Int32 > > &DataX, const css::uno::Sequence< css::uno::Sequence< ::sal_Int32 > > &DataY) override
 
virtual void SAL_CALL drawEllipse (::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height) override
 
virtual void SAL_CALL drawArc (::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height, ::sal_Int32 X1, ::sal_Int32 Y1, ::sal_Int32 X2, ::sal_Int32 Y2) override
 
virtual void SAL_CALL drawPie (::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height, ::sal_Int32 X1, ::sal_Int32 Y1, ::sal_Int32 X2, ::sal_Int32 Y2) override
 
virtual void SAL_CALL drawChord (::sal_Int32 nX, ::sal_Int32 nY, ::sal_Int32 nWidth, ::sal_Int32 nHeight, ::sal_Int32 nX1, ::sal_Int32 nY1, ::sal_Int32 nX2, ::sal_Int32 nY2) override
 
virtual void SAL_CALL drawGradient (::sal_Int32 nX, ::sal_Int32 nY, ::sal_Int32 nWidth, ::sal_Int32 Height, const css::awt::Gradient &aGradient) override
 
virtual void SAL_CALL drawText (::sal_Int32 X, ::sal_Int32 Y, const OUString &Text) override
 
virtual void SAL_CALL drawTextArray (::sal_Int32 X, ::sal_Int32 Y, const OUString &Text, const css::uno::Sequence< ::sal_Int32 > &Longs) override
 
virtual void SAL_CALL drawImage (::sal_Int32 nX, ::sal_Int32 nY, ::sal_Int32 nWidth, ::sal_Int32 nHeight, ::sal_Int16 nStyle, const css::uno::Reference< css::graphic::XGraphic > &aGraphic) override
 

Private Member Functions

void initAttrs ()
 

Private Attributes

css::uno::Reference< css::awt::XDevice > mxDevice
 
VclPtr< OutputDevicempOutputDevice
 
vcl::Font maFont
 
Color maTextColor
 
Color maTextFillColor
 
Color maLineColor
 
Color maFillColor
 
RasterOp meRasterOp
 
std::unique_ptr< vcl::RegionmpClipRegion
 

Detailed Description

Definition at line 53 of file vclxgraphics.hxx.

Constructor & Destructor Documentation

◆ VCLXGraphics()

VCLXGraphics::VCLXGraphics ( )

Definition at line 38 of file vclxgraphics.cxx.

References OverPaint.

◆ ~VCLXGraphics()

VCLXGraphics::~VCLXGraphics ( )
overridevirtual

Member Function Documentation

◆ clear()

void VCLXGraphics::clear ( const css::awt::Rectangle &  aRect)
overridevirtual

Definition at line 240 of file vclxgraphics.cxx.

References VCLUnoHelper::ConvertToVCLRect(), and mpOutputDevice.

◆ copy()

void VCLXGraphics::copy ( const css::uno::Reference< css::awt::XDevice > &  xSource,
::sal_Int32  nSourceX,
::sal_Int32  nSourceY,
::sal_Int32  nSourceWidth,
::sal_Int32  nSourceHeight,
::sal_Int32  nDestX,
::sal_Int32  nDestY,
::sal_Int32  nDestWidth,
::sal_Int32  nDestHeight 
)
overridevirtual

◆ draw()

void VCLXGraphics::draw ( const css::uno::Reference< css::awt::XDisplayBitmap > &  xBitmapHandle,
::sal_Int32  SourceX,
::sal_Int32  SourceY,
::sal_Int32  SourceWidth,
::sal_Int32  SourceHeight,
::sal_Int32  DestX,
::sal_Int32  DestY,
::sal_Int32  DestWidth,
::sal_Int32  DestHeight 
)
overridevirtual

◆ drawArc()

void VCLXGraphics::drawArc ( ::sal_Int32  X,
::sal_Int32  Y,
::sal_Int32  Width,
::sal_Int32  Height,
::sal_Int32  X1,
::sal_Int32  Y1,
::sal_Int32  X2,
::sal_Int32  Y2 
)
overridevirtual

Definition at line 394 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawChord()

void VCLXGraphics::drawChord ( ::sal_Int32  nX,
::sal_Int32  nY,
::sal_Int32  nWidth,
::sal_Int32  nHeight,
::sal_Int32  nX1,
::sal_Int32  nY1,
::sal_Int32  nX2,
::sal_Int32  nY2 
)
overridevirtual

Definition at line 416 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawEllipse()

void VCLXGraphics::drawEllipse ( ::sal_Int32  X,
::sal_Int32  Y,
::sal_Int32  Width,
::sal_Int32  Height 
)
overridevirtual

Definition at line 383 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawGradient()

void VCLXGraphics::drawGradient ( ::sal_Int32  nX,
::sal_Int32  nY,
::sal_Int32  nWidth,
::sal_Int32  Height,
const css::awt::Gradient &  aGradient 
)
overridevirtual

◆ drawImage()

void VCLXGraphics::drawImage ( ::sal_Int32  nX,
::sal_Int32  nY,
::sal_Int32  nWidth,
::sal_Int32  nHeight,
::sal_Int16  nStyle,
const css::uno::Reference< css::graphic::XGraphic > &  aGraphic 
)
overridevirtual

Definition at line 473 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawLine()

void VCLXGraphics::drawLine ( ::sal_Int32  X1,
::sal_Int32  Y1,
::sal_Int32  X2,
::sal_Int32  Y2 
)
overridevirtual

Definition at line 312 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), and mpOutputDevice.

◆ drawPie()

void VCLXGraphics::drawPie ( ::sal_Int32  X,
::sal_Int32  Y,
::sal_Int32  Width,
::sal_Int32  Height,
::sal_Int32  X1,
::sal_Int32  Y1,
::sal_Int32  X2,
::sal_Int32  Y2 
)
overridevirtual

Definition at line 405 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawPixel()

void VCLXGraphics::drawPixel ( ::sal_Int32  X,
::sal_Int32  Y 
)
overridevirtual

Definition at line 301 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawPolygon()

void VCLXGraphics::drawPolygon ( const css::uno::Sequence< ::sal_Int32 > &  DataX,
const css::uno::Sequence< ::sal_Int32 > &  DataY 
)
overridevirtual

◆ drawPolyLine()

void VCLXGraphics::drawPolyLine ( const css::uno::Sequence< ::sal_Int32 > &  DataX,
const css::uno::Sequence< ::sal_Int32 > &  DataY 
)
overridevirtual

◆ drawPolyPolygon()

void VCLXGraphics::drawPolyPolygon ( const css::uno::Sequence< css::uno::Sequence< ::sal_Int32 > > &  DataX,
const css::uno::Sequence< css::uno::Sequence< ::sal_Int32 > > &  DataY 
)
overridevirtual

◆ drawRect()

void VCLXGraphics::drawRect ( ::sal_Int32  X,
::sal_Int32  Y,
::sal_Int32  Width,
::sal_Int32  Height 
)
overridevirtual

Definition at line 323 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawRoundedRect()

void VCLXGraphics::drawRoundedRect ( ::sal_Int32  X,
::sal_Int32  Y,
::sal_Int32  Width,
::sal_Int32  Height,
::sal_Int32  nHorzRound,
::sal_Int32  nVertRound 
)
overridevirtual

Definition at line 334 of file vclxgraphics.cxx.

References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawText()

void VCLXGraphics::drawText ( ::sal_Int32  X,
::sal_Int32  Y,
const OUString &  Text 
)
overridevirtual

Definition at line 446 of file vclxgraphics.cxx.

References COLORS, FONT, InitOutputDevice(), mpOutputDevice, x, and y.

◆ drawTextArray()

void VCLXGraphics::drawTextArray ( ::sal_Int32  X,
::sal_Int32  Y,
const OUString &  Text,
const css::uno::Sequence< ::sal_Int32 > &  Longs 
)
overridevirtual

◆ getDevice()

uno::Reference< awt::XDevice > VCLXGraphics::getDevice ( )
overridevirtual

Definition at line 123 of file vclxgraphics.cxx.

References mpOutputDevice, and mxDevice.

◆ getFontMetric()

awt::SimpleFontMetric VCLXGraphics::getFontMetric ( )
overridevirtual

Definition at line 136 of file vclxgraphics.cxx.

References VCLUnoHelper::CreateFontMetric(), maFont, and mpOutputDevice.

◆ GetOutputDevice()

OutputDevice * VCLXGraphics::GetOutputDevice ( ) const
inline

Definition at line 79 of file vclxgraphics.hxx.

References mpOutputDevice.

Referenced by VCLUnoHelper::GetOutputDevice().

◆ Init()

void VCLXGraphics::Init ( OutputDevice pOutDev)

Definition at line 67 of file vclxgraphics.cxx.

References DBG_ASSERT, initAttrs(), mpClipRegion, and mpOutputDevice.

◆ initAttrs()

void VCLXGraphics::initAttrs ( )
private

Definition at line 82 of file vclxgraphics.cxx.

References maFillColor, maFont, maLineColor, maTextColor, maTextFillColor, meRasterOp, and mpOutputDevice.

Referenced by Init(), and SetOutputDevice().

◆ InitOutputDevice()

void VCLXGraphics::InitOutputDevice ( InitOutDevFlags  nFlags)

◆ intersectClipRegion()

void VCLXGraphics::intersectClipRegion ( const css::uno::Reference< css::awt::XRegion > &  xClipping)
overridevirtual

Definition at line 208 of file vclxgraphics.cxx.

References VCLUnoHelper::GetRegion(), and mpClipRegion.

◆ pop()

void VCLXGraphics::pop ( )
overridevirtual

Definition at line 231 of file vclxgraphics.cxx.

References mpOutputDevice.

◆ push()

void VCLXGraphics::push ( )
overridevirtual

Definition at line 222 of file vclxgraphics.cxx.

References mpOutputDevice.

◆ selectFont()

void VCLXGraphics::selectFont ( const css::awt::FontDescriptor &  aDescription)
overridevirtual

Definition at line 156 of file vclxgraphics.cxx.

References VCLUnoHelper::CreateFont(), and maFont.

◆ setClipRegion()

void VCLXGraphics::setClipRegion ( const css::uno::Reference< css::awt::XRegion > &  Clipping)
overridevirtual

Definition at line 198 of file vclxgraphics.cxx.

References VCLUnoHelper::GetRegion(), and mpClipRegion.

◆ setFillColor()

void VCLXGraphics::setFillColor ( ::sal_Int32  _fillcolor)
overridevirtual

Definition at line 184 of file vclxgraphics.cxx.

References ColorTransparency, and maFillColor.

◆ setFont()

void VCLXGraphics::setFont ( const css::uno::Reference< css::awt::XFont > &  _font)
overridevirtual

Definition at line 149 of file vclxgraphics.cxx.

References VCLUnoHelper::CreateFont(), and maFont.

◆ setLineColor()

void VCLXGraphics::setLineColor ( ::sal_Int32  _linecolor)
overridevirtual

Definition at line 177 of file vclxgraphics.cxx.

References ColorTransparency, and maLineColor.

◆ SetOutputDevice()

void VCLXGraphics::SetOutputDevice ( OutputDevice pOutDev)

Definition at line 60 of file vclxgraphics.cxx.

References initAttrs(), mpOutputDevice, and mxDevice.

◆ setRasterOp()

void VCLXGraphics::setRasterOp ( css::awt::RasterOperation  _rasterop)
overridevirtual

Definition at line 191 of file vclxgraphics.cxx.

References meRasterOp.

◆ setTextColor()

void VCLXGraphics::setTextColor ( ::sal_Int32  _textcolor)
overridevirtual

Definition at line 163 of file vclxgraphics.cxx.

References ColorTransparency, and maTextColor.

◆ setTextFillColor()

void VCLXGraphics::setTextFillColor ( ::sal_Int32  _textfillcolor)
overridevirtual

Definition at line 170 of file vclxgraphics.cxx.

References ColorTransparency, and maTextFillColor.

Member Data Documentation

◆ maFillColor

Color VCLXGraphics::maFillColor
private

Definition at line 65 of file vclxgraphics.hxx.

Referenced by initAttrs(), InitOutputDevice(), and setFillColor().

◆ maFont

vcl::Font VCLXGraphics::maFont
private

Definition at line 61 of file vclxgraphics.hxx.

Referenced by getFontMetric(), initAttrs(), InitOutputDevice(), selectFont(), and setFont().

◆ maLineColor

Color VCLXGraphics::maLineColor
private

Definition at line 64 of file vclxgraphics.hxx.

Referenced by initAttrs(), InitOutputDevice(), and setLineColor().

◆ maTextColor

Color VCLXGraphics::maTextColor
private

Definition at line 62 of file vclxgraphics.hxx.

Referenced by initAttrs(), InitOutputDevice(), and setTextColor().

◆ maTextFillColor

Color VCLXGraphics::maTextFillColor
private

Definition at line 63 of file vclxgraphics.hxx.

Referenced by initAttrs(), InitOutputDevice(), and setTextFillColor().

◆ meRasterOp

RasterOp VCLXGraphics::meRasterOp
private

Definition at line 66 of file vclxgraphics.hxx.

Referenced by initAttrs(), InitOutputDevice(), and setRasterOp().

◆ mpClipRegion

std::unique_ptr<vcl::Region> VCLXGraphics::mpClipRegion
private

◆ mpOutputDevice

VclPtr<OutputDevice> VCLXGraphics::mpOutputDevice
private

◆ mxDevice

css::uno::Reference< css::awt::XDevice> VCLXGraphics::mxDevice
private

Definition at line 58 of file vclxgraphics.hxx.

Referenced by getDevice(), and SetOutputDevice().


The documentation for this class was generated from the following files: