nss: upgrade to release 3.73
[LibreOffice.git] / include / drawinglayer / attribute / fillgraphicattribute.hxx
blob380ae0742c3ce6616f4e69cea340dd83c39b8862
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::attribute {
35 class ImpFillGraphicAttribute;
39 namespace drawinglayer::attribute
41 class DRAWINGLAYER_DLLPUBLIC FillGraphicAttribute
43 public:
44 typedef o3tl::cow_wrapper< ImpFillGraphicAttribute > ImplType;
46 private:
47 ImplType mpFillGraphicAttribute;
49 public:
50 /// constructors/assignmentoperator/destructor
51 FillGraphicAttribute(
52 const Graphic& rGraphic,
53 const basegfx::B2DRange& rGraphicRange,
54 bool bTiling,
55 double fOffsetX = 0.0,
56 double fOffsetY = 0.0);
57 FillGraphicAttribute(const FillGraphicAttribute&);
58 FillGraphicAttribute& operator=(const FillGraphicAttribute&);
59 ~FillGraphicAttribute();
61 // checks if the incarnation is default constructed
62 bool isDefault() const;
64 // compare operator
65 bool operator==(const FillGraphicAttribute& rCandidate) const;
67 // data read access
68 const Graphic& getGraphic() const;
69 const basegfx::B2DRange& getGraphicRange() const;
70 bool getTiling() const;
71 double getOffsetX() const;
72 double getOffsetY() const;
75 } // end of namespace drawinglayer::attribute
78 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLGRAPHICATTRIBUTE_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */