• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

fp_FootnoteContainer.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 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) const { 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        setY(UT_sint32 iY);
00075     virtual void        setContainer(fp_Container * pContainer);
00076     virtual fp_Container * getNextContainerInSection(void) const;
00077     virtual fp_Container * getPrevContainerInSection(void) const;
00078     virtual fp_Page *   getPage(void) const { return m_pPage;}
00079     void                setPage(fp_Page * pPage);
00080     fl_DocSectionLayout * getDocSectionLayout(void);
00081     UT_uint32           getPID(void);
00082 private:
00083     fp_Page * m_pPage;
00084     UT_sint32 m_iLabelWidth;
00085     UT_sint32 m_iXLabel;
00086     UT_sint32 m_iYLabel;
00087 };
00088 
00089 
00090 class ABI_EXPORT fp_EndnoteContainer : public fp_VerticalContainer
00091 {
00092 public:
00093     fp_EndnoteContainer(fl_SectionLayout* pSectionLayout);
00094     virtual ~fp_EndnoteContainer();
00095     UT_sint32           getValue(void);
00096     void                layout(void);
00097     virtual bool        isVBreakable(void) {return false;}
00098     virtual void        clearScreen(void);
00099     virtual void        draw(dg_DrawArgs*);
00100     virtual void        draw(GR_Graphics*) {}
00101     virtual void        setContainer(fp_Container * pContainer);
00102     virtual fp_Container * getNextContainerInSection(void) const;
00103     virtual fp_Container * getPrevContainerInSection(void) const;
00104     virtual fp_Page *   getPage(void) const { return fp_Container::getPage();}
00105     fp_EndnoteContainer * getLocalNext(void);
00106     fp_EndnoteContainer * getLocalPrev(void);
00107     fl_DocSectionLayout * getDocSectionLayout(void);
00108     virtual void        setY(UT_sint32 iY);
00109     virtual UT_sint32   getY(void) const;
00110 
00111 private:
00112     fp_EndnoteContainer * m_pLocalNext;
00113     fp_EndnoteContainer * m_pLocalPrev;
00114     UT_sint32             m_iY;
00115     bool                  m_bOnPage;
00116     bool                  m_bCleared;
00117 };
00118 
00119 #endif /* FOOTNOTECONTAINER_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1