18dcb2a10SAndre Fischer /**************************************************************
2*8bd26251Smseidel  *
38dcb2a10SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
48dcb2a10SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
58dcb2a10SAndre Fischer  * distributed with this work for additional information
68dcb2a10SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
78dcb2a10SAndre Fischer  * to you under the Apache License, Version 2.0 (the
88dcb2a10SAndre Fischer  * "License"); you may not use this file except in compliance
98dcb2a10SAndre Fischer  * with the License.  You may obtain a copy of the License at
10*8bd26251Smseidel  *
118dcb2a10SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
12*8bd26251Smseidel  *
138dcb2a10SAndre Fischer  * Unless required by applicable law or agreed to in writing,
148dcb2a10SAndre Fischer  * software distributed under the License is distributed on an
158dcb2a10SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168dcb2a10SAndre Fischer  * KIND, either express or implied.  See the License for the
178dcb2a10SAndre Fischer  * specific language governing permissions and limitations
188dcb2a10SAndre Fischer  * under the License.
19*8bd26251Smseidel  *
208dcb2a10SAndre Fischer  *************************************************************/
218dcb2a10SAndre Fischer 
22*8bd26251Smseidel 
23*8bd26251Smseidel 
248dcb2a10SAndre Fischer #include "svx/sidebar/PopupControl.hxx"
258dcb2a10SAndre Fischer 
268dcb2a10SAndre Fischer #include <vcl/fixed.hxx>
278dcb2a10SAndre Fischer #include <vcl/field.hxx>
288dcb2a10SAndre Fischer #include <vcl/toolbox.hxx>
298dcb2a10SAndre Fischer #include <svx/xenum.hxx>
308dcb2a10SAndre Fischer 
318dcb2a10SAndre Fischer class XFillFloatTransparenceItem;
328dcb2a10SAndre Fischer class SfxBindings;
338dcb2a10SAndre Fischer 
348dcb2a10SAndre Fischer namespace svx { namespace sidebar {
358dcb2a10SAndre Fischer 
368dcb2a10SAndre Fischer class AreaPropertyPanel;
378dcb2a10SAndre Fischer 
388dcb2a10SAndre Fischer class AreaTransparencyGradientControl : public PopupControl
398dcb2a10SAndre Fischer {
408dcb2a10SAndre Fischer public:
418dcb2a10SAndre Fischer 	AreaTransparencyGradientControl (
42*8bd26251Smseidel 		Window* pParent,
43*8bd26251Smseidel 		AreaPropertyPanel& rPanel);
44*8bd26251Smseidel 	virtual ~AreaTransparencyGradientControl (void);
458dcb2a10SAndre Fischer 
468dcb2a10SAndre Fischer 	void ToGetFocus();
478dcb2a10SAndre Fischer 	void Rearrange(XFillFloatTransparenceItem* pGradientItem);
488dcb2a10SAndre Fischer 	void InitStatus(XFillFloatTransparenceItem* pGradientItem);
498dcb2a10SAndre Fischer 	void ExecuteValueModify( sal_uInt8 nStartCol, sal_uInt8 nEndCol );
508dcb2a10SAndre Fischer 	void SetControlState_Impl(XGradientStyle eXGS);
518dcb2a10SAndre Fischer 
52*8bd26251Smseidel private:
53*8bd26251Smseidel 	FixedText			maFtTrgrCenterX;
54*8bd26251Smseidel 	MetricField			maMtrTrgrCenterX;
55*8bd26251Smseidel 	FixedText			maFtTrgrCenterY;
56*8bd26251Smseidel 	MetricField			maMtrTrgrCenterY;
57*8bd26251Smseidel 	FixedText			maFtTrgrAngle;
58*8bd26251Smseidel 	MetricField			maMtrTrgrAngle;
59*8bd26251Smseidel 	ToolBox				maBtnLeft45;
60*8bd26251Smseidel 	ToolBox				maBtnRight45;
61*8bd26251Smseidel 	FixedText			maFtTrgrStartValue;
62*8bd26251Smseidel 	MetricField			maMtrTrgrStartValue;
63*8bd26251Smseidel 	FixedText			maFtTrgrEndValue;
64*8bd26251Smseidel 	MetricField			maMtrTrgrEndValue;
65*8bd26251Smseidel 	FixedText			maFtTrgrBorder;
66*8bd26251Smseidel 	MetricField			maMtrTrgrBorder;
678dcb2a10SAndre Fischer 	Image				maRotLeft;
688dcb2a10SAndre Fischer 	Image				maRotRight;
698dcb2a10SAndre Fischer 
708dcb2a10SAndre Fischer 	AreaPropertyPanel& mrAreaPropertyPanel;
718dcb2a10SAndre Fischer 	SfxBindings*		mpBindings;
728dcb2a10SAndre Fischer 	DECL_LINK( ModifiedTrgrHdl_Impl, void* );
738dcb2a10SAndre Fischer 	DECL_LINK( Left_Click45_Impl, void* );
748dcb2a10SAndre Fischer 	DECL_LINK( Right_Click45_Impl, void* );
758dcb2a10SAndre Fischer };
768dcb2a10SAndre Fischer 
778dcb2a10SAndre Fischer 
788dcb2a10SAndre Fischer } } // end of namespace svx::sidebar
794e8031e0SArmin Le Grand 
804e8031e0SArmin Le Grand // eof
81