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