EmbeddedFontVisitor.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 //
00018 
00019 #ifndef _DWFTK_EMBEDDEDFONTVISITOR_H
00020 #define _DWFTK_EMBEDDEDFONTVISITOR_H
00021 
00022 
00027 
00028 #ifndef DWFTK_READ_ONLY
00029 
00030 
00031 
00032 #include "dwfcore/STL.h"
00033 #include "dwfcore/Iterator.h"
00034 #include "dwfcore/Exception.h"
00035 using namespace DWFCore;
00036 
00037 #include "dwf/Toolkit.h"
00038 #include "dwf/publisher/EmbeddedFont.h"
00039 
00040 
00041 
00042 namespace DWFToolkit
00043 {
00044 
00045 
00046 
00055 class DWFEmbeddedFontVisitor _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE
00056 {
00057 
00058 public:
00059 
00065     _DWFTK_API
00066     virtual ~DWFEmbeddedFontVisitor()
00067         throw()
00068     {;}
00069 
00077     _DWFTK_API
00078     virtual void visitEmbeddedFont( const DWFEmbeddedFont& rFont )
00079         throw( DWFException )
00080     {
00081         if (_pComposite)
00082         {
00083             _pComposite->visitEmbeddedFont( rFont );
00084         }
00085     }
00086 
00087 protected:
00088 
00096     _DWFTK_API
00097     DWFEmbeddedFontVisitor( DWFEmbeddedFontVisitor* pComposite = NULL )
00098         throw()
00099         : _pComposite( pComposite )
00100     {;}
00101 
00102 private:
00103 
00104     DWFEmbeddedFontVisitor( const DWFEmbeddedFontVisitor& );
00105     DWFEmbeddedFontVisitor& operator=( const DWFEmbeddedFontVisitor& );
00106 
00107 private:
00108 
00109     DWFEmbeddedFontVisitor* _pComposite;
00110 };
00111 
00112 }
00113 
00114 #endif  
00115 
00116 #endif
00117 

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