GME  13
MgaRegistrar.h
Go to the documentation of this file.
00001 
00002 #ifndef MGA_MGAREGISTRAR_H
00003 #define MGA_MGAREGISTRAR_H
00004 
00005 #include "CommonVersionInfo.h"
00006 // --------------------------- CMgaRegistrar
00007 
00008 class ATL_NO_VTABLE CMgaRegistrar : 
00009         public CComObjectRootEx<CComSingleThreadModel>,
00010         public CComCoClass<CMgaRegistrar, &__uuidof(MgaRegistrar)>,
00011         public IDispatchImpl<IMgaRegistrar, &__uuidof(IMgaRegistrar), &__uuidof(__MGAUtilLib)>,
00012         public ISupportErrorInfoImpl<&__uuidof(IMgaRegistrar)>,
00013         public IGMEVersionInfoImpl
00014 {
00015 public:
00016         CMgaRegistrar() { }
00017 
00018 DECLARE_REGISTRY_RESOURCEID(IDR_MGAREGISTRAR)
00019 DECLARE_PROTECT_FINAL_CONSTRUCT()
00020 
00021 BEGIN_COM_MAP(CMgaRegistrar)
00022         COM_INTERFACE_ENTRY(IMgaRegistrar)
00023         COM_INTERFACE_ENTRY(IDispatch)
00024         COM_INTERFACE_ENTRY(ISupportErrorInfo)
00025         COM_INTERFACE_ENTRY_IID(__uuidof(IGMEVersionInfo), IGMEVersionInfoImpl)
00026 END_COM_MAP()
00027 
00028 // ------- Methods
00029 
00030 public:
00031         STDMETHOD(get_IconPath)(regaccessmode_enum mode, BSTR *path);
00032         STDMETHOD(put_IconPath)(regaccessmode_enum mode, BSTR path);
00033         STDMETHOD(GetIconPathDisp)(regaccessmode_enum mode, BSTR *path) { return get_IconPath( mode, path); }
00034         STDMETHOD(SetIconPathDisp)(regaccessmode_enum mode, BSTR path) { return put_IconPath( mode, path); }
00035         STDMETHOD(get_ShowMultipleView)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00036         STDMETHOD(put_ShowMultipleView)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00037         STDMETHOD(GetShowMultipleViewDisp)(regaccessmode_enum mode, VARIANT_BOOL *enabled) { return get_ShowMultipleView( mode, enabled); }
00038         STDMETHOD(SetShowMultipleViewDisp)(regaccessmode_enum mode, VARIANT_BOOL enabled) { return put_ShowMultipleView( mode, enabled); }
00039         STDMETHOD(get_EventLoggingEnabled)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00040         STDMETHOD(put_EventLoggingEnabled)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00041         STDMETHOD(GetEventLoggingEnabledDisp)(regaccessmode_enum mode, VARIANT_BOOL *enabled) { return get_EventLoggingEnabled( mode, enabled); }
00042         STDMETHOD(SetEventLoggingEnabledDisp)(regaccessmode_enum mode, VARIANT_BOOL enabled) { return put_EventLoggingEnabled( mode, enabled); }
00043         STDMETHOD(get_AutosaveEnabled)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00044         STDMETHOD(put_AutosaveEnabled)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00045         STDMETHOD(GetAutosaveEnabledDisp)(regaccessmode_enum mode, VARIANT_BOOL *enabled) { return get_AutosaveEnabled( mode, enabled); }
00046         STDMETHOD(SetAutosaveEnabledDisp)(regaccessmode_enum mode, VARIANT_BOOL enabled) { return put_AutosaveEnabled( mode, enabled); }
00047         STDMETHOD(get_AutosaveFreq)(regaccessmode_enum mode, long *secs);
00048         STDMETHOD(put_AutosaveFreq)(regaccessmode_enum mode, long secs);
00049         STDMETHOD(GetAutosaveFreqDisp)(regaccessmode_enum mode, long *secs) { return get_AutosaveFreq( mode, secs); }
00050         STDMETHOD(SetAutosaveFreqDisp)(regaccessmode_enum mode, long secs) { return put_AutosaveFreq( mode, secs); }
00051         STDMETHOD(get_AutosaveUseDir)(regaccessmode_enum mode, VARIANT_BOOL *use);
00052         STDMETHOD(put_AutosaveUseDir)(regaccessmode_enum mode, VARIANT_BOOL use);
00053         STDMETHOD(GetAutosaveUseDirDisp)(regaccessmode_enum mode, VARIANT_BOOL *use) { return get_AutosaveUseDir( mode, use); }
00054         STDMETHOD(SetAutosaveUseDirDisp)(regaccessmode_enum mode, VARIANT_BOOL use) { return put_AutosaveUseDir( mode, use); }
00055         STDMETHOD(get_AutosaveDir)(regaccessmode_enum mode, BSTR *dir);
00056         STDMETHOD(put_AutosaveDir)(regaccessmode_enum mode, BSTR dir);
00057         STDMETHOD(GetAutosaveDirDisp)(regaccessmode_enum mode, BSTR *dir) { return get_AutosaveDir( mode, dir); }
00058         STDMETHOD(SetAutosaveDirDisp)(regaccessmode_enum mode, BSTR dir) { return put_AutosaveDir( mode, dir); }
00059         STDMETHOD(get_ExternalEditorEnabled)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00060         STDMETHOD(put_ExternalEditorEnabled)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00061         STDMETHOD(GetExternalEditorEnabledDisp)(regaccessmode_enum mode, VARIANT_BOOL *enabled) { return get_ExternalEditorEnabled( mode, enabled); }
00062         STDMETHOD(SetExternalEditorEnabledDisp)(regaccessmode_enum mode, VARIANT_BOOL enabled) { return put_ExternalEditorEnabled( mode, enabled); }
00063         STDMETHOD(get_ExternalEditor)(regaccessmode_enum mode, BSTR *path);
00064         STDMETHOD(put_ExternalEditor)(regaccessmode_enum mode, BSTR path);
00065         STDMETHOD(GetExternalEditorDisp)(regaccessmode_enum mode, BSTR *path) { return get_ExternalEditor( mode, path); }
00066         STDMETHOD(SetExternalEditorDisp)(regaccessmode_enum mode, BSTR path) { return put_ExternalEditor( mode, path); }
00067         STDMETHOD(get_UseAutoRouting)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00068         STDMETHOD(put_UseAutoRouting)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00069         STDMETHOD(GetUseAutoRoutingDisp)(regaccessmode_enum mode, VARIANT_BOOL *enabled) { return get_UseAutoRouting( mode, enabled); }
00070         STDMETHOD(SetUseAutoRoutingDisp)(regaccessmode_enum mode, VARIANT_BOOL enabled) { return put_UseAutoRouting( mode, enabled); }
00071         STDMETHOD(get_LabelAvoidance)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00072         STDMETHOD(put_LabelAvoidance)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00073         STDMETHOD(GetLabelAvoidanceDisp)(regaccessmode_enum mode, VARIANT_BOOL *enabled) { return get_LabelAvoidance( mode, enabled); }
00074         STDMETHOD(SetLabelAvoidanceDisp)(regaccessmode_enum mode, VARIANT_BOOL enabled) { return put_LabelAvoidance( mode, enabled); }
00075         STDMETHOD(get_ScriptEngine)(regaccessmode_enum mode, BSTR *path);
00076         STDMETHOD(put_ScriptEngine)(regaccessmode_enum mode, BSTR path);
00077         STDMETHOD(GetScriptEngineDisp)(regaccessmode_enum mode, BSTR *path) { return get_ScriptEngine( mode, path); }
00078         STDMETHOD(SetScriptEngineDisp)(regaccessmode_enum mode, BSTR path) { return put_ScriptEngine( mode, path); }
00079         STDMETHOD(GetDefZoomLevel)(regaccessmode_enum mode, BSTR *zlevel);
00080         STDMETHOD(SetDefZoomLevel)(regaccessmode_enum mode, BSTR zlevel);
00081         STDMETHOD(GetMouseOverNotify)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00082         STDMETHOD(SetMouseOverNotify)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00083         STDMETHOD(GetRealNmbFmtStr)(regaccessmode_enum mode, BSTR *fmtStr);
00084         STDMETHOD(SetRealNmbFmtStr)(regaccessmode_enum mode, BSTR fmtStr);
00085         STDMETHOD(GetTimeStamping)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00086         STDMETHOD(SetTimeStamping)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00087         STDMETHOD(GetNavigation)(regaccessmode_enum mode, VARIANT_BOOL *enabled);
00088         STDMETHOD(SetNavigation)(regaccessmode_enum mode, VARIANT_BOOL enabled);
00089         STDMETHOD(GetUndoQueueSize)(regaccessmode_enum mode, BSTR *queuesz);
00090         STDMETHOD(SetUndoQueueSize)(regaccessmode_enum mode, BSTR queuesz);
00091         STDMETHOD(get_EdgeSmoothMode)(regaccessmode_enum mode, edgesmoothmode_enum* smoothMode);
00092         STDMETHOD(put_EdgeSmoothMode)(regaccessmode_enum mode, edgesmoothmode_enum smoothMode);
00093         STDMETHOD(GetEdgeSmoothModeDisp)(regaccessmode_enum mode, edgesmoothmode_enum* smoothMode) { return get_EdgeSmoothMode( mode, smoothMode); }
00094         STDMETHOD(SetEdgeSmoothModeDisp)(regaccessmode_enum mode, edgesmoothmode_enum smoothMode) { return put_EdgeSmoothMode( mode, smoothMode); }
00095         STDMETHOD(get_FontSmoothMode)(regaccessmode_enum mode, fontsmoothmode_enum* smoothMode);
00096         STDMETHOD(put_FontSmoothMode)(regaccessmode_enum mode, fontsmoothmode_enum smoothMode);
00097         STDMETHOD(GetFontSmoothModeDisp)(regaccessmode_enum mode, fontsmoothmode_enum* smoothMode) { return get_FontSmoothMode( mode, smoothMode); }
00098         STDMETHOD(SetFontSmoothModeDisp)(regaccessmode_enum mode, fontsmoothmode_enum smoothMode) { return put_FontSmoothMode( mode, smoothMode); }
00099 
00100         STDMETHOD(get_Paradigms)(regaccessmode_enum mode, VARIANT *names);
00101         STDMETHOD(GetParadigmsDisp)(regaccessmode_enum mode, VARIANT *names) { return get_Paradigms( mode, names); }
00102         STDMETHOD(RegisterParadigmFromData)(BSTR connstr, BSTR *newname, regaccessmode_enum mode);
00103         STDMETHOD(RegisterParadigmFromDataDisp)(BSTR connstr, regaccessmode_enum mode, BSTR *newname);
00104         STDMETHOD(RegisterParadigm)(BSTR name, BSTR connstr, BSTR version, VARIANT guid, regaccessmode_enum mode);
00105         STDMETHOD(QueryParadigmAllGUIDs)(BSTR name, VARIANT *names, regaccessmode_enum mode);
00106         STDMETHOD(QueryParadigm)(BSTR name, BSTR *connstr, VARIANT *quid, regaccessmode_enum mode);
00107         STDMETHOD(get_ParadigmGUIDString)(regaccessmode_enum mode, BSTR name, BSTR *guidstr);
00108         STDMETHOD(GetParadigmGUIDStringDisp)(regaccessmode_enum mode, BSTR name, BSTR *guidstr) { return get_ParadigmGUIDString( mode, name, guidstr); }
00109         STDMETHOD(UnregisterParadigmGUID)(BSTR name, VARIANT v, regaccessmode_enum mode);
00110         STDMETHOD(UnregisterParadigm)(BSTR name, regaccessmode_enum mode);
00111         STDMETHOD(VersionFromGUID)(BSTR name, VARIANT guid, BSTR *ver, regaccessmode_enum mode);
00112         STDMETHOD(GUIDFromVersion)(BSTR name, BSTR ver, VARIANT* guid, regaccessmode_enum mode);
00113 
00114         STDMETHOD(get_Components)(regaccessmode_enum mode, VARIANT *progids);
00115         STDMETHOD(GetComponentsDisp)(regaccessmode_enum mode, VARIANT *progids) { return get_Components( mode, progids); }
00116         STDMETHOD(RegisterComponent)(BSTR progid, componenttype_enum type, BSTR desc, regaccessmode_enum mode);
00117         STDMETHOD(QueryComponent)(BSTR progid, componenttype_enum *type, BSTR *desc, regaccessmode_enum mode);
00118         STDMETHOD(UnregisterComponent)(BSTR progid, regaccessmode_enum mode);
00119         STDMETHOD(put_ComponentExtraInfo)(regaccessmode_enum mode, 
00120                                                                                 BSTR progid, BSTR name, BSTR newVal);
00121         STDMETHOD(get_ComponentExtraInfo)(regaccessmode_enum mode, 
00122                                                                                 BSTR progid, BSTR name, BSTR* pVal);
00123         STDMETHOD(SetComponentExtraInfoDisp)(regaccessmode_enum mode, 
00124                 BSTR progid, BSTR name, BSTR newVal) { return put_ComponentExtraInfo( mode, progid, name, newVal); }
00125         STDMETHOD(GetComponentExtraInfoDisp)(regaccessmode_enum mode, 
00126                 BSTR progid, BSTR name, BSTR* pVal) { return get_ComponentExtraInfo( mode, progid, name, pVal); }
00127         STDMETHOD(get_LocalDllPath)(BSTR progid, BSTR* pVal);
00128         STDMETHOD(GetLocalDllPathDisp)(BSTR progid, BSTR* pVal) { return get_LocalDllPath( progid, pVal); }
00129 
00130         HRESULT LocalDllPath(BSTR progid,BSTR *pVal);
00131 
00132         STDMETHOD(get_AssociatedComponents)(BSTR paradigm, componenttype_enum type, regaccessmode_enum mode, VARIANT *progids);
00133         STDMETHOD(GetAssociatedComponentsDisp)(BSTR paradigm, componenttype_enum type, regaccessmode_enum mode, VARIANT *progids) { return get_AssociatedComponents( paradigm, type, mode, progids); }
00134         STDMETHOD(get_AssociatedParadigms)(BSTR progid, regaccessmode_enum mode, VARIANT *paradigms);
00135         STDMETHOD(GetAssociatedParadigmsDisp)(BSTR progid, regaccessmode_enum mode, VARIANT *paradigms) { return get_AssociatedParadigms( progid, mode, paradigms); }
00136         STDMETHOD(Associate)(BSTR progid, BSTR paradigm, regaccessmode_enum mode);
00137         STDMETHOD(Disassociate)(BSTR progid, BSTR paradigm, regaccessmode_enum mode);
00138         STDMETHOD(IsAssociated)(BSTR progid, BSTR paradigm, VARIANT_BOOL *is_ass, VARIANT_BOOL *can_ass, regaccessmode_enum mode);
00139 
00140 // --- Actions
00141 
00142         STDMETHOD(RegisterComponentLibrary)(BSTR path, regaccessmode_enum mode);
00143         STDMETHOD(UnregisterComponentLibrary)(BSTR path, regaccessmode_enum mode);
00144 };
00145 
00146 #endif//MGA_MGAREGISTRAR_H