LibreOffice Module drawinglayer (master) 1
textstrikeoutprimitive2d.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
27#include <com/sun/star/lang/Locale.hpp>
28
29
31 {
33 {
34 private:
37 double mfWidth;
38
41
42 public:
45 basegfx::B2DHomMatrix aObjectTransformation,
46 double fWidth,
47 const basegfx::BColor& rFontColor);
48
51 double getWidth() const { return mfWidth; }
52 const basegfx::BColor& getFontColor() const { return maFontColor; }
53
55 virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override;
56 };
57
58} // end of namespace drawinglayer::primitive2d
59
60
62 {
64 {
65 private:
68 css::lang::Locale maLocale;
69
71 virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
72
73 public:
76 const basegfx::B2DHomMatrix& rObjectTransformation,
77 double fWidth,
78 const basegfx::BColor& rFontColor,
79 sal_Unicode aStrikeoutChar,
80 attribute::FontAttribute aFontAttribute,
81 css::lang::Locale aLocale);
82
86 const css::lang::Locale& getLocale() const { return maLocale; }
87
89 virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override;
90
92 virtual sal_uInt32 getPrimitive2DID() const override;
93 };
94
95} // end of namespace drawinglayer::primitive2d
96
97
99 {
101 {
102 private:
103 double mfHeight;
104 double mfOffset;
106
108 virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
109
110 public:
113 const basegfx::B2DHomMatrix& rObjectTransformation,
114 double fWidth,
115 const basegfx::BColor& rFontColor,
116 double fHeight,
117 double fOffset,
118 TextStrikeout eTextStrikeout);
119
121 double getHeight() const { return mfHeight; }
122 double getOffset() const { return mfOffset; }
124
126 virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override;
127
129 virtual sal_uInt32 getPrimitive2DID() const override;
130 };
131
132} // end of namespace drawinglayer::primitive2d
133
134
135/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
BaseTextStrikeoutPrimitive2D(basegfx::B2DHomMatrix aObjectTransformation, double fWidth, const basegfx::BColor &rFontColor)
constructor
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
compare operator
const basegfx::B2DHomMatrix & getObjectTransformation() const
data read access
basegfx::B2DHomMatrix maObjectTransformation
geometric definitions
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
compare operator
virtual sal_uInt32 getPrimitive2DID() const override
provide unique ID
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const override
local decomposition.
TextCharacterStrikeoutPrimitive2D(const basegfx::B2DHomMatrix &rObjectTransformation, double fWidth, const basegfx::BColor &rFontColor, sal_Unicode aStrikeoutChar, attribute::FontAttribute aFontAttribute, css::lang::Locale aLocale)
constructor
TextGeometryStrikeoutPrimitive2D(const basegfx::B2DHomMatrix &rObjectTransformation, double fWidth, const basegfx::BColor &rFontColor, double fHeight, double fOffset, TextStrikeout eTextStrikeout)
constructor
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
compare operator
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const override
local decomposition.
virtual sal_uInt32 getPrimitive2DID() const override
provide unique ID
TextStrikeout
FontStrikeout definition.
sal_uInt16 sal_Unicode