xref: /trunk/main/sw/inc/swtblfmt.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
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 _SWTBLFMT_HXX
28 #define _SWTBLFMT_HXX
29 
30 #include <frmfmt.hxx>
31 
32 class SwDoc;
33 
34 class SW_DLLPUBLIC SwTableFmt : public SwFrmFmt
35 {
36     friend class SwDoc;
37 
38 protected:
39     SwTableFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
40                     SwFrmFmt *pDrvdFrm )
41         : SwFrmFmt( rPool, pFmtNm, pDrvdFrm, RES_FRMFMT, aTableSetRange )
42     {}
43     SwTableFmt( SwAttrPool& rPool, const String &rFmtNm,
44                     SwFrmFmt *pDrvdFrm )
45         : SwFrmFmt( rPool, rFmtNm, pDrvdFrm, RES_FRMFMT, aTableSetRange )
46     {}
47 
48 
49 public:
50     TYPEINFO();     //Bereits in Basisklasse Client drin.
51 
52     DECL_FIXEDMEMPOOL_NEWDEL(SwTableFmt)
53 };
54 
55 class SwTableLineFmt : public SwFrmFmt
56 {
57     friend class SwDoc;
58 
59 protected:
60     SwTableLineFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
61                     SwFrmFmt *pDrvdFrm )
62         : SwFrmFmt( rPool, pFmtNm, pDrvdFrm, RES_FRMFMT, aTableLineSetRange )
63     {}
64     SwTableLineFmt( SwAttrPool& rPool, const String &rFmtNm,
65                     SwFrmFmt *pDrvdFrm )
66         : SwFrmFmt( rPool, rFmtNm, pDrvdFrm, RES_FRMFMT, aTableLineSetRange )
67     {}
68 
69 public:
70     TYPEINFO();     //Bereits in Basisklasse Client drin.
71 
72     DECL_FIXEDMEMPOOL_NEWDEL(SwTableLineFmt)
73 };
74 
75 class SW_DLLPUBLIC SwTableBoxFmt : public SwFrmFmt
76 {
77     friend class SwDoc;
78 
79 protected:
80     SwTableBoxFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
81                     SwFrmFmt *pDrvdFrm )
82         : SwFrmFmt( rPool, pFmtNm, pDrvdFrm, RES_FRMFMT, aTableBoxSetRange )
83     {}
84     SwTableBoxFmt( SwAttrPool& rPool, const String &rFmtNm,
85                     SwFrmFmt *pDrvdFrm )
86         : SwFrmFmt( rPool, rFmtNm, pDrvdFrm, RES_FRMFMT, aTableBoxSetRange )
87     {}
88 
89     // zum Erkennen von Veraenderungen (haupts. TableBoxAttribute)
90    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNewValue );
91 
92 public:
93     TYPEINFO();     //Bereits in Basisklasse Client drin.
94 
95     DECL_FIXEDMEMPOOL_NEWDEL(SwTableBoxFmt)
96 };
97 
98 
99 #endif
100