XamlResourceDictionaryParser.h

00001 //
00002 //  Copyright (c) 1996-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 #if !defined XAML_RESOURCE_DICTIONARY_PARSER_HEADER
00019 #define XAML_RESOURCE_DICTIONARY_PARSER_HEADER
00020 
00021 #include "XAML/pch.h"
00022 #include "XAML/XamlXML.h"
00023 #include "dwfcore/XMLParser.h"
00024 
00025 class WT_XAML_Resource_Dictionary_Parser : public DWFXMLCallback
00026 {
00027 
00028 public:
00029     WT_XAML_Resource_Dictionary_Parser(WT_XAML_File& file) throw(WT_Result);
00030     virtual ~WT_XAML_Resource_Dictionary_Parser() throw();
00031 
00032     WT_XAML_File*&            xamlFile() { return _pXamlFile; }
00033     DWFXMLParser*            dictionaryParser() { return _pDictionaryParser; }
00034 
00035     WT_Result                parseResource();
00036 
00037     bool                     isParsingFinished() { return dictionaryParser()->isParsingFinished(); }
00038 
00039 
00040 private:  
00041     // DWFXMLCallback handlers here
00042     _DWFTK_API void notifyStartElement( const char* zName, const char** ppAttributeList ) throw();
00043     _DWFTK_API void notifyEndElement( const char* zName ) throw();
00044     _DWFTK_API void notifyCharacterData( const char* zCData, int nLength ) throw();
00045     _DWFTK_API void notifyStartNamespace( const char* zPrefix, const char* zURI ) throw();
00046     _DWFTK_API void notifyEndNamespace( const char* zPrefix ) throw();
00047 
00048    /* _DWFTK_API void _processStartElement(void) throw();
00049     _DWFTK_API void _processEndElement(void) throw();*/
00050 
00051 private:
00052     DWFXMLParser*               _pDictionaryParser;
00053     WT_XAML_File*               _pXamlFile;
00054 
00055 
00056 };
00057 #endif //XAML_RESOURCE_DICTIONARY_PARSER_HEADER

Generated on Tue Jan 6 22:40:06 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5