1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _CPPCANVAS_IMPLBITMAPCANVAS_HXX
25 #define _CPPCANVAS_IMPLBITMAPCANVAS_HXX
26 
27 #ifndef _COM_SUN_STAR_RENDERING_XBITMAPCANVAS_HPP__
28 #include <com/sun/star/rendering/XBitmapCanvas.hpp>
29 #endif
30 #ifndef _COM_SUN_STAR_RENDERING_XBITMAP_HPP__
31 #include <com/sun/star/rendering/XBitmap.hpp>
32 #endif
33 
34 #ifndef BOOST_SHARED_PTR_HPP_INCLUDED
35 #include <boost/shared_ptr.hpp>
36 #endif
37 #include <basegfx/vector/b2dsize.hxx>
38 #include <cppcanvas/bitmapcanvas.hxx>
39 
40 #include <implcanvas.hxx>
41 
42 
43 namespace cppcanvas
44 {
45     namespace internal
46     {
47         // share Canvas implementation from ImplCanvas
48         class ImplBitmapCanvas : public virtual BitmapCanvas, protected virtual ImplCanvas
49         {
50         public:
51             ImplBitmapCanvas( const ::com::sun::star::uno::Reference<
52                               	::com::sun::star::rendering::XBitmapCanvas >& rCanvas );
53             virtual ~ImplBitmapCanvas();
54 
55             virtual ::basegfx::B2ISize 		getSize() const;
56 
57             virtual CanvasSharedPtr			clone() const;
58 
59             // take compiler-provided default copy constructor
60             //ImplBitmapCanvas(const ImplBitmapCanvas&);
61 
62         private:
63             // default: disabled assignment
64             ImplBitmapCanvas& operator=( const ImplBitmapCanvas& );
65 
66             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > 	mxBitmapCanvas;
67             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > 			mxBitmap;
68         };
69     }
70 }
71 
72 #endif /* _CPPCANVAS_IMPLBITMAPCANVAS_HXX */
73