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

ODe_DocumentData.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2005 INdT
00004  * Author: Daniel d'Andrada T. de Carvalho <daniel.carvalho@indt.org.br>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef ODE_DOCUMENTDATA_H_
00023 #define ODE_DOCUMENTDATA_H_
00024 
00025 // Internal includes
00026 #include "ODe_AutomaticStyles.h"
00027 #include "ODe_Styles.h"
00028 #include "ODe_FontFaceDecls.h"
00029 
00030 // External includes
00031 #include <gsf/gsf-output.h>
00032 #include <stdio.h>
00033 
00034 // AbiWord classes
00035 class PD_Document;
00036 
00037 
00042 class ODe_DocumentData {
00043 public:
00044 
00045     ODe_DocumentData(PD_Document* pAbiDoc);
00046     virtual ~ODe_DocumentData();
00047 
00048     bool init();
00049 
00050     // Do all necessary work before starting to listen the AbiWord document.
00051     bool doPreListeningWork();
00052 
00054     // Post listening methods
00055 
00056     // Do all necessary work after having read the AbiWord document.
00057     bool doPostListeningWork();
00058 
00059     bool writeStylesXML(GsfOutfile* pOdt) const;
00060     bool writeContentXML(GsfOutfile* pOdt);
00061 
00062     // <office:automatic-styles> for <office:document-styles>
00063     ODe_AutomaticStyles m_stylesAutoStyles;
00064 
00065     // <office:automatic-styles> for <office:document-content>
00066     ODe_AutomaticStyles m_contentAutoStyles;
00067 
00068     // <office:styles> (regular styles)
00069     ODe_Styles m_styles;
00070 
00071     // <office:master-styles> (master page styles)
00072     UT_GenericStringMap<ODe_Style_MasterPage*> m_masterStyles;
00073 
00074     ODe_FontFaceDecls m_stylesXMLFontDecls;
00075     ODe_FontFaceDecls m_contentXMLFontDecls;
00076 
00077     // Temp file holding the content of <office:text>
00078     //
00079     // It is used because I only have the complete <office:automatic-styles>
00080     // after having written the entire <office:text>, but, on
00081     // content.xml, <office:automatic-styles> must appear *before* <office:text>.
00082     GsfOutput* m_pOfficeTextTemp;
00083 
00084 private:
00085     void handleDefaultTabInterval(ODe_Style_Style* pStyle);
00086 
00087     PD_Document* m_pAbiDoc;
00088 };
00089 
00090 #endif /*ODE_DOCUMENTDATA_H_*/

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1