tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / include / drawinglayer / attribute / sdrfillgraphicattribute.hxx
blob4a39313d10aae2caefabd66e801672429158434b
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_SDRFILLGRAPHICATTRIBUTE_HXX
20 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
22 #include <drawinglayer/drawinglayerdllapi.h>
23 #include <o3tl/cow_wrapper.hxx>
26 // predefines
28 class Graphic;
30 namespace basegfx {
31 class B2DRange;
32 class B2DVector;
35 namespace drawinglayer::attribute {
36 class FillGraphicAttribute;
37 class ImpSdrFillGraphicAttribute;
41 namespace drawinglayer::attribute
43 class DRAWINGLAYER_DLLPUBLIC SdrFillGraphicAttribute
45 public:
46 typedef o3tl::cow_wrapper< ImpSdrFillGraphicAttribute > ImplType;
48 private:
49 ImplType mpSdrFillGraphicAttribute;
51 public:
52 /// constructors/assignmentoperator/destructor
53 SdrFillGraphicAttribute(
54 const Graphic& rFillGraphic,
55 const basegfx::B2DVector& rGraphicLogicSize,
56 const basegfx::B2DVector& rSize,
57 const basegfx::B2DVector& rOffset,
58 const basegfx::B2DVector& rOffsetPosition,
59 const basegfx::B2DVector& rRectPoint,
60 bool bTiling,
61 bool bStretch,
62 bool bLogSize);
63 SdrFillGraphicAttribute();
64 SdrFillGraphicAttribute(const SdrFillGraphicAttribute&);
65 SdrFillGraphicAttribute(SdrFillGraphicAttribute&&);
66 SdrFillGraphicAttribute& operator=(const SdrFillGraphicAttribute&);
67 SdrFillGraphicAttribute& operator=(SdrFillGraphicAttribute&&);
68 ~SdrFillGraphicAttribute();
70 // checks if the incarnation is default constructed
71 bool isDefault() const;
73 // compare operator
74 bool operator==(const SdrFillGraphicAttribute& rCandidate) const;
76 // data read access
77 const Graphic& getFillGraphic() const;
78 const basegfx::B2DVector& getGraphicLogicSize() const;
79 const basegfx::B2DVector& getSize() const;
80 const basegfx::B2DVector& getOffset() const;
81 const basegfx::B2DVector& getOffsetPosition() const;
82 const basegfx::B2DVector& getRectPoint() const;
83 bool getTiling() const;
85 // FillGraphicAttribute generator
86 FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange& rRange) const;
89 } // end of namespace drawinglayer::attribute
92 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */