summaryrefslogtreecommitdiff
path: root/include/svx/xflftrit.hxx
blob: b8c4ed88c30a03fbf9bde4b64fc92271e1e2083b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef INCLUDED_SVX_XFLFTRIT_HXX
#define INCLUDED_SVX_XFLFTRIT_HXX

#include <svx/xflgrit.hxx>
#include <svx/svxdllapi.h>


// class XFillFloatTransparenceItem -


class SVX_DLLPUBLIC XFillFloatTransparenceItem : public XFillGradientItem
{
private:

    bool                    bEnabled;

public:

                            static SfxPoolItem* CreateDefault();
                            XFillFloatTransparenceItem();
                            XFillFloatTransparenceItem(const OUString& rName, const XGradient& rGradient, bool bEnable = true );
                            XFillFloatTransparenceItem( const XGradient& rTheGradient, bool bEnable = true );
                            XFillFloatTransparenceItem( const XFillFloatTransparenceItem& rItem );

    virtual bool            operator==( const SfxPoolItem& rItem ) const override;
    virtual SfxPoolItem*    Clone( SfxItemPool* pPool = nullptr ) const override;
    virtual sal_uInt16      GetVersion( sal_uInt16 nFileFormatVersion ) const override;
    virtual bool            QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
    virtual bool            PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;

    virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric,
                                  MapUnit ePresMetric, OUString &rText, const IntlWrapper& rIntlWrapper ) const override;

    bool                    IsEnabled() const { return bEnabled; }
    void                    SetEnabled( bool bEnable ) { bEnabled = bEnable; }

    static bool CompareValueFunc( const NameOrIndex* p1, const NameOrIndex* p2 );
    XFillFloatTransparenceItem* checkForUniqueItem( SdrModel* pModel ) const;
};

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
:49 +0200'>2017-05-27registry: fix indenting caused by automated namespace scripts, etc.Chris Sherlock 2017-05-27registry: remove comment cruft from regimpl.cxxChris Sherlock 2017-05-27tdf#43157 - registry: convert from OSL_ASSERT to assertChris Sherlock 2017-05-27registry: like Rosencrantz, consistency is all I ask...Chris Sherlock 2017-05-27registry: typo in function parameterChris Sherlock 2017-05-26tdf#39468: translate German to English in registry's regimpl.cxxChris Sherlock 2017-05-09cleanup osl/diagnose.h includesJochen Nitschke 2017-05-07revert OSL_ASSERT changesChris Sherlock 2017-05-07tdf#43157 - registry: convert from OSL_ASSERT to assertChris Sherlock 2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky 2017-04-06Improved loplugin:redundantcast, static_cast on arithmetic types: registryStephan Bergmann 2017-03-03Remove redundant 'inline' keywordStephan Bergmann 2017-02-25loplugin:loopvartoosmallStephan Bergmann 2017-02-21Fix typos/translations, following 04644956e53dAndrea Gelmini 2017-02-10Remove MinGW supportStephan Bergmann 2017-02-10test coverity sanitizing in-source modellingCaolán McNamara 2017-02-01loplugin:useuniqueptr extend to check local varsNoel Grandin 2017-01-25loplugin: unnecessary destructor oox..saxNoel Grandin