Use COMReference to handle COM pointers in CreateShortcut
[LibreOffice.git] / vcl / inc / font / EmphasisMark.hxx
blob2b1ed7f9c4723fd0b51f7f9073893d59e7843c57
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 const tools::PolyPolygon& GetShape() const { return maPolyPoly; }
29 bool IsShapePolyLine() const { return mbIsPolyLine; }
30 const tools::Rectangle& GetRect1() const { return maRect1; }
31 const 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: */