• 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., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 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     MATH_TAG
00080 };
00081 
00082 enum OXML_ElementType {
00083     BLOCK,
00084     SPAN,
00085     TABLE,
00086     LIST,
00087     ROW,
00088     IMAGE,
00089     CELL,
00090     HYPRLNK,
00091     BOOKMRK,
00092     FIELD,
00093     TEXTBOX,
00094     MATH
00095 };
00096 
00097 enum OXML_HeaderFooterType {
00098     DEFAULT_HDRFTR = 0,     //Make sure to define values as these will be used as array indices
00099     FIRSTPAGE_HDRFTR = 1,
00100     EVENPAGE_HDRFTR = 2
00101 };
00102 
00103 enum OXML_ColorName {
00104     DARK1 = 0, //Make sure to define starting value as these will be used as array indices
00105     LIGHT1,
00106     DARK2,
00107     LIGHT2,
00108     ACCENT1,
00109     ACCENT2,
00110     ACCENT3,
00111     ACCENT4,
00112     ACCENT5,
00113     ACCENT6,
00114     HYPERLINK,
00115     FOLLOWED_HYPERLINK
00116 };
00117 
00118 enum OXML_FontLevel {
00119     UNKNOWN_LEVEL,
00120     MAJOR_FONT,
00121     MINOR_FONT
00122 };
00123 
00124 enum OXML_CharRange {
00125     UNKNOWN_RANGE,
00126     ASCII_RANGE,
00127     HANSI_RANGE,
00128     COMPLEX_RANGE,
00129     EASTASIAN_RANGE
00130 };
00131 
00132 enum OXML_SectionBreakType {
00133     NO_BREAK,
00134     NEXTPAGE_BREAK,
00135     CONTINUOUS_BREAK,
00136     EVENPAGE_BREAK,
00137     ODDPAGE_BREAK
00138 };
00139 
00140 #endif //_OXML_TYPES_H_
00141 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1