DWFProperties.h

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 //  $Header: //DWF/Development/Components/Internal/DWF Toolkit/v7.6/develop/global/src/dwf/dwfx/DWFProperties.h#2 $
00019 //  $DateTime: 2008/06/18 18:08:14 $
00020 //  $Author: gaoje $
00021 //  $Change: 101166 $
00022 //  $Revision: #2 $
00023 //
00024 //
00025 
00026 #ifndef _DWFTK_DWFXDWFPROPERTIES_H
00027 #define _DWFTK_DWFXDWFPROPERTIES_H
00028 
00029 #include "dwf/opc/XMLPart.h"
00030 #include "dwf/dwfx/reader/DWFPropertiesReader.h"
00031 #include "dwf/package/PropertySet.h"
00032 
00033 namespace DWFToolkit
00034 {
00035 
00036 class DWFXDWFProperties : public OPCXMLPart
00037                         , public DWFXDWFPropertiesReader
00038                         , protected DWFPropertySet
00039 {
00040 
00041 public:
00042 
00046     static const char* const kzName;
00047 
00048 public:
00049 
00055     _DWFTK_API
00056     DWFXDWFProperties()
00057         throw( DWFException );
00058 
00062     _DWFTK_API
00063     virtual ~DWFXDWFProperties()
00064         throw();
00065 
00069     _DWFTK_API
00070     const DWFString& getSchemaID() const
00071         throw()
00072     {
00073         return DWFPropertySet::getSchemaID();
00074     }
00075 
00076     _DWFTK_API
00077     void setSourceProductVendor( const DWFString& zValue )
00078         throw();
00079 
00080     _DWFTK_API
00081     DWFString sourceProductVendor()
00082         throw();
00083 
00084     _DWFTK_API
00085     void setSourceProductName( const DWFString& zValue )
00086         throw();
00087 
00088     _DWFTK_API
00089     DWFString sourceProductName()
00090         throw();
00091 
00092     _DWFTK_API
00093     void setSourceProductVersion( const DWFString& zValue )
00094         throw();
00095 
00096     _DWFTK_API
00097     DWFString sourceProductVersion()
00098         throw();
00099 
00100     _DWFTK_API
00101     void setDWFProductVendor( const DWFString& zValue )
00102         throw();
00103 
00104     _DWFTK_API
00105     DWFString dwfProductVendor()
00106         throw();
00107 
00108     _DWFTK_API
00109     void setDWFProductVersion( const DWFString& zValue )
00110         throw();
00111 
00112     _DWFTK_API
00113     DWFString dwfProductVersion()
00114         throw();
00115 
00116     _DWFTK_API
00117     void setDWFToolkitVersion( const DWFString& zValue )
00118         throw();
00119 
00120     _DWFTK_API
00121     DWFString dwfToolkitVersion()
00122         throw();
00123 
00124     _DWFTK_API
00125     void setDWFFormatVersion( const DWFString& zValue )
00126         throw();
00127 
00128     _DWFTK_API
00129     DWFString dwfFormatVersion()
00130         throw();
00131 
00132         _DWFTK_API
00133     void setPasswordProtected( const DWFString& zValue )
00134         throw();
00135 
00136         _DWFTK_API
00137     DWFString passwordProtected()
00138         throw();
00139 
00140     _DWFTK_API
00141     DWFPropertySet* getPropertySet()
00142         throw()
00143     {
00144         return this;
00145     }
00146 
00147 public:
00148 
00149     _DWFTK_API
00150     virtual DWFString provideSourceProductVendor( const DWFString& zValue )
00151         throw();
00152 
00153     _DWFTK_API
00154     virtual DWFString provideSourceProductName( const DWFString& zValue )
00155         throw();
00156 
00157     _DWFTK_API
00158     virtual DWFString provideSourceProductVersion( const DWFString& zValue )
00159         throw();
00160 
00161     _DWFTK_API
00162     virtual DWFString provideDWFProductVendor( const DWFString& zValue )
00163         throw();
00164 
00165     _DWFTK_API
00166     virtual DWFString provideDWFProductVersion( const DWFString& zValue )
00167         throw();
00168 
00169     _DWFTK_API
00170     virtual DWFString provideDWFToolkitVersion( const DWFString& zValue )
00171         throw();
00172 
00173     _DWFTK_API
00174     virtual DWFString provideDWFFormatVersion( const DWFString& zValue )
00175         throw();
00176 
00177         _DWFTK_API
00178     virtual DWFString providePasswordEncrypted( const DWFString& zValue )
00179         throw();
00180 
00181 #ifndef DWFTK_READ_ONLY
00182 
00186     _DWFTK_API
00187     virtual void serializeXML( DWFXMLSerializer& rSerializer )
00188         throw( DWFException );
00189 
00190 #endif
00191 
00192 private:
00193 
00194     DWFString _getProperty( const DWFString& zPropertyName )
00195         throw();
00196 
00197 };
00198 
00199 
00200 //
00201 // required for win32 dll external linkage
00202 //
00203 #ifdef  _DWFCORE_WIN32_SYSTEM
00204 #ifndef DWFTK_STATIC
00205 
00206 //DNT_START
00207 
00208 _declspec(selectany) const char* const DWFXDWFProperties::kzName = "DWFProperties.xml";
00209 
00210 //DNT_END
00211 
00212 #endif
00213 #endif
00214 
00215 }
00216 
00217 #endif
00218 
00219 
00220 

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