GME  13
GMEOLEApp.h
Go to the documentation of this file.
00001 #if !defined(AFX_GMEOLEAPP_H__78B0CD97_4EC0_450F_A3B3_C3AE29A254FD__INCLUDED_)
00002 #define AFX_GMEOLEAPP_H__78B0CD97_4EC0_450F_A3B3_C3AE29A254FD__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // GMEOLEApp.h : header file
00008 //
00009 
00010 
00012 // CGMEOLEApp command target
00013 
00014 class CGMEOLEApp : public CCmdTarget
00015 {
00016         DECLARE_DYNCREATE(CGMEOLEApp)
00017 
00018         CGMEOLEApp();           // protected constructor used by dynamic creation
00019 
00020 // Attributes
00021 public:
00022 
00023 // Operations
00024 public:
00025 
00026 // Overrides
00027 public:
00028         virtual void OnFinalRelease();
00029 
00030 
00031 // Implementation
00032 protected:
00033         virtual ~CGMEOLEApp();
00034 
00035         // Generated message map functions
00036         //{{AFX_MSG(CGMEOLEApp)
00037                 // NOTE - the ClassWizard will add and remove member functions here.
00038         //}}AFX_MSG
00039 
00040         DECLARE_MESSAGE_MAP()
00041         DECLARE_OLECREATE(CGMEOLEApp)
00042 
00043         // OLE dispatch map functions
00044         afx_msg BOOL GetVisible();
00045         afx_msg void SetVisible(BOOL bNewValue);
00046         afx_msg BSTR GetVersion();
00047         afx_msg void SetVersion(LPCTSTR lpszNewValue);
00048         afx_msg short GetVersionMajor();
00049         afx_msg void SetVersionMajor(short nNewValue);
00050         afx_msg short GetVersionMinor();
00051         afx_msg void SetVersionMinor(short nNewValue);
00052         afx_msg short GetVersionPatchLevel();
00053         afx_msg void SetVersionPatchLevel(short nNewValue);
00054         afx_msg LPDISPATCH GetModels();
00055         afx_msg void SetModels(LPDISPATCH newValue);
00056         afx_msg LPDISPATCH GetMgaProject();
00057         afx_msg void SetMgaProject(LPDISPATCH newValue);
00058         afx_msg LPDISPATCH GetOleIt();
00059         afx_msg void SetOleIt(LPDISPATCH newValue);
00060         afx_msg LPDISPATCH GetPanels();
00061         afx_msg void SetPanels(LPDISPATCH newValue);
00062         afx_msg BSTR GetConsoleContents();
00063         afx_msg void SetConsoleContents(LPCTSTR contents);
00064         afx_msg void CreateProject(LPCTSTR metaname, LPCTSTR connstr);
00065         afx_msg void OpenProject(LPCTSTR connstr);
00066         afx_msg void CreateProjectDialog();
00067         afx_msg void OpenProjectDialog();
00068         afx_msg void CloseProject(BOOL saveOnClose);
00069         afx_msg void SaveProject();
00070         afx_msg void SaveProjectAs(LPCTSTR connstr);
00071         afx_msg void SaveProjectAsDialog();
00072         afx_msg void ExportProject(LPCTSTR connstr);
00073         afx_msg void ImportProject(LPCTSTR connstr);
00074         afx_msg void ConstraintsDialog();
00075         afx_msg void CheckAllConstraints();
00076         afx_msg void RegisterParagimsDialog();
00077         afx_msg void RegisterComponentsDialog();
00078         afx_msg void RunComponent(LPCTSTR progID);
00079         afx_msg void RunComponentDialog();
00080         afx_msg void SettingsDialog();
00081         afx_msg void Undo();
00082         afx_msg void Redo();
00083         afx_msg void ClearUndoQueue();
00084         afx_msg void ProjectPropertiesDialog();
00085         afx_msg void ShowHelpContents();
00086         afx_msg void ShowAbout();
00087         afx_msg void ShowFCO(LPDISPATCH mgaFCO, BOOL inParent);
00088         afx_msg void ConsoleMessage(LPCTSTR msg, long type);
00089         afx_msg void ConsoleClear();
00090         afx_msg void ConsoleNavigateTo(LPCTSTR url);
00091 
00092         afx_msg void ChangeEditmode(long mode);
00093         afx_msg void GridShow(BOOL show);
00094         afx_msg void AttributepanelPage(long page);
00095         afx_msg void DisableComp(LPCTSTR pCompName, BOOL pDisable);
00096         afx_msg void DisableCompForKinds( LPCTSTR pCompName, LPCTSTR pKindNameSequence);
00097         afx_msg void SetCompFiltering( BOOL pOn);
00098         afx_msg BOOL GetCompFiltering();
00099         afx_msg void SetWorkingDirectory( LPCTSTR pPath);
00100         afx_msg void Exit();
00101         afx_msg long RefreshLib( LPCTSTR pLibName, BOOL pUngroup);
00102 
00103         DECLARE_DISPATCH_MAP()
00104         DECLARE_INTERFACE_MAP()
00105 
00106         BEGIN_DUAL_INTERFACE_PART(Dual, IGMEOLEApp)
00107                 STDMETHOD(put_Visible)(THIS_ VARIANT_BOOL isVisible);
00108                 STDMETHOD(get_Visible)(THIS_ VARIANT_BOOL* isVisible);
00109                 STDMETHOD(get_Version)(THIS_ BSTR* versionStr);
00110                 STDMETHOD(get_VersionMajor)(THIS_ short* n);
00111                 STDMETHOD(get_VersionMinor)(THIS_ short* n);
00112                 STDMETHOD(get_VersionPatchLevel)(THIS_ short* n);
00113                 STDMETHOD(get_Models)(THIS_ IGMEOLEColl** coll);
00114                 STDMETHOD(get_MgaProject)(THIS_ IMgaProject** project);
00115                 STDMETHOD(get_Panels)(THIS_ IGMEOLEColl** coll);
00116                 STDMETHOD(put_ConsoleContents)(THIS_ BSTR contents);
00117                 STDMETHOD(get_ConsoleContents)(THIS_ BSTR* contents);
00118                 STDMETHOD(get_OleIt)( THIS_ IGMEOLEIt ** opened_mod);
00119 
00120                 STDMETHOD(CreateProject)(THIS_ BSTR metaname, BSTR connstr);
00121                 STDMETHOD(OpenProject)(THIS_ BSTR connstr);
00122                 STDMETHOD(CreateProjectDialog)(THIS);
00123                 STDMETHOD(OpenProjectDialog)(THIS);
00124                 STDMETHOD(CloseProject)(THIS_ VARIANT_BOOL saveOnClose);
00125                 STDMETHOD(SaveProject)(THIS);
00126                 STDMETHOD(SaveProjectAs)(THIS_ BSTR connstr);
00127                 STDMETHOD(SaveProjectAsDialog)(THIS);
00128                 STDMETHOD(ExportProject)(THIS_ BSTR connstr);
00129                 STDMETHOD(ImportProject)(THIS_ BSTR connstr);
00130                 STDMETHOD(ConstraintsDialog)(THIS);
00131                 STDMETHOD(CheckAllConstraints)(THIS);
00132                 STDMETHOD(RegisterParagimsDialog)(THIS);
00133                 STDMETHOD(RegisterComponentsDialog)(THIS);
00134                 STDMETHOD(RunComponent)(THIS_ BSTR progID);
00135                 STDMETHOD(RunComponentDialog)(THIS);
00136                 STDMETHOD(SettingsDialog)(THIS);
00137                 STDMETHOD(Undo)(THIS);
00138                 STDMETHOD(Redo)(THIS);
00139                 STDMETHOD(ClearUndoQueue)(THIS);
00140                 STDMETHOD(ProjectPropertiesDialog)(THIS);
00141                 STDMETHOD(ShowHelpContents)(THIS);
00142                 STDMETHOD(ShowAbout)(THIS);
00143                 STDMETHOD(ShowFCO)(THIS_ IMgaFCO* mgaFCO, VARIANT_BOOL inParent = FALSE);
00144                 STDMETHOD(ConsoleMessage)(THIS_ BSTR msg, msgtype_enum type);
00145                 STDMETHOD(ConsoleClear)(THIS);
00146                 STDMETHOD(ConsoleNavigateTo)(THIS_ BSTR url);
00147 
00148                 STDMETHOD(ChangeEditmode)(THIS_ editmode_enum mode);
00149                 STDMETHOD(GridShow)(THIS_ VARIANT_BOOL show);
00150                 STDMETHOD(AttributepanelPage)(THIS_ attribpanel_page page);
00151 
00152                 STDMETHOD(DisableComp)(THIS_ BSTR pCompName, VARIANT_BOOL pDisable);
00153                 STDMETHOD(DisableCompForKinds)(THIS_ BSTR pCompName, BSTR pKindSequence);
00154                 STDMETHOD(SetCompFiltering)( THIS_ VARIANT_BOOL pOn);
00155                 STDMETHOD(GetCompFiltering)( THIS_ VARIANT_BOOL* pOn);
00156                 STDMETHOD(SetWorkingDirectory)(THIS_ BSTR pPath);
00157                 STDMETHOD(Exit)(THIS);
00158                 STDMETHOD(RefreshLib)(THIS_ BSTR pLibName, VARIANT_BOOL pUngroup, long* pNumOfErrors);
00159 
00160         END_DUAL_INTERFACE_PART(Dual)
00161 
00162         //     add declaration of ISupportErrorInfo implementation
00163         //     to indicate we support the OLE Automation error object
00164         DECLARE_DUAL_ERRORINFO()
00165 };
00166 
00168 
00169 //{{AFX_INSERT_LOCATION}}
00170 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00171 
00172 #endif // !defined(AFX_GMEOLEAPP_H__78B0CD97_4EC0_450F_A3B3_C3AE29A254FD__INCLUDED_)