xps/FixedDocumentSequence.h

Go to the documentation of this file.
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/xps/FixedDocumentSequence.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_XPSFIXEDDOCUMENTSEQUENCE_H
00027 #define _DWFTK_XPSFIXEDDOCUMENTSEQUENCE_H
00028 
00033 
00034 #include "dwfcore/Owner.h"
00035 using namespace DWFCore;
00036 
00037 #include "dwf/opc/XMLPart.h"
00038 #include "dwf/xps/FixedDocument.h"
00039 
00040 namespace DWFToolkit
00041 {
00042 
00055 class XPSFixedDocumentSequence : public OPCXMLPart
00056                                , protected DWFOwner
00057 {
00058 
00062     static const char* const kzName;
00063 
00064 public:
00065 
00071     _DWFTK_API
00072     XPSFixedDocumentSequence()
00073         throw();
00074 
00080     _DWFTK_API
00081     virtual ~XPSFixedDocumentSequence()
00082         throw();
00083 
00093     _DWFTK_API
00094     virtual bool addFixedDocument( XPSFixedDocument* pFixedDocument,
00095                                    bool bOwn = true )
00096         throw();
00097 
00111     _DWFTK_API
00112     virtual bool insertFixedDocument( XPSFixedDocument* pFixedDocument, 
00113                                       XPSFixedDocument* pAfterDocument,
00114                                       bool bOwn = true )
00115         throw();
00116 
00126     _DWFTK_API
00127     virtual bool removeFixedDocument( XPSFixedDocument* pFixedDoc )
00128         throw();
00129 
00137     _DWFTK_API
00138     XPSFixedDocument* const fixedDocument( const DWFString& zURI ) const
00139         throw();
00140 
00148     _DWFTK_API
00149     XPSFixedDocument::tConstIterator* fixedDocuments() const
00150         throw()
00151     {
00152         return _oFixedDocuments.constIterator();
00153     }
00154 
00155 #ifndef DWFTK_READ_ONLY
00156 
00157     _DWFTK_API
00158     virtual void serializeXML( DWFXMLSerializer& rSerializer )
00159         throw( DWFException );
00160 
00161 #endif
00162 
00163 protected:
00164 
00165     _DWFTK_API
00166     virtual void notifyOwnableDeletion( DWFOwnable& rOwnable )
00167         throw( DWFException );
00168 
00169 private:
00170 
00171     XPSFixedDocument::tList     _oFixedDocuments;
00172 
00173 private:
00174 
00175     //
00176     // Not implemented
00177     //
00178     XPSFixedDocumentSequence( const XPSFixedDocumentSequence& );
00179     XPSFixedDocumentSequence& operator=( const XPSFixedDocumentSequence& );
00180 
00181 };
00182 
00183 
00184 //
00185 // required for win32 dll external linkage
00186 //
00187 #ifdef  _DWFCORE_WIN32_SYSTEM
00188 #ifndef DWFTK_STATIC
00189 
00190 //DNT_START
00191 _declspec(selectany) const char* const XPSFixedDocumentSequence::kzName = "FixedDocumentSequence.fdseq";
00192 //DNT_END
00193 
00194 #endif
00195 #endif
00196 
00197 }
00198 
00199 #endif

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