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