Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / cppcanvas / source / wrapper / implsprite.hxx
blob05d05635ee493c68540bf71c3dc0803600966acb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLSPRITE_HXX
21 #define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLSPRITE_HXX
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <com/sun/star/rendering/XSpriteCanvas.hpp>
25 #include <com/sun/star/rendering/XSprite.hpp>
26 #include <cppcanvas/sprite.hxx>
27 #include <implspritecanvas.hxx>
29 namespace cppcanvas
31 namespace internal
33 class ImplSprite : public virtual Sprite
35 public:
36 ImplSprite( const css::uno::Reference<
37 css::rendering::XSpriteCanvas >& rParentCanvas,
38 const css::uno::Reference<
39 css::rendering::XSprite >& rSprite,
40 const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
41 virtual ~ImplSprite();
43 virtual void setAlpha( const double& rAlpha ) override;
44 virtual void movePixel( const ::basegfx::B2DPoint& rNewPos ) override;
45 virtual void move( const ::basegfx::B2DPoint& rNewPos ) override;
46 virtual void transform( const ::basegfx::B2DHomMatrix& rMatrix ) override;
47 virtual void setClipPixel( const ::basegfx::B2DPolyPolygon& rClipPoly ) override;
48 virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) override;
49 virtual void setClip() override;
51 virtual void show() override;
52 virtual void hide() override;
54 virtual void setPriority( double fPriority ) override;
56 virtual css::uno::Reference<
57 css::rendering::XSprite > getUNOSprite() const override;
59 private:
60 ImplSprite(const ImplSprite&) = delete;
61 ImplSprite& operator=( const ImplSprite& ) = delete;
63 css::uno::Reference< css::rendering::XGraphicDevice > mxGraphicDevice;
64 const css::uno::Reference< css::rendering::XSprite > mxSprite;
65 ImplSpriteCanvas::TransformationArbiterSharedPtr mpTransformArbiter;
70 #endif // INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLSPRITE_HXX
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */