- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
187 lines
3.5 KiB
C++
187 lines
3.5 KiB
C++
//
|
|
//----------------------------------------------------------------------------
|
|
// ObjectComponents
|
|
// (C) Copyright 1994 by Borland International, All Rights Reserved
|
|
//
|
|
// Various general OC enums and structs
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(OCF_OCOBJECT_H)
|
|
#define OCF_OCOBJECT_H
|
|
|
|
#if !defined(OCF_OCDEFS_H)
|
|
# include <ocf/ocdefs.h>
|
|
#endif
|
|
#if !defined(OCF_OCREG_H)
|
|
# include <ocf/ocreg.h>
|
|
#endif
|
|
class _ICLASS IBContainer; // forward references
|
|
class TOcVerb;
|
|
|
|
enum TOcDialogHelp {
|
|
dhBrowse,
|
|
dhBrowseClipboard,
|
|
dhConvert,
|
|
dhBrowseLinks,
|
|
dhChangeIcon,
|
|
dhFileOpen,
|
|
dhSourceSet,
|
|
dhIconFileOpen
|
|
};
|
|
|
|
enum TOcDropAction {
|
|
daDropNone = 0,
|
|
daDropCopy = 1,
|
|
daDropMove = 2,
|
|
daDropLink = 4
|
|
};
|
|
|
|
enum TOcMouseAction {
|
|
maEnter = 1,
|
|
maContained = 2,
|
|
maExit = 3
|
|
};
|
|
|
|
enum TOcScrollDir {
|
|
sdScrollUp = 1,
|
|
sdScrollDown = 2,
|
|
sdScrollLeft = 4,
|
|
sdScrollRight = 8
|
|
};
|
|
|
|
enum TOcInvalidate {
|
|
invData = 1,
|
|
invView = 2
|
|
};
|
|
|
|
enum TOcAspect {
|
|
asContent = 1,
|
|
asThumbnail = 2,
|
|
asIcon = 4,
|
|
asDocPrint = 8,
|
|
asDefault = 16,
|
|
asMaintain = 32
|
|
};
|
|
|
|
struct far TOcScaleInfo {
|
|
ulong xN; // numerator in x direction
|
|
ulong xD; // denominator in x direction
|
|
ulong yN; // numerator in y direction
|
|
ulong yD; // denominator in y direction
|
|
};
|
|
|
|
enum TOcDraw {
|
|
drNone = 0,
|
|
drShadingOnly = 1,
|
|
drShowObjects = 2
|
|
};
|
|
|
|
enum TOcPartName {
|
|
pnLong = 1,
|
|
pnShort = 2,
|
|
pnApp = 3
|
|
};
|
|
|
|
enum TOcInitHow {
|
|
ihLink,
|
|
ihEmbed,
|
|
ihMetafile,
|
|
ihBitmap,
|
|
};
|
|
|
|
enum TOcInitWhere {
|
|
iwFile,
|
|
iwStorage,
|
|
iwDataObject,
|
|
iwNew,
|
|
iwHandle
|
|
};
|
|
|
|
class TOcInitInfo {
|
|
public:
|
|
TOcInitInfo(IBContainer far* container);
|
|
TOcInitInfo(TOcInitHow how, TOcInitWhere where, IBContainer far* container);
|
|
|
|
uint32 ReleaseDataObject() {
|
|
return ((Where==iwDataObject) && Data) ? ((IUnknown*)Data)->Release() : 0;
|
|
}
|
|
|
|
private:
|
|
public:
|
|
TOcInitHow How;
|
|
TOcInitWhere Where;
|
|
IBContainer far* Container;
|
|
HICON HIcon;
|
|
IStorage far* Storage;
|
|
union {
|
|
LPCOLESTR Path; // where == iwFile
|
|
IDataObject* Data; // where == iwDataObject
|
|
uint32 CId; // where == iwNew
|
|
struct { // where == iwHandle
|
|
HANDLE Data;
|
|
uint DataFormat;
|
|
} Handle;
|
|
};
|
|
};
|
|
|
|
struct TOcMenuWidths {
|
|
long Width[6];
|
|
};
|
|
|
|
struct TOcMenuDescr {
|
|
HMENU HMenu;
|
|
int Width[6];
|
|
};
|
|
|
|
enum TOcMenuEnable {
|
|
meEnablePaste = 1,
|
|
meEnablePasteLink = 2,
|
|
meEnableBrowseClipboard = 4,
|
|
meEnableBrowseLinks = 8,
|
|
};
|
|
|
|
enum TOcHelp {
|
|
hlpExit,
|
|
hlpEnter,
|
|
hlpGet
|
|
};
|
|
|
|
enum TOcConvertAction {
|
|
caConvertToClsid = 1,
|
|
caConvertToFormat = 2,
|
|
caActivateAsClsid = 4,
|
|
caAspectToIcon = 8,
|
|
caAspectToContent = 16
|
|
};
|
|
|
|
struct far TOcConvertInfo {
|
|
TOcConvertAction Action;
|
|
union {
|
|
struct {
|
|
CLSID Current;
|
|
CLSID New;
|
|
} Clsid;
|
|
struct {
|
|
uint ClipFormat;
|
|
} Format;
|
|
struct {
|
|
HICON hIcon;
|
|
} SwitchToIcon;
|
|
};
|
|
};
|
|
|
|
enum TOcLinkUpdate {
|
|
luUpdateAuto = 1,
|
|
luUpdateManual = 3
|
|
};
|
|
|
|
struct TOcFormatInfo {
|
|
uint Id;
|
|
OLECHAR Name[32];
|
|
OLECHAR ResultName[32];
|
|
ocrMedium Medium; // BOleMedium
|
|
BOOL IsLinkable;
|
|
};
|
|
|
|
#endif // OCF_OCOBJECT_H
|
|
|