20#ifndef INCLUDED_VCL_SOURCE_GRAPHIC_GRAPHIC_HXX
21#define INCLUDED_VCL_SOURCE_GRAPHIC_GRAPHIC_HXX
23#include <com/sun/star/graphic/XGraphic.hpp>
24#include <com/sun/star/awt/XBitmap.hpp>
25#include <com/sun/star/graphic/XGraphicTransformer.hpp>
33class Graphic final :
public css::graphic::XGraphic,
34 public css::awt::XBitmap,
35 public css::graphic::XGraphicTransformer,
40 virtual ~Graphic()
noexcept override;
42 using ::unographic::GraphicDescriptor::init;
43 void init(const ::Graphic& rGraphic);
48 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
49 virtual void SAL_CALL
acquire() noexcept override;
50 virtual
void SAL_CALL
release() noexcept override;
65 virtual css::awt::
Size SAL_CALL
getSize( ) override;
70 virtual css::
uno::Reference< css::graphic::XGraphic > SAL_CALL
colorChange(
71 const css::
uno::Reference< css::graphic::XGraphic >& rGraphic,
72 sal_Int32 nColorFrom,
sal_Int8 nTolerance, sal_Int32 nColorTo,
sal_Int8 nAlphaTo ) override;
74 virtual css::
uno::Reference< css::graphic::XGraphic > SAL_CALL
applyDuotone(
75 const css::
uno::Reference< css::graphic::XGraphic >& rGraphic,
76 sal_Int32 nColorOne, sal_Int32 nColorTwo ) override;
79 const css::
uno::Reference< css::graphic::XGraphic >& rxGraphic,
80 sal_Int32 nBrightness, sal_Int32 nContrast,
sal_Bool mso ) override;
virtual OUString SAL_CALL getImplementationName() override
virtual css::awt::Size SAL_CALL getSize() override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ::sal_Int8 SAL_CALL getType() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
const ::Graphic & GetGraphic() const
virtual ~Graphic() noexcept override
void init(const ::Graphic &rGraphic)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getMaskDIB() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL applyBrightnessContrast(const css::uno::Reference< css::graphic::XGraphic > &rxGraphic, sal_Int32 nBrightness, sal_Int32 nContrast, sal_Bool mso) override
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getDIB() override
virtual void SAL_CALL release() noexcept override
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL colorChange(const css::uno::Reference< css::graphic::XGraphic > &rGraphic, sal_Int32 nColorFrom, sal_Int8 nTolerance, sal_Int32 nColorTo, sal_Int8 nAlphaTo) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL applyDuotone(const css::uno::Reference< css::graphic::XGraphic > &rGraphic, sal_Int32 nColorOne, sal_Int32 nColorTwo) override