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 _CANVAS_IMPLTEXT_HXX
25 #define _CANVAS_IMPLTEXT_HXX
26 
27 #ifndef _COM_SUN_STAR_RENDERING_RENDERSTATE_HPP__
28 #include <com/sun/star/rendering/RenderState.hpp>
29 #endif
30 #ifndef _COM_SUN_STAR_RENDERING_STRINGCONTEXT_HPP__
31 #include <com/sun/star/rendering/StringContext.hpp>
32 #endif
33 #ifndef _COM_SUN_STAR_RENDERING_XCANVAS_HPP__
34 #include <com/sun/star/rendering/XCanvas.hpp>
35 #endif
36 #ifndef _COM_SUN_STAR_RENDERING_XCANVASFONT_HPP__
37 #include <com/sun/star/rendering/XCanvasFont.hpp>
38 #endif
39 
40 #include <cppcanvas/text.hxx>
41 #include <canvasgraphichelper.hxx>
42 
43 
44 namespace cppcanvas
45 {
46     namespace internal
47     {
48 
49         class ImplText : public virtual ::cppcanvas::Text, protected CanvasGraphicHelper
50         {
51         public:
52 
53             ImplText( const CanvasSharedPtr& 	rParentCanvas,
54                       const ::rtl::OUString&	rText );
55 
56             virtual ~ImplText();
57 
58             virtual bool draw() const;
59 
60             virtual void setFont( const FontSharedPtr& );
61             virtual FontSharedPtr getFont();
62 
63         private:
64             // default: disabled copy/assignment
65             ImplText(const ImplText&);
66             ImplText& operator= ( const ImplText& );
67 
68             FontSharedPtr		mpFont;
69             ::rtl::OUString		maText;
70         };
71     }
72 }
73 
74 #endif /* _CANVAS_IMPLTEXT_HXX */
75