00001 /* AbiWord 00002 * Copyright (C) 2002 Patrick Lam <plam@mit.edu> 00003 * Copyright (C) 1998 AbiSource, Inc. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00018 * 02111-1307, USA. 00019 * 00020 */ 00021 00022 #ifndef FOOTNOTECONTAINER_H 00023 #define FOOTNOTECONTAINER_H 00024 00025 #ifdef FMT_TEST 00026 #include <stdio.h> 00027 #endif 00028 00029 #include "ut_misc.h" 00030 #include "ut_types.h" 00031 #include "ut_vector.h" 00032 #include "pt_Types.h" 00033 #include "fp_Page.h" 00034 #include "fp_ContainerObject.h" 00035 #include "fp_Column.h" 00036 #include "gr_Graphics.h" 00037 00038 class fl_TableLayout; 00039 class fl_DocSectionLayout; 00040 00041 class ABI_EXPORT fp_FootnoteContainer : public fp_VerticalContainer 00042 { 00043 public: 00044 fp_FootnoteContainer(fl_SectionLayout* pSectionLayout); 00045 virtual ~fp_FootnoteContainer(); 00046 UT_sint32 getValue(void); 00047 void layout(void); 00048 virtual bool isVBreakable(void) {return false;} 00049 virtual void clearScreen(void); 00050 virtual void draw(dg_DrawArgs*); 00051 virtual void draw(GR_Graphics*) {} 00052 virtual void setContainer(fp_Container * pContainer); 00053 virtual fp_Container * getNextContainerInSection(void) const; 00054 virtual fp_Container * getPrevContainerInSection(void) const; 00055 virtual fp_Page * getPage(void) { return m_pPage;} 00056 void setPage(fp_Page * pPage); 00057 fl_DocSectionLayout * getDocSectionLayout(void); 00058 private: 00059 fp_Page * m_pPage; 00060 }; 00061 00062 00063 class ABI_EXPORT fp_AnnotationContainer : public fp_VerticalContainer 00064 { 00065 public: 00066 fp_AnnotationContainer(fl_SectionLayout* pSectionLayout); 00067 virtual ~fp_AnnotationContainer(); 00068 UT_sint32 getValue(void); 00069 void layout(void); 00070 virtual bool isVBreakable(void) {return false;} 00071 virtual void clearScreen(void); 00072 virtual void draw(dg_DrawArgs*); 00073 virtual void draw(GR_Graphics*) {} 00074 virtual void setContainer(fp_Container * pContainer); 00075 virtual fp_Container * getNextContainerInSection(void) const; 00076 virtual fp_Container * getPrevContainerInSection(void) const; 00077 virtual fp_Page * getPage(void) { return m_pPage;} 00078 void setPage(fp_Page * pPage); 00079 fl_DocSectionLayout * getDocSectionLayout(void); 00080 UT_uint32 getPID(void); 00081 private: 00082 fp_Page * m_pPage; 00083 UT_sint32 m_iLabelWidth; 00084 UT_sint32 m_iXLabel; 00085 UT_sint32 m_iYLabel; 00086 }; 00087 00088 00089 class ABI_EXPORT fp_EndnoteContainer : public fp_VerticalContainer 00090 { 00091 public: 00092 fp_EndnoteContainer(fl_SectionLayout* pSectionLayout); 00093 virtual ~fp_EndnoteContainer(); 00094 UT_sint32 getValue(void); 00095 void layout(void); 00096 virtual bool isVBreakable(void) {return false;} 00097 virtual void clearScreen(void); 00098 virtual void draw(dg_DrawArgs*); 00099 virtual void draw(GR_Graphics*) {} 00100 virtual void setContainer(fp_Container * pContainer); 00101 virtual fp_Container * getNextContainerInSection(void) const; 00102 virtual fp_Container * getPrevContainerInSection(void) const; 00103 virtual fp_Page * getPage(void) { return fp_Container::getPage();} 00104 fp_EndnoteContainer * getLocalNext(void); 00105 fp_EndnoteContainer * getLocalPrev(void); 00106 fl_DocSectionLayout * getDocSectionLayout(void); 00107 virtual void setY(UT_sint32 iY); 00108 virtual UT_sint32 getY(void) const; 00109 00110 private: 00111 fp_EndnoteContainer * m_pLocalNext; 00112 fp_EndnoteContainer * m_pLocalPrev; 00113 UT_sint32 m_iY; 00114 bool m_bOnPage; 00115 bool m_bCleared; 00116 }; 00117 00118 #endif /* FOOTNOTECONTAINER_H */
1.5.5