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 .
22 #include <com/sun/star/uno/Reference.hxx>
23 #include <com/sun/star/uno/Sequence.hxx>
25 #include <com/sun/star/rendering/XPolyPolygon2D.hpp>
26 #include <com/sun/star/rendering/XCanvasFont.hpp>
27 #include <com/sun/star/rendering/TextDirection.hpp>
28 #include <basegfx/matrix/b2dhommatrix.hxx>
29 #include <basegfx/polygon/b2dpolypolygon.hxx>
30 #include <tools/fontenum.hxx>
31 #include <tools/gen.hxx>
32 #include <vcl/fntstyle.hxx>
33 #include <vcl/outdevstate.hxx>
36 namespace cppcanvas::internal
57 textEmphasisMark(FontEmphasisMark::NONE
),
58 pushFlags(PushFlags::ALL
),
59 textDirection(css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT
),
60 textAlignment(0), // TODO(Q2): Synchronize with implrenderer
61 // and possibly new rendering::TextAlignment
62 textReliefStyle(FontRelief::NONE
),
63 textOverlineStyle(LINESTYLE_NONE
),
64 textUnderlineStyle(LINESTYLE_NONE
),
65 textStrikeoutStyle(STRIKEOUT_NONE
),
66 textReferencePoint(ALIGN_BASELINE
),
68 isTextOutlineModeSet( false ),
69 isTextEffectShadowSet( false ),
70 isTextWordUnderlineSet( false ),
72 isLineColorSet( false ),
73 isFillColorSet( false ),
74 isTextFillColorSet( false ),
75 isTextOverlineColorSet( false ),
76 isTextLineColorSet( false )
80 ::basegfx::B2DPolyPolygon clip
;
81 ::tools::Rectangle clipRect
;
82 css::uno::Reference
< css::rendering::XPolyPolygon2D
> xClipPoly
;
84 css::uno::Sequence
< double > lineColor
;
85 css::uno::Sequence
< double > fillColor
;
86 css::uno::Sequence
< double > textColor
;
87 css::uno::Sequence
< double > textFillColor
;
88 css::uno::Sequence
< double > textOverlineColor
;
89 css::uno::Sequence
< double > textLineColor
;
93 @attention Beware, this member can be NULL, and
94 nevertheless text output is generated.
96 css::uno::Reference
< css::rendering::XCanvasFont
> xFont
;
97 ::basegfx::B2DHomMatrix transform
;
98 ::basegfx::B2DHomMatrix mapModeTransform
;
101 FontEmphasisMark textEmphasisMark
;
103 sal_Int8 textDirection
;
104 sal_Int8 textAlignment
;
105 FontRelief textReliefStyle
;
106 sal_Int8 textOverlineStyle
;
107 sal_Int8 textUnderlineStyle
;
108 sal_Int8 textStrikeoutStyle
;
109 TextAlign textReferencePoint
;
111 bool isTextOutlineModeSet
;
112 bool isTextEffectShadowSet
;
113 bool isTextWordUnderlineSet
;
117 bool isTextFillColorSet
;
118 bool isTextOverlineColorSet
;
119 bool isTextLineColorSet
;
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */