Crazy Eddies GUI System 0.7.5
|
00001 /*********************************************************************** 00002 filename: CEGUIScheme_xmlHandler.h 00003 created: Mon Jul 20 2009 00004 author: Paul D Turner <paul@cegui.org.uk> 00005 *************************************************************************/ 00006 /*************************************************************************** 00007 * Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team 00008 * 00009 * Permission is hereby granted, free of charge, to any person obtaining 00010 * a copy of this software and associated documentation files (the 00011 * "Software"), to deal in the Software without restriction, including 00012 * without limitation the rights to use, copy, modify, merge, publish, 00013 * distribute, sublicense, and/or sell copies of the Software, and to 00014 * permit persons to whom the Software is furnished to do so, subject to 00015 * the following conditions: 00016 * 00017 * The above copyright notice and this permission notice shall be 00018 * included in all copies or substantial portions of the Software. 00019 * 00020 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00021 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00022 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00023 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 00024 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 00025 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00026 * OTHER DEALINGS IN THE SOFTWARE. 00027 ***************************************************************************/ 00028 #ifndef _CEGUIScheme_xmlHandler_h_ 00029 #define _CEGUIScheme_xmlHandler_h_ 00030 00031 #include "CEGUIXMLHandler.h" 00032 #include "CEGUIString.h" 00033 00034 // Start of CEGUI namespace section 00035 namespace CEGUI 00036 { 00038 class CEGUIEXPORT Scheme_xmlHandler : public XMLHandler 00039 { 00040 public: 00042 Scheme_xmlHandler(const String& filename, const String& resource_group); 00043 00045 ~Scheme_xmlHandler(); 00046 00048 const String& getObjectName() const; 00049 00051 Scheme& getObject() const; 00052 00053 // XMLHandler overrides 00054 void elementStart(const String& element, const XMLAttributes& attributes); 00055 void elementEnd(const String& element); 00056 00057 private: 00059 static const String GUISchemeSchemaName; 00061 static const String GUISchemeElement; 00063 static const String ImagesetElement; 00065 static const String ImagesetFromImageElement; 00067 static const String FontElement; 00069 static const String WindowSetElement; 00071 static const String WindowFactoryElement; 00073 static const String WindowAliasElement; 00075 static const String FalagardMappingElement; 00077 static const String LookNFeelElement; 00079 static const String NameAttribute; 00081 static const String FilenameAttribute; 00083 static const String AliasAttribute; 00085 static const String TargetAttribute; 00087 static const String ResourceGroupAttribute; 00089 static const String WindowTypeAttribute; 00091 static const String TargetTypeAttribute; 00093 static const String LookNFeelAttribute; 00095 static const String WindowRendererSetElement; 00097 static const String WindowRendererFactoryElement; 00099 static const String WindowRendererAttribute; 00101 static const String RenderEffectAttribute; 00102 00104 void elementGUISchemeStart(const XMLAttributes& attributes); 00106 void elementImagesetStart(const XMLAttributes& attributes); 00108 void elementImagesetFromImageStart(const XMLAttributes& attributes); 00110 void elementFontStart(const XMLAttributes& attributes); 00112 void elementWindowSetStart(const XMLAttributes& attributes); 00114 void elementWindowFactoryStart(const XMLAttributes& attributes); 00116 void elementWindowRendererSetStart(const XMLAttributes& attributes); 00118 void elementWindowRendererFactoryStart(const XMLAttributes& attributes); 00120 void elementWindowAliasStart(const XMLAttributes& attributes); 00122 void elementFalagardMappingStart(const XMLAttributes& attributes); 00124 void elementLookNFeelStart(const XMLAttributes& attributes); 00126 void elementGUISchemeEnd(); 00127 00129 Scheme* d_scheme; 00131 mutable bool d_objectRead; 00132 }; 00133 00134 } // End of CEGUI namespace section 00135 00136 #endif // end of guard _CEGUIScheme_xmlHandler_h_