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

OXML_Types.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiSource
00004  *
00005  * Copyright (C) 2007 Philippe Milot <PhilMilot@gmail.com>
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00020  * 02111-1307, USA.
00021  */
00022 
00023 #ifndef _OXML_TYPES_H_
00024 #define _OXML_TYPES_H_
00025 
00026 
00027 //There's probably a better way to do this...
00028 #define ALTERNATEFORMAT_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"
00029 #define COMMENTS_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"
00030 #define DOCSETTINGS_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"
00031 #define DOCUMENT_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
00032 #define ENDNOTES_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"
00033 #define FONTTABLE_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable"
00034 #define FOOTER_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"
00035 #define FOOTNOTES_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"
00036 #define GLOSSARY_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument"
00037 #define HEADER_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"
00038 #define NUMBERING_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"
00039 #define STYLES_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
00040 #define WEBSETTINGS_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings"
00041 #define IMAGE_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
00042 #define THEME_REL_TYPE "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"
00043 
00044 enum OXML_PartType {
00045     ROOT_PART,
00046     ALTERNATEFORMAT_PART,
00047     COMMENTS_PART,
00048     DOCSETTINGS_PART,
00049     DOCUMENT_PART,
00050     ENDNOTES_PART,
00051     FONTTABLE_PART,
00052     FOOTER_PART,
00053     FOOTNOTES_PART,
00054     GLOSSARY_PART,
00055     HEADER_PART,
00056     NUMBERING_PART,
00057     STYLES_PART,
00058     WEBSETTINGS_PART,
00059     IMAGE_PART,
00060     THEME_PART //At the end because this part is outside of WordprocessorML specs
00061 };
00062 
00063 enum OXML_ElementTag {
00064     P_TAG,  //More to come
00065     R_TAG,
00066     T_TAG,
00067     PG_BREAK,
00068     CL_BREAK,
00069     LN_BREAK,
00070     TBL_TAG,
00071     TR_TAG,
00072     TC_TAG,
00073     LST_TAG,
00074     IMG_TAG,
00075     HYPR_TAG,
00076     BOOK_TAG,
00077     FLD_TAG,
00078     TXTBX_TAG
00079 };
00080 
00081 enum OXML_ElementType {
00082     BLOCK,
00083     SPAN,
00084     TABLE,
00085     LIST,
00086     ROW,
00087     IMAGE,
00088     CELL,
00089     HYPRLNK,
00090     BOOKMRK,
00091     FIELD,
00092     TEXTBOX
00093 };
00094 
00095 enum OXML_HeaderFooterType {
00096     DEFAULT_HDRFTR = 0,     //Make sure to define values as these will be used as array indices
00097     FIRSTPAGE_HDRFTR = 1,
00098     EVENPAGE_HDRFTR = 2
00099 };
00100 
00101 enum OXML_ColorName {
00102     DARK1 = 0, //Make sure to define starting value as these will be used as array indices
00103     LIGHT1,
00104     DARK2,
00105     LIGHT2,
00106     ACCENT1,
00107     ACCENT2,
00108     ACCENT3,
00109     ACCENT4,
00110     ACCENT5,
00111     ACCENT6,
00112     HYPERLINK,
00113     FOLLOWED_HYPERLINK
00114 };
00115 
00116 enum OXML_FontLevel {
00117     UNKNOWN_LEVEL,
00118     MAJOR_FONT,
00119     MINOR_FONT
00120 };
00121 
00122 enum OXML_CharRange {
00123     UNKNOWN_RANGE,
00124     ASCII_RANGE,
00125     HANSI_RANGE,
00126     COMPLEX_RANGE,
00127     EASTASIAN_RANGE
00128 };
00129 
00130 enum OXML_SectionBreakType {
00131     NO_BREAK,
00132     NEXTPAGE_BREAK,
00133     CONTINUOUS_BREAK,
00134     EVENPAGE_BREAK,
00135     ODDPAGE_BREAK
00136 };
00137 
00138 #endif //_OXML_TYPES_H_
00139 

Generated on Sun May 27 2012 for AbiWord by  doxygen 1.7.1