home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / smarts / ole / wizmodel.ct < prev    next >
Encoding:
Text File  |  1996-02-21  |  2.6 KB  |  104 lines

  1. --------------------------------------------------------------------------------
  2. -- FILE NAME: WIZMODEL.CT
  3. --
  4. -- DESCRIPTION:
  5. --   OLE Compound Document Framework Model file template
  6. --
  7. -- COPYRIGHT:
  8. --   IBM WorkFrame - Project Smarts
  9. --   (C) Copyright International Business Machines Corporation 1996
  10. --   Licensed Material - Program-Property of IBM - All Rights Reserved.
  11. --   US Government Users Restricted Rights - Use, duplication, or disclosure
  12. --   restricted by GSA ADP Schedule Contract with IBM Corp.
  13. --
  14. --------------------------------------------------------------------------------
  15. <include wizclass.ct>
  16. --------------------------------------------------------------------------------
  17. -- MODEL
  18. --------------------------------------------------------------------------------
  19. <code MODEL>
  20. --
  21. -- set includes
  22. --
  23. <define FILE_SRC_INCLUDES>
  24. #include "$VIEW_FILE_NAME$.hpp"
  25. #include <ibasstrm.hpp>
  26. #include <istatnry.hpp>
  27. #include <iexcept.hpp>
  28. #include <icconst.h>
  29.  
  30. <define STATIONERY_DEF>
  31. //----------------------------------------------------------------------
  32. //  Template Instantiation
  33. //----------------------------------------------------------------------
  34.  
  35. IComponentStationeryFor<$MODEL_CLASS_NAME$,$VIEW_CLASS_NAME$> $COMPONENT_NAME:tolower$Stationery;
  36.  
  37. int main( int argc, char* argv[] )
  38. {
  39.     return $COMPONENT_NAME:tolower$Stationery.run( argc, argv );
  40. }
  41. </define>
  42. </define>
  43. --
  44. <define CLASS_NAME>$MODEL_CLASS_NAME$\</define>
  45. --
  46. -- macros
  47. --
  48. <define CLASS_MACROS>
  49.  
  50. TypeExtensionMacro($CLASS_NAME$)
  51.  
  52. </define>
  53. --
  54. -- member functions
  55. --
  56. <define CLASS_MEMBERS>
  57. </define CLASS_MEMBERS>
  58. --
  59. -- COLLECTIBLE overrides --
  60. <define DEFAULT_INIT>
  61.   $MODEL_BASE_CLASS$()\<>
  62. </define>
  63. <define COPY_INIT>
  64.   $MODEL_BASE_CLASS$( copy ) /* force assert */\<>
  65. </define>
  66. <define STREAM_OUT>
  67.  
  68.     /////////////////////////////////////////
  69.     //  ADD stream out of data members here
  70.     /////////////////////////////////////////
  71.  
  72. </define>
  73. <define STREAM_IN>
  74.  
  75.         /////////////////////////////////////////
  76.         //  ADD stream in of data members here
  77.         /////////////////////////////////////////
  78.  
  79. </define>
  80. $STREAMING$\<>
  81. </code MODEL>
  82. --
  83. --------------------------------------------------------
  84. -- MODEL_DIRECT
  85. --------------------------------------------------------
  86. <code MODEL_DIRECT>
  87. --
  88. <define MODEL_BASE_CLASS>
  89. <if ($COMPONENT_TYPE$ == Server)>
  90. IModel\<>
  91. <else>
  92. IEmbedderModel\<>
  93. </if>
  94. </define>
  95. --
  96. <define CLASS_SUPERS>$MODEL_BASE_CLASS$\</define>
  97. $MODEL$\<>
  98. </code MODEL_DIRECT>
  99.  
  100.  
  101. <code DATA_CLASS>
  102. </code>
  103.  
  104.