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