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

	XML Schema for Scribus 1.3.4 (object 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/object.xsd $

	Timo Stollenwerk | timo@zmag.de

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

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

	<!-- =================================================================== -->
	<!-- OBJECT TYPE (MASTEROBJECT, PAGEOBJECT, FRAMEOBJECT & PatternItem    -->
	<!-- =================================================================== -->
	<!-- Scribus134Format::WriteObjects -->
	<xsd:complexType name="ObjectType">

		<xsd:sequence>
			<xsd:sequence maxOccurs="unbounded">
		        <xsd:element name="ITEXT" minOccurs="0" maxOccurs="unbounded" type="ITextType" />
		        <xsd:element name="para" minOccurs="0" maxOccurs="unbounded" type="ParaType" />
		    </xsd:sequence>
	        <xsd:element name="PageItemAttributes" minOccurs="0" type="xsd:string" />
    	</xsd:sequence>

    	<!-- FUNKTION: Scribus134Format::WriteObjects -->
		<!-- done 2008/02/20 -->
		<xsd:attribute name="OnMasterPage" use="required" />
		<xsd:attribute name="ImageClip" use="required" />
		<xsd:attribute name="ImageRes" use="required" />
		<xsd:attribute name="isInline" use="required" />
		<xsd:attribute name="fillRule" use="required" />
		<xsd:attribute name="doOverprint" use="required" />
		<xsd:attribute name="gXpos" use="required" />
		<xsd:attribute name="gYpos" use="required" />
		<xsd:attribute name="gWidth" use="required" />
		<xsd:attribute name="gHeight" use="required" />
		<xsd:attribute name="pattern" /><!-- if (item->GrType != 0) && if (item->GrType == 8) -->
		<xsd:attribute name="pScaleX" /><!-- if (item->GrType != 0) && if (item->GrType == 8) -->
		<xsd:attribute name="pScaleY" /><!-- if (item->GrType != 0) && if (item->GrType == 8) -->
		<xsd:attribute name="pOffsetX" /><!-- if (item->GrType != 0) && if (item->GrType == 8) -->
		<xsd:attribute name="pOffsetY" /><!-- if (item->GrType != 0) && if (item->GrType == 8) -->
		<xsd:attribute name="pRotation" /><!-- if (item->GrType != 0) && if (item->GrType == 8) -->
		<!-- Element: CSTOP -->
		<xsd:attribute name="GRSTARTX" /><!-- if (item->GrType != 0) && if not (item->GrType == 8) -->
		<xsd:attribute name="GRSTARTY" /><!-- if (item->GrType != 0) && if not (item->GrType == 8) -->
		<xsd:attribute name="GRENDX" /><!-- if (item->GrType != 0) && if not (item->GrType == 8) -->
		<xsd:attribute name="GRENDY" /><!-- if (item->GrType != 0) && if not (item->GrType == 8) -->
		<!-- Element: ImageEffect -->
		<!-- Element: Tabs -->
		<xsd:attribute name="Code" /><!-- if (item->effectsInUse.count() != 0) -->
		<xsd:attribute name="Param" /><!-- if (item->effectsInUse.count() != 0) -->
		<!-- Element: PSDLayer -->
		<xsd:attribute name="PSTYLE" /><!-- if (item->itemText.defaultStyle().hasParent()) -->
		<xsd:attribute name="ALIGN" /><!-- if (! item->itemText.defaultStyle().isInhAlignment()) -->
		<xsd:attribute name="BOOKMARK" use="required" />
		<xsd:attribute name="BACKITEM" use="required" />
		<xsd:attribute name="NEXTITEM" use="required" />
		<xsd:attribute name="LAYER" use="required" />
		<!-- Element: ItemAttribute -->

		<!-- FUNKTION: Scribus134Format::SetItemProps -->
		<!-- done 2008/02/20 -->
		<xsd:attribute name="OwnPage" /><!-- if (newFormat) -->
		<xsd:attribute name="PTYPE" use="required" />
		<xsd:attribute name="XPOS" use="required" />
		<xsd:attribute name="YPOS" use="required" />
		<xsd:attribute name="WIDTH" use="required" />
		<xsd:attribute name="HEIGHT" use="required" />
		<xsd:attribute name="RADRECT" use="required" />
		<xsd:attribute name="FRTYPE" use="required" />
		<xsd:attribute name="CLIPEDIT" use="required" />
		<xsd:attribute name="PWIDTH" use="required" />
		<xsd:attribute name="PCOLOR" use="required" />
		<xsd:attribute name="PCOLOR2" use="required" />
		<xsd:attribute name="TXTFILL" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhFillColor()) -->
		<xsd:attribute name="TXTSTROKE" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhStrokeColor()) -->
		<xsd:attribute name="TXTSTRSH" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhStrokeShade()) -->
		<xsd:attribute name="TXTFILLSH" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhFillShade()) -->
		<xsd:attribute name="TXTSCALE" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhScaleH()) -->
		<xsd:attribute name="TXTSCALEV" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhScaleV()) -->
		<xsd:attribute name="TXTBASE" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhBaselineOffset()) -->
		<xsd:attribute name="TXTSHX" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhShadowXOffset()) -->
		<xsd:attribute name="TXTSHY" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhShadowYOffset()) -->
		<xsd:attribute name="TXTOUT" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhOutlieWidth()) -->
		<xsd:attribute name="TXTULP" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhUnderlineOffset()) -->
		<xsd:attribute name="TXTULW" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhUnderlineWidth()) -->
		<xsd:attribute name="TXTSTP" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhStrikethruOffset()) -->
		<xsd:attribute name="TXTSTW" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhStrikethruWidth()) -->
		<xsd:attribute name="TXTKERN" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhTracking()) -->
		<xsd:attribute name="wordTrack" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhWordTracking()) -->
		<xsd:attribute name="MinWordTrack" /><!-- if ( ! item->itemText.defaultStyle().isInhMinWordTracking()) -->
		<xsd:attribute name="MinGlyphShrink" /><!-- if ( ! item->itemText.defaultStyle().isInhMinGlyphExtension()) -->
		<xsd:attribute name="MaxGlyphExtend" /><!-- if ( ! item->itemText.defaultStyle().isInhMaxGlyphExtension()) -->
		<xsd:attribute name="OpticalMargins" /><!-- if ( ! item->itemText.defaultStyle().isInhOpticalMargins()) -->
		<xsd:attribute name="HyphenationMode" /><!-- if ( ! item->itemText.defaultStyle().isInhHyphenationMode()) -->
		<xsd:attribute name="COLUMNS" use="required" />
		<xsd:attribute name="COLGAP" use="required" />
		<xsd:attribute name="NAMEDLST" use="required" />
		<xsd:attribute name="SHADE" use="required" />
		<xsd:attribute name="SHADE2" use="required" />
		<xsd:attribute name="GRTYP" use="required" />
		<xsd:attribute name="ROT" use="required" />
		<xsd:attribute name="PLINEART" use="required" />
		<xsd:attribute name="PLINEEND" use="required" />
		<xsd:attribute name="PLINEJOIN" use="required" />
		<xsd:attribute name="LINESP" /><!-- if ( ! item->itemText.defaultStyle().isInhLineSpacing()) -->
		<xsd:attribute name="LINESPMode" /><!-- if ( ! item->itemText.defaultStyle().isInhLineSpacingMode()) -->
		<xsd:attribute name="LOCALSCX" use="required" />
		<xsd:attribute name="LOCALSCY" use="required" />
		<xsd:attribute name="LOCALX" use="required" />
		<xsd:attribute name="LOCALY" use="required" />
		<xsd:attribute name="PICART" use="required" />
		<xsd:attribute name="PLTSHOW" use="required" />
		<xsd:attribute name="BASEOF" use="required" />
		<xsd:attribute name="textPathType" use="required" />
		<xsd:attribute name="textPathFlipped" use="required" />
		<xsd:attribute name="FLIPPEDH" use="required" />
		<xsd:attribute name="FLIPPEDV" use="required" />
		<xsd:attribute name="IFONT" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhFont()) -->
		<xsd:attribute name="ISIZE" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhFontSize()) -->
		<xsd:attribute name="SCALETYPE" use="required" />
		<xsd:attribute name="RATIO" use="required" />
		<xsd:attribute name="PRINTABLE" use="required" />
		<xsd:attribute name="ANNOTATION" use="required" />
		<xsd:attribute name="ANTYPE" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANACTION" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANEACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANXACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANDACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANFOACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANBLACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANKACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANFACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANVACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANCACT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANEXTERN" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANZIEL" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANACTYP" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANTOOLTIP" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANBWID" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANBSTY" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANFEED" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANFLAG" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANFONT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANFORMAT" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANROLL" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANDOWN" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANVIS" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANMC" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANCHK" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANAA" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANCHKS" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANBCOL" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANHTML" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANICON" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANPLACE" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANSCALE" /><!-- if(item->isAnnotation()) -->
		<xsd:attribute name="ANNAME" use="required" />
		<xsd:attribute name="TEXTFLOWMODE" use="required" />
		<xsd:attribute name="TEXTFLOW" use="required" />
		<xsd:attribute name="TEXTFLOW2" use="required" />
		<xsd:attribute name="TEXTFLOW3" use="required" />
		<xsd:attribute name="AUTOTEXT" use="required" />
		<xsd:attribute name="EXTRA" use="required" />
		<xsd:attribute name="TEXTRA" use="required" />
		<xsd:attribute name="BEXTRA" use="required" />
		<xsd:attribute name="REXTRA" use="required" />
		<xsd:attribute name="PFILE" use="required" />
		<xsd:attribute name="PFILE2" use="required" />
		<xsd:attribute name="PFILE3" use="required" />
		<xsd:attribute name="PRFILE" use="required" />
		<xsd:attribute name="EPROF" use="required" />
		<xsd:attribute name="IRENDER" use="required" />
		<xsd:attribute name="EMBEDDED" use="required" />
		<xsd:attribute name="LOCK" use="required" />
		<xsd:attribute name="LOCKR" use="required" />
		<xsd:attribute name="REVERS" use="required" />
		<xsd:attribute name="TransValue" use="required" />
		<xsd:attribute name="TransValueS" use="required" />
		<xsd:attribute name="TransBlend" use="required" />
		<xsd:attribute name="TransBlendS" use="required" />
		<xsd:attribute name="isTableItem" use="required" />
		<xsd:attribute name="TopLine" use="required" />
		<xsd:attribute name="LeftLine" use="required" />
		<xsd:attribute name="RightLine" use="required" />
		<xsd:attribute name="BottomLine" use="required" />
		<xsd:attribute name="TopLINK" /><!-- if (item->isTableItem) -->
		<xsd:attribute name="LeftLINK" /><!-- if (item->isTableItem) -->
		<xsd:attribute name="RightLINK" /><!-- if (item->isTableItem) -->
		<xsd:attribute name="isGroupControl" use="required" />
		<xsd:attribute name="groupsLastItem" /><!-- if (item->isGroupControl) && if (item->groupsLastItem != 0) -->
		<xsd:attribute name="NUMDASH" use="required" />
		<xsd:attribute name="DASHS" use="required" />
		<xsd:attribute name="DASHOFF" use="required" />
		<xsd:attribute name="NUMPO" use="required" />
		<xsd:attribute name="POCOOR" use="required" />
		<xsd:attribute name="NUMCO" use="required" />
		<xsd:attribute name="COCOOR" use="required" />
		<xsd:attribute name="NUMGROUP" use="required" />
		<xsd:attribute name="GROUPS" use="required" />
		<xsd:attribute name="LANGUAGE" /><!-- if ( ! item->itemText.defaultStyle().charStyle().isInhLanguage()) -->
		<xsd:attribute name="startArrowIndex" use="required" />
		<xsd:attribute name="endArrowIndex" use="required" />

	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  ITEXT                                                              -->
	<!-- =================================================================== -->
	<!-- Scribus134Format::writeITEXT -->
	<xsd:complexType name="ITextType">
		<xsd:attribute name="CH" />
		<xsd:attribute name="COBJ" />
		<xsd:attribute name="SHORTCUT" />
		<xsd:attribute name="CNAME" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  PARA                                                               -->
	<!-- =================================================================== -->
	<xsd:complexType name="ParaType">
		<xsd:attribute name="PSHORTCUT" />
		<xsd:attribute name="SHORTCUT" />
		<xsd:attribute name="CNAME" />
		<xsd:attribute name="PARENT" />
		<xsd:attribute name="NAME" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  CSTOP                                                              -->
	<!-- =================================================================== -->
	<xsd:complexType name="CSTOP">
		<xsd:attribute name="RAMP" use="required" />
		<xsd:attribute name="NAME" use="required" />
		<xsd:attribute name="SHADE" use="required" />
		<xsd:attribute name="TRANS" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  ImageEffect                                                        -->
	<!-- =================================================================== -->
	<xsd:complexType name="ImageEffect">
		<xsd:attribute name="Code" use="required" />
		<xsd:attribute name="Param" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  Tabs                                                               -->
	<!-- =================================================================== -->
	<xsd:complexType name="Tabs">
		<xsd:attribute name="Type" use="required" />
		<xsd:attribute name="Pos" use="required" />
		<xsd:attribute name="Fill" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  PSDLayer                                                           -->
	<!-- =================================================================== -->
	<xsd:complexType name="PSDLayer">
		<xsd:attribute name="Layer" use="required" />
		<xsd:attribute name="Visible" use="required" />
		<xsd:attribute name="useMask" use="required" />
		<xsd:attribute name="Opacity" use="required" />
		<xsd:attribute name="Blend" use="required" />
	</xsd:complexType>

	<!-- =================================================================== -->
	<!--  ItemAttribute                                                      -->
	<!-- =================================================================== -->
	<xsd:complexType name="ItemAttribute">
		<xsd:attribute name="Name" use="required" />
		<xsd:attribute name="Type" use="required" />
		<xsd:attribute name="Value" use="required" />
		<xsd:attribute name="Parameter" use="required" />
		<xsd:attribute name="Relationship" use="required" />
		<xsd:attribute name="RelationshipTo" use="required" />
		<xsd:attribute name="AutoAddTo" use="required" />
	</xsd:complexType>

</xsd:schema>