home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611B.ISO
/
vabasic
/
ntclnt.exe
/
DISK8
/
data.8
/
datab
/
INCLUDE
/
VWADAPT.HH
< prev
next >
Wrap
Text File
|
1996-07-29
|
12KB
|
275 lines
/*------------------------------------------------------------------------
* $Source: /rcs/vwrcs/components/intel/vwadapt.hh,v $
* Checked in by $Author: jose $
* $Date: 1996/07/12 20:43:24 $ $Revision: 1.15 $
*------------------------------------------------------------------------
* Copyright (c) International Business Machines Inc, 1994
* Copyright (c) 1992, Visual Edge Software Ltd.
*
* ALL RIGHTS RESERVED. This notice is intended as a precaution
* against inadvertent publication, and shall not be deemed to con-
* stitute an acknowledgment that publication has occurred nor to
* imply any waiver of confidentiality. The year included in the
* notice is the year of the creation of the work.
*------------------------------------------------------------------------
* DESCRIPTION:
* This file contains the declaration of the VwContainerAdapter
* and VwFormBaseAdapter class methods. The class implementation
* can be found in VwAdapt.cc. An adaptor container is used to
* create a real VwContainer from a container widget. An adaptor
* formBase is used to create a real VwFormBase from a shell widget.
*------------------------------------------------------------------------*/
#ifndef VWADAPT_HH
#define VWADAPT_HH
#include <vwprim.hh>
VCLASS VwpPlaceable;
VCLASS VwPrimitiveAdapter : public VwPrimitive {
public:
RTTI_H(VeClass,VwPrimitive);
static VMETHODDECL (VwPrimitiveAdapter *)Create(VwGui_t gui,
VwContainer *parent = 0);
VOPERDECL VwPrimitiveAdapter(VwContainer *parent);
VOPERDECL VwPrimitiveAdapter(VwGui_t gui, VwContainer *parent);
VOPERDECL ~VwPrimitiveAdapter();
VMETHODDECL(VwInt) NativeLeft();
VMETHODDECL(VwInt) NativeTop();
VMETHODDECL(VwInt) NativeWidth();
VMETHODDECL(VwInt) NativeHeight();
/*-----------------------------------------------
* Disable unsupported properties
*----------------------------------------------*/
VMETHODDECL (VwLong) BackColor();
VMETHODDECL (VwStatus) PutBackColor(VwLong);
VMETHODDECL (VwLong) ForeColor();
VMETHODDECL (VwStatus) PutForeColor(VwLong);
VMETHODDECL (const String) Caption();
VMETHODDECL (VwStatus) PutCaption(String);
VMETHODDECL (VwBorderStyle) BorderStyle();
VMETHODDECL (VwStatus) PutBorderStyle(VwBorderStyle);
VMETHODDECL (VwBool) FontBold ();
VMETHODDECL (VwStatus) PutFontBold ( VwBool );
VMETHODDECL (VwBool) FontItalic ();
VMETHODDECL (VwStatus) PutFontItalic ( VwBool );
VMETHODDECL (const String) FontFoundry ();
VMETHODDECL (VwStatus) PutFontFoundry ( String );
VMETHODDECL (const String) FontName ();
VMETHODDECL (VwStatus) PutFontName ( String );
VMETHODDECL (VwSingle) FontSize ();
VMETHODDECL (VwStatus) PutFontSize ( VwSingle );
VMETHODDECL (VwBool) FontStrikethru ();
VMETHODDECL (VwStatus) PutFontStrikethru ( VwBool );
VMETHODDECL (VwBool) FontUnderline ();
VMETHODDECL (VwStatus) PutFontUnderline ( VwBool );
VMETHODDECL (VwAlign) Align();
VMETHODDECL (VwStatus) PutAlign(VwAlign);
VMETHODDECL (VwpPlaceable*) DragIcon();
VMETHODDECL (VwStatus) PutDragIcon(VwpPlaceable*);
VMETHODDECL (VwDragMode) DragMode();
VMETHODDECL (VwStatus) PutDragMode(VwDragMode);
VMETHODDECL (VwGui_t) DragGui();
VMETHODDECL (void) Drag(VwInt = VwStartDragAction);
/*-----------------------------------------------
* Disable all events
*----------------------------------------------*/
VMETHODDECL (void *) PutDragDropEvent(VwDragDropEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutDragOverEvent(VwDragOverEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutClickEvent(VwClickEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutDblClickEvent(VwDblClickEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutChangeEvent(VwChangeEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutGotFocusEvent(VwGotFocusEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutLostFocusEvent(VwLostFocusEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutKeyDownEvent(VwKeyDownEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutKeyPressEvent(VwKeyPressEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutKeyUpEvent(VwKeyUpEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutMouseDownEvent(VwMouseDownEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutMouseUpEvent(VwMouseUpEventProcedurePtr_t,
void * = 0);
VMETHODDECL (void *) PutMouseMoveEvent(VwMouseMoveEventProcedurePtr_t,
void * = 0);
protected:
//
// If the component can be tabbed to, then call this method
// to intialize object to accept tab behavior. This method
// just calls PutIsInTabOder(VwTrue), and PutCanHaveFocus(TRUE)
// to flag the object as being able to get the focus
//
VMETHODDECL (void) SetupAsTabStop();
//
// This method should be called when the default window proc
// behavior is desired.
//
VMETHODDECL (VwStatus) SetupDefaultProc();
VMETHODDECL (void) Setup(VwGui_t gui);
VMETHODDECL (void) Unsetup();
private:
bool_t itIsLinked;
bool_t itIsInternalGui;
};
VCLASS VwContainerAdapter : public VwContainer {
public:
RTTI_H(VeClass,VwContainer);
static VMETHODDECL(VwContainerAdapter *) Create(VwGui_t gui,
VwContainer *parent = 0);
VOPERDECL VwContainerAdapter(VwContainer *parent);
VOPERDECL VwContainerAdapter(VwGui_t gui,
VwContainer *parent);
VOPERDECL ~VwContainerAdapter();
VMETHODDECL(VwInt) NativeLeft();
VMETHODDECL(VwInt) NativeTop();
VMETHODDECL(VwInt) NativeWidth();
VMETHODDECL(VwInt) NativeHeight();
/*-----------------------------------------------
* Disable unsupported properties
*----------------------------------------------*/
VMETHODDECL(VwLong) BackColor();
VMETHODDECL(VwStatus) PutBackColor(VwLong);
VMETHODDECL(VwLong) ForeColor();
VMETHODDECL(VwStatus) PutForeColor(VwLong);
VMETHODDECL(const String) Caption();
VMETHODDECL(VwStatus) PutCaption(String);
VMETHODDECL(VwBorderStyle) BorderStyle();
VMETHODDECL(VwStatus) PutBorderStyle(VwBorderStyle);
VMETHODDECL(VwBool) FontBold ();
VMETHODDECL(VwStatus) PutFontBold ( VwBool );
VMETHODDECL(VwBool) FontItalic ();
VMETHODDECL(VwStatus) PutFontItalic ( VwBool );
VMETHODDECL(const String) FontFoundry ();
VMETHODDECL(VwStatus) PutFontFoundry ( String );
VMETHODDECL(const String) FontName ();
VMETHODDECL(VwStatus) PutFontName ( String );
VMETHODDECL(VwSingle) FontSize ();
VMETHODDECL(VwStatus) PutFontSize ( VwSingle );
VMETHODDECL(VwBool) FontStrikethru ();
VMETHODDECL(VwStatus) PutFontStrikethru ( VwBool );
VMETHODDECL(VwBool) FontUnderline ();
VMETHODDECL(VwStatus) PutFontUnderline ( VwBool );
VMETHODDECL(VwAlign) Align();
VMETHODDECL(VwStatus) PutAlign(VwAlign);
VMETHODDECL(VwpPlaceable*) DragIcon();
VMETHODDECL(VwStatus) PutDragIcon(VwpPlaceable*);
VMETHODDECL(VwDragMode) DragMode();
VMETHODDECL(VwStatus) PutDragMode(VwDragMode);
VMETHODDECL(VwGui_t) DragGui();
VMETHODDECL(void) Drag(VwInt = VwStartDragAction);
VMETHODDECL(VwBool) ClipControls();
VMETHODDECL(VwStatus) PutClipControls(VwBool);
/*-----------------------------------------------
* Disable all events
*----------------------------------------------*/
VMETHODDECL(void *) PutDragDropEvent(VwDragDropEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutDragOverEvent(VwDragOverEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutClickEvent(VwClickEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutDblClickEvent(VwDblClickEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void* )PutChangeEvent(VwChangeEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutGotFocusEvent(VwGotFocusEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutLostFocusEvent(VwLostFocusEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutKeyDownEvent(VwKeyDownEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutKeyPressEvent(VwKeyPressEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutKeyUpEvent(VwKeyUpEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutMouseDownEvent(VwMouseDownEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutMouseUpEvent(VwMouseUpEventProcedurePtr_t,
void * = 0);
VMETHODDECL(void*) PutMouseMoveEvent(VwMouseMoveEventProcedurePtr_t,
void * = 0);
protected:
//
// If the component can be tabbed to, then call this method
// to intialize object to accept tab behavior. This method
// just calls PutIsInTabOder(VwTrue), and PutCanHaveFocus(TRUE)
// to flag the object as being able to get the focus
//
VMETHODDECL (void) SetupAsTabStop();
//
// This method should be called when the default window proc
// behavior is desired.
//
VMETHODDECL (VwStatus) SetupDefaultProc();
VMETHODDECL (void) Setup(VwGui_t gui);
VMETHODDECL (void) Unsetup();
private:
bool_t itIsLinked;
bool_t itIsInternalGui;
};
#endif // VWADAPT_HH