1*8dcb2a10SAndre Fischer /**************************************************************
2*8dcb2a10SAndre Fischer  *
3*8dcb2a10SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
4*8dcb2a10SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
5*8dcb2a10SAndre Fischer  * distributed with this work for additional information
6*8dcb2a10SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
7*8dcb2a10SAndre Fischer  * to you under the Apache License, Version 2.0 (the
8*8dcb2a10SAndre Fischer  * "License"); you may not use this file except in compliance
9*8dcb2a10SAndre Fischer  * with the License.  You may obtain a copy of the License at
10*8dcb2a10SAndre Fischer  *
11*8dcb2a10SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
12*8dcb2a10SAndre Fischer  *
13*8dcb2a10SAndre Fischer  * Unless required by applicable law or agreed to in writing,
14*8dcb2a10SAndre Fischer  * software distributed under the License is distributed on an
15*8dcb2a10SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*8dcb2a10SAndre Fischer  * KIND, either express or implied.  See the License for the
17*8dcb2a10SAndre Fischer  * specific language governing permissions and limitations
18*8dcb2a10SAndre Fischer  * under the License.
19*8dcb2a10SAndre Fischer  *
20*8dcb2a10SAndre Fischer  *************************************************************/
21*8dcb2a10SAndre Fischer 
22*8dcb2a10SAndre Fischer #include "svx/sidebar/PopupControl.hxx"
23*8dcb2a10SAndre Fischer 
24*8dcb2a10SAndre Fischer #include <vcl/fixed.hxx>
25*8dcb2a10SAndre Fischer #include <vcl/field.hxx>
26*8dcb2a10SAndre Fischer #include <vcl/toolbox.hxx>
27*8dcb2a10SAndre Fischer #include <svx/xenum.hxx>
28*8dcb2a10SAndre Fischer 
29*8dcb2a10SAndre Fischer class XFillFloatTransparenceItem;
30*8dcb2a10SAndre Fischer class SfxBindings;
31*8dcb2a10SAndre Fischer 
32*8dcb2a10SAndre Fischer namespace svx { namespace sidebar {
33*8dcb2a10SAndre Fischer 
34*8dcb2a10SAndre Fischer class AreaPropertyPanel;
35*8dcb2a10SAndre Fischer 
36*8dcb2a10SAndre Fischer class AreaTransparencyGradientControl : public PopupControl
37*8dcb2a10SAndre Fischer {
38*8dcb2a10SAndre Fischer public:
39*8dcb2a10SAndre Fischer 	AreaTransparencyGradientControl (
40*8dcb2a10SAndre Fischer         Window* pParent,
41*8dcb2a10SAndre Fischer         AreaPropertyPanel& rPanel);
42*8dcb2a10SAndre Fischer     virtual ~AreaTransparencyGradientControl (void);
43*8dcb2a10SAndre Fischer 
44*8dcb2a10SAndre Fischer 	void ToGetFocus();
45*8dcb2a10SAndre Fischer 	void Rearrange(XFillFloatTransparenceItem* pGradientItem);
46*8dcb2a10SAndre Fischer 	void InitStatus(XFillFloatTransparenceItem* pGradientItem);
47*8dcb2a10SAndre Fischer 	void ExecuteValueModify( sal_uInt8 nStartCol, sal_uInt8 nEndCol );
48*8dcb2a10SAndre Fischer 	void SetControlState_Impl(XGradientStyle eXGS);
49*8dcb2a10SAndre Fischer 
50*8dcb2a10SAndre Fischer private:
51*8dcb2a10SAndre Fischer 	FixedText           maFtTrgrCenterX;
52*8dcb2a10SAndre Fischer 	MetricField         maMtrTrgrCenterX;
53*8dcb2a10SAndre Fischer 	FixedText           maFtTrgrCenterY;
54*8dcb2a10SAndre Fischer 	MetricField         maMtrTrgrCenterY;
55*8dcb2a10SAndre Fischer 	FixedText           maFtTrgrAngle;
56*8dcb2a10SAndre Fischer 	MetricField         maMtrTrgrAngle;
57*8dcb2a10SAndre Fischer 	ToolBox		 	    maBtnLeft45;
58*8dcb2a10SAndre Fischer 	ToolBox		 	    maBtnRight45;
59*8dcb2a10SAndre Fischer 	FixedText           maFtTrgrStartValue;
60*8dcb2a10SAndre Fischer 	MetricField         maMtrTrgrStartValue;
61*8dcb2a10SAndre Fischer 	FixedText           maFtTrgrEndValue;
62*8dcb2a10SAndre Fischer 	MetricField         maMtrTrgrEndValue;
63*8dcb2a10SAndre Fischer 	FixedText           maFtTrgrBorder;
64*8dcb2a10SAndre Fischer 	MetricField         maMtrTrgrBorder;
65*8dcb2a10SAndre Fischer 	Image				maRotLeft;
66*8dcb2a10SAndre Fischer 	Image				maRotRight;
67*8dcb2a10SAndre Fischer 
68*8dcb2a10SAndre Fischer 	AreaPropertyPanel& mrAreaPropertyPanel;
69*8dcb2a10SAndre Fischer 	SfxBindings*		mpBindings;
70*8dcb2a10SAndre Fischer 	DECL_LINK( ModifiedTrgrHdl_Impl, void* );
71*8dcb2a10SAndre Fischer 	DECL_LINK( Left_Click45_Impl, void* );
72*8dcb2a10SAndre Fischer 	DECL_LINK( Right_Click45_Impl, void* );
73*8dcb2a10SAndre Fischer };
74*8dcb2a10SAndre Fischer 
75*8dcb2a10SAndre Fischer 
76*8dcb2a10SAndre Fischer } } // end of namespace svx::sidebar
77