2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 #include "svx/sidebar/PopupControl.hxx"
20 #include <vcl/fixed.hxx>
21 #include <vcl/field.hxx>
22 #include <vcl/toolbox.hxx>
23 #include <svx/xenum.hxx>
25 class XFillFloatTransparenceItem
;
28 namespace svx
{ namespace sidebar
{
30 class AreaPropertyPanel
;
32 class AreaTransparencyGradientControl
: public PopupControl
35 AreaTransparencyGradientControl (
37 AreaPropertyPanel
& rPanel
);
38 virtual ~AreaTransparencyGradientControl (void);
41 void Rearrange(XFillFloatTransparenceItem
* pGradientItem
);
42 void InitStatus(XFillFloatTransparenceItem
* pGradientItem
);
43 void ExecuteValueModify( sal_uInt8 nStartCol
, sal_uInt8 nEndCol
);
44 void SetControlState_Impl(XGradientStyle eXGS
);
47 FixedText maFtTrgrCenterX
;
48 MetricField maMtrTrgrCenterX
;
49 FixedText maFtTrgrCenterY
;
50 MetricField maMtrTrgrCenterY
;
51 FixedText maFtTrgrAngle
;
52 MetricField maMtrTrgrAngle
;
55 FixedText maFtTrgrStartValue
;
56 MetricField maMtrTrgrStartValue
;
57 FixedText maFtTrgrEndValue
;
58 MetricField maMtrTrgrEndValue
;
59 FixedText maFtTrgrBorder
;
60 MetricField maMtrTrgrBorder
;
64 AreaPropertyPanel
& mrAreaPropertyPanel
;
65 SfxBindings
* mpBindings
;
66 DECL_LINK( ModifiedTrgrHdl_Impl
, void* );
67 DECL_LINK( Left_Click45_Impl
, void* );
68 DECL_LINK( Right_Click45_Impl
, void* );
72 } } // end of namespace svx::sidebar