LibreOffice Module drawinglayer (master) 1
sdrfillgraphicattribute.hxx
Go to the documentation of this file.
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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
20#define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
21
23#include <o3tl/cow_wrapper.hxx>
24
25
26// predefines
27
28class Graphic;
29
30namespace basegfx {
31 class B2DRange;
32 class B2DVector;
33}
34
36 class FillGraphicAttribute;
37 class ImpSdrFillGraphicAttribute;
38}
39
40
42 {
44 {
45 public:
47
48 private:
50
51 public:
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);
69
70 // checks if the incarnation is default constructed
71 bool isDefault() const;
72
73 // compare operator
74 bool operator==(const SdrFillGraphicAttribute& rCandidate) const;
75
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;
84
85 // FillGraphicAttribute generator
86 FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange& rRange) const;
87 };
88
89} // end of namespace drawinglayer::attribute
90
91
92#endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
93
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
o3tl::cow_wrapper< ImpSdrFillGraphicAttribute > ImplType
SdrFillGraphicAttribute & operator=(SdrFillGraphicAttribute &&)
SdrFillGraphicAttribute & operator=(const SdrFillGraphicAttribute &)
SdrFillGraphicAttribute(SdrFillGraphicAttribute &&)
SdrFillGraphicAttribute(const SdrFillGraphicAttribute &)
#define DRAWINGLAYER_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)