xref: /aoo41x/main/svx/source/inc/svdoimp.hxx (revision 3334a7e6)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SVX_SVDOIMP_HXX
25 #define _SVX_SVDOIMP_HXX
26 
27 #include <vcl/mapmod.hxx>
28 
29 //#include <svl/lstner.hxx>
30 //#include <vcl/timer.hxx>
31 //#include <svx/svdsob.hxx>
32 //#include <svx/svdtypes.hxx> // fuer SdrLayerID
33 //#include <svx/svdglue.hxx> // Klebepunkte
34 //#include <svx/xdash.hxx>
35 //#include <svx/xpoly.hxx>
36 //#include <svx/xenum.hxx>
37 //#include <basegfx/vector/b2dvector.hxx>
38 #include <svx/rectenum.hxx>
39 //#include <basegfx/polygon/b2dpolypolygon.hxx>
40 
41 class Bitmap;
42 
43 ///////////////////////////////////////////////////////////////////////////////
44 
45 // #104609# Extracted from old XOutDev's ImpCalcBmpFillStartValues
46 
47 /** Calc offset and size for bitmap fill
48 
49 	This method calculates the size and the offset from the left, top
50 	position of a shape in logical coordinates
51 
52 	@param rStartOffset
53     The offset from the left, top position of the output rectangle is returned
54 
55     @param rBmpOutputSize
56     The output size of the bitmap is returned herein
57 
58     @param rOutputRect
59     Specifies the output rectangle into which the bitmap should be tiled into
60 
61     @param rOutputMapMode
62     Specifies the logical coordinate system the output rectangle is in
63 
64     @param rFillBitmap
65     Specifies the bitmap to fill with
66 
67     @param rBmpSize
68     The desired destination bitmap size. If null, size is taken from the bitmap
69 
70     @param rBmpPerCent
71     Percentage of bitmap size, relative to the output rectangle
72 
73     @param rBmpOffPerCent
74     Offset for bitmap tiling, in percentage relative to bitmap output size
75 
76     @param bBmpLogSize
77     True when using the preferred bitmap size, False when using the percentage value
78 
79     @param bBmpTile
80     True for tiling. False only paints one instance of the bitmap
81 
82     @param bBmpStretch
83     True if bitmap should be stretched to output rect dimension
84 
85     @param eBmpRectPoint
86     Position of the start point relative to the bitmap
87 
88  */
89 void ImpCalcBmpFillSizes( Size&			   rStartOffset,
90                           Size&			   rBmpOutputSize,
91                           const Rectangle& rOutputRect,
92                           const MapMode&   rOutputMapMode,
93                           const Bitmap&    rFillBitmap,
94                           const Size&      rBmpSize,
95                           const Size&      rBmpPerCent,
96                           const Size&	   rBmpOffPerCent,
97                           sal_Bool             bBmpLogSize,
98                           sal_Bool             bBmpTile,
99                           sal_Bool             bBmpStretch,
100                           RECT_POINT       eBmpRectPoint );
101 
102 
103 ////////////////////////////////////////////////////////////////////////////////////////////////////
104 
105 #endif // _SVX_SVDOIMP_HXX
106 
107 // eof
108