home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / namrslvr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  3.3 KB  |  124 lines

  1. /*
  2.     File:        NamRslvr.h
  3.  
  4.     Contains:    XMPNameResolver class.
  5.  
  6.     Written by:    Nick Pilch
  7.  
  8.     Copyright:    ⌐ 1993-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <18>      2/9/94    NP        Tiger Team cleanup.
  13.         <17>      2/7/94    NP        Tiger Team doings.
  14.         <16>     1/14/94    NP        Init changes.
  15.         <15>     1/11/94    eeh        removed XMPPart* param from CreateSwapToken
  16.         <14>    12/20/93    NP        Support for last chance shell handling of
  17.                                     events.
  18.         <13>    12/15/93    NP        Added GetContextInfo and
  19.                                     GetContainingFrame.
  20.         <12>     11/5/93    NP        Added CallObjectAccessor.
  21.         <11>     9/20/93    NP        Added parameter to Resolve.
  22.         <10>     8/25/93    NP        Included SemtIntf.h
  23.          <9>     8/19/93    NP        Changed parameters to MakeToken and
  24.                                     MakePartToken.
  25.          <8>     8/18/93    NP        Changed parameters to Resolve.
  26.          <7>     8/16/93    NP        Adjusted for latest OSL proposal.
  27.          <6>     7/28/93    NP        Tweaked interfaces.
  28.          <5>     7/21/93    NP        Fooling with.
  29.          <4>      7/2/93    CG        Abstract/Concrete breakout.
  30.          <3>     4/28/93    NP        File name changes.
  31.          <2>     4/23/93    NP        Added Initialize and Purge.
  32.          <1>     4/13/93    NP        first checked in
  33.  
  34.     To Do:
  35. */
  36.  
  37. #ifndef _NAMRSLVR_
  38. #define _NAMRSLVR_
  39.  
  40. #ifndef _XMPTYPES_
  41. #include "XMPTypes.h"
  42. #endif
  43.  
  44. #ifndef _XMPOBJ_
  45. #include "XMPObj.h"
  46. #endif
  47.  
  48. //==============================================================================
  49. // Classes defined in this interface
  50. //==============================================================================
  51.  
  52. class XMPAbsNameResolver;
  53.  
  54. //==============================================================================
  55. // Classes used by this interface
  56. //==============================================================================
  57.  
  58. class XMPPart;
  59. class XMPFrame;
  60.  
  61. //==============================================================================
  62. // Structures used by this interface
  63. //==============================================================================
  64.  
  65. class XMPOSLToken;
  66.  
  67. //==============================================================================
  68. // XMPAbsNameResolver
  69. //==============================================================================
  70.  
  71. class XMPAbsNameResolver : public XMPObject
  72. {
  73.   public:
  74.  
  75.     XMPVMethod void            Resolve(XMPObjectSpec*            theObject, 
  76.                                       XMPOSLToken*    token,
  77.                                      XMPPart*        contextPart) 
  78.         = 0;
  79.  
  80.     XMPVMethod void            CreateSwapToken(XMPOSLToken*    token,
  81.                                                     XMPFrame*    frame)
  82.         = 0;
  83.     
  84.     XMPVMethod void            CreateToken(XMPOSLToken*        token,
  85.                                         DescType            type,
  86.                                         XMPPart*            inPart)
  87.         = 0;
  88.  
  89.     XMPVMethod XMPFrame*    GetContainingFrame()
  90.         = 0;
  91.  
  92.     XMPVMethod void            GetContextInfo(XMPFrame** frame, XMPPart** part)
  93.         = 0;
  94.  
  95.     XMPVMethod void            CallObjectAccessor(
  96.                                                 XMPPart*        part,
  97.                                                 DescType        desiredClass,
  98.                                                 XMPOSLToken*    containerToken,
  99.                                                  DescType        containerClass,
  100.                                                  DescType        keyForm,
  101.                                                 AEDesc*            keyData,
  102.                                                 XMPOSLToken*    token)
  103.         = 0;
  104.  
  105.     XMPVMethod void            DisposeToken(XMPOSLToken* theToken) 
  106.         = 0;
  107.  
  108.     XMPVMethod XMPSize        Purge(XMPSize howMuch) 
  109.         = 0;
  110.     
  111.   public: // Private by convention
  112.  
  113.     XMPAbsNameResolver() {}
  114.     XMPVMethod ~XMPAbsNameResolver() {}
  115. };
  116.  
  117. #ifdef PLATFORM_MACINTOSH
  118. #ifndef _NAMRSLVM_
  119. #include "NamRslvM.h"
  120. #endif
  121. #endif
  122.  
  123. #endif // _NAMRSLVR_
  124.