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 #ifndef SW_NOTXTFRM_HXX 28 #define SW_NOTXTFRM_HXX 29 30 #include <cntfrm.hxx> 31 32 class SwNoTxtNode; 33 class OutputDevice; 34 class SwBorderAttrs; 35 class Bitmap; 36 struct SwCrsrMoveState; 37 38 class SwNoTxtFrm: public SwCntntFrm 39 { 40 friend void _FrmFinit(); 41 42 short nWeight; // "Wichtigkeit" der Grafik 43 44 const Size& GetSize() const; 45 46 void InitCtor(); 47 48 void Format ( const SwBorderAttrs *pAttrs = 0 ); 49 void PaintCntnt ( OutputDevice*, const SwRect&, const SwRect& ) const; 50 /// OD 25.09.2002 #99739# - delete unused 3rd parameter 51 void PaintPicture( OutputDevice*, const SwRect& ) const; 52 protected: 53 virtual void MakeAll(); 54 virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ); 55 public: 56 SwNoTxtFrm( SwNoTxtNode * const, SwFrm* ); 57 ~SwNoTxtFrm(); 58 59 virtual void Paint( SwRect const&, 60 SwPrintData const*const pPrintData = NULL ) const; 61 virtual sal_Bool GetCharRect( SwRect &, const SwPosition&, 62 SwCrsrMoveState* = 0) const; 63 sal_Bool GetCrsrOfst(SwPosition* pPos, Point& aPoint, 64 SwCrsrMoveState* = 0) const; 65 66 const Size &GetGrfSize() const { return GetSize(); } 67 void GetGrfArea( SwRect &rRect, SwRect * = 0, sal_Bool bMirror = sal_True ) const; 68 69 sal_Bool IsTransparent() const; 70 71 void StopAnimation( OutputDevice* = 0 ) const; 72 sal_Bool HasAnimation() const; 73 74 // Routinen fuer den Grafik-Cache 75 sal_uInt16 GetWeight() { return nWeight; } 76 }; 77 78 #endif 79 80