fill.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 #if !defined FILL_HEADER
00020 #define FILL_HEADER
00021 
00025 
00026 #include "whiptk/whipcore.h"
00027 #include "whiptk/attribute.h"
00028 
00029 class WT_File;
00030 
00035 
00036 
00045 class WHIPTK_API WT_Fill : public WT_Attribute
00046 {
00047         friend class WT_Rendition;
00048         friend class WT_Macro_Definition;
00049         friend class WT_W2D_Class_Factory;
00050         friend class WT_Opcode;
00051 
00052 private:
00053     WT_Boolean        m_fill;
00054 
00055 public:
00056 
00058 
00059     WT_Fill()
00060         : m_fill(WD_False)
00061     { }
00062 
00064     WT_Fill(WT_Boolean fill)
00065         : m_fill(fill)
00066     { }
00067 
00069         WT_Fill(WT_Fill const& fill)
00070         {
00071                 *this = fill;
00072         }
00073 
00074         virtual ~WT_Fill()
00075         {}
00076 public:
00078 
00080 
00081     inline WT_Boolean const& fill() const { return m_fill; }
00082     inline WT_Boolean&       fill()       { return m_fill; }
00083 
00085     inline void set(WT_Boolean fill)      { m_fill = fill; }
00086 
00088     virtual inline WT_Fill const & operator=(WT_Boolean const & fill_state)
00089     {
00090         m_fill = fill_state;
00091         return *this;
00092     }
00094 
00096     WT_ID            object_id() const;
00097     WT_Result        materialize(WT_Opcode const & opcode, WT_File & file);
00098     WT_Result        process(WT_File & file);
00099     WT_Result        skip_operand(WT_Opcode const & opcode, WT_File & file);
00100     WT_Result        serialize (WT_File & file) const;
00101     WT_Result        sync (WT_File & file) const;
00102     WT_Boolean       operator== (WT_Attribute const & attrib) const;
00104 
00106 
00108     static WT_Result default_process(
00109         WT_Fill & item, 
00110         WT_File & file 
00111         );
00112 
00113 };
00114 
00116 
00117 #endif // FILL_HEADER

Generated on Tue Jan 6 22:41:12 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5