LibreOffice Module drawinglayer (master) 1
PolygonHairlinePrimitive2D.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
23
27
29{
39{
40private:
43
46
47public:
50
52 const basegfx::B2DPolygon& getB2DPolygon() const { return maPolygon; }
53 const basegfx::BColor& getBColor() const { return maBColor; }
54
56 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
57
59 virtual basegfx::B2DRange
60 getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
61
63 virtual sal_uInt32 getPrimitive2DID() const override;
64};
65
74{
75private:
79
82
83public:
86 const basegfx::BColor& rBColor);
87
89 const basegfx::B2DPoint& getStart() const { return maStart; }
90 const basegfx::B2DPoint& getEnd() const { return maEnd; }
91 const basegfx::BColor& getBColor() const { return maBColor; }
92
94 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
95
97 virtual basegfx::B2DRange
98 getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
99
101 virtual sal_uInt32 getPrimitive2DID() const override;
102
104 virtual void
105 get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor,
106 const geometry::ViewInformation2D& rViewInformation) const override;
107};
108
116{
117private:
120
123
124public:
126 LineRectanglePrimitive2D(const basegfx::B2DRange& rB2DRange, const basegfx::BColor& rBColor);
127
129 const basegfx::B2DRange& getB2DRange() const { return maB2DRange; }
130 const basegfx::BColor& getBColor() const { return maBColor; }
131
133 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
134
136 virtual basegfx::B2DRange
137 getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
138
140 virtual sal_uInt32 getPrimitive2DID() const override;
141
143 virtual void
144 get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor,
145 const geometry::ViewInformation2D& rViewInformation) const override;
146};
147
148} // end of namespace primitive2d::drawinglayer
149
150/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Point maStart
const Point maEnd
B2DPolygon maPolygon
const basegfx::B2DRange & getB2DRange() const
data read access
const basegfx::B2DPolygon & getB2DPolygon() const
data read access
const basegfx::B2DPoint & getStart() const
data read access
#define DRAWINGLAYER_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)