glade-catalog.dtd 5.06 KB
Newer Older
1 2 3 4
<!ELEMENT glade-catalog (glade-widget-classes?, 
			 glade-widget-group*)>

<!ATTLIST glade-catalog name     CDATA #REQUIRED
5 6
                        version  CDATA #IMPLIED
                        targetable CDATA #IMPLIED
7
                        library  CDATA #IMPLIED
8 9 10 11 12
                        depends  CDATA #IMPLIED
                        domain   CDATA #IMPLIED
                        book     CDATA #IMPLIED
                        icon-prefix CDATA #IMPLIED
                        init-function CDATA #IMPLIED
13 14 15 16 17 18 19
			requires CDATA #IMPLIED>

<!ELEMENT glade-widget-classes (glade-widget-class+)>

<!ELEMENT glade-widget-class (post-create-function?,
			      get-internal-child-function?,
			      child-property-applies-function?,
20 21 22
			      read-widget-function?,
			      write-widget-function?,
			      set-property-function?,
23 24 25 26
			      properties?,
			      children?,
			      packing-defaults?)>

27
<!ATTLIST glade-widget-class toplevel     CDATA #IMPLIED
28 29 30 31 32
                             since        CDATA #IMPLIED
                             deprecated   CDATA #IMPLIED
                             use-placeholders CDATA #IMPLIED
                             default-width CDATA #IMPLIED
                             default-height CDATA #IMPLIED
33
			     name         CDATA #REQUIRED
34
                             generic-name CDATA #IMPLIED
35 36 37 38 39
                             icon-name    CDATA #IMPLIED
			     title        CDATA #REQUIRED
                             parent       CDATA #IMPLIED
                             get-type-function CDATA #IMPLIED
                             adaptor      CDATA #IMPLIED>
40 41 42 43 44

<!ELEMENT properties (property+)>

<!ELEMENT property (spec?, 
		    type?,
45
		    parameter-spec?,
46 47 48 49 50 51 52
		    tooltip?, 
		    parameters?,
		    set-function?,
		    get-function?, 
		    verify-function?)>

<!ATTLIST property id               CDATA #REQUIRED
53 54 55
                   since            CDATA #IMPLIED
                   deprecated       CDATA #IMPLIED
                   create-type      CDATA #IMPLIED
56
                   name             CDATA #IMPLIED
57 58 59 60 61 62 63 64 65
                   tooltip          CDATA #IMPLIED
                   themed-icon      CDATA #IMPLIED
                   stock            CDATA #IMPLIED
                   stock-icon       CDATA #IMPLIED
                   weight           CDATA #IMPLIED
                   transfer-on-paste CDATA #IMPLIED
                   save-always      CDATA #IMPLIED
                   parentless-widget CDATA #IMPLIED
                   atk-property     CDATA #IMPLIED
66 67
		   default          CDATA #IMPLIED
		   query            CDATA #IMPLIED
68
                   save             CDATA #IMPLIED
69 70 71
		   common           CDATA #IMPLIED
		   disabled         CDATA #IMPLIED
		   visible          CDATA #IMPLIED
72 73
                   custom-layout    CDATA #IMPLIED
                   multiline        CDATA #IMPLIED
74 75
		   optional         CDATA #IMPLIED
		   optional-default CDATA #IMPLIED
76 77 78
                   ignore           CDATA #IMPLIED
                   needs-sync       CDATA #IMPLIED
                   construct-only   CDATA #IMPLIED
79 80
		   translatable     CDATA #IMPLIED>

81 82
<!ELEMENT parameter-spec (type?,
		          value-type?)>
83 84 85 86 87 88 89 90 91 92 93 94 95
<!ELEMENT set-function (#PCDATA)>
<!ELEMENT get-function (#PCDATA)>
<!ELEMENT spec (#PCDATA)>
<!ELEMENT tooltip (#PCDATA)>
<!ELEMENT verify-function (#PCDATA)>

<!ELEMENT parameters (parameter+)>

<!ELEMENT parameter EMPTY>

<!ATTLIST parameter key   CDATA #REQUIRED
                    value CDATA #REQUIRED>

96 97 98 99
<!ELEMENT paremter-spec (type,
			 value-type)>
<!ELEMENT value-type (#PCDATA)>

100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
<!ELEMENT children (child+)>

<!ELEMENT child (type, 
		 add-child-function?, 
		 remove-child-function?, 
		 get-children-function?, 
		 get-all-children-function?,
		 set-property-function?, 
		 get-property-function?, 
		 replace-child-function?, 
		 fill-empty-function?, 
		 properties?)>

<!ELEMENT type (#PCDATA)>
<!ELEMENT add-child-function (#PCDATA)>
<!ELEMENT remove-child-function (#PCDATA)>
<!ELEMENT get-children-function (#PCDATA)>
<!ELEMENT get-all-children-function (#PCDATA)>
<!ELEMENT set-prop-function (#PCDATA)>
<!ELEMENT get-prop-function (#PCDATA)>
<!ELEMENT fill-empty-function (#PCDATA)>
<!ELEMENT replace-child-function (#PCDATA)>

<!ELEMENT post-create-function (#PCDATA)>
<!ELEMENT get-internal-child-function (#PCDATA)>
<!ELEMENT child-property-applies-function (#PCDATA)>

127 128 129 130
<!ELEMENT read-widget-function (#PCDATA)>
<!ELEMENT write-widget-function (#PCDATA)>
<!ELEMENT set-property-function (#PCDATA)>

131 132
<!ELEMENT glade-widget-group (default-palette-state?, 
			      glade-widget-class-ref+)>
133 134 135 136

<!ATTLIST glade-widget-group name  CDATA #REQUIRED
                             title CDATA #REQUIRED>

137 138 139
<!ELEMENT default-palette-state EMPTY>
<!ATTLIST default-palette-state expanded CDATA #IMPLIED>

140 141 142 143 144 145 146 147 148 149 150 151
<!ELEMENT glade-widget-class-ref EMPTY>
<!ATTLIST glade-widget-class-ref name CDATA #REQUIRED>

<!ELEMENT packing-defaults (parent-class+)>

<!ELEMENT parent-class (child-property+)>
<!ATTLIST parent-class name CDATA #REQUIRED>

<!ELEMENT child-property EMPTY>
<!ATTLIST child-property id      CDATA #REQUIRED
                         default CDATA #REQUIRED>