update credits
[LibreOffice.git] / svx / source / sidebar / area / AreaTransparencyGradientControl.hxx
blob5d31d44d5b8bfdfbc377ef7cd07e08f540466ed8
1 /*
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;
26 class SfxBindings;
28 namespace svx { namespace sidebar {
30 class AreaPropertyPanel;
32 class AreaTransparencyGradientControl : public PopupControl
34 public:
35 AreaTransparencyGradientControl (
36 Window* pParent,
37 AreaPropertyPanel& rPanel);
38 virtual ~AreaTransparencyGradientControl (void);
40 void ToGetFocus();
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);
46 private:
47 FixedText maFtTrgrCenterX;
48 MetricField maMtrTrgrCenterX;
49 FixedText maFtTrgrCenterY;
50 MetricField maMtrTrgrCenterY;
51 FixedText maFtTrgrAngle;
52 MetricField maMtrTrgrAngle;
53 ToolBox maBtnLeft45;
54 ToolBox maBtnRight45;
55 FixedText maFtTrgrStartValue;
56 MetricField maMtrTrgrStartValue;
57 FixedText maFtTrgrEndValue;
58 MetricField maMtrTrgrEndValue;
59 FixedText maFtTrgrBorder;
60 MetricField maMtrTrgrBorder;
61 Image maRotLeft;
62 Image maRotRight;
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
74 // eof