// @(#) 1.7 com/src/samples/scrsimpl/iodscrsp.idl, odsimplescript, od96nt, odnt9712d 2/20/97 17:30:26 [3/21/97 17:38:09]

//#====START_GENERATED_PROLOG======================================
//#
//#
//#   COMPONENT_NAME: odsamples
//#
//#   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========================================
//#
#ifdef __PRIVATE__
//#
//#     File:           iodscrsp.idl
//#
//#     Contains:       IDL description of Scriptable Simple Part
//#
//#     Written by:     TRM
//#
//#     Copyright:      (c) 1996 by IBM Corp., all rights reserved.
#endif

#include <iodspcl.h>

#ifndef _IODSCRSP_
#define _IODSCRSP_

#include <iodsimpl.idl>
#include <oddsconn.idl>


// Interfaces used by in these classes
interface _CLm_  ;             // meta class
interface _CLx_  ;             // extension class
interface ODDSEventMgr;

// Interfaces defined in this file
interface _CLp_ ;

interface _CLp_  : SimplePart
{

        void    SetColor(in long newColor) ;
        long    GetColor() ;

#ifdef __SOMIDL__
        implementation
        {
                functionprefix = _CLp_ ;
                majorversion = 1;
                minorversion = 0;
                metaclass = _CLm_  ;
                dllname = "iodscrsp.dll";
                ODGuid = "{571abd80-2b98-11d0-a5ca-0004ac3280dc}";

        releaseorder:
                TriggerMouseDown,
                SetColor,
                GetColor ;

        override:
                somDefaultInit       ,
                somDestruct          ,
                HasExtension         ,
                AcquireExtension     ,
                ReleaseExtension     ,
                AdjustMenus          ,
                HandleMenuEvent      ,
                InstallMenus         ,
                InitPartFromStorage  ,
                Externalize          ,
                DrawFrame            ,
                HandleEvent          ,
                CloneInto             ;



        passthru C_xih_before = "class ODxOrderedCollection;"
        ;

        // instance variables

        _CLx_                      fScriptExtension ;
        long                       fColor ;

        };
#endif
};

interface _CLm_  : M_SimplePart
{

#ifdef __SOMIDL__
  implementation
  {
    functionprefix = _CLm_ ;
    override:
      clsGetODPartHandlerName,
      clsGetODPartHandlerDisplayName,
      clsGetODPartKinds,
      clsGetOLE2ClassId,
      clsGetWindowsIconFileName;
  };
#endif
};


#endif  // _IODSCRSP_
