LibreOffice Module toolkit (master) 1
|
#include <vclxgraphics.hxx>
Public Member Functions | |
VCLXGraphics () | |
virtual | ~VCLXGraphics () override |
void | Init (OutputDevice *pOutDev) |
void | InitOutputDevice (InitOutDevFlags nFlags) |
void | SetOutputDevice (OutputDevice *pOutDev) |
OutputDevice * | GetOutputDevice () 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< OutputDevice > | mpOutputDevice |
vcl::Font | maFont |
Color | maTextColor |
Color | maTextFillColor |
Color | maLineColor |
Color | maFillColor |
RasterOp | meRasterOp |
std::unique_ptr< vcl::Region > | mpClipRegion |
Definition at line 53 of file vclxgraphics.hxx.
VCLXGraphics::VCLXGraphics | ( | ) |
Definition at line 38 of file vclxgraphics.cxx.
References OverPaint.
|
overridevirtual |
Definition at line 44 of file vclxgraphics.cxx.
References mpClipRegion, mpOutputDevice, and VclPtr< class reference_type >::reset().
|
overridevirtual |
Definition at line 240 of file vclxgraphics.cxx.
References VCLUnoHelper::ConvertToVCLRect(), and mpOutputDevice.
|
overridevirtual |
Definition at line 252 of file vclxgraphics.cxx.
References DBG_ASSERT, VCLXDevice::GetOutputDevice(), InitOutputDevice(), mpOutputDevice, and NONE.
|
overridevirtual |
Definition at line 269 of file vclxgraphics.cxx.
References VCLUnoHelper::GetBitmap(), BitmapEx::GetSizePixel(), Size::Height(), InitOutputDevice(), mpOutputDevice, NONE, Size::setHeight(), Size::setWidth(), and Size::Width().
|
overridevirtual |
Definition at line 394 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 416 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 383 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 427 of file vclxgraphics.cxx.
References COLORS, ColorTransparency, InitOutputDevice(), mpOutputDevice, Gradient::SetAngle(), Gradient::SetBorder(), Gradient::SetEndIntensity(), Gradient::SetOfsX(), Gradient::SetOfsY(), Gradient::SetStartIntensity(), Gradient::SetSteps(), x, and y.
|
overridevirtual |
Definition at line 473 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 312 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), and mpOutputDevice.
|
overridevirtual |
Definition at line 405 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 301 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 356 of file vclxgraphics.cxx.
References COLORS, VCLUnoHelper::CreatePolygon(), InitOutputDevice(), and mpOutputDevice.
|
overridevirtual |
Definition at line 345 of file vclxgraphics.cxx.
References COLORS, VCLUnoHelper::CreatePolygon(), InitOutputDevice(), and mpOutputDevice.
|
overridevirtual |
Definition at line 367 of file vclxgraphics.cxx.
References COLORS, VCLUnoHelper::CreatePolygon(), InitOutputDevice(), mpOutputDevice, and n.
|
overridevirtual |
Definition at line 323 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 334 of file vclxgraphics.cxx.
References COLORS, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 446 of file vclxgraphics.cxx.
References COLORS, FONT, InitOutputDevice(), mpOutputDevice, x, and y.
|
overridevirtual |
Definition at line 457 of file vclxgraphics.cxx.
References COLORS, FONT, i, InitOutputDevice(), mpOutputDevice, KernArray::push_back(), KernArray::reserve(), x, and y.
|
overridevirtual |
Definition at line 123 of file vclxgraphics.cxx.
References mpOutputDevice, and mxDevice.
|
overridevirtual |
Definition at line 136 of file vclxgraphics.cxx.
References VCLUnoHelper::CreateFontMetric(), maFont, and mpOutputDevice.
|
inline |
Definition at line 79 of file vclxgraphics.hxx.
References mpOutputDevice.
Referenced by VCLUnoHelper::GetOutputDevice().
void VCLXGraphics::Init | ( | OutputDevice * | pOutDev | ) |
Definition at line 67 of file vclxgraphics.cxx.
References DBG_ASSERT, initAttrs(), mpClipRegion, and mpOutputDevice.
|
private |
Definition at line 82 of file vclxgraphics.cxx.
References maFillColor, maFont, maLineColor, maTextColor, maTextFillColor, meRasterOp, and mpOutputDevice.
Referenced by Init(), and SetOutputDevice().
void VCLXGraphics::InitOutputDevice | ( | InitOutDevFlags | nFlags | ) |
Definition at line 95 of file vclxgraphics.cxx.
References COLORS, FONT, maFillColor, maFont, maLineColor, maTextColor, maTextFillColor, meRasterOp, mpClipRegion, and mpOutputDevice.
Referenced by copy(), draw(), drawArc(), drawChord(), drawEllipse(), drawGradient(), drawImage(), drawLine(), drawPie(), drawPixel(), drawPolygon(), drawPolyLine(), drawPolyPolygon(), drawRect(), drawRoundedRect(), drawText(), and drawTextArray().
|
overridevirtual |
Definition at line 208 of file vclxgraphics.cxx.
References VCLUnoHelper::GetRegion(), and mpClipRegion.
|
overridevirtual |
Definition at line 231 of file vclxgraphics.cxx.
References mpOutputDevice.
|
overridevirtual |
Definition at line 222 of file vclxgraphics.cxx.
References mpOutputDevice.
|
overridevirtual |
Definition at line 156 of file vclxgraphics.cxx.
References VCLUnoHelper::CreateFont(), and maFont.
|
overridevirtual |
Definition at line 198 of file vclxgraphics.cxx.
References VCLUnoHelper::GetRegion(), and mpClipRegion.
|
overridevirtual |
Definition at line 184 of file vclxgraphics.cxx.
References ColorTransparency, and maFillColor.
|
overridevirtual |
Definition at line 149 of file vclxgraphics.cxx.
References VCLUnoHelper::CreateFont(), and maFont.
|
overridevirtual |
Definition at line 177 of file vclxgraphics.cxx.
References ColorTransparency, and maLineColor.
void VCLXGraphics::SetOutputDevice | ( | OutputDevice * | pOutDev | ) |
Definition at line 60 of file vclxgraphics.cxx.
References initAttrs(), mpOutputDevice, and mxDevice.
|
overridevirtual |
Definition at line 191 of file vclxgraphics.cxx.
References meRasterOp.
|
overridevirtual |
Definition at line 163 of file vclxgraphics.cxx.
References ColorTransparency, and maTextColor.
|
overridevirtual |
Definition at line 170 of file vclxgraphics.cxx.
References ColorTransparency, and maTextFillColor.
|
private |
Definition at line 65 of file vclxgraphics.hxx.
Referenced by initAttrs(), InitOutputDevice(), and setFillColor().
|
private |
Definition at line 61 of file vclxgraphics.hxx.
Referenced by getFontMetric(), initAttrs(), InitOutputDevice(), selectFont(), and setFont().
|
private |
Definition at line 64 of file vclxgraphics.hxx.
Referenced by initAttrs(), InitOutputDevice(), and setLineColor().
|
private |
Definition at line 62 of file vclxgraphics.hxx.
Referenced by initAttrs(), InitOutputDevice(), and setTextColor().
|
private |
Definition at line 63 of file vclxgraphics.hxx.
Referenced by initAttrs(), InitOutputDevice(), and setTextFillColor().
|
private |
Definition at line 66 of file vclxgraphics.hxx.
Referenced by initAttrs(), InitOutputDevice(), and setRasterOp().
|
private |
Definition at line 67 of file vclxgraphics.hxx.
Referenced by Init(), InitOutputDevice(), intersectClipRegion(), setClipRegion(), and ~VCLXGraphics().
|
private |
Definition at line 60 of file vclxgraphics.hxx.
Referenced by clear(), copy(), draw(), drawArc(), drawChord(), drawEllipse(), drawGradient(), drawImage(), drawLine(), drawPie(), drawPixel(), drawPolygon(), drawPolyLine(), drawPolyPolygon(), drawRect(), drawRoundedRect(), drawText(), drawTextArray(), getDevice(), getFontMetric(), GetOutputDevice(), Init(), initAttrs(), InitOutputDevice(), pop(), push(), SetOutputDevice(), and ~VCLXGraphics().
|
private |
Definition at line 58 of file vclxgraphics.hxx.
Referenced by getDevice(), and SetOutputDevice().