xps/FixedPage.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/FixedPage.h#1 $
00019 //  $DateTime: 2008/02/20 08:38:28 $
00020 //  $Author: appacsviewers $
00021 //  $Change: 84992 $
00022 //  $Revision: #1 $
00023 //
00024 //
00025 
00026 #ifndef _DWFTK_XPSFIXEDPAGE_H
00027 #define _DWFTK_XPSFIXEDPAGE_H
00028 
00033 
00034 #include "dwf/opc/XMLPart.h"
00035 
00036 namespace DWFToolkit
00037 {
00038 
00046 class XPSFixedPage : public OPCXMLPart
00047 {
00048 
00049 public:
00050 
00054     typedef DWFOrderedVector<XPSFixedPage*>             tList;
00058     typedef DWFStringKeySkipList<XPSFixedPage*>         tMap;
00063     typedef DWFCachingIterator<XPSFixedPage*>           tCachingIterator;
00068     typedef DWFIterator<XPSFixedPage*>                  tIterator;
00073     typedef DWFConstIterator<XPSFixedPage*>             tConstIterator;
00074 
00075 public:
00076 
00080     static const char* const kzName;
00081 
00082 public:
00083 
00089     _DWFTK_API
00090     XPSFixedPage()
00091         throw();
00092 
00098     _DWFTK_API
00099     virtual ~XPSFixedPage()
00100         throw();
00101 
00108     _DWFTK_API
00109     double height() const
00110         throw()
00111     {
00112         return _dHeight;
00113     }
00114 
00121     _DWFTK_API
00122     double width() const
00123         throw()
00124     {
00125         return _dWidth;
00126     }
00127 
00135     _DWFTK_API
00136     void setPageSize( double dWidth, double dHeight )
00137         throw();
00138 
00139 #ifndef DWFTK_READ_ONLY
00140 
00141     _DWFTK_API
00142     virtual void serializeXML( DWFXMLSerializer& rSerializer )
00143         throw( DWFException ) = 0;
00144 
00145 #endif
00146 
00147 private:
00148 
00149     double  _dWidth;
00150     double  _dHeight;
00151 
00152 private:
00153 
00154     //
00155     // Not implemented
00156     //
00157     XPSFixedPage( const XPSFixedPage& );
00158     XPSFixedPage& operator=( const XPSFixedPage& );
00159 
00160 };
00161 
00162 //
00163 // required for win32 dll external linkage
00164 //
00165 #ifdef  _DWFCORE_WIN32_SYSTEM
00166 #ifndef DWFTK_STATIC
00167 
00168 //DNT_START
00169 _declspec(selectany) const char* const XPSFixedPage::kzName = "FixedPage.fpage";
00170 //DNT_END
00171 
00172 #endif
00173 #endif
00174 
00175 
00176 }
00177 
00178 #endif

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