<!--
	========================================================================

	XML Schema for Scribus 1.3.4 (document node)

	$Date: 2008-03-01 23:44:33 +0100 (Sa, 01 Mrz 2008) $
	$Revision: 1234 $
	$URL: svn+ssh://zmag.de/home/timo/svn/diplomarbeit/code/one-way-editing/trunk/schema/document.xsd $

	Timo Stollenwerk | timo@zmag.de

    ========================================================================
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<xsd:include schemaLocation="object.xsd"/>

	<!-- =================================================================== -->
	<!-- SCRIBUS ROOT                                                        -->
	<!-- =================================================================== -->
	<xsd:element name="SCRIBUSUTF8NEW" type="ScribusType"/>

	<!-- =================================================================== -->
	<!-- SCRIBUS TYPE                                                        -->
	<!-- =================================================================== -->
	<xsd:complexType name="ScribusType">
    	<xsd:sequence>
	        <xsd:element name="DOCUMENT" type="DocumentType"/>
    	</xsd:sequence>
        <xsd:anyAttribute processContents="skip" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!-- DOCUMENT TYPE                                                       -->
	<!-- =================================================================== -->
	<!-- Scribus134Format::saveFile -->
	<xsd:complexType name="DocumentType">

    	<xsd:sequence>
    		<xsd:element name="CheckProfile" type="CheckProfileType" maxOccurs="unbounded" />
    		<!-- Linestyles -->
    		<!-- Javascripts -->
			<!-- Bookmarks -->
    		<xsd:element name="COLOR" maxOccurs="unbounded" />
    		<xsd:element name="STYLE" maxOccurs="unbounded" />
    		<xsd:element name="CHARSTYLE" maxOccurs="unbounded" />
    		<xsd:element name="LAYERS" maxOccurs="unbounded" />
    		<xsd:element name="Printer" />
    		<xsd:element name="PDF" />
    		<xsd:element name="DocItemAttributes" />
    		<xsd:element name="TablesOfContents" />
    		<xsd:element name="PageSets" />
    		<xsd:element name="Sections" />
			<xsd:element name="Pattern" type="PatternType" minOccurs="0" />
    		<!-- Content: Scribus134Format::writeContent -->
			<xsd:element name="MASTERPAGE" type="PageType" />
			<xsd:element name="PAGE" type="PageType" />
    		<xsd:choice minOccurs="0" maxOccurs="unbounded">
				<!-- Scribus134Format::WriteObjects -->
				<xsd:element name="MASTEROBJECT" type="ObjectType" />
				<xsd:element name="PAGEOBJECT" type="ObjectType" />
				<xsd:element name="FRAMEOBJECT" type="ObjectType" />
				<xsd:element name="PatternItem" type="ObjectType" />
    		</xsd:choice>
    		<!-- <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="skip" /> -->
	    </xsd:sequence>

		<xsd:attribute name="ANZPAGES" type="xsd:int" use="required" />
		<xsd:attribute name="PAGEWIDTH" type="xsd:string" use="required" />
		<xsd:attribute name="PAGEHEIGHT" type="xsd:string" use="required" />
		<xsd:attribute name="BORDERLEFT" type="xsd:int" use="required" />
		<xsd:attribute name="BORDERRIGHT" type="xsd:int" use="required" />
		<xsd:attribute name="BORDERTOP" type="xsd:int" use="required" />
		<xsd:attribute name="BORDERBOTTOM" type="xsd:int" use="required" />
		<xsd:attribute name="BleedTop" type="xsd:int" use="required" />
		<xsd:attribute name="BleedLeft" type="xsd:int" use="required" />
		<xsd:attribute name="BleedRight" type="xsd:int" use="required" />
		<xsd:attribute name="BleedBottom" type="xsd:int" use="required" />
		<xsd:attribute name="ORIENTATION" type="xsd:string" use="required" />
		<xsd:attribute name="PAGESIZE" type="xsd:string" use="required" />
		<xsd:attribute name="FIRSTNUM" type="xsd:string" use="required" />
		<xsd:attribute name="BOOK" type="xsd:string" use="required" />
		<xsd:attribute name="AUTOTEXT" type="xsd:string" fixed="1"/><!-- if(m_Doc->usesAutomaticTextFrames()) -->
		<xsd:attribute name="AUTOSPALTEN" type="xsd:string" use="required" />
		<xsd:attribute name="ABSTSPALTEN" type="xsd:string" use="required" />
		<xsd:attribute name="UNITS" type="xsd:string" use="required" />
		<xsd:attribute name="DFONT" type="xsd:string" use="required" />
		<xsd:attribute name="DSIZE" type="xsd:string" use="required" />
		<xsd:attribute name="DCOL" type="xsd:string" use="required" />
		<xsd:attribute name="DGAP" type="xsd:string" use="required" />
		<xsd:attribute name="TabFill" type="xsd:string" use="required" />
		<xsd:attribute name="TabWidth" type="xsd:string" use="required" />
		<xsd:attribute name="AUTHOR" type="xsd:string" use="required" />
		<xsd:attribute name="COMMENTS" type="xsd:string" use="required" />
		<xsd:attribute name="KEYWORDS" type="xsd:string" use="required" />
		<xsd:attribute name="PUBLISHER" type="xsd:string" use="required" />
		<xsd:attribute name="DOCDATE" type="xsd:string" use="required" />
		<xsd:attribute name="DOCTYPE" type="xsd:string" use="required" />
		<xsd:attribute name="DOCFORMAT" type="xsd:string" use="required" />
		<xsd:attribute name="DOCIDENT" type="xsd:string" use="required" />
		<xsd:attribute name="DOCSOURCE" type="xsd:string" use="required" />
		<xsd:attribute name="DOCLANGINFO" type="xsd:string" use="required" />
		<xsd:attribute name="DOCRELATION" type="xsd:string" use="required" />
		<xsd:attribute name="DOCCOVER" type="xsd:string" use="required" />
		<xsd:attribute name="DOCRIGHTS" type="xsd:string" use="required" />
		<xsd:attribute name="DOCCONTRIB" type="xsd:string" use="required" />
		<xsd:attribute name="TITLE" type="xsd:string" use="required" />
		<xsd:attribute name="VHOCH" type="xsd:string" use="required" />
		<xsd:attribute name="VHOCHSC" type="xsd:string" use="required" />
		<xsd:attribute name="VTIEF" type="xsd:string" use="required" />
		<xsd:attribute name="VTIEFSC" type="xsd:string" use="required" />
		<xsd:attribute name="VKAPIT" type="xsd:string" use="required" />
		<xsd:attribute name="BASEGRID" type="xsd:string" use="required" />
		<xsd:attribute name="BASEO" type="xsd:string" use="required" />
		<xsd:attribute name="AUTOL" type="xsd:string" use="required" />
		<xsd:attribute name="UnderlinePos" type="xsd:string" use="required" />
		<xsd:attribute name="UnderlineWidth" type="xsd:string" use="required" />
		<xsd:attribute name="StrikeThruPos" type="xsd:string" use="required" />
		<xsd:attribute name="StrikeThruWidth" type="xsd:string" use="required" />
		<xsd:attribute name="GROUPC" type="xsd:string" use="required" />
		<xsd:attribute name="HCMS" type="xsd:string" use="required" />
		<xsd:attribute name="DPSo" type="xsd:string" use="required" />
		<xsd:attribute name="DPSFo" type="xsd:string" use="required" />
		<xsd:attribute name="DPuse" type="xsd:string" use="required" />
		<xsd:attribute name="DPgam" type="xsd:string" use="required" />
		<xsd:attribute name="DPbla" type="xsd:string" use="required" />
		<xsd:attribute name="DPMo" type="xsd:string" use="required" />
		<xsd:attribute name="DPPr" type="xsd:string" use="required" />
		<xsd:attribute name="DPIn" type="xsd:string" use="required" />
		<xsd:attribute name="DPInCMYK" type="xsd:string" use="required" />
		<xsd:attribute name="DPIn2" type="xsd:string" use="required" />
		<xsd:attribute name="DPIn3" type="xsd:string" use="required" />
		<xsd:attribute name="DISc" type="xsd:string" use="required" />
		<xsd:attribute name="DIIm" type="xsd:string" use="required" />
		<xsd:attribute name="ALAYER" type="xsd:string" use="required" />
		<xsd:attribute name="LANGUAGE" type="xsd:string" use="required" />
		<xsd:attribute name="MINWORDLEN" type="xsd:string" use="required" />
		<xsd:attribute name="HYCOUNT" type="xsd:string" use="required" />
		<xsd:attribute name="AUTOMATIC" type="xsd:string" use="required" />
		<xsd:attribute name="AUTOCHECK" type="xsd:string" use="required" />
		<xsd:attribute name="GUIDELOCK" type="xsd:string" use="required" />
		<xsd:attribute name="SnapToGuides" type="xsd:string" use="required" />
		<xsd:attribute name="SnapToGrid" type="xsd:string" use="required" />
		<xsd:attribute name="MINGRID" type="xsd:string" use="required" />
		<xsd:attribute name="MAJGRID" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWGRID" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWGUIDES" type="xsd:string" use="required" />
		<xsd:attribute name="showcolborders" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWFRAME" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWLAYERM" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWMARGIN" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWBASE" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWPICT" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWControl" type="xsd:string" use="required" />
		<xsd:attribute name="SHOWLINK" type="xsd:string" use="required" />
		<xsd:attribute name="rulerMode" type="xsd:string" use="required" />
		<xsd:attribute name="showrulers" type="xsd:string" use="required" />
		<xsd:attribute name="showBleed" type="xsd:string" use="required" />
		<xsd:attribute name="rulerXoffset" type="xsd:string" use="required" />
		<xsd:attribute name="rulerYoffset" type="xsd:string" use="required" />
		<xsd:attribute name="GuideRad" type="xsd:string" use="required" />
		<xsd:attribute name="GRAB" type="xsd:string" use="required" />
		<xsd:attribute name="POLYC" type="xsd:string" use="required" />
		<xsd:attribute name="POLYF" type="xsd:string" use="required" />
		<xsd:attribute name="POLYR" type="xsd:string" use="required" />
		<xsd:attribute name="POLYFD" type="xsd:string" use="required" />
		<xsd:attribute name="POLYS" type="xsd:string" use="required" />
		<xsd:attribute name="AutoSave" type="xsd:string" use="required" />
		<xsd:attribute name="AutoSaveTime" type="xsd:string" use="required" />
		<xsd:attribute name="ScratchBottom" type="xsd:string" use="required" />
		<xsd:attribute name="ScratchLeft" type="xsd:string" use="required" />
		<xsd:attribute name="ScratchRight" type="xsd:string" use="required" />
		<xsd:attribute name="ScratchTop" type="xsd:string" use="required" />
		<xsd:attribute name="StartArrow" type="xsd:string" use="required" />
		<xsd:attribute name="EndArrow" type="xsd:string" use="required" />
		<xsd:attribute name="PEN" type="xsd:string" use="required" />
		<xsd:attribute name="BRUSH" type="xsd:string" use="required" />
		<xsd:attribute name="PENLINE" type="xsd:string" use="required" />
		<xsd:attribute name="PENTEXT" type="xsd:string" use="required" />
		<xsd:attribute name="StrokeText" type="xsd:string" use="required" />
		<xsd:attribute name="TextBackGround" type="xsd:string" use="required" />
		<xsd:attribute name="TextLineColor" type="xsd:string" use="required" />
		<xsd:attribute name="TextBackGroundShade" type="xsd:string" use="required" />
		<xsd:attribute name="TextLineShade" type="xsd:string" use="required" />
		<xsd:attribute name="TextPenShade" type="xsd:string" use="required" />
		<xsd:attribute name="TextStrokeShade" type="xsd:string" use="required" />
		<xsd:attribute name="STIL" type="xsd:string" use="required" />
		<xsd:attribute name="STILLINE" type="xsd:string" use="required" />
		<xsd:attribute name="WIDTH" type="xsd:string" use="required" />
		<xsd:attribute name="WIDTHLINE" type="xsd:string" use="required" />
		<xsd:attribute name="PENSHADE" type="xsd:string" use="required" />
		<xsd:attribute name="LINESHADE" type="xsd:string" use="required" />
		<xsd:attribute name="BRUSHSHADE" type="xsd:string" use="required" />
		<xsd:attribute name="MAGMIN" type="xsd:string" use="required" />
		<xsd:attribute name="MAGMAX" type="xsd:string" use="required" />
		<xsd:attribute name="MAGSTEP" type="xsd:string" use="required" />
		<xsd:attribute name="CPICT" type="xsd:string" use="required" />
		<xsd:attribute name="PICTSHADE" type="xsd:string" use="required" />
		<xsd:attribute name="PICTSCX" type="xsd:string" use="required" />
		<xsd:attribute name="PICTSCY" type="xsd:string" use="required" />
		<xsd:attribute name="PSCALE" type="xsd:string" use="required" />
		<xsd:attribute name="PASPECT" type="xsd:string" use="required" />
		<xsd:attribute name="EmbeddedPath" type="xsd:string" use="required" />
		<xsd:attribute name="HalfRes" type="xsd:string" use="required" />
		<xsd:attribute name="dispX" type="xsd:string" use="required" />
		<xsd:attribute name="dispY" type="xsd:string" use="required" />
		<xsd:attribute name="constrain" type="xsd:string" use="required" />
		<xsd:attribute name="MINORC" type="xsd:string" use="required" />
		<xsd:attribute name="MAJORC" type="xsd:string" use="required" />
		<xsd:attribute name="GuideC" type="xsd:string" use="required" />
		<xsd:attribute name="BaseC" type="xsd:string" use="required" />
		<xsd:attribute name="GuideZ" type="xsd:string" use="required" />
		<xsd:attribute name="BACKG" type="xsd:string" use="required" />
		<xsd:attribute name="PAGEC" type="xsd:string" use="required" />
		<xsd:attribute name="MARGC" type="xsd:string" use="required" />
		<xsd:attribute name="RANDF" type="xsd:string" use="required" />
		<xsd:attribute name="currentProfile" type="xsd:string" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!-- DOCUMENT                                                            -->
	<!-- =================================================================== -->
	<!-- Scribus134Format::writeCheckerProfiles -->
	<xsd:complexType name="CheckProfileType">
		<xsd:attribute name="Name" use="required" />
		<xsd:attribute name="ignoreErrors" use="required" />
		<xsd:attribute name="autoCheck" use="required" />
		<xsd:attribute name="checkGlyphs" use="required" />
		<xsd:attribute name="checkOrphans" use="required" />
		<xsd:attribute name="checkOverflow" use="required" />
		<xsd:attribute name="checkPictures" use="required" />
		<xsd:attribute name="checkResolution" use="required" />
		<xsd:attribute name="checkTransparency" use="required" />
		<xsd:attribute name="minResolution" use="required" />
		<xsd:attribute name="maxResolution" use="required" />
		<xsd:attribute name="checkAnnotations" use="required" />
		<xsd:attribute name="checkRasterPDF" use="required" />
		<xsd:attribute name="checkForGIF" use="required" />
		<xsd:attribute name="ignoreOffLayers" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!-- PATTERN                                                             -->
	<!-- =================================================================== -->
	<!-- SScribus134Format::writePatterns -->
	<xsd:complexType name="PatternType">
		<!-- ToDo: WriteObjects(m_Doc, &docu, &pat, 0, 0, 3, &pa.items); -->
		<xsd:attribute name="Name" type="xsd:string" use="required" />
		<xsd:attribute name="width" type="xsd:string" use="required" />
		<xsd:attribute name="height" type="xsd:string" use="required" />
		<xsd:attribute name="scaleX" type="xsd:string" use="required" />
		<xsd:attribute name="scaleY" type="xsd:string" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!-- PAGE TYPE (MASTERPAGE & PAGE)                                       -->
	<!-- =================================================================== -->
	<!-- Scribus134Format::WritePages -->
	<xsd:complexType name="PageType">
		<xsd:attribute name="PAGEXPOS" type="xsd:string" use="required" />
		<xsd:attribute name="PAGEYPOS" type="xsd:string" use="required" />
		<xsd:attribute name="PAGEWIDTH" type="xsd:string" use="required" />
		<xsd:attribute name="PAGEHEIGHT" type="xsd:string" use="required" />
		<xsd:attribute name="BORDERLEFT" type="xsd:string" use="required" />
		<xsd:attribute name="BORDERRIGHT" type="xsd:string" use="required" />
		<xsd:attribute name="BORDERTOP" type="xsd:string" use="required" />
		<xsd:attribute name="BORDERBOTTOM" type="xsd:string" use="required" />
		<xsd:attribute name="NUM" type="xsd:string" use="required" />
		<xsd:attribute name="NAM" type="xsd:string" use="required" />
		<xsd:attribute name="MNAM" type="xsd:string" use="required" />
		<xsd:attribute name="Size" type="xsd:string" use="required" />
		<xsd:attribute name="Orientation" type="xsd:string" use="required" />
		<xsd:attribute name="LEFT" type="xsd:string" use="required" />
		<xsd:attribute name="VerticalGuides" type="xsd:string" use="required" />
		<xsd:attribute name="HorizontalGuides" type="xsd:string" use="required" />
		<xsd:attribute name="AGhorizontalAutoGap" type="xsd:string" use="required" />
		<xsd:attribute name="AGverticalAutoGap" type="xsd:string" use="required" />
		<xsd:attribute name="AGhorizontalAutoCount" type="xsd:string" use="required" />
		<xsd:attribute name="AGverticalAutoCount" type="xsd:string" use="required" />
		<xsd:attribute name="AGhorizontalAutoRefer" type="xsd:string" use="required" />
		<xsd:attribute name="AGverticalAutoRefer" type="xsd:string" use="required" />
		<xsd:attribute name="AGSelection" type="xsd:string" use="required" />
	</xsd:complexType>

</xsd:schema>