6.20/PackageVersionExtension.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 
00020 #ifndef _DWFTK_PACKAGE_VERSION_EXTENSION_6_20_H
00021 #define _DWFTK_PACKAGE_VERSION_EXTENSION_6_20_H
00022 
00023 
00028 
00029 #ifndef DWFTK_READ_ONLY
00030 
00031 #include "dwf/Version.h"
00032 #include "dwf/package/writer/DWF6PackageVersionExtension.h"
00033 namespace DWFToolkit
00034 {
00035 
00049 class DWFPackageVersion620Extension : public DWF6PackageVersionExtension
00050                                      _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00051 {
00052 
00053 public:
00054 
00061     _DWFTK_API
00062     DWFPackageVersion620Extension( const DWFString& zDocumentType )
00063         throw();
00064 
00070     _DWFTK_API
00071     virtual ~DWFPackageVersion620Extension()
00072         throw();
00073 
00077     _DWFTK_API
00078     unsigned short major()
00079         throw()
00080     {
00081         return _DWF_FORMAT_VERSION_ECOMPOSITE_MAJOR;
00082     }
00083 
00087     _DWFTK_API
00088     unsigned short minor()
00089         throw()
00090     {
00091         return _DWF_FORMAT_VERSION_CONTENT_DEFINITION_MINOR;
00092     }
00093 
00097     _DWFTK_API
00098     virtual bool addSection( DWFSection*   pSection,
00099                              DWFInterface* pInterface )
00100         throw( DWFException );
00101 
00105     _DWFTK_API
00106     virtual bool addGlobalSection( DWFGlobalSection* pSection )
00107         throw( DWFException );
00108 
00112     _DWFTK_API
00113     virtual bool write( const DWFString& zSourceProductVendor,
00114                         const DWFString& zSourceProductName,
00115                         const DWFString& zSourceProductVersion,
00116                         const DWFString& zDWFProductVendor,
00117                         const DWFString& zDWFProductVersion,
00118                         DWFZipFileDescriptor::teFileMode eCompressionMode )
00119         throw( DWFException );
00120 
00121 
00125     _DWFTK_API
00126     virtual void prewriteManifest( DWF6PackageWriter&           rPackageWriter, 
00127                                    DWFPackageFileDescriptor&    rPackageDescriptor,
00128                                    DWFXMLSerializer&            rXMLSerializer,
00129                                    const DWFString&             rPackagePassword )
00130         throw( DWFException );
00131 
00135     _DWFTK_API
00136     virtual void postwriteManifest( DWF6PackageWriter&           rPackageWriter, 
00137                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00138                                     DWFXMLSerializer&            rXMLSerializer,
00139                                     const DWFString&             rPackagePassword )
00140         throw( DWFException );
00141 
00145     _DWFTK_API
00146     virtual void postwriteSections( DWF6PackageWriter&           rPackageWriter, 
00147                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00148                                     DWFXMLSerializer&            rXMLSerializer,
00149                                     const DWFString&             rPackagePassword )
00150         throw( DWFException );
00151 
00152 
00153 protected:
00154         DWFString   _zDocumentType;
00155 
00156 };
00157 
00158 }
00159 
00160 
00161 #endif
00162 #endif
00163 

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