1*46dbaceeSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*46dbaceeSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*46dbaceeSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*46dbaceeSAndrew Rist * distributed with this work for additional information 6*46dbaceeSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*46dbaceeSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*46dbaceeSAndrew Rist * "License"); you may not use this file except in compliance 9*46dbaceeSAndrew Rist * with the License. You may obtain a copy of the License at 10*46dbaceeSAndrew Rist * 11*46dbaceeSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*46dbaceeSAndrew Rist * 13*46dbaceeSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*46dbaceeSAndrew Rist * software distributed under the License is distributed on an 15*46dbaceeSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*46dbaceeSAndrew Rist * KIND, either express or implied. See the License for the 17*46dbaceeSAndrew Rist * specific language governing permissions and limitations 18*46dbaceeSAndrew Rist * under the License. 19*46dbaceeSAndrew Rist * 20*46dbaceeSAndrew Rist *************************************************************/ 21*46dbaceeSAndrew Rist 22*46dbaceeSAndrew Rist 23cdf0e10cSrcweir #ifndef __COMIFACES_HXX 24cdf0e10cSrcweir #define __COMIFACES_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <com/sun/star/uno/XInterface.hpp> 27cdf0e10cSrcweir 28cdf0e10cSrcweir using namespace com::sun::star::uno; 29cdf0e10cSrcweir 30cdf0e10cSrcweir #ifdef __MINGW32__ 31cdf0e10cSrcweir DEFINE_GUID(IID_IJScriptValueObject, 0xe40a2331, 0x3bc1, 0x11d4, 0x83, 0x21, 0x00, 0x50, 0x04, 0x52, 0x6a, 0xb4); 32cdf0e10cSrcweir DEFINE_GUID(IID_IUnoObjectWrapper, 0x7B5C3410, 0x66FA, 0x11d4, 0x83, 0x2A, 0x00, 0x50, 0x04, 0x52, 0x6A, 0xB4); 33cdf0e10cSrcweir DEFINE_GUID(IID_IUnoTypeWrapper, 0x8BB66591, 0xA544, 0x4de9, 0x82, 0x2C, 0x57, 0xAB, 0x57, 0xBC, 0xED, 0x1C); 34cdf0e10cSrcweir #endif 35cdf0e10cSrcweir MIDL_INTERFACE("e40a2331-3bc1-11d4-8321-005004526ab4") 36cdf0e10cSrcweir IJScriptValueObject: public IUnknown 37cdf0e10cSrcweir { 38cdf0e10cSrcweir STDMETHOD( Set)( VARIANT type, VARIANT value)= 0; 39cdf0e10cSrcweir STDMETHOD( Get)( VARIANT *val)= 0; 40cdf0e10cSrcweir STDMETHOD( InitOutParam)()= 0; 41cdf0e10cSrcweir STDMETHOD( InitInOutParam)( VARIANT type, VARIANT value)= 0; 42cdf0e10cSrcweir STDMETHOD( IsOutParam)( VARIANT_BOOL * flag)= 0; 43cdf0e10cSrcweir STDMETHOD( IsInOutParam)( VARIANT_BOOL * flag)= 0; 44cdf0e10cSrcweir STDMETHOD( GetValue)( BSTR* type, VARIANT *value)= 0; 45cdf0e10cSrcweir 46cdf0e10cSrcweir }; 47cdf0e10cSrcweir 48cdf0e10cSrcweir MIDL_INTERFACE("7B5C3410-66FA-11d4-832A-005004526AB4") 49cdf0e10cSrcweir IUnoObjectWrapper: public IUnknown 50cdf0e10cSrcweir { 51cdf0e10cSrcweir STDMETHOD( getWrapperXInterface)( Reference<XInterface>* pInt)=0; 52cdf0e10cSrcweir STDMETHOD( getOriginalUnoObject)( Reference<XInterface>* pInt)=0; 53cdf0e10cSrcweir STDMETHOD( getOriginalUnoStruct)( Any * pStruct)=0; 54cdf0e10cSrcweir 55cdf0e10cSrcweir }; 56cdf0e10cSrcweir 57cdf0e10cSrcweir MIDL_INTERFACE("8BB66591-A544-4de9-822C-57AB57BCED1C") 58cdf0e10cSrcweir IUnoTypeWrapper: public IUnknown 59cdf0e10cSrcweir { 60cdf0e10cSrcweir STDMETHOD(put_Name)(BSTR val) = 0; 61cdf0e10cSrcweir STDMETHOD(get_Name)(BSTR* pVal) = 0; 62cdf0e10cSrcweir }; 63cdf0e10cSrcweir 64cdf0e10cSrcweir 65cdf0e10cSrcweir #endif 66