home *** CD-ROM | disk | FTP | other *** search
- --------------------------------------------------------------------------------
- -- FILE NAME: WIZVIEW.CT
- --
- -- DESCRIPTION:
- -- OLE Compound Document Framework View 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>
- --------------------------------------------------------------------------------
- -- View template
- --------------------------------------------------------------------------------
- <code VIEW>
- <define CLASS_NAME>$VIEW_CLASS_NAME$\</define>
- <define COPY_INIT>
- IView(copy)\<>
- </define COPY_INIT>
- <define NO_DEF_CONSTRUCT>t\</define>
- <define NO_COPY_CONSTRUCT>t\</define>
- $STANDARD_OPERATIONS$
- <define CLASS_MEMBERS>
- -- No streaming this is redundant!! <define NO_DEF_CONSTRUCT>t\</define>
- $VIEW_CLASS_NAME$::$VIEW_CLASS_NAME$( $BUNDLE_CLASS_NAME$& bundle )
- : IView( bundle ),
- fCommandHandler( *this, handleCommand )
- {
- }
-
- void
- $VIEW_CLASS_NAME$::initialize()
- {
- $VIEW_SUPER_CLASS$::initialize();
-
- /////////////////////////////////////////
- // ADD initialization code here
- /////////////////////////////////////////
-
- fCommandHandler.handleEventsFor( this );
- }
-
- void
- $VIEW_CLASS_NAME$::finalize()
- {
- fCommandHandler.stopHandlingEventsFor( this );
-
- /////////////////////////////////////////
- // ADD finalization code here
- /////////////////////////////////////////
-
- $VIEW_SUPER_CLASS$::finalize();
- }
-
- Boolean
- $VIEW_CLASS_NAME$::handleCommand( ICommandEvent& cmdEvent )
- {
- /////////////////////////////////////////
- // ADD Event Processing here
- /////////////////////////////////////////
-
- return false;
- }
-
- void
- $VIEW_CLASS_NAME$::drawContents( IPresSpaceHandle& ps, const IRectangle&, Boolean )
- {
- /////////////////////////////////////////
- // ADD Drawing of your view here
- /////////////////////////////////////////
- }
-
- </define>
- </code VIEW>
-
- --------------------------------------------------------------------------------
- -- DocumentComponentView direct subclass template
- --------------------------------------------------------------------------------
- <code DOCUMENT_VIEW>
- <define CLASS_SUPERS>ITDocumentComponentView\</define>
- $VIEW$\<>
- </code DOCUMENT_VIEW>
-
- --------------------------------------------------------------------------------
- -- A list of views
- --------------------------------------------------------------------------------
- <code DOCUMENT_VIEW_CLASSES>
- <define VIEW_SUPER_CLASS>
- IView\<>
- </define>
- <define BUNDLE_CLASS_NAME>
- IGUIBundle\<>
- </define BUNDLE_CLASS_NAME>
- $DOCUMENT_VIEW$\<>
- $CLASS$\<>
- </code DOCUMENT_VIEW>