home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / FOCUSMOD.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  94 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15. #ifndef _FOCUSMOD_
  16. #define _FOCUSMOD_
  17.  
  18. #ifndef _ODOBJECT_
  19. #include "ODObject.idl"
  20. #endif
  21.  
  22. //=====================================================================================
  23. // Classes defined in this interface
  24. //=====================================================================================
  25.  
  26. interface  ODFocusModule;
  27.  
  28. //=====================================================================================
  29. // Classes used by this interface
  30. //=====================================================================================
  31.  
  32. interface  ODSession;
  33. interface  ODFrame;
  34. interface  ODFocusOwnerIterator;
  35.  
  36. //=====================================================================================
  37. // Class ODFocusModule
  38. //=====================================================================================
  39.  
  40. interface ODFocusModule : ODObject
  41. {
  42.   void InitFocusModule(in ODSession session);
  43.  
  44.   ODBoolean IsFocusExclusive(in ODTypeToken focus);
  45.  
  46.   void SetFocusOwnership(in ODTypeToken focus, in ODFrame frame);
  47.  
  48.   void UnsetFocusOwnership(in ODTypeToken focus, in ODFrame frame);
  49.  
  50.   void TransferFocusOwnership(in ODTypeToken focus, 
  51.                 in ODFrame transferringFrame,
  52.                   in ODFrame newOwner);
  53.  
  54.   ODFrame AcquireFocusOwner(in ODTypeToken focus);
  55.  
  56.   ODFocusOwnerIterator CreateOwnerIterator(in ODTypeToken focus);
  57.  
  58.   ODBoolean BeginRelinquishFocus(in ODTypeToken focus,
  59.                    in ODFrame requestingFrame);
  60.  
  61.   void CommitRelinquishFocus(in ODTypeToken focus,
  62.                  in ODFrame requestingFrame);
  63.  
  64.   void AbortRelinquishFocus(in ODTypeToken focus,
  65.                 in ODFrame requestingFrame);
  66.  
  67. #ifdef __SOMIDL__
  68.   implementation
  69.     {
  70.       functionprefix = ODFocusModule;
  71.  
  72.   override:
  73.        somInit,
  74.        somUninit;
  75.  
  76.      releaseorder:
  77.         InitFocusModule,
  78.         IsFocusExclusive,
  79.         SetFocusOwnership,
  80.         UnsetFocusOwnership,
  81.     TransferFocusOwnership,
  82.     AcquireFocusOwner,
  83.         CreateOwnerIterator,
  84.         BeginRelinquishFocus,
  85.         CommitRelinquishFocus,
  86.         AbortRelinquishFocus;
  87.  
  88.  
  89.     };
  90. #endif
  91. };
  92.  
  93. #endif // _FOCUSMOD_
  94.