LibreOffice Module cppcanvas (master) 1
outdevstate.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <com/sun/star/uno/Reference.hxx>
23#include <com/sun/star/uno/Sequence.hxx>
24
25#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
26#include <com/sun/star/rendering/XCanvasFont.hpp>
27#include <com/sun/star/rendering/TextDirection.hpp>
30#include <tools/fontenum.hxx>
31#include <tools/gen.hxx>
32#include <vcl/fntstyle.hxx>
34
35namespace cppcanvas::internal
36 {
38 {
40 clip(),
41 clipRect(),
42 xClipPoly(),
43
44 lineColor(),
45 fillColor(),
46 textColor(),
50
51 xFont(),
52 transform(),
54 fontRotation(0.0),
55
58 textDirection(css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT),
59 textAlignment(0), // TODO(Q2): Synchronize with implrenderer
60 // and possibly new rendering::TextAlignment
66
67 isTextOutlineModeSet( false ),
68 isTextEffectShadowSet( false ),
70
71 isLineColorSet( false ),
72 isFillColorSet( false ),
73 isTextFillColorSet( false ),
75 isTextLineColorSet( false )
76 {
77 }
78
81 css::uno::Reference< css::rendering::XPolyPolygon2D > xClipPoly;
82
83 css::uno::Sequence< double > lineColor;
84 css::uno::Sequence< double > fillColor;
85 css::uno::Sequence< double > textColor;
86 css::uno::Sequence< double > textFillColor;
87 css::uno::Sequence< double > textOverlineColor;
88 css::uno::Sequence< double > textLineColor;
89
95 css::uno::Reference< css::rendering::XCanvasFont > xFont;
99
109
113
119 };
120
121}
122
123/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FontRelief
LINESTYLE_NONE
STRIKEOUT_NONE
FontEmphasisMark
ALIGN_BASELINE
NONE
TextAlign
PushFlags
::basegfx::B2DHomMatrix transform
Definition: outdevstate.hxx:96
css::uno::Sequence< double > lineColor
Definition: outdevstate.hxx:83
::basegfx::B2DHomMatrix mapModeTransform
Definition: outdevstate.hxx:97
css::uno::Reference< css::rendering::XCanvasFont > xFont
Current font.
Definition: outdevstate.hxx:95
css::uno::Sequence< double > textLineColor
Definition: outdevstate.hxx:88
css::uno::Sequence< double > fillColor
Definition: outdevstate.hxx:84
css::uno::Sequence< double > textFillColor
Definition: outdevstate.hxx:86
css::uno::Sequence< double > textOverlineColor
Definition: outdevstate.hxx:87
::basegfx::B2DPolyPolygon clip
Definition: outdevstate.hxx:79
css::uno::Reference< css::rendering::XPolyPolygon2D > xClipPoly
Definition: outdevstate.hxx:81
css::uno::Sequence< double > textColor
Definition: outdevstate.hxx:85
signed char sal_Int8