home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / UI / WinMod.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  3.1 KB  |  98 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        WinMod.cpp
  3.  
  4.     Contains:    Implementation of ODWindowModule
  5.  
  6.     Owned by:    Chris Linn
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>      11/27/96    CSL        first checked in
  13.  
  14.     To Do:
  15. */
  16.  
  17. /*
  18.  *  This file was generated by the SOM Compiler.
  19.  *  Generated using: 
  20.  *      SOM Emitter emitxtm.dll: 2.33
  21.  */
  22.  
  23. #define ODWindowModule_Class_Source
  24. #define VARIABLE_MACROS
  25. #include "WinMod.xih"
  26.  
  27. SOM_Scope void  SOMLINK ODWindowModuleInitWindowModule(ODWindowModule *somSelf, Environment *ev)
  28. {
  29.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  30.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModuleInitWindowLayerModule");
  31.  
  32.     SOM_TRY
  33.         
  34.         somSelf->InitRefCntObject(ev);
  35.  
  36.     SOM_CATCH_ALL
  37.     SOM_ENDTRY
  38. }
  39.  
  40. SOM_Scope void  SOMLINK ODWindowModuleShowWindow(ODWindowModule *somSelf, Environment *ev,
  41.         ODPlatformWindow window,
  42.         ODWindowLayer layer)
  43. {
  44.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  45.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModuleShowWindow");
  46.  
  47.     WARN("A subclass should have overridden this method!");
  48.     ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  49. }
  50.  
  51. SOM_Scope void  SOMLINK ODWindowModuleHideWindow(ODWindowModule *somSelf, Environment *ev,
  52.         ODPlatformWindow window)
  53. {
  54.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  55.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModuleHideWindow");
  56.  
  57.     WARN("A subclass should have overridden this method!");
  58.     ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  59. }
  60.  
  61. SOM_Scope void  SOMLINK ODWindowModuleSelectWindow(ODWindowModule *somSelf, Environment *ev,
  62.         ODPlatformWindow window)
  63. {
  64.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  65.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModuleSelectWindow");
  66.  
  67.     WARN("A subclass should have overridden this method!");
  68.     ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  69. }
  70.  
  71. SOM_Scope void  SOMLINK ODWindowModuleDeactivateFrontWindows(ODWindowModule *somSelf, Environment *ev)
  72. {
  73.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  74.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModuleDeactivateFrontWindows");
  75.  
  76.     WARN("A subclass should have overridden this method!");
  77.     ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  78. }
  79.  
  80. SOM_Scope void  SOMLINK ODWindowModuleActivateFrontWindows(ODWindowModule *somSelf, Environment *ev)
  81. {
  82.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  83.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModuleActivateFrontWindows");
  84.  
  85.     WARN("A subclass should have overridden this method!");
  86.     ODSetSOMException(ev,kODErrSubClassResponsibility, "SubClass Responsibility");
  87. }
  88.  
  89. SOM_Scope void  SOMLINK ODWindowModulesomInit(ODWindowModule *somSelf)
  90. {
  91.     /* ODWindowModuleData *somThis = ODWindowModuleGetData(somSelf); */
  92.     ODWindowModuleMethodDebug("ODWindowModule","ODWindowModulesomInit");
  93.  
  94.     SOMClass* cls = somSelf->somGetClass();
  95.     cls->somMakeDynamicClassReference();
  96.     somReleaseClassReference ( cls );
  97. }
  98.