Bump version to 5.0-14
[LibreOffice.git] / cppcanvas / source / wrapper / implcanvas.hxx
blob9a042540a5ea1aca1a4d2e2c472b654f12b967b1
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_IMPLCANVAS_HXX
21 #define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLCANVAS_HXX
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <com/sun/star/rendering/ViewState.hpp>
25 #include <cppcanvas/canvas.hxx>
27 #include <boost/optional.hpp>
30 namespace basegfx
32 class B2DHomMatrix;
33 class B2DPolyPolygon;
36 namespace com { namespace sun { namespace star { namespace rendering
38 class XCanvas;
39 } } } }
42 /* Definition of ImplCanvas */
44 namespace cppcanvas
47 namespace internal
50 class ImplCanvas : public virtual Canvas
52 public:
53 ImplCanvas( const ::com::sun::star::uno::Reference<
54 ::com::sun::star::rendering::XCanvas >& rCanvas );
55 virtual ~ImplCanvas();
57 virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) SAL_OVERRIDE;
58 virtual ::basegfx::B2DHomMatrix getTransformation() const SAL_OVERRIDE;
60 virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) SAL_OVERRIDE;
61 virtual void setClip() SAL_OVERRIDE;
62 virtual ::basegfx::B2DPolyPolygon const* getClip() const SAL_OVERRIDE;
64 virtual FontSharedPtr createFont( const OUString& rFontName, const double& rCellSize ) const SAL_OVERRIDE;
66 virtual ColorSharedPtr createColor() const SAL_OVERRIDE;
68 virtual CanvasSharedPtr clone() const SAL_OVERRIDE;
70 virtual void clear() const SAL_OVERRIDE;
72 virtual ::com::sun::star::uno::Reference<
73 ::com::sun::star::rendering::XCanvas > getUNOCanvas() const SAL_OVERRIDE;
75 virtual ::com::sun::star::rendering::ViewState getViewState() const SAL_OVERRIDE;
77 // take compiler-provided default copy constructor
78 //ImplCanvas(const ImplCanvas&);
80 private:
81 ImplCanvas& operator=( const ImplCanvas& ) SAL_DELETED_FUNCTION;
83 mutable ::com::sun::star::rendering::ViewState maViewState;
84 boost::optional<basegfx::B2DPolyPolygon> maClipPolyPolygon;
85 const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxCanvas;
91 #endif // INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLCANVAS_HXX
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */