Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

FontResource.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2005 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 
00020 #ifndef _DWFTK_FONT_RESOURCE_H
00021 #define _DWFTK_FONT_RESOURCE_H
00022 
00027 
00028 
00029 #include "dwf/Toolkit.h"
00030 #include "dwf/package/Resource.h"
00031 
00032 namespace DWFToolkit
00033 {
00034 
00046 class DWFFontResource : public DWFResource
00047 {
00048 
00049 public:
00050 
00054     typedef enum
00055     {
00056         ePreviewPrint = 1,
00057         eEditable     = 2,
00058         eInstallable  = 3,
00059         eNoEmbedding  = 4
00060 
00061     } tePrivilege;
00062 
00066     typedef enum
00067     {
00068         eUnicode    = 1,
00069         eSymbol     = 2,
00070         eGlyphIndex = 3
00071     } teCharacterCode;
00072 
00073 public:
00074 
00087     _DWFTK_API
00088     DWFFontResource( DWFPackageReader*  pPackageReader )
00089         throw();
00090 
00107     _DWFTK_API
00108     DWFFontResource( int                nRequest,
00109                      tePrivilege        ePrivilege,
00110                      teCharacterCode    eCharacterCode,
00111                      const DWFString&   zCanonicalName,
00112                      const DWFString&   zLogfontName )
00113         throw();
00114 
00120     _DWFTK_API
00121     virtual ~DWFFontResource()
00122         throw();
00123 
00130     _DWFTK_API
00131     int request() const
00132         throw()
00133     {
00134         return _nRequest;
00135     }
00136 
00143     _DWFTK_API
00144     tePrivilege privilege() const
00145         throw()
00146     {
00147         return _ePrivilege;
00148     }
00149 
00156     _DWFTK_API
00157     teCharacterCode characterCode() const
00158         throw()
00159     {
00160         return _eCharacterCode;
00161     }
00162 
00169     _DWFTK_API
00170     const DWFString& logfontName() const
00171         throw()
00172     {
00173         return _zLogfontName;
00174     }
00175 
00182     _DWFTK_API
00183     const DWFString& canonicalName() const
00184         throw()
00185     {
00186         return _zCanonicalName;
00187     }
00188 
00192     _DWFTK_API
00193     virtual void parseAttributeList( const char** ppAttributeList )
00194         throw( DWFException );
00195 
00196 #ifndef DWFTK_READ_ONLY
00197 
00201     _DWFTK_API
00202     void serializeXML( DWFXMLSerializer& rSerializer, unsigned int nFlags )
00203         throw( DWFException );
00204 
00205 #endif
00206 
00207 
00208 private:
00209         
00210     int             _nRequest;
00211     tePrivilege     _ePrivilege;
00212     teCharacterCode _eCharacterCode;
00213     DWFString       _zLogfontName;
00214     DWFString       _zCanonicalName;
00215 
00216 private:
00217 
00218     DWFFontResource( const DWFFontResource& );
00219     DWFFontResource& operator=( const DWFFontResource& );
00220 };
00221 
00222 
00223 }
00224 
00225 #endif

Generated on Tue May 17 12:38:50 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1