xref: /trunk/main/svx/source/inc/svdoimp.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _SVX_SVDOIMP_HXX
29 #define _SVX_SVDOIMP_HXX
30 
31 #include <vcl/mapmod.hxx>
32 
33 //#include <svl/lstner.hxx>
34 //#include <vcl/timer.hxx>
35 //#include <svx/svdsob.hxx>
36 //#include <svx/svdtypes.hxx> // fuer SdrLayerID
37 //#include <svx/svdglue.hxx> // Klebepunkte
38 //#include <svx/xdash.hxx>
39 //#include <svx/xpoly.hxx>
40 //#include <svx/xenum.hxx>
41 //#include <basegfx/vector/b2dvector.hxx>
42 #include <svx/rectenum.hxx>
43 //#include <basegfx/polygon/b2dpolypolygon.hxx>
44 
45 class Bitmap;
46 
47 ///////////////////////////////////////////////////////////////////////////////
48 
49 // #104609# Extracted from old XOutDev's ImpCalcBmpFillStartValues
50 
51 /** Calc offset and size for bitmap fill
52 
53 	This method calculates the size and the offset from the left, top
54 	position of a shape in logical coordinates
55 
56 	@param rStartOffset
57     The offset from the left, top position of the output rectangle is returned
58 
59     @param rBmpOutputSize
60     The output size of the bitmap is returned herein
61 
62     @param rOutputRect
63     Specifies the output rectangle into which the bitmap should be tiled into
64 
65     @param rOutputMapMode
66     Specifies the logical coordinate system the output rectangle is in
67 
68     @param rFillBitmap
69     Specifies the bitmap to fill with
70 
71     @param rBmpSize
72     The desired destination bitmap size. If null, size is taken from the bitmap
73 
74     @param rBmpPerCent
75     Percentage of bitmap size, relative to the output rectangle
76 
77     @param rBmpOffPerCent
78     Offset for bitmap tiling, in percentage relative to bitmap output size
79 
80     @param bBmpLogSize
81     True when using the preferred bitmap size, False when using the percentage value
82 
83     @param bBmpTile
84     True for tiling. False only paints one instance of the bitmap
85 
86     @param bBmpStretch
87     True if bitmap should be stretched to output rect dimension
88 
89     @param eBmpRectPoint
90     Position of the start point relative to the bitmap
91 
92  */
93 void ImpCalcBmpFillSizes( Size&			   rStartOffset,
94                           Size&			   rBmpOutputSize,
95                           const Rectangle& rOutputRect,
96                           const MapMode&   rOutputMapMode,
97                           const Bitmap&    rFillBitmap,
98                           const Size&      rBmpSize,
99                           const Size&      rBmpPerCent,
100                           const Size&	   rBmpOffPerCent,
101                           sal_Bool             bBmpLogSize,
102                           sal_Bool             bBmpTile,
103                           sal_Bool             bBmpStretch,
104                           RECT_POINT       eBmpRectPoint );
105 
106 
107 ////////////////////////////////////////////////////////////////////////////////////////////////////
108 
109 #endif // _SVX_SVDOIMP_HXX
110 
111 // eof
112