XamlEmbeddedFont.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 
00019 #if !defined XAML_EMBEDDED_FONT_HEADER
00020 #define XAML_EMBEDDED_FONT_HEADER
00021 
00025 
00026 #include "XAML/XamlCore.h"
00027 
00028 #include "whiptk/embedded_font.h"
00029 
00030 
00035 
00036 
00042 class XAMLTK_API WT_XAML_Embedded_Font 
00043     : public WT_Embedded_Font
00044 {
00045     friend class WT_XAML_Class_Factory;
00046     friend class WT_XAML_Rendition;
00047 
00048 protected:
00050 
00051     WT_XAML_Embedded_Font ()
00052         : WT_Embedded_Font()
00053     { }
00054 
00056     WT_XAML_Embedded_Font(
00058         int                            request_type,
00060         int                            privilege_type,
00062         int                            character_set_type,
00064         WT_Integer32                   data_size,
00066         WT_Byte *                      data,
00068         WT_Integer32                   font_type_face_name_length,
00070         WT_Byte *                      font_type_face_name_string,
00072         WT_Integer32                   font_logfont_name_length,
00074         WT_Byte *                      font_logfont_name_string,
00076         WT_Boolean                     copy
00077         ) throw(WT_Result)
00078         : WT_Embedded_Font( request_type, privilege_type, character_set_type, data_size, data, 
00079                             font_type_face_name_length, font_type_face_name_string,
00080                             font_logfont_name_length, font_logfont_name_string, copy )
00081     {
00082     }
00083 
00085     virtual ~WT_XAML_Embedded_Font()
00086     {
00087     }
00088 
00089 private:
00091     WT_XAML_Embedded_Font const & operator=  (WT_XAML_Embedded_Font const &)
00092     {
00093         WD_Complain( "Cannot assign this object!" );
00094         return *this;
00095     }
00096 
00097 public:
00098 
00100     WT_Result serialize (WT_File & file) const;
00102 
00103     WT_Result parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00104 
00105 };
00107 
00108 #endif //XAML_EMBEDDED_FONT_HEADER

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