1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_INC_OUTDEVSTATE_HXX
21 #define INCLUDED_CPPCANVAS_SOURCE_INC_OUTDEVSTATE_HXX
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <com/sun/star/uno/Sequence.hxx>
26 #include <com/sun/star/rendering/StringContext.hpp>
27 #include <com/sun/star/rendering/RenderState.hpp>
28 #include <com/sun/star/rendering/XPolyPolygon2D.hpp>
29 #include <com/sun/star/rendering/XCanvasFont.hpp>
30 #include <com/sun/star/rendering/TextDirection.hpp>
31 #include <basegfx/matrix/b2dhommatrix.hxx>
32 #include <basegfx/polygon/b2dpolypolygon.hxx>
33 #include <vcl/fntstyle.hxx>
34 #include <vcl/vclenum.hxx>
35 #include <vcl/outdev.hxx>
61 textEmphasisMark(FontEmphasisMark::NONE
),
62 pushFlags(PushFlags::ALL
),
63 textDirection(css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT
),
64 textAlignment(0), // TODO(Q2): Synchronize with implrenderer
65 // and possibly new rendering::TextAlignment
66 textReliefStyle(FontRelief::NONE
),
67 textOverlineStyle(LINESTYLE_NONE
),
68 textUnderlineStyle(LINESTYLE_NONE
),
69 textStrikeoutStyle(STRIKEOUT_NONE
),
70 textReferencePoint(ALIGN_BASELINE
),
72 isTextOutlineModeSet( false ),
73 isTextEffectShadowSet( false ),
74 isTextWordUnderlineSet( false ),
76 isLineColorSet( false ),
77 isFillColorSet( false ),
78 isTextFillColorSet( false ),
79 isTextOverlineColorSet( false ),
80 isTextLineColorSet( false )
84 ::basegfx::B2DPolyPolygon clip
;
85 ::tools::Rectangle clipRect
;
86 css::uno::Reference
< css::rendering::XPolyPolygon2D
> xClipPoly
;
88 css::uno::Sequence
< double > lineColor
;
89 css::uno::Sequence
< double > fillColor
;
90 css::uno::Sequence
< double > textColor
;
91 css::uno::Sequence
< double > textFillColor
;
92 css::uno::Sequence
< double > textOverlineColor
;
93 css::uno::Sequence
< double > textLineColor
;
97 @attention Beware, this member can be NULL, and
98 nevertheless text output is generated.
100 css::uno::Reference
< css::rendering::XCanvasFont
> xFont
;
101 ::basegfx::B2DHomMatrix transform
;
102 ::basegfx::B2DHomMatrix mapModeTransform
;
105 FontEmphasisMark textEmphasisMark
;
107 sal_Int8 textDirection
;
108 sal_Int8 textAlignment
;
109 FontRelief textReliefStyle
;
110 sal_Int8 textOverlineStyle
;
111 sal_Int8 textUnderlineStyle
;
112 sal_Int8 textStrikeoutStyle
;
113 TextAlign textReferencePoint
;
115 bool isTextOutlineModeSet
;
116 bool isTextEffectShadowSet
;
117 bool isTextWordUnderlineSet
;
121 bool isTextFillColorSet
;
122 bool isTextOverlineColorSet
;
123 bool isTextLineColorSet
;
128 #endif // INCLUDED_CPPCANVAS_SOURCE_INC_OUTDEVSTATE_HXX
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */