Branch libreoffice-5-0-4
[LibreOffice.git] / include / drawinglayer / attribute / fillgraphicattribute.hxx
blob9d9dbd635c3297cba6331c47139787e8bb3917e7
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 .
19 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLGRAPHICATTRIBUTE_HXX
20 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLGRAPHICATTRIBUTE_HXX
22 #include <drawinglayer/drawinglayerdllapi.h>
23 #include <o3tl/cow_wrapper.hxx>
26 // predefines
28 class Graphic;
30 namespace basegfx {
31 class B2DRange;
34 namespace drawinglayer { namespace attribute {
35 class ImpFillGraphicAttribute;
40 namespace drawinglayer
42 namespace attribute
44 class DRAWINGLAYER_DLLPUBLIC FillGraphicAttribute
46 public:
47 typedef o3tl::cow_wrapper< ImpFillGraphicAttribute > ImplType;
49 private:
50 ImplType mpFillGraphicAttribute;
52 public:
53 /// constructors/assignmentoperator/destructor
54 FillGraphicAttribute(
55 const Graphic& rGraphic,
56 const basegfx::B2DRange& rGraphicRange,
57 bool bTiling = false,
58 double fOffsetX = 0.0,
59 double fOffsetY = 0.0);
60 FillGraphicAttribute();
61 FillGraphicAttribute(const FillGraphicAttribute& rCandidate);
62 FillGraphicAttribute& operator=(const FillGraphicAttribute& rCandidate);
63 ~FillGraphicAttribute();
65 // checks if the incarnation is default constructed
66 bool isDefault() const;
68 // compare operator
69 bool operator==(const FillGraphicAttribute& rCandidate) const;
71 // data read access
72 const Graphic& getGraphic() const;
73 const basegfx::B2DRange& getGraphicRange() const;
74 bool getTiling() const;
75 double getOffsetX() const;
76 double getOffsetY() const;
78 } // end of namespace attribute
79 } // end of namespace drawinglayer
83 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLGRAPHICATTRIBUTE_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */