home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12otk1.exe
/
include
/
ErrorDef.idl
< prev
next >
Wrap
Text File
|
1997-04-02
|
28KB
|
590 lines
/* @(#) 1.25 com/src/include/idl/ErrorDef.idl, odcore, od96os2, odos29712d 3/12/97 08:28:26 [3/21/97 17:18:30] */
//#====START_GENERATED_PROLOG======================================
//#
//#
//# COMPONENT_NAME: odcore
//#
//# CLASSES: none
//#
//# ORIGINS: 82,27
//#
//#
//# (C) COPYRIGHT International Business Machines Corp. 1995,1996
//# All Rights Reserved
//# Licensed Materials - Property of IBM
//# US Government Users Restricted Rights - Use, duplication or
//# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//#
//# IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
//# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//# PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
//# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
//# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
//# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
//# OR PERFORMANCE OF THIS SOFTWARE.
//#
//#====END_GENERATED_PROLOG========================================
//#
//# Copyright: (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
#ifndef _ERRORDEF_
#define _ERRORDEF_
#ifndef _ODTYPESB_
#include "ODTypesB.idl"
#endif
#if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
#pragma somemittypes on
#endif
//#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
//# BEGIN-UNDER CONSTRUCTION
//#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
// Reserved for linking -29860 to -29910
//#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
//# END-UNDER CONSTRUCTION
//#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
//#=============================================================================
//# General Errors including ODObject
//#=============================================================================
const ODError kODMinError = -29893; // Range of OD err codes
#ifdef _PLATFORM_MACINTOSH_
const ODError kODMinUsedError = -29756; //MAC only
#endif //_PLATFORM_MACINTOSH_
#if (defined _PLATFORM_WIN32_ || defined _PLATFORM_OS2_ || defined _PLATFORM_AIX_)
//********************************************************************************
const ODError kODMinUsedError = -30818; // for WIN32, OS2, and AIX
//
// Attention IBM Developers!
//
// All newly defined error codes must be in the range -30800 to -30849.
//
// Remember to keep kODMinUsedError up to date.
//
// Lets keep assigned error code values semantically the same for each platform.
// In other words, if WIN32 defines an error code that doesn't apply to OS/2, then
// OS/2 should skip that error code number. Therefore, kODMinUsedError is the same
// for WIN32, OS2, and AIX.
//
#ifdef _PLATFORM_OS2_
const ODError kODErrFacetPSnotAssocWithDC = -30800; // OS/2 only
#endif
#if (defined _PLATFORM_WIN32_ || defined _PLATFORM_OS2_ || defined _PLATFORM_AIX_)
const ODError kODErrFacetChangeToOrFromOnscreenDynamic = -30801;
const ODError kODErrInvalidParameter = -30802;
const ODError kODErrOnlyOwnerCanChangeCanvas = -30803;
#endif //_PLATFORM_WIN32_ || _PLATFORM_OS2_ || _PLATFORM_AIX_
#ifdef _PLATFORM_WIN32_
const ODError kODErrCannotExportToIDataObject = -30804; // WIN32 only
#endif
//********************************************************************************
#endif //_PLATFORM_WIN32_ || _PLATFORM_OS2_ || _PLATFORM_AIX_
const ODError kODMaxError = -29600;
//# Currently unused slots: None
const ODError kODNoError = 0;
const ODError kODErrUndefined = -29600;
//# NEW
const ODError kODErrAlreadyNotified = -29601;
const ODError kODErrIllegalNullInput = -29602;
const ODError kODErrIllegalNullDispatchModuleInput = -29603;
const ODError kODErrIllegalNullFacetInput = -29604;
const ODError kODErrIllegalNullFrameInput = -29605;
const ODError kODErrIllegalNullPartInput = -29606;
const ODError kODErrIllegalNullTransformInput = -29607;
const ODError kODErrIllegalNullStorageSystemInput = -29608;
const ODError kODErrIllegalNullTokenInput = -29609;
const ODError kODErrIllegalNullShapeInput = -29610;
const ODError kODErrIllegalNullStorageUnitInput = -29611;
const ODError kODErrIllegalNullPropertyInput = -29612;
const ODError kODErrIllegalNullSUCursorInput = -29613;
const ODError kODErrIllegalNullContainerInput = -29614;
const ODError kODErrIllegalNullDocumentInput = -29615;
const ODError kODErrIllegalNullDraftInput = -29616;
const ODError kODErrIllegalNullValueTypeInput = -29617;
const ODError kODErrIllegalNullIDInput = -29618;
//# NEW
const ODError kODErrValueOutOfRange = -29619;
//# NEW
const ODError kODErrInsufficientInfoInParams = -29620;
const ODError kODErrObjectNotInitialized = -29621;
const ODError kODErrOutOfMemory = -29622;
const ODError kODErrNotImplemented = -29623;
//# NEW
const ODError kODErrInvalidPersistentFormat = -29624;
const ODError kODErrSubClassResponsibility = -29625;
//#------------------------------------------------------------------------------
//# ODObject (& subclasses)
//#------------------------------------------------------------------------------
const ODError kODErrUnsupportedExtension = -29626;
const ODError kODErrInvalidExtension = -29627;
const ODError kODErrUnknownExtension = -29628;
const ODError kODErrInvalidObjectType = -29629;
const ODError kODErrInvalidPersistentObjectID = -29630;
const ODError kODErrInvalidPersistentObject = -29631;
//#------------------------------------------------------------------------------
//# RefCountObject (& subclasses)
//#------------------------------------------------------------------------------
const ODError kODErrZeroRefCount = -29632;
//# NEW
const ODError kODErrRefCountGreaterThanZero = -29633;
const ODError kODErrRefCountNotEqualOne = -29634;
//#------------------------------------------------------------------------------
//# Iterators
//#------------------------------------------------------------------------------
const ODError kODErrIteratorOutOfSync = -29635;
const ODError kODErrIteratorNotInitialized = -29636;
const ODError kODErrInvalidIterator = -29755;
//#==============================================================================
//# Parts Return These Errors
//#==============================================================================
const ODError kODErrCannotEmbed = -29637;
const ODError kODErrDoesNotUndo = -29638;
const ODError kODErrNoPromises = -29639;
const ODError kODErrDoesNotDrop = -29640;
const ODError kODErrDoesNotLink = -29641;
const ODError kODErrPartNotWrapper = -29642;
//#==============================================================================
//# Core
//#==============================================================================
//#------------------------------------------------------------------------------
//# ODNameSpaceManager, ODNameSpace
//#------------------------------------------------------------------------------
const ODError kODErrKeyAlreadyExists = -29643;
//# NEW
const ODError kODErrInvalidNSName = -29644;
//# NEW
const ODError kODErrInvalidNSType = -29645;
//#------------------------------------------------------------------------------
//# PartWrapper
//#------------------------------------------------------------------------------
const ODError kODErrPartInUse = -29646;
//#------------------------------------------------------------------------------
//# PartWrapper
//#------------------------------------------------------------------------------
//# NEW
const ODError kODErrInvalidITextFormat = -29647;
//#==============================================================================
//# Imaging
//#==============================================================================
const ODError kODErrInvalidGraphicsSystem = -29648;
//#------------------------------------------------------------------------------
//# Shape
//#------------------------------------------------------------------------------
const ODError kODErrNoShapeGeometry = -29649; //# Shape has no polygon representation
//#------------------------------------------------------------------------------
//# Transform
//#------------------------------------------------------------------------------
const ODError kODErrTransformErr = -29650; //# Illegal op on xform
//# NEW
const ODError kODErrInvalidPlatformShape = -29651;
//#==============================================================================
//# Layout
//#==============================================================================
//#------------------------------------------------------------------------------
//# Facet
//#------------------------------------------------------------------------------
const ODError kODErrCanvasNotFound = -29652;
const ODError kODErrUnsupportedFramePositionCode = -29653;
const ODError kODErrInvalidFacet = -29654;
const ODError kODErrFacetNotFound = -29655;
const ODError kODErrCanvasHasNoOwner = -29656;
//#------------------------------------------------------------------------------
//# Frame
//#------------------------------------------------------------------------------
const ODError kODErrNotRootFrame = -29657;
const ODError kODErrIllegalRecursiveEmbedding = -29658;
const ODError kODErrInvalidFrame = -29659;
const ODError kODErrFrameHasFacets = -29660;
const ODError kODErrInvalidLinkStatus = -29754;
//#==============================================================================
//# Memory
//#==============================================================================
const ODError kODErrInvalidBlock = -29661; //# bad heap or damaged object
//#==============================================================================
//# Messaging
//#==============================================================================
//#------------------------------------------------------------------------------
//# Semantic Interface
//#------------------------------------------------------------------------------
//# NEW
const ODError kODErrNotAnODToken = -29662;
//# NEW
const ODError kODErrCantCountFromLists = -29663;
//#==============================================================================
//# Storage
//#==============================================================================
const ODError kODErrUnsupportedPosCode = -29664;
const ODError kODErrInvalidPermissions = -29665;
const ODError kODErrCannotCreateContainer = -29666;
const ODError kODErrCannotOpenContainer = -29667;
//# NEW
const ODError kODErrFatalContainerError = -29756;
//# NEW
const ODError kODErrContainerDoesNotExist = -29668;
//# NEW
const ODError kODErrDocumentDoesNotExist = -29669;
//# NEW
const ODError kODErrDraftDoesNotExist = -29670;
const ODError kODErrDraftHasBeenDeleted = -29671;
const ODError kODErrInvalidStorageUnit = -29672;
//# NEW
const ODError kODErrIllegalOperationOnSU = -29673;
//# NEW
const ODError kODErrSUValueDoesNotExist = -29674;
//# NEW
const ODError kODErrIllegalNonTopmostDraft = -29675;
//# NEW
const ODError kODErrNoSysTranslationFacility = -29680;
//#------------------------------------------------------------------------------
//# Storage Unit
//#------------------------------------------------------------------------------
const ODError kODErrNoValueAtThatIndex = -29676;
const ODError kODErrCannotAddProperty = -29677;
const ODError kODErrUnfocusedStorageUnit = -29678;
const ODError kODErrInvalidStorageUnitRef = -29679;
//#const ODError kODErrStorageUnitLocked = -29680;
const ODError kODErrInvalidStorageUnitKey = -29681;
const ODError kODErrStorageUnitNotLocked = -29682;
const ODError kODErrInvalidDraftKey = -29683;
const ODError kODErrCloningInProgress = -29684;
const ODError kODErrValueIndexOutOfRange = -29685;
//# NEW
const ODError kODErrInvalidValueType = -29686;
//# NEW
const ODError kODErrIllegalPropertyName = -29687;
const ODError kODErrPropertyDoesNotExist = -29688;
//#------------------------------------------------------------------------------
//# Draft
//#------------------------------------------------------------------------------
const ODError kODErrNoDraftProperties = -29689;
const ODError kODErrCannotCreateFrame = -29690;
const ODError kODErrCannotAcquireFrame = -29691;
const ODError kODErrCannotCreatePart = -29692; //# I hate this error.
const ODError kODErrCannotAcquirePart = -29693;
const ODError kODErrCannotCreateLink = -29694;
const ODError kODErrCannotAcquireLink = -29695;
const ODError kODErrInvalidID = -29696;
const ODError kODErrInconsistentCloneKind = -29697;
const ODError kODErrInvalidCloneKind = -29698;
const ODError kODErrInvalidDestinationDraft = -29699;
const ODError kODErrMoveIntoSelf = -29700;
const ODError kODErrNullDestinationFrame = -29701;
//#------------------------------------------------------------------------------
//# Document
//#------------------------------------------------------------------------------
const ODError kODErrInvalidBelowDraft = -29702;
const ODError kODErrCannotCollapseDrafts = -29704;
const ODError kODErrNonEmptyDraft = -29705;
const ODError kODErrNoPreviousDraft = -29706;
const ODError kODErrOutstandingDraft = -29707;
const ODError kODErrInvalidDraftID = -29708;
const ODError kODErrCannotChangePermissions = -29709;
//#------------------------------------------------------------------------------
//# Storage System
//#------------------------------------------------------------------------------
const ODError kODErrContainerExists = -29710;
//#------------------------------------------------------------------------------
//# LinkSpec
//#------------------------------------------------------------------------------
const ODError kODErrCannotGetExternalLink = -29712;
const ODError kODErrNoLinkSpecValue = -29713;
const ODError kODErrUnknownLinkSpecVersion = -29714;
const ODError kODErrCorruptLinkSpecValue = -29715;
//#------------------------------------------------------------------------------
//# Link
//#------------------------------------------------------------------------------
const ODError kODErrNotExportedLink = -29716;
const ODError kODErrBrokenLink = -29717;
const ODError kODErrCannotRevealLink = -29718;
const ODError kODErrCorruptLink = -29719;
const ODError kODErrLinkAlreadyExported = -29720;
const ODError kODErrNoLinkContent = -29721;
const ODError kODErrCannotRegisterDependent = -29722;
//#------------------------------------------------------------------------------
//# LinkSource
//#------------------------------------------------------------------------------
const ODError kODErrNotImportedLink = -29723;
const ODError kODErrInvalidLinkKey = -29724;
const ODError kODErrBrokenLinkSource = -29725;
const ODError kODErrCorruptLinkSource = -29726;
const ODError kODErrCannotFindLinkSourceEdition = -29727; // Cannot locate source of cross document link because edition file does not exist
const ODError kODErrCannotFindLinkSource = -29728; // Cannot locate source of cross document link
const ODError kODErrAlreadyImportedLink = -29729; // Cannot create link due to Internal error
const ODError kODErrUnknownUpdateID = -29730;
const ODError kODErrCannotEstablishLink = -29731;
//#------------------------------------------------------------------------------
//# LinkManager
//#------------------------------------------------------------------------------
const ODError kODErrNoEditionManager = -29732;
const ODError kODErrDocNotSaved = -29733;
//#------------------------------------------------------------------------------
//# Data Interchange Dialogs
//#------------------------------------------------------------------------------
const ODError kODErrNullFacetInput = -29734;
const ODError kODErrNullLinkInfoInput = -29735;
const ODError kODErrNullLinkInfoResultInput = -29736;
const ODError kODErrNullPasteAsResultInput = -29737;
//#------------------------------------------------------------------------------
//# DragAndDrop
//#------------------------------------------------------------------------------
const ODError kODErrNoDragManager = -29738;
const ODError kODErrNoDragSystemStorage = -29739;
const ODError kODErrDragItemNotFound = -29740;
const ODError kODErrCannotAllocateDragItem = -29741;
const ODError kODErrUnknownDragImageType = -29742;
const ODError kODErrDragTrackingException = -29743;
const ODError kODErrDropFacetNotKnown = -30805;
//#------------------------------------------------------------------------------
//# Clipboard
//#------------------------------------------------------------------------------
const ODError kODErrBackgroundClipboardClear = -29744;
const ODError kODErrIllegalClipboardCloneKind = -29745;
//#==============================================================================
//# UI
//#==============================================================================
//#------------------------------------------------------------------------------
//# Arbitrator
//#------------------------------------------------------------------------------
const ODError kODErrFocusAlreadyRegistered = -29746;
const ODError kODErrFocusNotRegistered = -29747;
//#------------------------------------------------------------------------------
//# Dispatcher
//#------------------------------------------------------------------------------
const ODError kODErrDispatcherNotInitialized = -30806;
const ODError kODErrExistingDispatchModule = -30807;
const ODError kODErrInvalidDispatchModule = -30808;
//#------------------------------------------------------------------------------
//# MenuBar
//#------------------------------------------------------------------------------
#ifdef _PLATFORM_MACINTOSH_
const ODError kODErrInvalidCommandID = -29748;
#endif
const ODError kODErrNotEnoughSubmenuIDs = -30809;
const ODError kODErrDuplicateID = -30810;
const ODError kODErrUnknownID = -30811;
//#------------------------------------------------------------------------------
//# Undo
//#------------------------------------------------------------------------------
const ODError kODErrCannotMarkAction = -29749;
const ODError kODErrEmptyStack = -29750;
const ODError kODErrNoBeginAction = -29751;
const ODError kODErrCannotAddAction = -29752;
//#------------------------------------------------------------------------------
//# WindowState
//#------------------------------------------------------------------------------
const ODError kODErrCannotCreateWindow = -29753;
//------------------------------------------------------------------------------
// DocumentManager
//------------------------------------------------------------------------------
const ODError kODErrOpeningMemContainer = -30812;
const ODError kODErrClosingNonODWindow = -30813;
const ODError kODErrNoDraftInWindow = -30814;
//#------------------------------------------------------------------------------
//# Registration
//#------------------------------------------------------------------------------
const ODError kODErrRegistrationError = -30815;
const ODError kODErrRegStartProcessFail = -30816;
const ODError kODErrEnvVariableNotSet = -30817;
const ODError kODErrWrongPlatformForODZ = -30818;
//#-----------------------------------------------------------------------------
//# Platform-specific errors
//#-----------------------------------------------------------------------------
#ifdef _PLATFORM_MACINTOSH_
#endif //# _PLATFORM_MACINTOSH_
#ifdef _PLATFORM_OS2_
//#------------------------------------------------------------------------------
//# Linking
//#------------------------------------------------------------------------------
//#============================================================================
//# Error codes from -29860 to -29910 (KODError + 50) are reserved for linking
//#============================================================================
const ODError kODError = -29860;
const ODError kODErrorMaxLinkError = kODError-50; //[up to -29910]
const ODError kODErrLinkSourceIsEmpty = kODError-1; //-29861
const ODError kODErrLinkSourceAlreadyInited = kODError-2; //-29862
const ODError kODErrLinkSourceConnected = kODError-3; //-29863
const ODError kODErrInvalidTargetID = kODError-4; //-29864
const ODError kODErrRequestMutexTimeOut = kODError-5; //-29865
const ODError kODErrRequestMutexInterrupt = kODError-6; //-29866
const ODError kODErrRequestMutexInvalidHandle = kODError-7; //-29867
const ODError kODErrRequestMutexTooManyRequests = kODError-8; //-29868
const ODError kODErrRequestMutexOwnerDied = kODError-9; //-29869
const ODError kODErrReleaseMutexInvalidHandle = kODError-10; //-29870
const ODError kODErrReleaseMutexNotOwner = kODError-11; //-29871
const ODError kODErrDocNotRegistered = kODError-12; //-29872
const ODError kODErrDocNotOpened = kODError-13; //-29873
const ODError kODErrLinkNotRegistered = kODError-14; //-29874
const ODError kODErrLinkNotOpened = kODError-15; //-29875
const ODError kODErrInvalidDocPathName = kODError-16; //-29876
const ODError kODErrDocAlreadyOpened = kODError-17; //-29877
const ODError kODErrInvalidDocID = kODError-18; //-29878
const ODError kODErrInvalidLinkID = kODError-19; //-29879
const ODError kODErrInvalidAvlSvr = kODError-20; //-29880
const ODError kODErrInvalidLinkSource = kODError-21; //-29881
const ODError kODErrInvalidAuxState = kODError-22; //-29882
const ODError kODErrLinkIDNotInDoc = kODError-23; //-29883
const ODError kODErrInvalidShell = kODError-24; //-29884
const ODError kODErrLinkAlreadyOpened = kODError-25; //-29885
const ODError kODErrWaitingUnlock = kODError-26; //-29886
const ODError kODErrDocOpenedFailed = kODError-27; //-29887
const ODError kODErrLinkOpenedFailed = kODError-28; //-29888
const ODError kODErrInvalidLink = kODError-29; //-29889
const ODError kODErrNoLinkSource = kODError-30; //-29890
const ODError kODErrSourceDocRemote = kODError-31; //-29891
const ODError kODErrSourceDocNotOpen = kODError-32; //-29892
const ODError kODErrInvalidDraft = kODError-33; //-29893
#endif // _PLATFORM_OS2_
#if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
#pragma somemittypes off
#endif
module OpenDoc_Errors
{
const string OpenDoc_Errors_Version = "1.0.";
};
#endif //# _ERRORDEF_