GME  13
Parser.idl
Go to the documentation of this file.
00001 import "oaidl.idl";
00002 import "ocidl.idl";
00003 
00004 #include "InterfaceVersion.h"
00005 
00006 import "Mga.idl";
00007 import "MgaUtil.idl";
00008 
00009 // --------------------------- Parser IDL
00010 
00011 // ------- Typedefs
00012 
00013 typedef enum inserttype_enum {
00014         ADDITION = 0,
00015         MERGE    = 1
00016 } inserttype_enum;
00017 
00018 [
00019         object,
00020         uuid(70C41B24-E3CE-11D3-B37A-005004D38590),
00021         dual,
00022         helpstring("IMgaMetaParser Interface"),
00023         pointer_default(unique)
00024 ]
00025 interface IMgaMetaParser : IDispatch
00026 {
00027         [helpstring("method Parse")]
00028         HRESULT Parse([in] BSTR xmlfile, [in] BSTR connection);
00029 };
00030 
00031 [
00032         object,
00033         uuid(A5D0DAE6-16EE-11D4-B3C2-005004D38590),
00034         dual,
00035         helpstring("IMgaDumper Interface"),
00036         pointer_default(unique)
00037 ]
00038 interface IMgaDumper : IDispatch
00039 {
00040         [helpstring("method DumpProject")]
00041         HRESULT DumpProject([in] IMgaProject *p, [in] BSTR xmlfile);
00042 
00043         [helpstring("method DumpFCOs")]
00044         HRESULT DumpFCOs([in] IMgaProject *proj,[in] IMgaFCOs *p, [in] IMgaFolders *f, [in] IMgaRegNodes *r, [in] BSTR xmlfile);
00045 
00046         [helpstring("method DumpClos")]
00047         HRESULT DumpClos( [in] IMgaFCOs *fco, [in] IMgaFolders *fld, [in] BSTR xmlfile, [in] int libr_stub);
00048 
00049         [helpstring("method DumpClos with top objects specified")]
00050         HRESULT DumpClosR(  [in] IMgaFCOs *fco, [in] IMgaFolders *fld, [in] BSTR xmlfile,
00051                                                 [in] IMgaFCOs *topfco, [in] IMgaFolders *topfld, [in] int options, [in] BSTR abspath, [in] BSTR acceptingkinds);
00052 
00053         [propput, helpstring("property FormatVersion")]
00054         HRESULT FormatVersion([in] long p);
00055 };
00056 
00057 [
00058         object,
00059         uuid(3813768B-5A4C-477D-BCD5-1776089948EC),
00060         dual,
00061         helpstring("IMgaDumper2 Interface"),
00062         pointer_default(unique)
00063 ]
00064 interface IMgaDumper2 : IMgaDumper
00065 {
00066         HRESULT DumpProject2([in] IMgaProject *p, [in] BSTR xmlfile, ULONGLONG hwndParent);
00067         HRESULT DumpFCOs2([in] IMgaProject *proj,[in] IMgaFCOs *p, [in] IMgaFolders *f, [in] IMgaRegNodes *r, [in] BSTR xmlfile, ULONGLONG hwndParent);
00068 }
00069 
00070 [
00071         object,
00072         uuid(94D6FB53-1F7C-11D4-B3D0-005004D38590),
00073         dual,
00074         helpstring("IMgaParser Interface"),
00075         pointer_default(unique)
00076 ]
00077 interface IMgaParser : IDispatch
00078 {
00079         [helpstring("method GetXMLInfo")]
00080         HRESULT GetXMLInfo([in] BSTR xmlfile, [out] BSTR *Paradigm, [out] BSTR *parversion, [out] VARIANT *parguid, [out] BSTR *basename, [out] BSTR *ver);
00081 
00082         [helpstring("method ParseProject")]
00083         HRESULT ParseProject([in] IMgaProject *p, [in] BSTR xmlfile);
00084 
00085         [helpstring("method ParseFCO")]
00086         HRESULT ParseFCOs([in] IMgaObject *here, [in] BSTR xmlfile);
00087 
00088         [helpstring("method GetClipXMLInfo")]
00089         HRESULT GetClipXMLInfo([in] BSTR xmlfile, [in] IMgaObject *Target, [out] VARIANT_BOOL *parguid, [out] BSTR *acckind, [out] BSTR *ver);
00090 
00091         [helpstring("method ParseCLOSURE version 1 - basic")]
00092         HRESULT ParseClos1([in] IMgaObject *here, [in] BSTR xmlfile);
00093 
00094         [helpstring("method ParseCLOSURE version 4 - smart")]
00095         HRESULT ParseClos4([in] IMgaObject *here, [in] BSTR xmlfile, [in] int options);
00096 
00097 };
00098 
00099 [
00100         object,
00101         uuid("E39BEA37-384D-423B-ADDF-2BB13550F577"),
00102         dual,
00103         helpstring("IMgaParser2 Interface"),
00104         pointer_default(unique)
00105 ]
00106 interface IMgaParser2 : IMgaParser
00107 {
00108         HRESULT ParseProject2([in] IMgaProject *p, [in] BSTR xmlfile, ULONGLONG hwndParent);
00109         HRESULT ParseFCOs2([in] IMgaObject *here, [in] BSTR xmlfile, ULONGLONG hwndParent);
00110         HRESULT GetXMLParadigm([in] BSTR xmlfile, [out] BSTR *Paradigm);
00111 };
00112 
00113 [
00114         object,
00115         uuid("5CAB528B-474B-4C52-BE40-74FF29AFBB58"),
00116         dual,
00117         helpstring("IMgaParser3 Interface"),
00118         pointer_default(unique)
00119 ]
00120 interface IMgaParser3 : IMgaParser2
00121 {
00122         [propget]
00123         HRESULT Resolver([out, retval] IMgaResolver** MgaResolver);
00124         [propput]
00125         HRESULT Resolver([in] IMgaResolver* MgaResolver);
00126 };