Crazy Eddies GUI System  0.6.2
CEGUIScheme_xmlHandler.h
1 /***********************************************************************
2  filename: CEGUIScheme_xmlHandler.h
3  created: 21/2/2004
4  author: Paul D Turner
5 
6  purpose: Defines abstract base class for the GUI Scheme object.
7 *************************************************************************/
8 /***************************************************************************
9  * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining
12  * a copy of this software and associated documentation files (the
13  * "Software"), to deal in the Software without restriction, including
14  * without limitation the rights to use, copy, modify, merge, publish,
15  * distribute, sublicense, and/or sell copies of the Software, and to
16  * permit persons to whom the Software is furnished to do so, subject to
17  * the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be
20  * included in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28  * OTHER DEALINGS IN THE SOFTWARE.
29  ***************************************************************************/
30 #ifndef _CEGUIScheme_xmlHandler_h_
31 #define _CEGUIScheme_xmlHandler_h_
32 
33 #include "CEGUIScheme.h"
34 #include "CEGUIXMLHandler.h"
35 
36 // Start of CEGUI namespace section
37 namespace CEGUI
38 {
39 
45  {
46  public:
47  /*************************************************************************
48  Construction & Destruction
49  *************************************************************************/
57  Scheme_xmlHandler(Scheme* scheme) : d_scheme(scheme)
58  {}
59 
64  virtual ~Scheme_xmlHandler(void)
65  {}
66 
67  /*************************************************************************
68  SAX2 Handler overrides
69  *************************************************************************/
74  virtual void elementStart(const String& element, const XMLAttributes& attributes);
75  virtual void elementEnd(const String& element);
76 
77  private:
78  /*************************************************************************
79  Implementation Constants
80  *************************************************************************/
81  // XML related strings
82  static const String GUISchemeElement;
83  static const String ImagesetElement;
84  static const String ImagesetFromImageElement;
85  static const String FontElement;
86  static const String WindowSetElement;
87  static const String WindowFactoryElement;
88  static const String WindowAliasElement;
89  static const String FalagardMappingElement;
90  static const String LookNFeelElement;
91  static const String NameAttribute;
92  static const String FilenameAttribute;
93  static const String AliasAttribute;
94  static const String TargetAttribute;
95  static const String ResourceGroupAttribute;
96  static const String WindowTypeAttribute;
97  static const String TargetTypeAttribute;
98  static const String LookNFeelAttribute;
99  static const String WindowRendererSetElement;
100  static const String WindowRendererFactoryElement;
101  static const String WindowRendererAttribute;
102 
107  void elementGUISchemeStart(const XMLAttributes& attributes);
108 
113  void elementImagesetStart(const XMLAttributes& attributes);
114 
119  void elementImagesetFromImageStart(const XMLAttributes& attributes);
120 
125  void elementFontStart(const XMLAttributes& attributes);
126 
131  void elementWindowSetStart(const XMLAttributes& attributes);
132 
137  void elementWindowFactoryStart(const XMLAttributes& attributes);
138 
143  void elementWindowRendererSetStart(const XMLAttributes& attributes);
144 
149  void elementWindowRendererFactoryStart(const XMLAttributes& attributes);
150 
155  void elementWindowAliasStart(const XMLAttributes& attributes);
156 
161  void elementFalagardMappingStart(const XMLAttributes& attributes);
162 
167  void elementLookNFeelStart(const XMLAttributes& attributes);
168 
173  void elementGUISchemeEnd();
174 
175  /*************************************************************************
176  Implementation Data
177  *************************************************************************/
178  Scheme* d_scheme;
179  };
180 
181 } // End of CEGUI namespace section
182 
183 #endif // end of guard _CEGUIScheme_xmlHandler_h_