DWF6PackagePublisher.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 //  $Header: //DWF/Development/Components/Internal/DWF Toolkit/v7.6/develop/global/src/dwf/publisher/impl/DWF6PackagePublisher.h#2 $
00019 //  $DateTime: 2008/06/18 18:08:14 $
00020 //  $Author: gaoje $
00021 //  $Change: 101166 $
00022 //  $Revision: #2 $
00023 //
00024 
00025 #ifndef _DWFTK_DWF6_PACKAGE_PUBLISHER_H
00026 #define _DWFTK_DWF6_PACKAGE_PUBLISHER_H
00027 
00028 
00033 
00034 
00035 #ifndef DWFTK_READ_ONLY
00036 
00037 #include "dwfcore/File.h"
00038 
00039 using namespace DWFCore;
00040 
00041 #include "dwf/Toolkit.h"
00042 #include "dwf/package/Section.h"
00043 #include "dwf/package/writer/DWF6PackageWriter.h"
00044 #include "dwf/publisher/Image.h"
00045 #include "dwf/publisher/impl/DWFPackagePublisher.h"
00046 #include "dwf/publisher/model/Model.h"
00047 #include "dwf/publisher/plot/Plot.h"
00048 #include "dwf/publisher/data/Data.h"
00049 #include "dwf/publisher/impl/DWFResourceVisitor.h"
00050 
00051 namespace DWFToolkit
00052 {
00053 
00054 //
00055 //  fwd declaration
00056 //
00057 class DWFContent;
00058 class DWFPublishedContentElementListener;
00059 
00074 class DWF6PackagePublisher : public DWFPackagePublisher
00075                            _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00076 {
00077 
00078 public:
00079 
00122     _DWFTK_API
00123     DWF6PackagePublisher( const DWFFile&   rDWFFile,
00124                           const DWFString& zPassword                = "",
00125                           const DWFString& zSourceProductVendor     = "",
00126                           const DWFString& zSourceProductName       = "",
00127                           const DWFString& zSourceProductVersion    = "",
00128                           const DWFString& zPublisherProductVendor  = "",
00129                           const DWFString& zPublisherProductVersion = "",
00130                           bool             bNoPasswordSalting       = true )
00131         throw( DWFException );
00132 
00138     _DWFTK_API
00139     virtual ~DWF6PackagePublisher()
00140         throw();
00141 
00149     _DWFTK_API
00150     void enablePasswordSalting( bool bEnable )
00151         throw();
00152 
00160     _DWFTK_API
00161     void addSignatureRequest( DWFSignatureRequest* pSignatureRequest )
00162         throw( DWFException );
00163 
00164 protected:
00165 
00166     virtual DWFPackageWriter* getPackageWriter( )
00167         throw( DWFException )
00168     {
00169         return &_oPackageWriter;
00170     }
00171         
00172         virtual DWFGraphicResource* getGraphicResource()
00173                 throw( DWFException )
00174         {
00175                 return _pGraphicResource;
00176         }
00177 
00178         virtual void postprocess( DWFPublishable* pContent )
00179         throw( DWFException );
00180         
00181         virtual void preprocess( DWFPublishable* pContent )
00182                 throw( DWFException );
00183 
00184     virtual void postprocessPlot( DWFPlot* pW2DPlot )
00185         throw( DWFException );
00186 
00187         virtual void postprocessModel( DWFModel* pW3DModel )
00188         throw( DWFException );
00189 
00190 private:
00191 
00192     DWF6PackageWriter                   _oPackageWriter;
00193         DWFGraphicResource*                                     _pGraphicResource;
00194 
00195 private:
00196 
00197     DWF6PackagePublisher( const DWF6PackagePublisher& );
00198     DWF6PackagePublisher& operator=( const DWF6PackagePublisher& );
00199 };
00200 
00201 }
00202 
00203 
00204 
00205 #endif
00206 #endif
00207 

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