001package com.hfg.xml.msofficexml;
002
003
004import com.hfg.xml.msofficexml.xlsx.part.SsmlContentType;
005
006//------------------------------------------------------------------------------
007/**
008 Relationship types specific to OfficeOpenXML WordprocessingML.
009
010 @author J. Alex Taylor, hairyfatguy.com
011 */
012//------------------------------------------------------------------------------
013// com.hfg XML/HTML Coding Library
014//
015// This library is free software; you can redistribute it and/or
016// modify it under the terms of the GNU Lesser General Public
017// License as published by the Free Software Foundation; either
018// version 2.1 of the License, or (at your option) any later version.
019//
020// This library is distributed in the hope that it will be useful,
021// but WITHOUT ANY WARRANTY; without even the implied warranty of
022// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
023// Lesser General Public License for more details.
024//
025// You should have received a copy of the GNU Lesser General Public
026// License along with this library; if not, write to the Free Software
027// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
028//
029// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
030// jataylor@hairyfatguy.com
031//------------------------------------------------------------------------------
032
033public class RelationshipType
034{
035   public static final RelationshipType ACTIVEX_CONTROL       = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/activeXControl");
036   public static final RelationshipType CF_CHUNK              = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/cfChunk");
037   public static final RelationshipType CHART                 = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/chart");
038//   public static final RelationshipType COMMENTS              = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/comments");
039   public static final RelationshipType COMMENTS              = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments");
040   public static final RelationshipType CORE_PROPERTIES       = new RelationshipType("http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties").setContentType(OfficeOpenXMLContentType.CORE_PROPERTIES);
041   public static final RelationshipType DATA_STORE_ITEM       = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/dataStoreItem");
042   public static final RelationshipType DIAGRAM               = new RelationshipType("http://schemas.microsoft.com/office/2005/relationships/diagram");
043   public static final RelationshipType DIAGRAM_DATA          = new RelationshipType("http://schemas.microsoft.com/office/2005/relationships/diagramData");
044   public static final RelationshipType DIAGRAM_STYLE         = new RelationshipType("http://schemas.microsoft.com/office/2005/relationships/diagramStyle");
045   public static final RelationshipType DIAGRAM_COLOR_TRANS   = new RelationshipType("http://schemas.microsoft.com/office/2005/relationships/diagramColorTrans");
046   public static final RelationshipType DIAGRAM_DEFINITION    = new RelationshipType("http://schemas.microsoft.com/office/2005/relationships/diagramDefinition");
047   public static final RelationshipType DOC_PROPS_APP         = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/docPropsApp");
048   public static final RelationshipType DOC_PROPS_CUSTOM      = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/docPropsCustom");
049   public static final RelationshipType DOCUMENT_THUMBNAIL    = new RelationshipType("http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail");
050   public static final RelationshipType DRAWING               = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing").setContentType(OfficeOpenXMLContentType.DRAWING);
051   public static final RelationshipType E1_OBJECT             = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/e1Object");
052   public static final RelationshipType E2_OBJECT             = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/e2Object");
053   public static final RelationshipType EMBEDDED_FONT         = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/embeddedFont");
054   public static final RelationshipType EMBEDDED_METRO_OBJECT = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/embeddedMetroObject");
055   public static final RelationshipType FOOTER                = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer");
056   public static final RelationshipType GLOSSARY_DOC          = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/glossaryDoc");
057   public static final RelationshipType HEADER                = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/header");
058   public static final RelationshipType HYPERLINK             = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink");
059//   public static final RelationshipType IMAGE                 = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/image");
060   public static final RelationshipType IMAGE                 = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image");
061   public static final RelationshipType LAYOUT                = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/layout");
062   public static final RelationshipType MOVIE                 = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/movie");
063   public static final RelationshipType NOTES_SLIDE           = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/notesslide");
064   public static final RelationshipType NUMBERING             = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering");
065   public static final RelationshipType OFFICE_DOCUMENT       = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument");
066   public static final RelationshipType OLE_OBJECT            = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/oleObject");
067   public static final RelationshipType SETTINGS              = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings");
068   public static final RelationshipType SLIDE                 = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/slide");
069   public static final RelationshipType SLIDE_MASTER          = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/slidemaster");
070   public static final RelationshipType SOUND                 = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/sound");
071   public static final RelationshipType STYLES                = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles");
072   public static final RelationshipType STYLESHEET            = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/styleSheet");
073   public static final RelationshipType SUB_DOCUMENT          = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument");
074//   public static final RelationshipType SUB_DOCUMENT          = new RelationshipType("http://purl.oclc.org/ooxml/officeDocument/relationships/subDocument,");
075   public static final RelationshipType TABLE                 = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/table").setContentType(SsmlContentType.TABLE);
076   public static final RelationshipType THEME                 = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme").setContentType(OfficeOpenXMLContentType.THEME);
077   public static final RelationshipType USER_XML_DATA         = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/userXmlData");
078   public static final RelationshipType VBA_PROJECT           = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/vbaProject");
079   public static final RelationshipType WORD_VBA_DATA         = new RelationshipType("http://schemas.microsoft.com/office/2006/relationships/wordVbaData");
080   public static final RelationshipType WORKSHEET             = new RelationshipType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet").setContentType(SsmlContentType.WORKSHEET);
081
082
083
084   private String mValue;
085   private OfficeOpenXMLContentType mContentType;
086
087   //---------------------------------------------------------------------------
088   protected RelationshipType(String inValue)
089   {
090      mValue = inValue;
091   }
092
093   //---------------------------------------------------------------------------
094   public String toString()
095   {
096      return mValue;
097   }
098
099   //---------------------------------------------------------------------------
100   public RelationshipType setContentType(OfficeOpenXMLContentType inValue)
101   {
102      mContentType = inValue;
103      return this;
104   }
105   //---------------------------------------------------------------------------
106   public OfficeOpenXMLContentType getContentType()
107   {
108      return mContentType;
109   }
110
111
112
113
114
115
116
117
118
119
120}