XamlLineWeight.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 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 
00022 
00023 #if !defined XAML_LWEIGHT_HEADER
00024 #define XAML_LWEIGHT_HEADER
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/lweight.h"
00029 #include "XAML/XamlDrawableAttributes.h"
00030 #include "XAML/XamlXML.h"
00031 
00036 
00037 
00041 class XAMLTK_API WT_XAML_Line_Weight : public WT_Line_Weight
00042                                                                          , public XamlDrawableAttributes::StrokeThickness::Provider
00043                                                                          , public XamlDrawableAttributes::PathAttributeProvider
00044 {
00045         friend class WT_XAML_Class_Factory;
00046         friend class WT_XAML_Rendition;
00047 private:
00048         WT_XAML_File *_pSerializeFile;                          // serialized file, !=0
00049 
00050 protected:
00051 
00053 
00054     WT_XAML_Line_Weight()
00055     : WT_Line_Weight(0)
00056         , _pSerializeFile(NULL)
00057     {}
00059     WT_XAML_Line_Weight(
00060         WT_Integer32 weight 
00061         )
00062     : WT_Line_Weight(weight)
00063         , _pSerializeFile(NULL)
00064     {}
00065 
00067     WT_XAML_Line_Weight(
00068         WT_Line_Weight const &weight 
00069         )
00070     : WT_Line_Weight(weight)
00071         , _pSerializeFile(NULL)
00072     {}
00073 
00074         virtual ~WT_XAML_Line_Weight()
00075         {}
00077 public:
00079     WT_XAML_Line_Weight& operator=(WT_XAML_Line_Weight const & other) 
00080         { 
00081                 WT_Line_Weight::operator = (other); 
00082                 return *this; 
00083         }
00084 
00085     virtual WT_Result parseAttributeList(XamlXML::tAttributeMap& rMap, WT_File& rFile);
00086 
00087     virtual WT_Result providePathAttributes( XamlDrawableAttributes::PathAttributeConsumer*, WT_XAML_File& ) const;
00088 
00089     //XamlDrawableAttributes::StrokeThickness::Provider
00090     virtual WT_Result provideStrokeThickness(XamlDrawableAttributes::StrokeThickness* & rpStrokeThickness);
00091 
00093     WT_Result        serialize (WT_File & /*file*/) const;
00094         
00095 };
00097 
00098 #endif //XAML_LWEIGHT_HEADER
00099 

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