Back to index

lightning-sunbird  0.9+nobinonly
activexml.idl
Go to the documentation of this file.
00001 // activexml.idl : IDL source for activexml.dll
00002 //
00003 
00004 // This file will be processed by the MIDL tool to
00005 // produce the type library (activexml.tlb) and marshalling code.
00006 
00007 #include "msxmldid.h"
00008 
00009 //import "oaidl.idl";
00010 //import "ocidl.idl";
00011 
00012 [
00013        uuid(45E5B410-2805-11D3-9425-000000000000),
00014        version(1.0),
00015        helpstring("Mozilla XML 1.0 Type Library")
00016 ]
00017 library MozActiveXMLLib
00018 {
00019        importlib("stdole32.tlb");
00020        importlib("stdole2.tlb");
00021 
00022        typedef enum mozxmlelemTYPE {  
00023               XMLELEMTYPE_ELEMENT,
00024               XMLELEMTYPE_TEXT,
00025               XMLELEMTYPE_COMMENT,
00026               XMLELEMTYPE_DOCUMENT,
00027               XMLELEMTYPE_DTD,
00028               XMLELEMTYPE_PI,
00029               XMLELEMTYPE_OTHER
00030        } XMLELEM_TYPE; 
00031 
00032        interface IXMLElement;
00033 
00034        [
00035               object,
00036               local,
00037               uuid(65725580-9B5D-11d0-9BFE-00C04FC99C8E) // IID_IXMLElementCollection
00038        ]
00039        interface IXMLElementCollection : IDispatch
00040        {
00041               [propput, id(DISPID_XMLELEMENTCOLLECTION_LENGTH)] HRESULT length([in] long v);
00042               [propget, id(DISPID_XMLELEMENTCOLLECTION_LENGTH)] HRESULT length([retval, out] long * p);
00043               [propget, restricted, hidden, id(DISPID_XMLELEMENTCOLLECTION_NEWENUM)] HRESULT _newEnum([retval, out] IUnknown ** ppUnk);
00044               [id(DISPID_XMLELEMENTCOLLECTION_ITEM)] HRESULT item([optional, in] VARIANT var1,[optional, in] VARIANT var2,[retval, out] IDispatch ** ppDisp);
00045        };
00046 
00047        [
00048               object,
00049               local,
00050               uuid(F52E2B61-18A1-11d1-B105-00805F49916B) // IID_IXMLDocument
00051        ]
00052        interface IXMLDocument : IDispatch
00053        {
00054               [propget, id(DISPID_XMLDOCUMENT_ROOT)] HRESULT root ([retval, out] IXMLElement * * p);
00055               [propget, id(DISPID_XMLDOCUMENT_FILESIZE)] HRESULT fileSize([retval, out] BSTR * p);
00056               [propget, id(DISPID_XMLDOCUMENT_FILEMODIFIEDDATE)] HRESULT fileModifiedDate([retval, out] BSTR * p);
00057               [propget, id(DISPID_XMLDOCUMENT_FILEUPDATEDDATE)] HRESULT fileUpdatedDate([retval, out] BSTR * p);
00058               [propget, id(DISPID_XMLDOCUMENT_URL)] HRESULT URL([retval, out] BSTR * p);
00059               [propput, id(DISPID_XMLDOCUMENT_URL)] HRESULT URL([in] BSTR p);
00060               [propget, id(DISPID_XMLDOCUMENT_MIMETYPE)] HRESULT mimeType([retval, out] BSTR * p);
00061               [propget, id(DISPID_XMLDOCUMENT_READYSTATE)] HRESULT readyState([retval, out]long *pl);
00062               [propget, id(DISPID_XMLDOCUMENT_CHARSET)]  HRESULT charset([retval, out]BSTR *p);
00063               [propput, id(DISPID_XMLDOCUMENT_CHARSET)]  HRESULT charset([in]BSTR p);
00064               [propget, id(DISPID_XMLDOCUMENT_VERSION)]  HRESULT version([retval, out]BSTR *p);
00065               [propget, id(DISPID_XMLDOCUMENT_DOCTYPE)]  HRESULT doctype([retval, out]BSTR *p);
00066               [propget, id(DISPID_XMLDOCUMENT_DTDURL)]   HRESULT dtdURL([retval, out]BSTR *p);
00067               [id(DISPID_XMLDOCUMENT_CREATEELEMENT)] HRESULT createElement([in] VARIANT vType, [optional, in] VARIANT var1, [retval, out] IXMLElement * * ppElem);
00068        };
00069 
00070 
00071        [
00072               object,
00073               local,
00074               uuid(3F7F31AC-E15F-11d0-9C25-00C04FC99C8E) // IID_IXMLElement
00075        ]
00076        interface IXMLElement : IDispatch
00077        {
00078               [propget, id(DISPID_XMLELEMENT_TAGNAME)] HRESULT tagName([retval, out] BSTR * p);
00079               [propput, id(DISPID_XMLELEMENT_TAGNAME)] HRESULT tagName([in] BSTR p);
00080               [propget, id(DISPID_XMLELEMENT_PARENT)] HRESULT parent([retval, out]IXMLElement **ppParent);
00081               [id(DISPID_XMLELEMENT_SETATTRIBUTE)] HRESULT setAttribute([in] BSTR strPropertyName,[in] VARIANT PropertyValue);
00082               [id(DISPID_XMLELEMENT_GETATTRIBUTE)] HRESULT getAttribute([in] BSTR strPropertyName,[retval, out] VARIANT* PropertyValue);
00083               [id(DISPID_XMLELEMENT_REMOVEATTRIBUTE)] HRESULT removeAttribute([in] BSTR strPropertyName);
00084               [propget, id(DISPID_XMLELEMENT_CHILDREN)] HRESULT children([retval, out] IXMLElementCollection * * pp); 
00085               [propget, id(DISPID_XMLELEMENT_TYPE)] HRESULT type([retval, out] long *plType);
00086               [propget, id(DISPID_XMLELEMENT_TEXT)] HRESULT text([retval, out] BSTR *p);
00087               [propput, id(DISPID_XMLELEMENT_TEXT)] HRESULT text([in] BSTR p);
00088               [id(DISPID_XMLELEMENT_ADDCHILD)] HRESULT addChild([in] IXMLElement *pChildElem, long lIndex, long lReserved); // lReserved must be -1
00089               [id(DISPID_XMLELEMENT_REMOVECHILD)] HRESULT removeChild([in]IXMLElement *pChildElem);
00090        }
00091 
00092        typedef struct __xml_error {
00093               unsigned        _nLine;         // line number
00094               BSTR            _pchBuf;        // current input buffer
00095               unsigned        _cchBuf;        // number of chars in buffer
00096               unsigned        _ich;           // index of the char when error occurred
00097               BSTR            _pszFound;      // token found
00098               BSTR            _pszExpected;   // token expected
00099               DWORD           _reserved1;     // reserved    
00100               DWORD           _reserved2;     // reserved
00101        } XML_ERROR;
00102 
00103        [
00104               object,
00105               local,
00106               uuid(948C5AD3-C58D-11d0-9C0B-00C04FC99C8E) // IID_IXMLError
00107        ]
00108 
00109        interface IXMLError : IUnknown
00110        {
00111               HRESULT GetErrorInfo(XML_ERROR *pErrorReturn);
00112        }
00113 
00114 
00115 
00116        [
00117               uuid(45E5B41D-2805-11D3-9425-000000000000),
00118               helpstring("MozXMLDocument Class")
00119        ]
00120        coclass MozXMLDocument
00121        {
00122               interface IDispatch;
00123               [default] interface IXMLDocument;
00124        };
00125        [
00126               uuid(45E5B420-2805-11D3-9425-000000000000),
00127               helpstring("MozXMLElement Class")
00128        ]
00129        coclass MozXMLElement
00130        {
00131               interface IDispatch;
00132               [default] interface IXMLElement;
00133        };
00134        [
00135               uuid(45E5B422-2805-11D3-9425-000000000000),
00136               helpstring("MozXMLElementCollection Class")
00137        ]
00138        coclass MozXMLElementCollection
00139        {
00140               interface IDispatch;
00141               [default] interface IXMLElementCollection;
00142        };
00143 };