1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: svdoimp.hxx,v $
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>
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
60 The offset from the left, top position of the output rectangle is returned
63 The output size of the bitmap is returned herein
66 Specifies the output rectangle into which the bitmap should be tiled into
69 Specifies the logical coordinate system the output rectangle is in
72 Specifies the bitmap to fill with
75 The desired destination bitmap size. If null, size is taken from the bitmap
78 Percentage of bitmap size, relative to the output rectangle
81 Offset for bitmap tiling, in percentage relative to bitmap output size
84 True when using the preferred bitmap size, False when using the percentage value
87 True for tiling. False only paints one instance of the bitmap
90 True if bitmap should be stretched to output rect dimension
93 Position of the start point relative to the bitmap
96 void ImpCalcBmpFillSizes( Size
& rStartOffset
,
98 const Rectangle
& rOutputRect
,
99 const MapMode
& rOutputMapMode
,
100 const Bitmap
& rFillBitmap
,
101 const Size
& rBmpSize
,
102 const Size
& rBmpPerCent
,
103 const Size
& rBmpOffPerCent
,
107 RECT_POINT eBmpRectPoint
);
110 ////////////////////////////////////////////////////////////////////////////////////////////////////
112 #endif // _SVX_SVDOIMP_HXX