Diff for /Amaya/amaya/templates.h between versions 1.5 and 1.6

version 1.5, 2006/09/01 14:19:34 version 1.6, 2006/09/01 15:19:54
Line 6 Line 6
 #include "document.h"  #include "document.h"
 #include "mydictionary.h"  #include "mydictionary.h"
   
 #define UNION_ANY            "any"  
 #define UNION_ANYCOMPONENT   "anyComponent"  
 #define UNION_ANYSIMPLE      "anySimple"  
 #define UNION_ANYELEMENT     "anyElement"  
 #define UNION_ANY_DEFINITION "anyComponent anySimple anyElement"  
   
 #define TYPE_NUMBER          "number"  
 #define TYPE_STRING          "string"  
 #define TYPE_BOOLEAN         "boolean"  
   
 //The predefined library id  
 #define PREDEFINED_LIB "-Predefined-"  
   
 //Type natures  
 #define COMPONENT   0  
 #define SIMPLE_TYPE 1  
 #define XMLELEMENT  2  
 #define UNION       3  
   
 //Simple type ids  
 #define XTIGER_NUMBER  0  
 #define XTIGER_STRING  1  
 #define XTIGER_BOOLEAN 2  
 //And for future issues  
 #define XTIGER_CUSTOM  3  
   
 #define THOT_EXPORT extern  
 #include "amaya.h"  
 #include "document.h"  
 #include "mydictionary.h"  
   
 /* Structure of a template */  /* Structure of a template */
 struct _XTigerTemplate;  struct _XTigerTemplate;
 typedef struct _XTigerTemplate *XTigerTemplate;  typedef struct _XTigerTemplate *XTigerTemplate;
   
 /* Structure of a declaration */  
 struct _Declaration;  
 typedef struct _Declaration *Declaration;  
   
 typedef int SimpleTypeType;  
   
 //Private structure of a template  //Private structure of a template
 struct _XTigerTemplate  struct _XTigerTemplate
 {         {       
Line 61  struct _XTigerTemplate Line 24  struct _XTigerTemplate
   int             users;          //Number of documents using this template    int             users;          //Number of documents using this template
 };  };
   
 /* Structure of a Declaration */  typedef enum _TypeNature {SimpleTypeNat, XmlElementNat, ComponentNat,
                             UnionNat} TypeNature;
   
   // XTiger simple type
   typedef enum _SimpleTypeType {XTNumber, XTString, XTBoolean} SimpleTypeType;
   
 //Just for clarity  /* Structure of a Declaration */
 typedef int TypeNature;  
   
 typedef struct _XmlElement  typedef struct _XmlElement
 {  {
Line 87  typedef struct _Union Line 53  typedef struct _Union
         DicDictionary  exclude; //Dictionary<Declaration>          DicDictionary  exclude; //Dictionary<Declaration>
 } Union;  } Union;
   
   /* Structure of a declaration */
   struct _Declaration;
   typedef struct _Declaration *Declaration;
   
 struct _Declaration  struct _Declaration
 {  {
         char          *name;          char          *name;
Line 103  struct _Declaration Line 73  struct _Declaration
   
 struct menuType  struct menuType
 {  {
         char *label;          char        *label;
         int   type;          TypeNature   type;
 };  };
   
 #endif /* TEMPLATE_TEMPLATES */  #endif /* TEMPLATE_TEMPLATES */
   

Removed from v.1.5  
changed lines
  Added in v.1.6


Webmaster