home *** CD-ROM | disk | FTP | other *** search
- --------------------------------------------------------------------------------
- -- FILE NAME: WIZMODEL.CT
- --
- -- DESCRIPTION:
- -- OLE Compound Document Framework Model file template
- --
- -- COPYRIGHT:
- -- IBM WorkFrame - Project Smarts
- -- (C) Copyright International Business Machines Corporation 1996
- -- Licensed Material - Program-Property of IBM - All Rights Reserved.
- -- US Government Users Restricted Rights - Use, duplication, or disclosure
- -- restricted by GSA ADP Schedule Contract with IBM Corp.
- --
- --------------------------------------------------------------------------------
- <include wizclass.ct>
- --------------------------------------------------------------------------------
- -- MODEL
- --------------------------------------------------------------------------------
- <code MODEL>
- --
- -- set includes
- --
- <define FILE_SRC_INCLUDES>
- #include "$VIEW_FILE_NAME$.hpp"
- #include <ibasstrm.hpp>
- #include <istatnry.hpp>
- #include <iexcept.hpp>
- #include <icconst.h>
-
- <define STATIONERY_DEF>
- //----------------------------------------------------------------------
- // Template Instantiation
- //----------------------------------------------------------------------
-
- IComponentStationeryFor<$MODEL_CLASS_NAME$,$VIEW_CLASS_NAME$> $COMPONENT_NAME:tolower$Stationery;
-
- int main( int argc, char* argv[] )
- {
- return $COMPONENT_NAME:tolower$Stationery.run( argc, argv );
- }
- </define>
- </define>
- --
- <define CLASS_NAME>$MODEL_CLASS_NAME$\</define>
- --
- -- macros
- --
- <define CLASS_MACROS>
-
- TypeExtensionMacro($CLASS_NAME$)
-
- </define>
- --
- -- member functions
- --
- <define CLASS_MEMBERS>
- </define CLASS_MEMBERS>
- --
- -- COLLECTIBLE overrides --
- <define DEFAULT_INIT>
- $MODEL_BASE_CLASS$()\<>
- </define>
- <define COPY_INIT>
- $MODEL_BASE_CLASS$( copy ) /* force assert */\<>
- </define>
- <define STREAM_OUT>
-
- /////////////////////////////////////////
- // ADD stream out of data members here
- /////////////////////////////////////////
-
- </define>
- <define STREAM_IN>
-
- /////////////////////////////////////////
- // ADD stream in of data members here
- /////////////////////////////////////////
-
- </define>
- $STREAMING$\<>
- </code MODEL>
- --
- --------------------------------------------------------
- -- MODEL_DIRECT
- --------------------------------------------------------
- <code MODEL_DIRECT>
- --
- <define MODEL_BASE_CLASS>
- <if ($COMPONENT_TYPE$ == Server)>
- IModel\<>
- <else>
- IEmbedderModel\<>
- </if>
- </define>
- --
- <define CLASS_SUPERS>$MODEL_BASE_CLASS$\</define>
- $MODEL$\<>
- </code MODEL_DIRECT>
-
-
- <code DATA_CLASS>
- </code>
-