DEFINITION MODULE WPTEMPS;

(***************************************************************************
  OS/2 2.1 Workplace class interface for WPTemplates

  Copyright (c) 1994 by Juergen Neuhoff
****************************************************************************)

(*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)
(*$CDECL+    C-style procedures                                         *)
(*$A         default alignment for record fields                        *)

IMPORT SOM;
IMPORT WPFOLDER;

TYPE PSOMClass              = SOM.PSOMClass;
TYPE INTEGER4               = SOM.INTEGER4;
TYPE somMToken              = SOM.somMToken;
TYPE somDToken              = SOM.somDToken;
TYPE somMethodProc          = SOM.somMethodProc;
TYPE PWPTemplates           = POINTER TO WPTemplates;
TYPE PM_WPTemplates         = POINTER TO M_WPTemplates;

(************************************************************************
  Additional TYPE- and CONST-declarations supporting WPTemplates
*************************************************************************)


(*************************************************************************
  SOM class API for WPTemplates, including type-bound procedures
**************************************************************************)

CONST
  WPTemplates_MajorVersion     = 1;
  WPTemplates_MinorVersion     = 2;

TYPE
  WPTemplatesClassDataStructure     = RECORD
    classObject                       : PSOMClass;
                                      END;

VAR
  WPTemplatesClassData : WPTemplatesClassDataStructure;

TYPE
  (*$SOM+ *)
  WPTemplates = RECORD( WPFOLDER.WPFolder ) END;
  (*$SOM- *)


PROCEDURE WPTemplatesNewClass
(
  majorVersion  : INTEGER4;
  minorVersion  : INTEGER4
)               : PSOMClass;


(*************************************************************************
  SOM class API for M_WPTemplates, including type-bound procedures
**************************************************************************)

CONST
  M_WPTemplates_MajorVersion   = 1;
  M_WPTemplates_MinorVersion   = 2;

TYPE
  M_WPTemplatesClassDataStructure   = RECORD
    classObject                       : PSOMClass;
                                      END;

VAR
  M_WPTemplatesClassData : M_WPTemplatesClassDataStructure;

TYPE
  (*$SOM+ *)
  M_WPTemplates = RECORD( WPFOLDER.M_WPFolder ) END;
  (*$SOM- *)


PROCEDURE M_WPTemplatesNewClass
(
  majorVersion : INTEGER4;
  minorVersion : INTEGER4
)              : PSOMClass;


END WPTEMPS.
