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

  1.  
  2. #ifndef _ODVIEWEXT_
  3. #define _ODVIEWEXT_
  4.  
  5. #ifndef _ODTYPESM_
  6. #include "ODTypesM.idl"
  7. #endif
  8.  
  9. #ifndef _EXTENSN_
  10. #include "Extensn.idl"
  11. #endif
  12.  
  13. #ifndef _PART_
  14. #include "part.idl"
  15. #endif
  16.  
  17. //==============================================================================
  18. // Theory of Operation
  19. //==============================================================================
  20.  
  21. /*
  22.    ODViewExtension is implemented as a subclass of ODExtension. The default
  23.    implementation of ODViewExtension provides for a container control that
  24.    will display a tree, details and icon views of the parts hierarchy, similar
  25.    to the way workplace shell displays directories/files in thier
  26.    implementation of views.
  27. */
  28.  
  29. //=====================================================================================
  30. // Constants
  31. //==================================================================================
  32.  
  33. //==============================================================================
  34. // Classes defined in this interface
  35. //==============================================================================
  36.  
  37. interface  ODViewExtension;
  38.  
  39. //=====================================================================================
  40. // Implementation Types
  41. //==================================================================================
  42.  
  43. #ifdef _PLATFORM_OS2_
  44.    typedef somToken ODFIELDINFO;
  45. #endif
  46.  
  47. //==============================================================================
  48. // Classes used by this interface
  49. //==============================================================================
  50. interface ODCnrView;
  51.  
  52. //==============================================================================
  53. // ODViewExtension
  54. //==============================================================================
  55.  
  56. interface ODViewExtension : ODExtension
  57. {
  58.  
  59.    void      InitViewExtension(           in    ODPart      part              );
  60.  
  61.    ODBoolean DisplayView(                 in    ODPart      rootpart,
  62.                                           in    ODULong     ulViewType        );
  63.  
  64.    ODBoolean AddDetailsColumns(           in    ODFIELDINFO *pPartODFieldInfo,
  65.                                           in    char        **sColDataType,
  66.                                           in    char        **sPartSUPropName,
  67.                                           in    char        **sPartSUValName,
  68.                                           in    ODULong     ulNumberofColumns );
  69.  
  70.  
  71. #ifdef __SOMIDL__
  72.   implementation
  73.   {
  74.       functionprefix = ODViewExtension;
  75.  
  76.       override:
  77.          somInit,
  78.          somUninit,
  79.          GetBase;
  80.       releaseorder:
  81.          InitViewExtension,
  82.          DisplayView,
  83.          AddDetailsColumns,
  84.          reserved1,
  85.          reserved2,
  86.          reserved3;
  87.  
  88.  
  89.    };
  90.    #endif
  91. }; // End ODViewExtension Class
  92.  
  93. #endif
  94.