GME  13
GMEOLEAspect.h
Go to the documentation of this file.
00001 #if !defined(AFX_GMEOLEASPECT_H__338DD18C_3C58_4C65_9202_2B5E00CF740A__INCLUDED_)
00002 #define AFX_GMEOLEASPECT_H__338DD18C_3C58_4C65_9202_2B5E00CF740A__INCLUDED_
00003 
00004 #include "GuiMeta.h"
00005 #include "GMEView.h"
00006 
00007 #if _MSC_VER > 1000
00008 #pragma once
00009 #endif // _MSC_VER > 1000
00010 // GMEOLEAspect.h : header file
00011 //
00012 
00013 
00014 
00016 // CGMEOLEAspect command target
00017 
00018 class CGMEOLEAspect : public CCmdTarget
00019 {
00020         DECLARE_DYNCREATE(CGMEOLEAspect)
00021 
00022         CGMEOLEAspect();           // protected constructor used by dynamic creation
00023 
00024 // Attributes
00025 public:
00026 
00027 // Operations
00028 public:
00029         void SetGuiParams(CGMEView *view, CGuiMetaAspect *guiAspect) { m_view = view; m_guiAspect = guiAspect; }
00030 
00031 // Overrides
00032 public:
00033         virtual void OnFinalRelease();
00034         //}}AFX_VIRTUAL
00035 
00036 // Implementation
00037 protected:
00038         CGuiMetaAspect* m_guiAspect;
00039         CGMEView*               m_view;
00040         virtual ~CGMEOLEAspect();
00041 
00042         bool AmIValid();
00043 
00044         // Generated message map functions
00045         //{{AFX_MSG(CGMEOLEAspect)
00046                 // NOTE - the ClassWizard will add and remove member functions here.
00047         //}}AFX_MSG
00048 
00049         DECLARE_MESSAGE_MAP()
00050         // OLE dispatch map functions
00051         afx_msg LPDISPATCH GetMgaAspect();
00052         afx_msg void SetMgaAspect(LPDISPATCH newValue);
00053         afx_msg BOOL GetActive();
00054         afx_msg void SetActive(BOOL bNewValue);
00055         afx_msg BOOL GetValid();
00056         afx_msg void SetValid(BOOL bNewValue);
00057 
00058         DECLARE_DISPATCH_MAP()
00059         DECLARE_INTERFACE_MAP()
00060 
00061         BEGIN_DUAL_INTERFACE_PART(Dual, IGMEOLEAspect)
00062                 STDMETHOD(get_MgaAspect)(THIS_ IMgaMetaAspect** aspect);
00063                 STDMETHOD(put_Active)(THIS_ VARIANT_BOOL isActive);
00064                 STDMETHOD(get_Active)(THIS_ VARIANT_BOOL* isActive);
00065                 STDMETHOD(get_Valid)(THIS_ VARIANT_BOOL* isValid);
00066         END_DUAL_INTERFACE_PART(Dual)
00067 
00068         //     add declaration of ISupportErrorInfo implementation
00069         //     to indicate we support the OLE Automation error object
00070         DECLARE_DUAL_ERRORINFO()
00071 };
00072 
00074 
00075 //{{AFX_INSERT_LOCATION}}
00076 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00077 
00078 #endif // !defined(AFX_GMEOLEASPECT_H__338DD18C_3C58_4C65_9202_2B5E00CF740A__INCLUDED_)