xref: /trunk/main/sw/source/core/inc/notxtfrm.hxx (revision ffd38472365e95f6a578737bc9a5eb0fac624a86)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #ifndef SW_NOTXTFRM_HXX
23 #define SW_NOTXTFRM_HXX
24 
25 #include <cntfrm.hxx>
26 
27 class SwNoTxtNode;
28 class OutputDevice;
29 class SwBorderAttrs;
30 class Bitmap;
31 struct SwCrsrMoveState;
32 
33 class SwNoTxtFrm: public SwCntntFrm
34 {
35     friend void _FrmFinit();
36 
37     short    nWeight; // "Wichtigkeit" der Grafik
38 
39     const Size& GetSize() const;
40 
41     void InitCtor();
42 
43     void Format ( const SwBorderAttrs *pAttrs = 0 );
44     void PaintCntnt ( OutputDevice*, const SwRect&, const SwRect& ) const;
45     // OD 25.09.2002 #99739# - delete unused 3rd parameter
46     void PaintPicture( OutputDevice*, const SwRect& ) const;
47 protected:
48     virtual void MakeAll();
49     virtual void Modify( const SfxPoolItem*, const SfxPoolItem* );
50 public:
51     SwNoTxtFrm( SwNoTxtNode * const, SwFrm* );
52     ~SwNoTxtFrm();
53 
54     virtual void Paint( SwRect const&,
55                         SwPrintData const*const pPrintData = NULL ) const;
56     virtual sal_Bool GetCharRect( SwRect &, const SwPosition&,
57                               SwCrsrMoveState* = 0) const;
58     sal_Bool GetCrsrOfst(SwPosition* pPos, Point& aPoint,
59                     SwCrsrMoveState* = 0) const;
60 
61     const Size &GetGrfSize() const  { return GetSize(); }
62     void GetGrfArea( SwRect &rRect, SwRect * = 0, sal_Bool bMirror = sal_True ) const;
63 
64     sal_Bool IsTransparent() const;
65 
66     void StopAnimation( OutputDevice* = 0 ) const;
67     sal_Bool HasAnimation() const;
68 
69     // Routinen fuer den Grafik-Cache
70     sal_uInt16 GetWeight() { return nWeight; }
71 };
72 
73 #endif
74 
75 /* vim: set noet sw=4 ts=4: */
76