/src/libreoffice/vcl/inc/font/EmphasisMark.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
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 | | |
10 | | #pragma once |
11 | | |
12 | | #include <sal/config.h> |
13 | | |
14 | | #include <tools/fontenum.hxx> |
15 | | #include <tools/gen.hxx> |
16 | | #include <tools/long.hxx> |
17 | | #include <tools/poly.hxx> |
18 | | |
19 | | #include <vcl/dllapi.h> |
20 | | |
21 | | namespace vcl::font |
22 | | { |
23 | | class VCL_DLLPUBLIC EmphasisMark |
24 | | { |
25 | | public: |
26 | | EmphasisMark(FontEmphasisMark eEmphasis, tools::Long nHeight, sal_Int32 nDPIY); |
27 | | |
28 | 0 | const tools::PolyPolygon& GetShape() const { return maPolyPoly; } |
29 | 0 | bool IsShapePolyLine() const { return mbIsPolyLine; } |
30 | 0 | const tools::Rectangle& GetRect1() const { return maRect1; } |
31 | 0 | const tools::Rectangle& GetRect2() const { return maRect2; } |
32 | 0 | tools::Long GetYOffset() const { return mnYOff; } |
33 | 0 | tools::Long GetWidth() const { return mnWidth; } |
34 | | |
35 | | private: |
36 | | tools::PolyPolygon maPolyPoly; |
37 | | bool mbIsPolyLine; |
38 | | tools::Rectangle maRect1; |
39 | | tools::Rectangle maRect2; |
40 | | tools::Long mnYOff; |
41 | | tools::Long mnWidth; |
42 | | }; |
43 | | } |
44 | | |
45 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |