home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / INFODEFS.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  8KB  |  201 lines

  1. /* @(#)Z 1.5 com/src/core/InfoDefs.h, odcore, od96os2, odos29646d 96/11/15 15:24:45 (96/10/29 09:20:39) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odcore
  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.  
  29. /*
  30.         File:           InfoDefs.h
  31.  
  32.         Contains:       constants used in both the code & resource of Info
  33.  
  34.         Owned by:       Tantek éelik
  35.  
  36.         Copyright:      ⌐ 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  37.  
  38.         Change History (most recent first):
  39.  
  40.                 <10>    10/16/95        CC              GM 1292157: Added kPartInfoEditorLabel and
  41.                                                                         kPartInfoNoEditorText.
  42.                  <9>     4/27/95        Té              1223529 BB: ODSetPOName and ODSetIconFamily
  43.                                                                         should tweak file in root part case (Did
  44.                                                                         name piece)
  45.                  <8>     3/28/95        Té              #1151710 BB: Toolbox running out of app
  46.                                                                         heap.  Document Size dialog implemented.
  47.                  <7>     3/24/95        CG              Brought back Editor ID field.
  48.                  <6>     3/23/95        Té              #1151710 BB: Toolbox running out of app
  49.                                                                         heap. (Not done).  Document Size dialog
  50.                                                                         partially implemented.  Added constants for
  51.                                                                         resources.
  52.                  <5>     2/24/95        CG              1221029, 1221185: Info dialog appearance
  53.                                                                         problems.
  54.                  <4>     2/10/95        CG              #1187539: Renaming a document using
  55.                                                                         Document Info handles file name conflicts.
  56.                  <3>     9/26/94        Té              #1188044 Part Info Checkbox behaviour
  57.                  <2>     9/15/94        Té              #1183571 implement Settings Extension
  58.                  <1>     7/11/94        Té              first checked in
  59.                  <1>     7/11/94        Té              first checked in
  60.                  <1>     7/11/94        Té              first checked in
  61.                  <0>      7/5/94        SV              SOMverted
  62.                  <2>     4/13/94        Té              #1147222: Fix the View As popup in the Part
  63.                                                                         Frame Info dialog.  Also fix the Category
  64.                                                                         text, and the Kind & Editor popups to show
  65.                                                                         the current kind & editor respectively.
  66.                  <1>    11/18/93        Té              first checked in
  67.  
  68.         To Do:
  69. */
  70.  
  71. #ifndef _INFODEFS_
  72. #define _INFODEFS_
  73.  
  74. #ifndef _ODTYPES_
  75. #include <ODTypes.h>
  76. #endif
  77.  
  78. #ifndef SOM_ODWindowState_xh
  79. #include <WinStat.xh>
  80. #endif
  81.  
  82. #ifndef SOM_ODNameSpaceManager_xh
  83. #include "NmSpcMg.xh"
  84. #endif
  85.  
  86. #ifndef _ORDCOLL_
  87. #include "OrdColl.h"
  88. #endif
  89.  
  90. #if defined(_PLATFORM_WIN32_)
  91. #ifndef _ODTYPESP_
  92. #include <ODTypesP.h>
  93. #endif
  94. #endif // defined(_PLATFORM_WIN32_)
  95.  
  96.  
  97. //==============================================================================
  98. // Defines
  99. //==============================================================================
  100. #define OD_KIND_MAX     128                 /* Max length of a kind name */
  101. #define OD_EDITOR_MAX   128                 /* Max length of an editor name */
  102. #define OD_REGKEY_MAX   128                 /* Max length of an editor name */
  103.  
  104. #define kPartInfoDlgID          1001
  105. #define kPartInfoKindCntl               1201
  106. #define kPartInfoKindMenu               1201
  107. #define kPartInfoEditorCntl             1202
  108. #define kPartInfoEditorMenu             1202
  109. #define kPartInfoViewAsCntl             1203
  110. #define kPartInfoViewAsMenu             1203
  111.  
  112. #define kPartInfoVertSep                25
  113. #define kPartInfoHorizSep                       26
  114.  
  115. /* Changeable fields in Part Info dialog */
  116. #define kPartInfoOKBtn                          1
  117. #define kPartInfoCancelBtn                      2
  118. #define kPartInfoSettingsButton     3
  119. #define kPartInfoCommentsEditFld    4
  120. #define kPartInfoByFld                          5
  121. #define kPartInfoModifiedFld            7
  122. #define kPartInfoCreatedFld                     9
  123. #define kPartInfoSizeFld                        11
  124. #define kPartInfoSep1                       13
  125. #define kPartInfoEditorPopup            14
  126. #define kPartInfoKindPopup                      15
  127. #define kPartInfoCategoryFld            16
  128. #define kPartInfoSep2                       18
  129. #define kPartInfoShowLinksCheckbox  22
  130. #define kPartInfoShowLinksText          23
  131. #define kPartInfoStationeryCheckbox     24
  132. #define kPartInfoStationeryText         25
  133. #define kPartInfoBundledCheckbox    26
  134. #define kPartInfoViewAsPopup            28
  135. #define kPartInfoNameEditFld            29
  136. #define kPartInfoPartThumbnail      31
  137. #define kPartInfoDefaultButtonItem      32
  138. #define kPartInfoIDFld                          33
  139. #define kPartInfoMemorySizeButton       35
  140. #define kPartInfoEditorLabel            36
  141. #define kPartInfoNoEditorText           37
  142.  
  143.  
  144. // Strings used by Part Info dialogs
  145. #define kODPartInfoSizeInBytes                  140
  146. #define kODPartInfoSizeInK                              141
  147. // #define kODPartInfoStrUnknownID                 142
  148. #define kODDocumentInfoWindowName               143
  149.  
  150. /* Document Heap dialog defines */
  151. /* resource ids in the 3000-5000 range in this file are reserved for the Doc Heap dialog */
  152.  
  153. #define kDocHeapDlgID           3001
  154.  
  155. #define kArrowBtnsCntlID                3101
  156.  
  157. #define kPICTRsrcType                   'PICT'
  158. #define kSIZERsrcType                   'SIZE'
  159.  
  160. #define kArrowBtnsPictOffID             3201
  161. #define kArrowBtnsPictTopOnID   3202
  162. #define kArrowBtnsPictBotOnID   3203
  163.  
  164.  
  165. #define kDocHeapOKBtn                           1
  166. #define kDocHeapCancelBtn                       2
  167. #define kDocHeapDefaultSizeRadBtn       3
  168. #define kDocHeapDefaultSizeFld          4
  169. #define kDocHeapDefaultSizeBtns         16
  170. #define kDocHeapPreferdSizeRadBtn       6
  171. #define kDocHeapPreferdSizeFld          7
  172. #define kDocHeapPreferdSizeBtns         18
  173. #define kDocHeapDocumentNameFld         10
  174. #define kDocHeapDefaultButtonItem       14
  175. #define kDocHeapDefaultSizeTopBtnRect 15
  176. #define kDocHeapDefaultSizeBotBtnRect 5
  177. #define kDocHeapPreferdSizeTopBtnRect 17
  178. #define kDocHeapPreferdSizeBotBtnRect 8
  179.  
  180.  
  181.  
  182. //==============================================================================
  183. // Constants
  184. //==============================================================================
  185.  
  186.  
  187. //==============================================================================
  188. // Classes used by this interface
  189. //==============================================================================
  190.  
  191. class   ODFrame;
  192. class   ODStorageUnit;
  193. class   ODPart;
  194. class   ODPersistentObject;
  195. class   ODTypeList;
  196. class   EditorSet;
  197. class   ODSession;
  198. class   PlatformFile;
  199.  
  200. #endif // _INFODEFS_
  201.