home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / ODCNRVW.H < prev    next >
Text File  |  1997-02-28  |  4KB  |  120 lines

  1. /*====START_GENERATED_PROLOG======================================
  2.  */
  3. /*
  4.  *   COMPONENT_NAME: odui
  5.  *
  6.  *   CLASSES: none
  7.  *
  8.  *   ORIGINS: 82,27
  9.  *
  10.  *
  11.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12.  *   All Rights Reserved
  13.  *   Licensed Materials - Property of IBM
  14.  *   US Government Users Restricted Rights - Use, duplication or
  15.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16.  *       
  17.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23.  *   OR PERFORMANCE OF THIS SOFTWARE.
  24.  */
  25. /*====END_GENERATED_PROLOG========================================
  26.  */
  27. /* @(#) 1.3 com/src/ui/ODCnrVw.h, odui, od96os2, odos29646d 10/31/96 12:45:40 [11/15/96 15:52:42] */
  28. /*
  29.   File:    odcnrvw.h
  30.  
  31.   Contains:  Procedural interfaces to the ODViewExtension component
  32.  
  33.   Written by:  Ajay Apte
  34.  
  35.   Copyright:  1993-1994 IBM
  36.  
  37.  
  38.   To Do:
  39. */
  40.  
  41. #ifndef _ODCNRVWH_
  42. #define _ODCNRVWH_
  43.  
  44. #define INCL_WINHELP
  45. #define INCL_DOS
  46. #define INCL_WINPOINTERS
  47. #define INCL_WINWINDOWMGR
  48. #define INCL_WIN
  49. #define INCL_BASE
  50. #define INCL_GPI
  51. #define INCL_WPCLASS
  52. #define INCL_DEV
  53. #define INCL_DOSMODULEMGR
  54. #define INCL_PM
  55. #define INCL_ODAPI
  56. #include <os2.h>
  57. #define INCL_WINSTDCNR
  58. #include <pmstddlg.h>
  59.  
  60. // By default 10 columns are shown in the details view.
  61. #define DEFAULT_NUMOFCOLS   10
  62.  
  63. // The split bar occurs after first 2 columns (icon and title).
  64. #define CX_SPLITBAR 120
  65.  
  66. // All the title strings,  default icons are loaded from ODRes.dll
  67. #define ODRES_DLL "odres.dll"
  68.  
  69. class ODPart;
  70. class ODFrame;
  71. typedef struct _ODINFO {
  72.  MINIRECORDCORE              RecordCore;             // MINIRECORDCORE struct
  73.  ULONG        cb;                     // Strcuture size
  74.  ODPart*        part;                   // part object reference
  75.  string       partCategory;           // stored part category
  76.  string            partKind;               // stored part kind
  77.  string            partEditor;             // preferred part editor
  78.  string            partCreateDate;         // initial creation date
  79.  string            partCreateTime;         // initial creation time
  80.  string            partLastModifyDate;     // last modification date
  81.  string            partLastModifyTime;     // last modification time
  82.  string            partLastModifyUser;     // last modifier
  83.  ULONG          partSize;               // size in bytes of part
  84.  struct _ODINFO  *BranchRoot;           // The container that is the parent
  85.  struct _ODINFO  *Leaf;                 // If this is a container, points
  86.  struct _ODINFO  *Next;                 // The next part embedded in the
  87.  ODFrame*      partFrame;          // the Frame for the part. 141192
  88. } ODINFO;
  89. typedef ODINFO *PODINFO;
  90.  
  91. class ODCnrView;
  92.  
  93. typedef struct _ODCnrViewList {
  94.    ODCnrView *ContainerView;
  95.    ULONG viewType;
  96.    struct _ODCnrViewList   *Next;
  97. } ODCnrViewList;
  98. typedef ODCnrViewList *PODCneViewList;
  99.  
  100. //--------------------------Structures-----------------------------
  101. // added for defect 141192 - menu/popup for Container Views
  102.  
  103. extern "C" {
  104.  
  105.   typedef struct _ODINFO2
  106.   {
  107.     MINIRECORDCORE      minirecordCore;
  108.     PSZ                 DraftTitle;
  109.     USHORT              DraftNumber;
  110.     PSZ                 CreatorUserName;
  111.     CDATE               date;
  112.     CTIME               time;
  113.     PSZ                 Comments;
  114.  
  115.   } ODINFO2, *PODINFO2;
  116.  
  117.  
  118. }
  119. #endif // _ODCNRVWH_
  120.