home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ibmodf.zip
/
SIMPLPRT.ZIP
/
SIMPLPRT.IDL
< prev
next >
Wrap
Text File
|
1995-04-13
|
6KB
|
224 lines
#ifdef __PRIVATE__
//#
//# File: CntnrPrt.idl
//#
//# Contains: IDL description of Simple Part
//#
//# Written by: Jason Crawford
//#
//# Copyright: (c) 1994 by IBM Corp., all rights reserved.
//#
//# Change History (most recent first):
//#
//# <1> 7/6/94 jlc first checked in
//#
//# To Do:
//#
#else
//# Copyright: (c) 1993-1994 by IBM Corp., all rights reserved.
#endif
#ifndef _SIMPLPRT_
#define _SIMPLPRT_
#ifndef _PART_
#include "Part.idl"
#endif
// Next three lines added - mcs aj
#ifndef _ODTYPESM_
#include "ODTypesM.idl"
#endif
interface ODWindow;
interface ODFocusSet;
interface ODSemanticInterface;
//=====================================================================================
// Implementation Types
//=====================================================================================
typedef somToken ODxOrderedCollection;
typedef somToken Proxy;
//@jlc hack to get this to pass through idl compile without asking too many questions.
typedef long PRNINFO;
// typedef long MRESULT;
typedef long HPS;
typedef long HDC;
//typedef long RECTL;
typedef somToken RGBColor;
interface SimplePart : ODPart
{
ODSemanticInterface GetSemanticInterface();
void CommonInitSimplePart();
ODBoolean HandleMouseDown( in ODFacet facet,
in ODPoint where,
in ODEventData event);
void MoveResize( in ODFacet facet, in Proxy* selection, in ODSLong fs );
ODBoolean HandleMouseDownEdgeResize(in ODFacet facet, in Proxy* selection, in POINTL mouse);
ODBoolean HandleMouseDownCornerResize(in ODFacet facet, in Proxy* selection, in POINTL mouse);
ODBoolean HandleKeyDown(in ODFrame focusFrame, in ODEventData event);
ODBoolean HandleMouseMove( in ODFacet facet,
in ODPoint where,
in ODEventData event);
void ActivateFrame(in ODFrame frame);
void DeActivateFrame(in ODFrame frame);
void ActivatingWindow(in ODFrame frame);
void DeActivatingWindow(in ODFrame frame);
void UserSetBGColor(in ODFrame frame, in RGBColor whichColor);
void SetBGColor(in ODFrame aFrame, in ODUShort whichColor);
ODWindow CreateWindow(in ODFrame sourceFrame);
ODBoolean HandleMenuEvent(in ODFrame focusFrame, in ODEventData event);
void SetGrafPortOrigin(in ODFacet facet);
RGBColor GetDefaultColor( );
void SetDefaultColor( in RGBColor color );
void Activate( in ODFacet facet );
#ifdef __SOMIDL__
implementation
{
functionprefix = SimplePart;
majorversion = 1;
minorversion = 0;
releaseorder:
GetSemanticInterface,
CommonInitSimplePart,
HandleMouseDown,
MoveResize,
HandleMouseDownDrag,
HandleMouseDownEdgeResize,
HandleMouseDownCornerResize,
HandleKeyDown,
HandleMenuEvent,
HandleMouseMove,
ActivateFrame,
DeActivateFrame,
ActivatingWindow,
DeActivatingWindow,
SetBGColor,
UserSetBGColor,
SetGrafPortOrigin,
CreateWindow,
GetDefaultColor,
SetDefaultColor,
Activate
;
override:
somInit,
somUninit,
FulfillPromise,
DropCompleted,
DragEnter,
DragWithin,
DragLeave,
Drop,
ContainingPartPropertiesChanged,
GetContainingPartProperties,
RevealFrame,
EmbeddedFrameSpec,
CreateEmbeddedFramesIterator,
AddDisplayFrame,
AttachSourceFrame,
RemoveDisplayFrame,
CloseDisplayFrame,
FrameShapeChanged,
ViewTypeChanged,
PresentationChanged,
SequenceChanged,
WritePartInfo,
ReadPartInfo,
Open,
RequestEmbeddedFrame,
RemoveEmbeddedFrame,
RequestFrameShape,
UsedShapeChanged,
AdjustBorderShape,
FacetAdded,
FacetRemoved,
CanvasChanged,
GeometryChanged,
Draw,
CanvasUpdated,
HighlightChanged,
CreateLink,
LinkUpdated,
RevealLink,
EmbeddedFrameChanged,
LinkStatusChanged,
BeginRelinquishFocus,
CommitRelinquishFocus,
AbortRelinquishFocus,
FocusAcquired,
FocusLost,
CloneInto,
ExternalizeKinds,
Externalize,
ChangeKind,
HandleEvent,
HandleEventInEmbedded,
MouseEnter,
MouseWithin,
MouseLeave,
AdjustMenus,
UndoAction,
RedoAction,
DisposeActionState,
WriteActionState,
ReadActionState,
InitPart,
InitPartFromStorage,
Release;
passthru C_xh = ""
"class ODFrame ;"
"class ODTransform ;"
"struct Proxy;"
"struct PRNINFO;";
passthru C_xh_after = "typedef long RGBColor;";
passthru C_xih = "class ODxOrderedCollection;"
;
// instance variables
// ODxOrderedCollection* fDisplayFrames;
ODID fWindowID; // ID of View As Window window
ODULong fFrameGroupIDCounter;
POINTL fDragStart;
RGBColor fDefaultColor; // Initial background color of all display frames
ODxOrderedCollection* fContents;
ODFocusSet fFocusSet;
ODTypeToken fSelectionFocus;
ODTypeToken fMenuFocus;
ODTypeToken fKeyFocus;
ODSemanticInterface fSemtIntf;
ODSession fSession;
ODStorageUnit fTestDrawSU;
HPS hpsMem;
HDC hdcMem;
ODPoint mouseStart; //dwf
};
#endif
};
#endif // _SIMPLPRT_