fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / svx / source / sdr / attribute / sdrfilltextattribute.cxx
blob80dfd67efa54a3a96774df393e8e7dcf64952a00
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 .
21 #include <svx/sdr/attribute/sdrfilltextattribute.hxx>
23 //////////////////////////////////////////////////////////////////////////////
25 namespace drawinglayer
27 namespace attribute
29 SdrFillTextAttribute::SdrFillTextAttribute(
30 const SdrFillAttribute& rFill,
31 const FillGradientAttribute& rFillFloatTransGradient,
32 const SdrTextAttribute& rTextAttribute)
33 : maFill(rFill),
34 maFillFloatTransGradient(rFillFloatTransGradient),
35 maTextAttribute(rTextAttribute)
39 SdrFillTextAttribute::SdrFillTextAttribute()
40 : maFill(),
41 maFillFloatTransGradient(),
42 maTextAttribute()
46 SdrFillTextAttribute::SdrFillTextAttribute(const SdrFillTextAttribute& rCandidate)
47 : maFill(rCandidate.getFill()),
48 maFillFloatTransGradient(rCandidate.getFillFloatTransGradient()),
49 maTextAttribute(rCandidate.getText())
53 SdrFillTextAttribute& SdrFillTextAttribute::operator=(const SdrFillTextAttribute& rCandidate)
55 maFill = rCandidate.getFill();
56 maFillFloatTransGradient = rCandidate.getFillFloatTransGradient();
57 maTextAttribute = rCandidate.getText();
59 return *this;
62 bool SdrFillTextAttribute::operator==(const SdrFillTextAttribute& rCandidate) const
64 return(getFill() == rCandidate.getFill()
65 && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient()
66 && getText() == rCandidate.getText());
68 } // end of namespace attribute
69 } // end of namespace drawinglayer
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */