//====START_GENERATED_PROLOG======================================
//
//
//   COMPONENT_NAME: odother
//
//   CLASSES: none
//
//   ORIGINS: 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========================================
//
// @(#) 1.4 nt/src/samples/JavaPart/iodjava.idl, odjavapart, od96nt, odnt9714c 3/24/97 13:48:49 [ 4/2/97 17:54:54 ]

#ifndef IBM_JAVAPART
#define IBM_JAVAPART

#ifndef _SIMPLPRT_
#include "iodsimpl.idl"
#endif

interface ODFacet;
interface ODFrame;
interface ODPart;
interface Applet;
interface AppletTag;
interface Bean;
interface BeanTag;

interface M_JavaPart;

typedef somToken JEAPPLETHND;
typedef somToken SIZEL;
typedef somToken LPSTR;

interface JavaPart : SimplePart
{
#ifdef __SOMIDL__

	attribute ODFacet fFacet;

        void GetFrameSize (in ODFacet facet, out SIZEL size);
        void SetFrameSize (in ODFrame frame, in long width, in long height);

        implementation
        {
                functionprefix = JavaPart;
                metaclass      = M_JavaPart;
                majorversion   = 1;
                minorversion   = 0;
                dllname = "iodjava.dll";

        override:
	       InitPart,
	       InitPartFromStorage,
	       AdjustMenus,
	       InstallMenus,
               FacetAdded,
               FacetRemoved,
               FrameShapeChanged,
               HandleEvent,
	       Externalize,
	       CloneInto;

	releaseorder:
		_get_fFacet,
		_set_fFacet,
		GetFrameSize,
		SetFrameSize;

	ODPart      fPartWrapper;
	ODMenuBar   fMenuBar;
	boolean     fIsApplet;    /* jwa: true if Applet, false if Bean */
	Applet      fApplet;
	AppletTag   fAppletTag;
	Bean        fBean;
	BeanTag     fBeanTag;

        };

#endif
};

interface M_JavaPart : M_ODPart
{
#ifdef __SOMIDL__
	implementation
	{
		functionprefix = M_JavaPart;

	override:
		clsGetODPartHandlerName,
		clsGetODPartHandlerDisplayName,
		clsGetODPartKinds,
		clsGetOLE2ClassId,
		clsGetWindowsIconFileName;
	};
	#endif
};

#endif // IBM_JAVAPART
