/src/libreoffice/include/drawinglayer/attribute/sdrglowtextattribute.hxx
Line | Count | Source |
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 | | |
10 | | #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWTEXTATTRIBUTE_HXX |
11 | | #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWTEXTATTRIBUTE_HXX |
12 | | |
13 | | #include <drawinglayer/drawinglayerdllapi.h> |
14 | | #include <tools/color.hxx> |
15 | | |
16 | | namespace drawinglayer::attribute |
17 | | { |
18 | | class DRAWINGLAYER_DLLPUBLIC SdrGlowTextAttribute |
19 | | { |
20 | | private: |
21 | | sal_Int32 m_nTextRadius = 0; |
22 | | Color m_TextColor; // Includes alpha! |
23 | | |
24 | | public: |
25 | | SdrGlowTextAttribute(sal_Int32 nTextRadius, const Color& rTextColor); |
26 | | SdrGlowTextAttribute(); |
27 | | SdrGlowTextAttribute(const SdrGlowTextAttribute&); |
28 | | SdrGlowTextAttribute(SdrGlowTextAttribute&&); |
29 | | |
30 | | bool operator==(const SdrGlowTextAttribute& rCandidate) const; |
31 | | |
32 | | SdrGlowTextAttribute& operator=(const SdrGlowTextAttribute&); |
33 | | SdrGlowTextAttribute& operator=(SdrGlowTextAttribute&&); |
34 | | |
35 | | // data access |
36 | 0 | const Color& getTextColor() const { return m_TextColor; } |
37 | 0 | sal_Int32 getTextRadius() const { return m_nTextRadius; } |
38 | 351 | bool isDefault() const { return m_nTextRadius == 0; } |
39 | | }; |
40 | | |
41 | | } // end of namespace drawinglayer::attribute |
42 | | |
43 | | #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWTEXTATTRIBUTE_HXX |
44 | | |
45 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |