Avoid potential negative array index access to cached text.
[LibreOffice.git] / vcl / inc / font / EmphasisMark.hxx
blob5e902da26294714c1d26599373ffec03c202ac7d
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.
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 */
10 #pragma once
12 #include <sal/config.h>
14 #include <tools/fontenum.hxx>
15 #include <tools/gen.hxx>
16 #include <tools/long.hxx>
17 #include <tools/poly.hxx>
19 #include <vcl/dllapi.h>
21 namespace vcl::font
23 class VCL_DLLPUBLIC EmphasisMark
25 public:
26 EmphasisMark(FontEmphasisMark eEmphasis, tools::Long nHeight, sal_Int32 nDPIY);
28 tools::PolyPolygon GetShape() const { return maPolyPoly; }
29 bool IsShapePolyLine() const { return mbIsPolyLine; }
30 tools::Rectangle GetRect1() const { return maRect1; }
31 tools::Rectangle GetRect2() const { return maRect2; }
32 tools::Long GetYOffset() const { return mnYOff; }
33 tools::Long GetWidth() const { return mnWidth; }
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;
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */