/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * 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 ETNA Relax NG validator. * * The Initial Developer of the Original Code is The Connexions Project. * * Portions created by the Initial Developer are Copyright (C) 2004-2006 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Laurent Jouanneau , Original author * * Alternatively, the contents of this file may be used under the terms of * either 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"), * in which case the provisions of the GPL or the LGPL 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 or the LGPL, 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 or the LGPL. 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 or the LGPL. * * ***** END LICENSE BLOCK ***** */ #include "nsISupports.idl" #include "nsIArray.idl" #include "domstubs.idl" #include "diISchemaProperties.idl" interface diISchemaGraphNode; interface diIStringGraphNode; /*interface diISchemaGraphTagNode; interface diISchemaGraphRefNode; interface diIStringGraphRefNode; */ /** * */ [uuid(350cfcbd-12c4-4618-bc5d-79888fb69525)] interface diISchemaBlankContentPropertiesPrivate : nsISupports { void setId(in AString aId); void setLabel(in AString aLabel); void setDescription(in AString aDescription); void setBlankNode(in nsIDOMNode aBlankNode); }; [uuid(1373c356-3a72-45e7-8366-68f395a057eb)] interface diISchemaBlankDocumentPropertiesPrivate : diISchemaBlankContentPropertiesPrivate { void setDoctype(in nsIDOMDocumentType doctype); void addAdditionalDOMNode(in nsIDOMNode aNode); /*void setAdditionalDOMNodeList(in nsIArray additionalDOMNodeList);*/ }; /** * */ [uuid(aabe34b3-90f1-41de-9fac-997e8e3f7ff8)] interface diISchemaDocumentPropertiesPrivate : nsISupports { void setLabel(in AString aLabel); void setDescription(in AString aDescription); void setEditingStyleSheetUri(in AString aEditingStyleSheetUri); void addBlankDocumentProperties( in diISchemaBlankDocumentProperties aBlankDocumentProperties); void registerNamespace(in diISchemaNamespace aNamespace); }; /** * */ [uuid(273fa449-f447-41db-a8af-6eca7cd8b4d5)] interface diISchemaElementPropertiesPrivate : nsISupports { void setLocalName(in AString aLocalName); void setNamespaceURI(in AString aNamespaceURI); void setAnyName(in boolean aAnyName); void setLabel(in AString aLabel); void setDescription(in AString aDescription); void setSemantics(in AString aSemantics); void setChildTextNodeAllowed(in boolean aChildTextNodeAllowed); void setFormatOnChildTextNode(in boolean aFormatOnChildTextNode); void setExtendedChildList(in nsIArray aExtendedChildList); void setExtendedAttributeList(in nsIArray aExtendedAttributeList); void setPossibleParentElements(in nsIArray aPossibleParentElements); /** * the graph to valid the element */ attribute diISchemaGraphNode graph; /** * this is the graph which verify the localname or the namespace of the element * (in the case where namespaceURI or tagname member is null) */ attribute diISchemaGraphNode nameGraph; void addPossibleParentElement(in diISchemaElementProperties aParent); void addBlankElementProperties( in diISchemaBlankContentProperties aBlankContentProperties); }; /** * */ [uuid(f3ca9668-1f7b-4714-88d6-675256751db1)] interface diISchemaAttributePropertiesPrivate : nsISupports { void setLocalName(in AString aLocalName); void setNamespaceURI(in AString aNamespaceURI); void setAnyName(in boolean aAnyName); void setLabel(in AString aLabel); void setDescription(in AString aDescription); void setDefaultValue(in AString aDefaultValue); /** * this is the graph which verify the localname or the namespace of the element * (in the case where namespaceURI or tagname member is null) */ attribute diISchemaGraphNode nameGraph; /** * this is the graph to verify the text content of the attribute */ attribute diIStringGraphNode valueGraph; }; [ uuid(922d58d0-6534-4692-ab41-a7ceee73e46c)] interface diISchemaNamespacePrivate : nsISupports { void setPrefix(in AString aPrefix); void setNamespaceURI(in AString aNamespaceURI); // don't want to switch everytime between diISchemaNamespace and diISchemaNamespacePrivate :-) AString getPrefix2(); AString getNamespaceURI2(); };