XamlObjectFactory.h

Go to the documentation of this file.
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 //
00021 
00022 #ifndef _XAML_OBJECT_FACTORY_H
00023 #define _XAML_OBJECT_FACTORY_H
00024 
00025 
00026 class XamlObjectFactory
00027 {
00028     friend class WT_XAML_Text;
00029 
00030 private:
00031     XamlObjectFactory() {}
00032 
00033 public:
00034     static WT_Result processAttributes( WT_XAML_File& rFile, XamlDrawable* pDrawable );
00035     static WT_Result processObjects( WT_XAML_File& rFile, XamlDrawable* pDrawable );
00036 
00037 protected:
00038     static WT_Result insertObject( WT_XAML_File& rFile, WT_Object *pObject, WT_Class_Factory& rClassFactory );
00039     static WT_Object* findPendingObject( WT_XAML_File& rFile, WT_Object::WT_Type eType, WT_Object::WT_ID eID );
00040 
00041 private:
00042     static WT_Result _processPathAttributes( WT_XAML_File& rFile, XamlPath* pPath );
00043     static WT_Result _processPathObjects( WT_XAML_File& rFile, XamlPath* pPath );
00044 
00045     static WT_Result _processCanvasAttributes( WT_XAML_File& rFile, XamlCanvas* pPath );
00046     static WT_Result _processCanvasObjects( WT_XAML_File& rFile, XamlCanvas* pPath );
00047 
00048     static WT_Result _processGlyphsAttributes( WT_XAML_File& rFile, XamlGlyphs* pPath );
00049     static WT_Result _processGlyphsObjects( WT_XAML_File& rFile, XamlGlyphs* pPath );
00050 
00051     static WT_Color* _createOptimizedColor( WT_XAML_File& rFile, WT_RGBA32 &rgba );
00052 };
00053 
00054 
00055 #endif //_XAML_OBJECT_FACTORY_H
00056 

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