home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / FocusMod.idl < prev    next >
Text File  |  1997-03-21  |  4KB  |  135 lines

  1. /* @(#)Z 1.2 com/src/ui/idl/FocusMod.idl, odui, od96os2, odos29712d 97/03/21 17:20:47 (96/07/15 18:28:37) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odui
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28. #ifdef __PRIVATE__
  29. //#
  30. //#    File:        FocusMod.idl
  31. //#
  32. //#    Contains:    Class definition for ODFocusModule
  33. //#
  34. //#    Owned by:    Richard Rodseth
  35. //#
  36. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  37. //#
  38. //#    Change History (most recent first):
  39. //#
  40. //#         <8>     8/15/95    RR        #1275241 IDL Review
  41. //#         <7>      8/3/95    RR        #1257260: Collapse B classes. Remove
  42. //#                                    somInit methods. Don't call IsInitialized
  43. //#                                    or SubclassResponsibility
  44. //#         <6>     5/25/95    VL        1251403: Multithreading naming support.
  45. //#         <5>      9/2/94    RR        #1184275 Pass transferringFrame and
  46. //#                                    newOwner to focusModule::TransferFocus
  47. //#         <4>     8/15/94    JBS        1181174: added TranferFocusOwnership()
  48. //#         <3>     9/26/94    RR        Added fInitialized
  49. //#         <2>     6/16/94    RR        Added function prefix
  50. //#         <1>      6/8/94    RR        first checked in
  51. //#         <3>      6/7/94    RR        Privatise change log
  52. //#
  53. //#    To Do:
  54. //#
  55. #else
  56. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  57. #endif
  58.  
  59. #ifndef _FOCUSMOD_
  60. #define _FOCUSMOD_
  61.  
  62. #ifndef _ODOBJECT_
  63. #include "ODObject.idl"
  64. #endif
  65.  
  66. //=====================================================================================
  67. // Classes defined in this interface
  68. //=====================================================================================
  69.  
  70. interface  ODFocusModule;
  71.  
  72. //=====================================================================================
  73. // Classes used by this interface
  74. //=====================================================================================
  75.  
  76. interface  ODSession;
  77. interface  ODFrame;
  78. interface  ODFocusOwnerIterator;
  79.  
  80. //=====================================================================================
  81. // Class ODFocusModule
  82. //=====================================================================================
  83.  
  84. interface ODFocusModule : ODObject
  85. {
  86.     void InitFocusModule(in ODSession session);
  87.  
  88.     ODBoolean IsFocusExclusive(in ODTypeToken focus);
  89.  
  90.     void SetFocusOwnership(in ODTypeToken focus, in ODFrame frame);
  91.  
  92.     void UnsetFocusOwnership(in ODTypeToken focus, in ODFrame frame);
  93.  
  94.     void TransferFocusOwnership(in ODTypeToken focus, 
  95.                                 in ODFrame transferringFrame,
  96.                                   in ODFrame newOwner);
  97.  
  98.     ODFrame AcquireFocusOwner(in ODTypeToken focus);
  99.  
  100.     ODFocusOwnerIterator CreateOwnerIterator(in ODTypeToken focus);
  101.  
  102.     ODBoolean BeginRelinquishFocus(in ODTypeToken focus,
  103.                                    in ODFrame requestingFrame);
  104.  
  105.     void CommitRelinquishFocus(in ODTypeToken focus,
  106.                                in ODFrame requestingFrame);
  107.  
  108.     void AbortRelinquishFocus(in ODTypeToken focus,
  109.                               in ODFrame requestingFrame);
  110.  
  111. #ifdef __SOMIDL__
  112.     implementation
  113.       {
  114.         majorversion = 1; minorversion = 0;
  115.         
  116.           functionprefix = ODFocusModule;
  117.              
  118.         releaseorder:
  119.             InitFocusModule,
  120.             IsFocusExclusive,
  121.             SetFocusOwnership,
  122.             UnsetFocusOwnership,
  123.             TransferFocusOwnership,
  124.             AcquireFocusOwner,
  125.             CreateOwnerIterator,
  126.             BeginRelinquishFocus,
  127.             CommitRelinquishFocus,
  128.             AbortRelinquishFocus;
  129.         
  130.       };
  131. #endif //# __SOMIDL__
  132. };
  133.  
  134. #endif //# _FOCUSMOD_
  135.