// @(#) 1.1 com/src/samples/scrsimp2/iodsppr2.idl, odsimplescript, od96nt, odnt9712d 2/20/97 17:47:21 [3/21/97 17:46:52]
//#====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 <iodspcl2.h>

#ifndef _IODSCRSP_
#define _IODSCRSP_

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


// Interfaces used by in these classes
interface _CLp_  ;             // part class
interface _CLx_  ;             // extension class
interface ODDSEventMgr;

// Interfaces defined in this file
interface ODS_Simple2 ;

interface ODS_Simple2 : ODDSConnection
{

        attribute
        _CLx_  fScriptExtension ;

        long TriggerMouseDown(in long x, in long y) ;

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

#ifdef __SOMIDL__
        implementation
        {
                functionprefix = ODS_Simple2 ;
                majorversion = 1;
                minorversion = 0;
                dllname = "iodscrs2.dll";
                ODGuid = "{e80cd960-8aa2-11d0-8052-08005a88887e}";

        releaseorder:
                TriggerMouseDown      ,
                SetColor              ,
                GetColor              ,
                _get_fScriptExtension ,
                _set_fScriptExtension  ;

        override:
                somDefaultInit       ,
                somDestruct           ;


        ODevent="ScriptableSimplePartEvents"; // point to event description

        GetColor:ODid ;                     // expose method for scripting
        SetColor:ODid ;                     // expose method for scripting


        passthru C_xih_before = "class ODxOrderedCollection;"
        ;

        // instance variables

        ODDSEventMgr               fEventManager;
        ODGUID                     fODGuid ;

        };
#endif
};



#endif  // _IODSCRSP_
