home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / ErrorDef.idl < prev    next >
Text File  |  1997-03-21  |  42KB  |  753 lines

  1. /* @(#) 1.25 com/src/include/idl/ErrorDef.idl, odcore, od96os2, odos29712d 3/12/97 08:28:26 [3/21/97 17:18:30] */
  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. #ifdef __PRIVATE__
  31. //#
  32. //#     File:           ErrorDef.idl
  33. //#
  34. //#     Contains:       Error constants
  35. //#
  36. //#     Owned by:       Nick Pilch
  37. //#
  38. //#     Copyright:      (r) 1994-95 by Apple Computer, Inc., all rights reserved.
  39. //#
  40. //#     Change History (most recent first):
  41. //#
  42. //#             <65>    04/23/96        brr               21467: Added kODErrUnknownID
  43. //#             <64>    04/22/96        brr               21316: Added kODErrDuplicateID and kODErrNotEnoughSubmenuIDs
  44. //#             <63>    10/24/95        jpa             1293441: VL: Added kODErrFatalContainerErr.
  45. //#             <62>     10/9/95        VL              1288571: Moved
  46. //#                                                                     kODErrNoSysTranslationFacility from
  47. //#                                                                     Translt.cpp.
  48. //#             <61>     4/10/95        NP              1287830:Remove kODErrStorageUnitLocked.
  49. //#             <60>     9/18/95        CG              1285279 GM: kODPartNotWrapper should be
  50. //#                                                                     kODErrPartNotWrapper.
  51. //#             <59>     9/12/95        DM              1278291: remove kODErrInvalidName
  52. //#             <58>     9/12/95        JBS             1282719 added kODErrInvalidIterator
  53. //#             <57>      9/8/95        Te              Bumped RlShlDef end of range in use to
  54. //#                                                                     -29815
  55. //#             <56>      9/8/95        VL              1282012: Removed kODErrDraftNotExists and
  56. //#                                                                     kODErrContainerNotExists.
  57. //#             <55>      9/8/95        JBS             1281770 added kODErrInvalidLinkStatus
  58. //#             <54>      9/8/95        jpa             Use officially assigned Mac OSErr codes
  59. //#                                                                     [1281354]. Added kODErrAlreadyNotified
  60. //#                                                                     [1282486]
  61. //#             <53>      9/1/95        CC              1278590: Added kODErrCannotEstablishLink.
  62. //#             <52>     8/31/95        JBS             1278337 added kODErrCanvasHasNoOwner
  63. //#             <51>     8/30/95        CG              #1278294 FB2:Moved
  64. //#                                                                     kODErrCannotFindSystemEditorsFolder and
  65. //#                                                                     kODErrCannotFindOpenDocLibrariesFolder from
  66. //#                                                                     here to RlShlDef.h
  67. //#             <50>     8/25/95        CC              1264154: Added
  68. //#                                                                     kODErrIllegalClipboardCloneKind.
  69. //#             <49>     8/25/95        NP              1263127: Remove kODErrCannotUndo.
  70. //#             <48>     8/24/95        EL              1278212: move private error code to
  71. //#                                                                     BentoDef.h.
  72. //#             <47>     8/22/95        eeh             1278280: error codes moved to RlShlDef.h
  73. //#             <46>     8/21/95        VL              1278330, 1278315: Added
  74. //#                                                                     kODErrIllegalNullContainerInput,kODErrIlleg
  75. //#                                                                     alNullDocumentInput,kODErrIllegalNullDraftI
  76. //#                                                                     nput,kODErrIllegalNullValueTypeInput,kODErr
  77. //#                                                                     IllegalNullIDInput,kODErrSUValueDoesNotExis
  78. //#                                                                     t,kODErrIllegalNonTopmostDraft.
  79. //#             <45>     8/21/95        RR              #1271358 Added kODErrInvalidCommandID
  80. //#             <44>     8/21/95        NP              1274946: Final obsoleted/renamed error code
  81. //#                                                                     changes
  82. //#             <43>     8/18/95        NP              1274946: Much change. Moved obsolete and
  83. //#                                                                     private codes to a __PRIVATE__ section.
  84. //#             <42>     8/16/95        NP              1274946: ErrorDef.idl problems. (partial).
  85. //#                                                                     1274949: ErrorDef.idl additions. (partial)
  86. //#             <41>     7/24/95        CC              1154714: Added
  87. //#                                                                     kODErrCannotRegisterDependent.
  88. //#             <40>     7/20/95        CC              1260342: Added
  89. //#                                                                     kODErrBackgroundClipboardClear.
  90. //#             <39>     6/23/95        JBS             1238245 add kODErrIllegalRecursiveEmbedding
  91. //#             <38>     6/23/95        JBS             1243657 added kODErrNotRootFrame
  92. //#             <37>     6/17/95        CC              1259902: Added kODErrUnknownUpdateID.
  93. //#                                                                     1259139: Added kODErrNoLinkContent.
  94. //#             <36>      6/1/95        jpa             Added kODErrCantLoadSOMClass [1242839]
  95. //#             <35>     5/25/95        VL              1251403: Multithreading naming support.
  96. //#             <34>     5/18/95        CC              1238898: Added kODErrNullDestinationFrame.
  97. //#                                                                     1250280: Added  kODErrNullLinkInfoInput,
  98. //#                                                                     kODErrNullLinkInfoResultInput, and
  99. //#                                                                     kODErrNullPasteAsResultInput. Renamed
  100. //#                                                                     kODErrNullFacetInput.
  101. //#             <33>      5/2/95        CC              1207493: Added kODErrMoveIntoSelf.
  102. //#             <32>      5/2/95        VL              1243122: Define kODErrValueIndexOutOfRange.
  103. //#             <31>      5/2/95        JBS             1243361 kODErrIteratorNotInitialized;
  104. //#                                                                     1243371 kODErrIllegalNullFacetInput,
  105. //#                                                                     kODErrIllegalNullFrameInput
  106. //#             <30>     4/28/95        eeh             1244410: define kODErrInvalidExtension and
  107. //#                                                                     kODErrUnknownExtension
  108. //#             <29>     4/27/95        eeh             1237283: added kODErrCannotUndo
  109. //#             <28>     4/26/95        CG              1240687 OpenDoc gives a cryptic error when
  110. //#                                                                     there is no Editors folder.
  111. //#             <27>     4/13/95        CG              #1221869: Added
  112. //#                                                                     kODErrCannotFindShellPlugInsFolder.
  113. //#             <26>      4/5/95        CG              #1216169 BB, #1221135: When Editors folder
  114. //#                                                                     or OpenDoc Libraries folder is missing,
  115. //#                                                                     OpenDoc quits and displays error.
  116. //#             <25>      4/3/95        JBS             1209506 added kODErrDoesNotUndo,
  117. //#                                                                     kODErrNoPromises, kODErrDoesNotDrop,
  118. //#                                                                     kODErrDoesNotLink, kODPartNotWrapper,
  119. //#                                                                     kODErrIllegalNullTokenInput,
  120. //#                                                                     kODErrIllegalNullShapeInput,
  121. //#                                                                     kODErrIllegalNullStorageUnitInput
  122. //#             <24>      3/9/95        VL              1220320: Moved public error codes from
  123. //#                                                                     Bento to here.
  124. //#             <23>     2/16/95        CG              #1210975 BB: $$$$$ Make that
  125. //#                                                                     kODErrPartInUse.
  126. //#             <22>     2/16/95        CG              #1210975 BB: $$$$$ Added kODPartInUse.
  127. //#             <21>     2/16/95        Te              #1210979 5-$ Bugs need to be evaluated in
  128. //#                                                                     Shell.
  129. //#                                                                     Added kODErrCouldNotBindForeignDocument,
  130. //#                                                                     kODErrSystemVolumeIsFull,
  131. //#                                                                     kODErrRefCountNotEqualOne
  132. //#                                                                     Renamed kODErrAllVolumesAreFull to
  133. //#                                                                     kODErrAllWritableVolumesAreFull
  134. //#             <20>      2/7/95        CC              1216124: Added kODErrNullFacet.
  135. //#             <19>     1/27/95        Te              1209735 Resolve $$$$$ comments in
  136. //#                                                                     PlfmFile.cpp
  137. //#                                                                     Added kODErrAllVolumesAreFull,
  138. //#                                                                     kODErrVolumesIsFull,
  139. //#                                                                     kODErrDirectoryNotHaveWriteAccess,
  140. //#                                                                     kODErrCannotSaveACopyOntoCurrentDoc,
  141. //#                                                                     kODErrCannotSaveACopyOntoBusyDoc
  142. //#                                                                     kODErrFileClosed, kODErrFileOpened
  143. //#             <18>     1/25/95        jpa             Added kODErrSOMException for use in
  144. //#                                                                     Except.cpp [1211083]
  145. //#             <17>     1/19/95        CC              1210964 Added kODErrNoEditionManager,
  146. //#                                                                     kODErrCorruptLinkSource, kODErrCorruptLink,
  147. //#                                                                     kODErrCannotRevealLink,
  148. //#                                                                     kODErrCannotFindLinkSourceEdition,
  149. //#                                                                     kODErrCannotFindLinkSource,
  150. //#                                                                     kODErrAlreadyImportedLink, and
  151. //#                                                                     kODErrLinkAlreadyExported.
  152. //#             <16>     1/18/95        VL              Added kODErrInvalidObjectType,
  153. //#                                                                     kODErrInvalidPersistentObjectID,
  154. //#                                                                     kODErrIllegalNullStorageSystemInput.
  155. //#             <15>    12/25/94        Te              1191189 Eliminate duplicate Def.h, Def.xh
  156. //#                                                                     files.  Need to check this in to force the
  157. //#                                                                     reemission of the .xh file.
  158. //#             <14>    11/14/94        VL              1188257: Moved Bento errors to BenotDef.h.
  159. //#             <13>     11/1/94        CC              1190911 - Added kODErrInvalidCloneKind.
  160. //#             <12>     10/4/94        CC              1190307 - Added kODErrBrokenLink and
  161. //#                                                                     kODErrBrokenLinkSource.
  162. //#             <11>      9/1/94        Te              #1183054 Removed kODErrNameNotExists.
  163. //#                                                                     Documented Error Code usage & creation
  164. //#                                                                     policy.
  165. //#             <10>     8/31/94        Te              #1183129, #1183116, #1183119, #1183111:
  166. //#                                                                     Lots of ErrorCode cleanup.
  167. //#              <9>     8/30/94        CG              #1152929: Removed
  168. //#                                                                     kODErrInvalidFileContents.
  169. //#              <8>     8/18/94        Te              #1181622 Set Owned By: field to myself
  170. //#              <7>      8/3/94        CC              Removed clipboard not locked error.
  171. //#              <6>     7/21/94        VL              Added kODErrSubClassResponsibility.
  172. //#              <5>     6/15/94        jpa             Added ODError exception defn.
  173. //#              <4>      6/7/94        RR              Privatise change log
  174. //#
  175. //#     To Do:
  176. //# In Progress:
  177. //#
  178. //#
  179. #else
  180. //#     Copyright:      (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  181. #endif
  182.  
  183.  
  184. #ifndef _ERRORDEF_
  185. #define _ERRORDEF_
  186.  
  187. #ifndef _ODTYPESB_
  188. #include "ODTypesB.idl"
  189. #endif
  190.  
  191. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  192. #pragma somemittypes on
  193. #endif
  194.  
  195. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  196. //# BEGIN-UNDER CONSTRUCTION
  197. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  198.  
  199. //              Reserved for linking    -29860 to -29910
  200.  
  201. #ifdef __PRIVATE__
  202.  
  203. /*      Private error codes are found in the following files:
  204.                 UtilErrs.h              -29849 .. -29830
  205.                 Window.cpp              -29828 .. -29827
  206.                 RlShlDef.h              -29826 .. -29815        [gap for future expansion]
  207.                 BentoDef.h              -29809 .. -29789
  208.  
  209.                 AEHshTbl.h               -1724 ..  -1722        [part of AE err range]
  210. */
  211.  
  212. #endif //# __PRIVATE__
  213.  
  214.  
  215.  
  216. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  217. //# END-UNDER CONSTRUCTION
  218. //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  219.  
  220. //#=============================================================================
  221. //# General Errors including ODObject
  222. //#=============================================================================
  223.  
  224. const ODError kODMinError                                               =       -29893; // Range of OD err codes
  225. #ifdef _PLATFORM_MACINTOSH_
  226. const ODError kODMinUsedError                                           =       -29756; //MAC only
  227. #endif //_PLATFORM_MACINTOSH_
  228.  
  229. #if (defined _PLATFORM_WIN32_ || defined _PLATFORM_OS2_ || defined _PLATFORM_AIX_)
  230. //********************************************************************************
  231. const ODError kODMinUsedError                                           =       -30818;  // for WIN32, OS2, and AIX
  232. //
  233. // Attention IBM Developers!
  234. //
  235. // All newly defined error codes must be in the range -30800 to -30849.
  236. //
  237. // Remember to keep kODMinUsedError up to date.
  238. //
  239. // Lets keep assigned error code values semantically the same for each platform.
  240. // In other words, if WIN32 defines an error code that doesn't apply to OS/2, then
  241. // OS/2 should skip that error code number.  Therefore, kODMinUsedError is the same
  242. // for WIN32, OS2, and AIX.
  243. //
  244.  
  245. #ifdef _PLATFORM_OS2_
  246. const ODError kODErrFacetPSnotAssocWithDC              = -30800; // OS/2 only
  247. #endif
  248.  
  249. #if (defined _PLATFORM_WIN32_ || defined _PLATFORM_OS2_ || defined _PLATFORM_AIX_)
  250. const ODError kODErrFacetChangeToOrFromOnscreenDynamic = -30801;
  251. const ODError kODErrInvalidParameter                   = -30802;
  252. const ODError kODErrOnlyOwnerCanChangeCanvas           = -30803;
  253. #endif //_PLATFORM_WIN32_ || _PLATFORM_OS2_ || _PLATFORM_AIX_
  254.  
  255. #ifdef _PLATFORM_WIN32_
  256. const ODError kODErrCannotExportToIDataObject           = -30804; // WIN32 only
  257. #endif
  258.  
  259. //********************************************************************************
  260. #endif //_PLATFORM_WIN32_ || _PLATFORM_OS2_ || _PLATFORM_AIX_
  261.  
  262. const ODError kODMaxError                                                       =       -29600;
  263.  
  264. //# Currently unused slots: None
  265.  
  266. const ODError kODNoError                                                        =       0;
  267.  
  268.  
  269. const ODError kODErrUndefined                                   =       -29600;
  270.  
  271. //# NEW
  272. const ODError kODErrAlreadyNotified                                     =       -29601;
  273.  
  274. const ODError kODErrIllegalNullInput                            =       -29602;
  275.  
  276. const ODError kODErrIllegalNullDispatchModuleInput      =       -29603;
  277. const ODError kODErrIllegalNullFacetInput                       =       -29604;
  278. const ODError kODErrIllegalNullFrameInput                       =       -29605;
  279. const ODError kODErrIllegalNullPartInput                =       -29606;
  280. const ODError kODErrIllegalNullTransformInput           =       -29607;
  281. const ODError kODErrIllegalNullStorageSystemInput       =       -29608;
  282. const ODError kODErrIllegalNullTokenInput                       =       -29609;
  283. const ODError kODErrIllegalNullShapeInput                       =       -29610;
  284. const ODError kODErrIllegalNullStorageUnitInput         =       -29611;
  285. const ODError kODErrIllegalNullPropertyInput            =       -29612;
  286. const ODError kODErrIllegalNullSUCursorInput            =       -29613;
  287. const ODError kODErrIllegalNullContainerInput       =   -29614;
  288. const ODError kODErrIllegalNullDocumentInput            =       -29615;
  289. const ODError kODErrIllegalNullDraftInput                       =       -29616;
  290. const ODError kODErrIllegalNullValueTypeInput       =   -29617;
  291. const ODError kODErrIllegalNullIDInput                          =       -29618;
  292.  
  293. //# NEW
  294. const ODError kODErrValueOutOfRange                                     =       -29619;
  295.  
  296. //# NEW
  297. const ODError kODErrInsufficientInfoInParams            =       -29620;
  298.  
  299. const ODError kODErrObjectNotInitialized                        =   -29621;
  300.  
  301. const ODError kODErrOutOfMemory                                 =       -29622;
  302.  
  303. const ODError kODErrNotImplemented                              =       -29623;
  304.  
  305. //# NEW
  306. const ODError kODErrInvalidPersistentFormat                     =       -29624;
  307.  
  308. const ODError kODErrSubClassResponsibility                      =       -29625;
  309.  
  310. //#------------------------------------------------------------------------------
  311. //# ODObject (& subclasses)
  312. //#------------------------------------------------------------------------------
  313.  
  314. const ODError kODErrUnsupportedExtension                =       -29626;
  315. const ODError kODErrInvalidExtension                    =       -29627;
  316. const ODError kODErrUnknownExtension                    =       -29628;
  317. const ODError kODErrInvalidObjectType                           =       -29629;
  318. const ODError kODErrInvalidPersistentObjectID           =       -29630;
  319. const ODError kODErrInvalidPersistentObject                     =       -29631;
  320.  
  321. //#------------------------------------------------------------------------------
  322. //# RefCountObject (& subclasses)
  323. //#------------------------------------------------------------------------------
  324.  
  325. const ODError kODErrZeroRefCount                                =       -29632;
  326.  
  327. //# NEW
  328. const ODError kODErrRefCountGreaterThanZero             =       -29633;
  329.  
  330. const ODError kODErrRefCountNotEqualOne                 =       -29634;
  331.  
  332. //#------------------------------------------------------------------------------
  333. //# Iterators
  334. //#------------------------------------------------------------------------------
  335.  
  336. const ODError kODErrIteratorOutOfSync                   =       -29635;
  337. const ODError kODErrIteratorNotInitialized              =       -29636;
  338. const ODError kODErrInvalidIterator                             =       -29755;
  339.  
  340. //#==============================================================================
  341. //# Parts Return These Errors
  342. //#==============================================================================
  343.  
  344. const ODError kODErrCannotEmbed                                 =       -29637;
  345. const ODError kODErrDoesNotUndo                                 =       -29638;
  346. const ODError kODErrNoPromises                                  =       -29639;
  347. const ODError kODErrDoesNotDrop                                 =       -29640;
  348. const ODError kODErrDoesNotLink                                 =       -29641;
  349. const ODError kODErrPartNotWrapper                      =       -29642;
  350.  
  351. //#==============================================================================
  352. //# Core
  353. //#==============================================================================
  354.  
  355. //#------------------------------------------------------------------------------
  356. //# ODNameSpaceManager, ODNameSpace
  357. //#------------------------------------------------------------------------------
  358.  
  359. const ODError kODErrKeyAlreadyExists                    =       -29643;
  360.  
  361. //# NEW
  362. const ODError kODErrInvalidNSName                                       =       -29644;
  363.  
  364. //# NEW
  365. const ODError kODErrInvalidNSType                                       =       -29645;
  366.  
  367. //#------------------------------------------------------------------------------
  368. //# PartWrapper
  369. //#------------------------------------------------------------------------------
  370.  
  371. const ODError kODErrPartInUse                                           =       -29646;
  372.  
  373. //#------------------------------------------------------------------------------
  374. //# PartWrapper
  375. //#------------------------------------------------------------------------------
  376.  
  377. //# NEW
  378. const ODError kODErrInvalidITextFormat                          =       -29647;
  379.  
  380. //#==============================================================================
  381. //# Imaging
  382. //#==============================================================================
  383.  
  384. const ODError kODErrInvalidGraphicsSystem               =       -29648;
  385.  
  386. //#------------------------------------------------------------------------------
  387. //# Shape
  388. //#------------------------------------------------------------------------------
  389.  
  390. const ODError kODErrNoShapeGeometry                             =       -29649; //# Shape has no polygon representation
  391.  
  392. //#------------------------------------------------------------------------------
  393. //# Transform
  394. //#------------------------------------------------------------------------------
  395.  
  396. const ODError kODErrTransformErr                                =       -29650; //# Illegal op on xform
  397.  
  398. //# NEW
  399. const ODError kODErrInvalidPlatformShape                        =       -29651;
  400.  
  401. //#==============================================================================
  402. //# Layout
  403. //#==============================================================================
  404.  
  405. //#------------------------------------------------------------------------------
  406. //# Facet
  407. //#------------------------------------------------------------------------------
  408.  
  409. const ODError kODErrCanvasNotFound                              =       -29652;
  410.  
  411. const ODError kODErrUnsupportedFramePositionCode        =       -29653;
  412.  
  413. const ODError kODErrInvalidFacet                                =       -29654;
  414.  
  415. const ODError kODErrFacetNotFound                               =       -29655;
  416. const ODError kODErrCanvasHasNoOwner                    =       -29656;
  417.  
  418. //#------------------------------------------------------------------------------
  419. //# Frame
  420. //#------------------------------------------------------------------------------
  421.  
  422. const ODError kODErrNotRootFrame                                        =       -29657;
  423. const ODError kODErrIllegalRecursiveEmbedding           =       -29658;
  424.  
  425. const ODError kODErrInvalidFrame                                =       -29659;
  426.  
  427. const ODError kODErrFrameHasFacets                      =       -29660;
  428.  
  429. const ODError kODErrInvalidLinkStatus                   =       -29754;
  430.  
  431. //#==============================================================================
  432. //# Memory
  433. //#==============================================================================
  434.  
  435. const ODError kODErrInvalidBlock                                =       -29661;    //# bad heap or damaged object
  436.  
  437. //#==============================================================================
  438. //# Messaging
  439. //#==============================================================================
  440.  
  441. //#------------------------------------------------------------------------------
  442. //# Semantic Interface
  443. //#------------------------------------------------------------------------------
  444.  
  445. //# NEW
  446. const ODError kODErrNotAnODToken                                =       -29662;
  447.  
  448. //# NEW
  449. const ODError kODErrCantCountFromLists                          =       -29663;
  450.  
  451. //#==============================================================================
  452. //# Storage
  453. //#==============================================================================
  454.  
  455. const ODError kODErrUnsupportedPosCode                  =       -29664;
  456. const ODError kODErrInvalidPermissions                  =       -29665;
  457.  
  458. const ODError kODErrCannotCreateContainer                       =       -29666;
  459. const ODError kODErrCannotOpenContainer                         =       -29667;
  460.  
  461. //# NEW
  462. const ODError kODErrFatalContainerError                         =       -29756;
  463.  
  464. //# NEW
  465. const ODError kODErrContainerDoesNotExist                       =       -29668;
  466.  
  467. //# NEW
  468. const ODError kODErrDocumentDoesNotExist                        =       -29669;
  469.  
  470. //# NEW
  471. const ODError kODErrDraftDoesNotExist                           =       -29670;
  472. const ODError kODErrDraftHasBeenDeleted                         =       -29671;
  473.  
  474. const ODError kODErrInvalidStorageUnit                          =       -29672;
  475.  
  476. //# NEW
  477. const ODError kODErrIllegalOperationOnSU                        =       -29673;
  478.  
  479. //# NEW
  480. const ODError kODErrSUValueDoesNotExist                         =       -29674;
  481.  
  482. //# NEW
  483. const ODError kODErrIllegalNonTopmostDraft                      =       -29675;
  484.  
  485. //# NEW
  486. const ODError kODErrNoSysTranslationFacility            =       -29680;
  487.  
  488. //#------------------------------------------------------------------------------
  489. //# Storage Unit
  490. //#------------------------------------------------------------------------------
  491.  
  492. const ODError kODErrNoValueAtThatIndex                  =       -29676;
  493. const ODError kODErrCannotAddProperty                           =       -29677;
  494.  
  495. const ODError kODErrUnfocusedStorageUnit                =       -29678;
  496. const ODError kODErrInvalidStorageUnitRef               =       -29679;
  497. //#const ODError kODErrStorageUnitLocked                        =       -29680;
  498. const ODError kODErrInvalidStorageUnitKey               =       -29681;
  499. const ODError kODErrStorageUnitNotLocked                =       -29682;
  500. const ODError kODErrInvalidDraftKey                                     =       -29683;
  501. const ODError kODErrCloningInProgress                           =   -29684;
  502. const ODError kODErrValueIndexOutOfRange                        =   -29685;
  503.  
  504. //# NEW
  505. const ODError kODErrInvalidValueType                            =       -29686;
  506.  
  507. //# NEW
  508. const ODError kODErrIllegalPropertyName                         =       -29687;
  509. const ODError kODErrPropertyDoesNotExist                        =       -29688;
  510.  
  511. //#------------------------------------------------------------------------------
  512. //# Draft
  513. //#------------------------------------------------------------------------------
  514.  
  515. const ODError kODErrNoDraftProperties                           =       -29689;
  516. const ODError kODErrCannotCreateFrame                           =       -29690;
  517. const ODError kODErrCannotAcquireFrame                  =       -29691;
  518. const ODError kODErrCannotCreatePart                    =       -29692; //# I hate this error.
  519. const ODError kODErrCannotAcquirePart                   =       -29693;
  520. const ODError kODErrCannotCreateLink                    =       -29694;
  521. const ODError kODErrCannotAcquireLink                   =       -29695;
  522.  
  523. const ODError kODErrInvalidID                                   =       -29696;
  524.  
  525. const ODError kODErrInconsistentCloneKind               =       -29697;
  526. const ODError kODErrInvalidCloneKind                    =       -29698;
  527. const ODError kODErrInvalidDestinationDraft                     =       -29699;
  528. const ODError kODErrMoveIntoSelf                                        =       -29700;
  529. const ODError kODErrNullDestinationFrame                        =       -29701;
  530.  
  531. //#------------------------------------------------------------------------------
  532. //# Document
  533. //#------------------------------------------------------------------------------
  534.  
  535. const ODError kODErrInvalidBelowDraft                           =       -29702;
  536. const ODError kODErrCannotCollapseDrafts                =       -29704;
  537. const ODError kODErrNonEmptyDraft                               =       -29705;
  538. const ODError kODErrNoPreviousDraft                             =       -29706;
  539. const ODError kODErrOutstandingDraft                    =       -29707;
  540. const ODError kODErrInvalidDraftID                              =       -29708;
  541. const ODError kODErrCannotChangePermissions             =       -29709;
  542.  
  543. //#------------------------------------------------------------------------------
  544. //# Storage System
  545. //#------------------------------------------------------------------------------
  546.  
  547. const ODError kODErrContainerExists                             =       -29710;
  548.  
  549. //#------------------------------------------------------------------------------
  550. //# LinkSpec
  551. //#------------------------------------------------------------------------------
  552.  
  553. const ODError kODErrCannotGetExternalLink               =       -29712;
  554. const ODError kODErrNoLinkSpecValue                             =       -29713;
  555. const ODError kODErrUnknownLinkSpecVersion              =       -29714;
  556. const ODError kODErrCorruptLinkSpecValue                =       -29715;
  557.  
  558. //#------------------------------------------------------------------------------
  559. //# Link
  560. //#------------------------------------------------------------------------------
  561.  
  562. const ODError kODErrNotExportedLink                             =       -29716;
  563. const ODError kODErrBrokenLink                                  =       -29717;
  564. const ODError kODErrCannotRevealLink                            =       -29718;
  565. const ODError kODErrCorruptLink                                         =       -29719;
  566. const ODError kODErrLinkAlreadyExported                         =       -29720;
  567. const ODError kODErrNoLinkContent                                       =       -29721;
  568. const ODError kODErrCannotRegisterDependent                     =       -29722;
  569.  
  570. //#------------------------------------------------------------------------------
  571. //# LinkSource
  572. //#------------------------------------------------------------------------------
  573.  
  574. const ODError kODErrNotImportedLink                             =       -29723;
  575. const ODError kODErrInvalidLinkKey                              =       -29724;
  576. const ODError kODErrBrokenLinkSource                    =       -29725;
  577. const ODError kODErrCorruptLinkSource                           =       -29726;
  578. const ODError kODErrCannotFindLinkSourceEdition         =       -29727; // Cannot locate source of cross document link because edition file does not exist
  579. const ODError kODErrCannotFindLinkSource                        =       -29728; // Cannot locate source of cross document link
  580. const ODError kODErrAlreadyImportedLink                         =       -29729; // Cannot create link due to Internal error
  581. const ODError kODErrUnknownUpdateID                                     =       -29730;
  582. const ODError kODErrCannotEstablishLink                         =       -29731;
  583.  
  584. //#------------------------------------------------------------------------------
  585. //# LinkManager
  586. //#------------------------------------------------------------------------------
  587.  
  588. const ODError kODErrNoEditionManager                            =       -29732;
  589. const ODError kODErrDocNotSaved                                         =       -29733;
  590.  
  591. //#------------------------------------------------------------------------------
  592. //# Data Interchange Dialogs
  593. //#------------------------------------------------------------------------------
  594.  
  595. const ODError kODErrNullFacetInput                                      =       -29734;
  596. const ODError kODErrNullLinkInfoInput                           =       -29735;
  597. const ODError kODErrNullLinkInfoResultInput                     =       -29736;
  598. const ODError kODErrNullPasteAsResultInput                      =       -29737;
  599.  
  600. //#------------------------------------------------------------------------------
  601. //# DragAndDrop
  602. //#------------------------------------------------------------------------------
  603.  
  604. const ODError kODErrNoDragManager                       =       -29738;
  605. const ODError kODErrNoDragSystemStorage                 =       -29739;
  606. const ODError kODErrDragItemNotFound                    =       -29740;
  607. const ODError kODErrCannotAllocateDragItem              =       -29741;
  608. const ODError kODErrUnknownDragImageType                =       -29742;
  609. const ODError kODErrDragTrackingException               =       -29743;
  610. const ODError kODErrDropFacetNotKnown                   =       -30805;
  611.  
  612. //#------------------------------------------------------------------------------
  613. //# Clipboard
  614. //#------------------------------------------------------------------------------
  615.  
  616. const ODError kODErrBackgroundClipboardClear            =       -29744;
  617. const ODError kODErrIllegalClipboardCloneKind           =       -29745;
  618.  
  619. //#==============================================================================
  620. //# UI
  621. //#==============================================================================
  622.  
  623. //#------------------------------------------------------------------------------
  624. //# Arbitrator
  625. //#------------------------------------------------------------------------------
  626.  
  627. const ODError kODErrFocusAlreadyRegistered              =       -29746;
  628. const ODError kODErrFocusNotRegistered                  =       -29747;
  629.  
  630. //#------------------------------------------------------------------------------
  631. //# Dispatcher
  632. //#------------------------------------------------------------------------------
  633.  
  634. const ODError kODErrDispatcherNotInitialized = -30806;
  635. const ODError kODErrExistingDispatchModule   = -30807;
  636. const ODError kODErrInvalidDispatchModule    = -30808;
  637.  
  638. //#------------------------------------------------------------------------------
  639. //# MenuBar
  640. //#------------------------------------------------------------------------------
  641.  
  642. #ifdef _PLATFORM_MACINTOSH_
  643. const ODError kODErrInvalidCommandID                            =       -29748;
  644. #endif
  645. const ODError kODErrNotEnoughSubmenuIDs                         =       -30809;
  646. const ODError kODErrDuplicateID                                 =       -30810;
  647. const ODError kODErrUnknownID                                   =       -30811;
  648.  
  649. //#------------------------------------------------------------------------------
  650. //# Undo
  651. //#------------------------------------------------------------------------------
  652.  
  653. const ODError kODErrCannotMarkAction                    =       -29749;
  654. const ODError kODErrEmptyStack                                  =       -29750;
  655. const ODError kODErrNoBeginAction                               =       -29751;
  656. const ODError kODErrCannotAddAction                             =       -29752;
  657.  
  658. //#------------------------------------------------------------------------------
  659. //# WindowState
  660. //#------------------------------------------------------------------------------
  661.  
  662. const ODError kODErrCannotCreateWindow                  =       -29753;
  663.  
  664. //------------------------------------------------------------------------------
  665. // DocumentManager
  666. //------------------------------------------------------------------------------
  667.  
  668. const ODError kODErrOpeningMemContainer                 =       -30812;
  669. const ODError kODErrClosingNonODWindow                  =       -30813;
  670. const ODError kODErrNoDraftInWindow                     =       -30814;
  671.  
  672. //#------------------------------------------------------------------------------
  673. //# Registration
  674. //#------------------------------------------------------------------------------
  675. const ODError kODErrRegistrationError                   =       -30815;
  676. const ODError kODErrRegStartProcessFail                 =       -30816;
  677. const ODError kODErrEnvVariableNotSet                   =       -30817;
  678. const ODError kODErrWrongPlatformForODZ                 =       -30818;
  679.  
  680.  
  681. //#-----------------------------------------------------------------------------
  682. //# Platform-specific errors
  683. //#-----------------------------------------------------------------------------
  684.  
  685. #ifdef _PLATFORM_MACINTOSH_
  686.  
  687. #endif //# _PLATFORM_MACINTOSH_
  688.  
  689. #ifdef _PLATFORM_OS2_
  690.  
  691. //#------------------------------------------------------------------------------
  692. //# Linking 
  693. //#------------------------------------------------------------------------------
  694.  
  695.  
  696. //#============================================================================
  697. //# Error codes from -29860 to -29910 (KODError + 50) are reserved for linking
  698. //#============================================================================
  699.  
  700. const ODError kODError                          = -29860;
  701. const ODError kODErrorMaxLinkError              = kODError-50; //[up to -29910]
  702. const ODError kODErrLinkSourceIsEmpty           = kODError-1;  //-29861
  703. const ODError kODErrLinkSourceAlreadyInited     = kODError-2;  //-29862
  704. const ODError kODErrLinkSourceConnected         = kODError-3;  //-29863
  705. const ODError kODErrInvalidTargetID             = kODError-4;  //-29864
  706. const ODError kODErrRequestMutexTimeOut         = kODError-5;  //-29865
  707. const ODError kODErrRequestMutexInterrupt       = kODError-6;  //-29866
  708. const ODError kODErrRequestMutexInvalidHandle   = kODError-7;  //-29867
  709. const ODError kODErrRequestMutexTooManyRequests = kODError-8;  //-29868
  710. const ODError kODErrRequestMutexOwnerDied       = kODError-9;  //-29869
  711. const ODError kODErrReleaseMutexInvalidHandle   = kODError-10; //-29870
  712. const ODError kODErrReleaseMutexNotOwner        = kODError-11; //-29871
  713. const ODError kODErrDocNotRegistered            = kODError-12; //-29872
  714. const ODError kODErrDocNotOpened                = kODError-13; //-29873
  715. const ODError kODErrLinkNotRegistered           = kODError-14; //-29874
  716. const ODError kODErrLinkNotOpened               = kODError-15; //-29875
  717. const ODError kODErrInvalidDocPathName          = kODError-16; //-29876
  718. const ODError kODErrDocAlreadyOpened            = kODError-17; //-29877
  719. const ODError kODErrInvalidDocID                = kODError-18; //-29878
  720. const ODError kODErrInvalidLinkID               = kODError-19; //-29879
  721. const ODError kODErrInvalidAvlSvr               = kODError-20; //-29880
  722. const ODError kODErrInvalidLinkSource           = kODError-21; //-29881
  723. const ODError kODErrInvalidAuxState             = kODError-22; //-29882
  724. const ODError kODErrLinkIDNotInDoc              = kODError-23; //-29883
  725. const ODError kODErrInvalidShell                = kODError-24; //-29884
  726. const ODError kODErrLinkAlreadyOpened           = kODError-25; //-29885
  727. const ODError kODErrWaitingUnlock               = kODError-26; //-29886
  728. const ODError kODErrDocOpenedFailed             = kODError-27; //-29887
  729. const ODError kODErrLinkOpenedFailed            = kODError-28; //-29888
  730. const ODError kODErrInvalidLink                 = kODError-29; //-29889
  731. const ODError kODErrNoLinkSource                = kODError-30; //-29890
  732. const ODError kODErrSourceDocRemote             = kODError-31; //-29891
  733. const ODError kODErrSourceDocNotOpen            = kODError-32; //-29892
  734. const ODError kODErrInvalidDraft                = kODError-33; //-29893
  735.                                                                      
  736.  
  737.  
  738. #endif // _PLATFORM_OS2_
  739.  
  740.  
  741. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  742. #pragma somemittypes off
  743. #endif
  744.  
  745.  
  746. module OpenDoc_Errors
  747. {
  748.         const string OpenDoc_Errors_Version = "1.0.";
  749. };
  750.  
  751. #endif //# _ERRORDEF_
  752.  
  753.