Branch libreoffice-5-0-4
[LibreOffice.git] / include / drawinglayer / attribute / materialattribute3d.hxx
blob69dfbc6e4f1afb3ea1b99100028de4d982bd22e2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_MATERIALATTRIBUTE3D_HXX
21 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_MATERIALATTRIBUTE3D_HXX
23 #include <drawinglayer/drawinglayerdllapi.h>
24 #include <o3tl/cow_wrapper.hxx>
27 // predefines
29 namespace drawinglayer { namespace attribute {
30 class ImpMaterialAttribute3D;
33 namespace basegfx {
34 class BColor;
39 namespace drawinglayer
41 namespace attribute
43 class DRAWINGLAYER_DLLPUBLIC MaterialAttribute3D
45 public:
46 typedef o3tl::cow_wrapper< ImpMaterialAttribute3D > ImplType;
48 private:
49 ImplType mpMaterialAttribute3D;
51 public:
52 // constructors/destructor
53 MaterialAttribute3D(
54 const basegfx::BColor& rColor,
55 const basegfx::BColor& rSpecular,
56 const basegfx::BColor& rEmission,
57 sal_uInt16 nSpecularIntensity);
58 MaterialAttribute3D(const basegfx::BColor& rColor);
59 MaterialAttribute3D();
60 MaterialAttribute3D(const MaterialAttribute3D& rCandidate);
61 ~MaterialAttribute3D();
63 // assignment operator
64 MaterialAttribute3D& operator=(const MaterialAttribute3D& rCandidate);
66 // checks if the incarnation is default constructed
67 bool isDefault() const;
69 // compare operator
70 bool operator==(const MaterialAttribute3D& rCandidate) const;
72 // data read access
73 const basegfx::BColor& getColor() const;
74 const basegfx::BColor& getSpecular() const;
75 const basegfx::BColor& getEmission() const;
76 sal_uInt16 getSpecularIntensity() const;
78 } // end of namespace attribute
79 } // end of namespace drawinglayer
83 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_MATERIALATTRIBUTE3D_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */