home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / smarts / ole / wizview.ht < prev   
Encoding:
Text File  |  1996-02-21  |  3.0 KB  |  88 lines

  1. --------------------------------------------------------------------------------
  2. -- FILE NAME: WIZVIEW.HT
  3. --
  4. -- DESCRIPTION:
  5. --   OLE Compound Document Framework View 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.ht>
  16. --------------------------------------------------------------------------------
  17. -- View template
  18. --------------------------------------------------------------------------------
  19. <code VIEW>
  20. <define FILE_HDR_INCLUDES>
  21. #include <iview.hpp>
  22. #include <icmdhdr.hpp>
  23.  
  24. </define>
  25. <define CLASS_NAME>$VIEW_CLASS_NAME$\</define>
  26. <define PROTECT_CONSTRUCT>t\</define>
  27. <define NO_DEF_CONSTRUCT>t\</define>
  28. <define NO_COPY_CONSTRUCT>t\</define>
  29. <define PROTECT_COPY>t\</define>
  30. $STANDARD_OPERATIONS$
  31. <define PUBLIC_MEMBERS>
  32.                             $VIEW_CLASS_NAME$( $BUNDLE_CLASS_NAME$& bundle );
  33.  
  34.     virtual void            initialize();
  35.     virtual void            finalize();
  36.     virtual Boolean         handleCommand( ICommandEvent& cmdEvent );
  37.  
  38.     /////////////////////////////////////////
  39.     //  ADD your public member function here
  40.     /////////////////////////////////////////
  41. </define>
  42. <define PROTECTED_MEMBERS>
  43.     virtual void            drawContents( IPresSpaceHandle& ps, 
  44.                                           const IRectangle&, 
  45.                                           Boolean );
  46. </define>
  47. <if ($WANT_NOTIFY_VIEW$)>    
  48. <define DATA_MEMBERS>
  49.     /////////////////////////////////////////
  50.     //  ADD your private data members here
  51.     /////////////////////////////////////////
  52.  
  53. </define>
  54. </if>
  55. <define PRIVATE_MEMBERS>
  56.     // Command Connection for this View
  57.     ICommandConnectionTo<$VIEW_CLASS_NAME$> fCommandHandler;
  58.  
  59.     /////////////////////////////////////////
  60.     //  ADD handlers, controls, and other data here
  61.     /////////////////////////////////////////
  62. </define>
  63. </code VIEW>
  64.  
  65. --------------------------------------------------------------------------------
  66. -- DocumentComponentView direct subclass template
  67. --------------------------------------------------------------------------------
  68. <code DOCUMENT_VIEW>
  69. <define BUNDLE_CLASS_NAME>
  70. IGUIBundle\<>
  71. </define BUNDLE_CLASS_NAME>
  72. <define CLASS_SUPERS>
  73. IView\<>
  74. </define>
  75. $VIEW$\<>
  76. </code DOCUMENT_VIEW>
  77.  
  78. --------------------------------------------------------------------------------
  79. -- A list of views
  80. --------------------------------------------------------------------------------
  81. <code DOCUMENT_VIEW_CLASSES>
  82. -- TO DO For Multiple View
  83. --<repeat VIEW_CLASS_NAME,WANT_NOTIFY_VIEW,WANT_SINGLE_CALLBACK,WANT_LISTBOX_VIEW>
  84. $DOCUMENT_VIEW$\<>
  85. $CLASS$\<>
  86. --</repeat>
  87. </code DOCUMENT_VIEW>
  88.