<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
 * LICENCE[[
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1/CeCILL 2.O
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is kelis.fr code.
 *
 * The Initial Developer of the Original Code is
 * sylvain.spinelli@kelis.fr
 *
 * Portions created by the Initial Developer are Copyright (C) 2006
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * or the CeCILL Licence Version 2.0 (http://www.cecill.info/licences.en.html),
 * in which case the provisions of the GPL, the LGPL or the CeCILL are applicable
 * instead of those above. If you wish to allow use of your version of this file
 * only under the terms of either the GPL, the LGPL or the CeCILL, and not to allow
 * others to use your version of this file under the terms of the MPL, indicate
 * your decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL, the LGPL or the CeCILL. If you do not
 * delete the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL, the LGPL or the CeCILL.
 * ]]LICENCE
 */
-->
<!DOCTYPE window [
  <!ENTITY % appExtCommon SYSTEM "chrome://sc3packmodeling1/locale/common/widgets.dtd">
  %appExtCommon;
]>
<se:editor 	xmlns="http://www.w3.org/1999/xhtml"
			xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
			xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling"
			xmlns:se="http://www.utc.fr/ics/scenari/v3/editing"
			xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
			se:namespaces="true">
	<se:lib>
		<xul:attribute se:id="axis" se:bind="attribute" se:name="axis">
			<xul:wordsInput trim="true" validRegExp="^[a-zA-Z0-9]*$" autocompleteProviderXPath="id('axis')"/>
		</xul:attribute>
		<xul:attribute se:id="attCommonClass"  se:bind="attribute" se:name="sm:commonClass">
			<xul:wordsInput/>
		</xul:attribute>
		
		<xul:textnode se:id="Textnode" se:bind="text" se:show="ifExist">
			<xul:textpanelInput removable="true" filterspaces="false"/>
		</xul:textnode>
		<xul:element se:id="img" se:name="img" se:bind="element" forcefilled="true">
			<xul:atts>
				<xul:ptritem se:bind="attribute" se:name="sc:refUri" class="xmlview" notnull="true" regexpSgn=".*#Image\b.*"/>
				<xul:attribute se:bind="attribute" se:name="alt">
					<xul:wordsInput/>
				</xul:attribute>
				<se:ref se:refid="attCommonClass"/>
				<xul:attribute se:bind="attribute" se:show="ifExist">
					<xul:wordsInput/>
				</xul:attribute>
			</xul:atts>
		</xul:element>
		<se:template se:id="genEltAtts">
			<se:ref se:refid="attCommonClass"/>
			<xul:attribute se:bind="attribute" se:show="ifExist">
				<xul:wordsInput/>
			</xul:attribute>
			<!--
			<xul:genattr se:bind="attribute" se:show="ifExist">
				<xul:wordsInput/>
			</xul:genattr>
			<xul:insertAttr se:bind="current"/>
			-->
		</se:template>
	</se:lib>
	<xul:xmlview se:bind="document">
		<xul:wspInputHistoryProvider code="axisXhtml" id="axis"/>
		<xul:element se:name="sm:crossRefTableUiWidget" se:bind="element" se:declareNs="sc sm" insert="collapsed">
			<xul:atts>
				<xul:attribute se:name="code"  se:bind="attribute" se:mandat="true">
					<xul:wordsInput trim="true" notnull="true"/>
				</xul:attribute>
				<xul:attribute se:name="info" se:bind="attribute">
					<xul:wordsInput trim="true"/>
				</xul:attribute>
			</xul:atts>
			<xul:childs>
				<xul:element se:name="sm:refEntries" se:bind="element">
					<xul:atts>
						<xul:attribute se:name="key" se:bind="attribute" se:mandat="true">
							<xul:wordsInput trim="true" notnull="true"/>
						</xul:attribute>
					</xul:atts>
					<xul:childs>
						<xul:element se:name="sm:callableModel" se:bind="element" se:card="+"
							tooltipTag="Modèles correspondant aux entrées de la table.">
							<xul:atts>
								<xul:ptritem se:bind="plugin" se:attributes="sc:refUri" class="xmlview" notnull="true" regexpSgn=".*#Class\b[\w:]*:Content.*"/>
							</xul:atts>
						</xul:element>
						<xul:insert se:bind="current"/>
					</xul:childs>
				</xul:element>
				<xul:element se:name="sm:sortEntries" se:bind="element" se:card="?">
					<xul:childs>
						<xul:alternativeAlone se:bind="choice" se:defaultChild="-1" se:card="?">
							<xul:element se:name="sm:alphaNonCaseSensitive" se:bind="element">
								<xul:childs>
									<xul:alternativeAlone se:bind="choice">
										<xul:element se:name="sm:callEntryTitle" se:id="sm:callEntryTitle" se:bind="element" forcefilled="true">
											<xul:atts>
												<xul:attribute se:name="type" se:bind="attribute" se:mandat="true">
													<xul:choiceInput notnull="true">
														<xul:ciItem label="shortTitleText"/>
														<xul:ciItem label="fullTitleText"/>
													</xul:choiceInput>
												</xul:attribute>
												<se:ref se:refid="axis"/>
											</xul:atts>
										</xul:element>
										<xul:element se:name="sm:callEntryContent" se:id="sm:callEntryContent" se:bind="element" forcefilled="true">
											<xul:atts>
												<se:ref se:refid="axis"/>
											</xul:atts>
										</xul:element>
									</xul:alternativeAlone>
								</xul:childs>
							</xul:element>
						</xul:alternativeAlone>
					</xul:childs>
				</xul:element>
				<xul:element se:name="sm:filterEntries" se:bind="element" se:card="?">
					<xul:childs>
						<xul:element se:name="sm:callersFromDescendants" se:bind="element" se:card="?" se:show="ifExist" forcefilled="true" 
							tooltipTag="Entrées référencées dans les pages issues du contenu en cours ou d'un contenu descendant.">
							<xul:atts>
								<se:ref se:refid="axis"/>
							</xul:atts>
						</xul:element>
						<xul:insert se:bind="current"/>
					</xul:childs>
				</xul:element>
				<xul:element se:name="sm:content" se:bind="element">
					<xul:childs>
						<se:choice se:id="choiceContent" se:card="*" se:show="ifExist">
							<xul:element se:name="sm:forEntry" se:bind="element">
								<xul:childs>
									<se:choice se:id="choiceEntry" se:card="*" se:show="ifExist">
										<se:ref se:refid="sm:callEntryTitle"/>
										<se:ref se:refid="sm:callEntryContent"/>
										<xul:element se:name="sm:forCaller" se:bind="element">
											<xul:childs>
												<se:choice se:id="choiceCaller" se:card="*" se:show="ifExist">
													<xul:element se:name="sm:titlePageCaller" se:id="sm:titlePageCaller" se:bind="element" forcefilled="true"/>
													<xul:element se:name="sm:WLinkCaller" se:bind="element">
														<xul:atts>
															<se:ref se:refid="attCommonClass" se:name="commonClass"/>
														</xul:atts>
														<xul:childs>
															<xul:element se:name="sm:label" se:bind="element">
																<xul:childs>
																	<se:choice se:id="choiceLabelCaller" se:card="*" se:show="ifExist">
																		<se:ref se:refid="sm:titlePageCaller"/>
																		<se:ref se:refid="img"/>
																		<xul:genelt forcefilled="true" se:bind="element">
																			<xul:atts>
																				<se:ref se:refid="genEltAtts"/>
																			</xul:atts>
																			<xul:childs>
																				<se:ref se:refid="choiceLabelCaller"/>
																				<xul:insert se:bind="current"/>
																			</xul:childs>
																		</xul:genelt>
																		<se:ref se:refid="Textnode"/>
																	</se:choice>
																	<xul:insert se:bind="current"/>
																</xul:childs>
															</xul:element>
															<xul:element se:name="sm:labelTitle" se:id="sm:labelTitle_caller" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;">
																<xul:childs>
																	<se:choice se:card="*" se:show="ifExist">
																		<se:ref se:refid="sm:titlePageCaller"/>
																		<se:ref se:refid="Textnode"/>
																	</se:choice>
																	<xul:insert se:bind="current"/>
																</xul:childs>
															</xul:element>
															<xul:element se:name="sm:link" se:bind="element">
																<xul:atts>
																	<xul:attribute se:name="target" se:bind="attribute">
																		<xul:choiceInput>
																			<xul:ciItem label="newWindow"/>
																			<xul:ciItem label="namedWindow"/>
																			<xul:ciItem label="sameWindow"/>
																		</xul:choiceInput>
																	</xul:attribute>
																	<xul:attribute se:name="windowName" se:bind="attribute">
																		<xul:wordsInput trim="true"/>
																	</xul:attribute>
																	<xul:attribute se:bind="attribute" se:name="windowOptions">
																		<xul:wordsInput/>
																	</xul:attribute>
																</xul:atts>
															</xul:element>
														</xul:childs>
													</xul:element>
													<xul:element se:name="sm:WTooltip" se:bind="element">
														<xul:atts>
															<se:ref se:refid="attCommonClass" se:name="commonClass"/>
														</xul:atts>
														<xul:childs>
															<xul:element se:name="sm:label" se:id="ttChildren_forCall" se:bind="element">
																<xul:childs>
																	<se:ref se:refid="choiceCaller"/>
																	<xul:insert se:bind="current"/>
																</xul:childs>
															</xul:element>
															<se:ref se:refid="sm:labelTitle_caller"/>
															<xul:element se:name="sm:tooltip" se:bind="element" forcefilled="true">
																<xul:atts>
																	<xul:attribute se:name="trigger" se:bind="attribute">
																		<xul:choiceInput>
																			<xul:ciItem label="onmouseover"/>
																			<xul:ciItem label="onclick"/>
																		</xul:choiceInput>
																	</xul:attribute>
																	<xul:attribute se:name="displayOptions" se:bind="attribute">
																		<xul:wordsInput trim="true"/>
																	</xul:attribute>
																</xul:atts>
																<xul:childs>
																	<se:ref se:name="sm:ttTitle" se:refid="ttChildren_forCall" se:card="?"/>
																	<se:ref se:name="sm:ttContent" se:refid="ttChildren_forCall" se:card="?"/>
																</xul:childs>
															</xul:element>
														</xul:childs>
													</xul:element>
													<se:ref se:refid="img"/>
													<xul:genelt forcefilled="true" se:bind="element">
														<xul:atts>
															<se:ref se:refid="genEltAtts"/>
														</xul:atts>
														<xul:childs>
															<se:ref se:refid="choiceCaller"/>
															<xul:insert se:bind="current"/>
														</xul:childs>
													</xul:genelt>
													<se:ref se:refid="Textnode"/>
												</se:choice>
												<xul:insert se:bind="current"/>
											</xul:childs>
										</xul:element>
										<xul:element se:name="sm:WTooltip" se:bind="element">
											<xul:atts>
												<se:ref se:refid="attCommonClass" se:name="commonClass"/>
											</xul:atts>
											<xul:childs>
												<xul:element se:name="sm:label" se:id="ttChildren_forEnt" se:bind="element">
													<xul:childs>
														<se:ref se:refid="choiceEntry"/>
														<xul:insert se:bind="current"/>
													</xul:childs>
												</xul:element>
												<xul:element se:name="sm:labelTitle" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;">
													<xul:childs>
														<se:choice se:card="*" se:show="ifExist">
															<se:ref se:refid="sm:callEntryTitle"/>
															<se:ref se:refid="Textnode"/>
														</se:choice>
														<xul:insert se:bind="current"/>
													</xul:childs>
												</xul:element>
												<xul:element se:name="sm:tooltip" se:bind="element" forcefilled="true">
													<xul:atts>
														<xul:attribute se:name="trigger" se:bind="attribute">
															<xul:choiceInput>
																<xul:ciItem label="onmouseover"/>
																<xul:ciItem label="onclick"/>
															</xul:choiceInput>
														</xul:attribute>
														<xul:attribute se:name="displayOptions" se:bind="attribute">
															<xul:wordsInput trim="true"/>
														</xul:attribute>
													</xul:atts>
													<xul:childs>
														<se:ref se:name="sm:ttTitle" se:refid="ttChildren_forEnt" se:card="?"/>
														<se:ref se:name="sm:ttContent" se:refid="ttChildren_forEnt" se:card="?"/>
													</xul:childs>
												</xul:element>
											</xul:childs>
										</xul:element>
										<se:ref se:refid="img"/>
										<xul:genelt forcefilled="true" se:bind="element">
											<xul:atts>
												<se:ref se:refid="genEltAtts"/>
											</xul:atts>
											<xul:childs>
												<se:ref se:refid="choiceEntry"/>
												<xul:insert se:bind="current"/>
											</xul:childs>
										</xul:genelt>
										<se:ref se:refid="Textnode"/>
									</se:choice>
									<xul:insert se:bind="current"/>
								</xul:childs>
							</xul:element>
							<se:ref se:refid="img"/>
							<xul:genelt forcefilled="true" se:bind="element">
								<xul:atts>
									<se:ref se:refid="genEltAtts"/>
								</xul:atts>
								<xul:childs>
									<se:ref se:refid="choiceContent"/>
									<xul:insert se:bind="current"/>
								</xul:childs>
							</xul:genelt>
							<se:ref se:refid="Textnode"/>
						</se:choice>
						<xul:insert se:bind="current"/>
					</xul:childs>
				</xul:element>
			</xul:childs>
		</xul:element>
	</xul:xmlview>
</se:editor>
