xref: /aoo42x/main/svx/source/svdraw/gradtrns.hxx (revision e147e5f6)
13334a7e6SAndrew Rist /**************************************************************
2*e147e5f6Smseidel  *
33334a7e6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
43334a7e6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
53334a7e6SAndrew Rist  * distributed with this work for additional information
63334a7e6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
73334a7e6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
83334a7e6SAndrew Rist  * "License"); you may not use this file except in compliance
93334a7e6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*e147e5f6Smseidel  *
113334a7e6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*e147e5f6Smseidel  *
133334a7e6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
143334a7e6SAndrew Rist  * software distributed under the License is distributed on an
153334a7e6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163334a7e6SAndrew Rist  * KIND, either express or implied.  See the License for the
173334a7e6SAndrew Rist  * specific language governing permissions and limitations
183334a7e6SAndrew Rist  * under the License.
19*e147e5f6Smseidel  *
203334a7e6SAndrew Rist  *************************************************************/
213334a7e6SAndrew Rist 
223334a7e6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _GRADTRANS_HXX
25cdf0e10cSrcweir #define _GRADTRANS_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <svx/xgrad.hxx>
28cdf0e10cSrcweir #include <tools/gen.hxx>
29cdf0e10cSrcweir #include <basegfx/point/b2dpoint.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class SdrObject;
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class GradTransVector
34cdf0e10cSrcweir {
35cdf0e10cSrcweir public:
36cdf0e10cSrcweir 	basegfx::B2DPoint			maPositionA;
37cdf0e10cSrcweir 	basegfx::B2DPoint			maPositionB;
38cdf0e10cSrcweir 	Color						aCol1;
39cdf0e10cSrcweir 	Color						aCol2;
40cdf0e10cSrcweir };
41cdf0e10cSrcweir 
42cdf0e10cSrcweir class GradTransGradient
43cdf0e10cSrcweir {
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir 	XGradient					aGradient;
46cdf0e10cSrcweir };
47cdf0e10cSrcweir 
48cdf0e10cSrcweir class GradTransformer
49cdf0e10cSrcweir {
50cdf0e10cSrcweir public:
GradTransformer()51cdf0e10cSrcweir 	GradTransformer() {}
52cdf0e10cSrcweir 
53*e147e5f6Smseidel 	void GradToVec(GradTransGradient& rG, GradTransVector& rV,
54cdf0e10cSrcweir 		const SdrObject* pObj);
55*e147e5f6Smseidel 	void VecToGrad(GradTransVector& rV, GradTransGradient& rG,
56cdf0e10cSrcweir 		GradTransGradient& rGOld, const SdrObject* pObj, sal_Bool bMoveSingle, sal_Bool bMoveFirst);
57cdf0e10cSrcweir };
58cdf0e10cSrcweir 
59cdf0e10cSrcweir #endif // _GRADTRANS_HXX
60