GME  13
GMEBrowser.h
Go to the documentation of this file.
00001 //{{AFX_INCLUDES()
00002 #include "gmeactivebrowser.h"
00003 //}}AFX_INCLUDES
00004 #if !defined(AFX_GMEBROWSER_H__7157C233_E649_11D3_9206_00104B98EAD9__INCLUDED_)
00005 #define AFX_GMEBROWSER_H__7157C233_E649_11D3_9206_00104B98EAD9__INCLUDED_
00006 
00007 #if _MSC_VER > 1000
00008 #pragma once
00009 #endif // _MSC_VER > 1000
00010 // GMEBrowser.h : header file
00011 //
00012 
00014 // CGMEBrowser dialog
00015 
00016 class CGMEBrowser : public CDockablePane
00017 {
00018 // Construction
00019 public:
00020         CGMEBrowser(CWnd* pParent = NULL);   // standard constructor
00021         virtual ~CGMEBrowser() { theInstance = 0; }
00022 
00023         bool GetSelectedItem(CComPtr<IMgaObject> &item);
00024         bool GetSelectedItems(CComPtr<IMgaObjects> &items);
00025         void SetProject(CComPtr<IMgaProject>& mgaProject);
00026         void CloseProject();
00027         void RefreshAll();
00028         void ShowObject(LPUNKNOWN selected);
00029         void ShowObjectInParent( LPUNKNOWN selected);
00030         void ShowFindDlg();
00031         void ShowObjInsp();
00032         void CycleObjInsp( VARIANT_BOOL frwd);
00033         void FocusItem(BSTR Id);
00034         void ShowAttrPref(bool isAttr, LPUNKNOWN selected);
00035         void SetCurrObject(LPUNKNOWN pMgaObject);
00036         IDispatch * GetInterface() 
00037         {
00038                 LPUNKNOWN pUnk = m_GMEActiveBrowser.GetControlUnknown();
00039 
00040                 // From there get the IDispatch interface of control.
00041                 LPDISPATCH pDisp = NULL;
00042                 pUnk->QueryInterface(IID_IDispatch, (LPVOID*)&pDisp);
00043                 return pDisp;
00044         };
00045 
00046 // Dialog Data
00047         //{{AFX_DATA(CGMEBrowser)
00048         enum { IDD = IDD_BROWSER_DIALOG };
00049         CGMEActiveBrowser       m_GMEActiveBrowser;
00050         //}}AFX_DATA
00051 
00052         static CGMEBrowser *theInstance;
00053 
00054 // Overrides
00055         // ClassWizard generated virtual function overrides
00056         //{{AFX_VIRTUAL(CGMEBrowser)
00057         public:
00058         virtual BOOL PreTranslateMessage(MSG* pMsg);
00059         protected:
00060         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00061         //}}AFX_VIRTUAL
00062 
00063 
00064 // Implementation
00065 protected:
00066         virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
00067 
00068         // Generated message map functions
00069         //{{AFX_MSG(CGMEBrowser)
00070         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00071         afx_msg void OnSize(UINT nType, int cx, int cy);
00072         afx_msg void OnDblClickMgaObjectActivebrowserCtlr1(LPUNKNOWN selected);
00073         afx_msg void OnCRonObjectActivebrowserCtlr1(LPUNKNOWN selected);
00074         afx_msg void OnShowAttributesActivebrowserctrl1(LPUNKNOWN object);
00075         afx_msg void OnShowPreferencesActivebrowserctrl1(LPUNKNOWN object);
00076         afx_msg void OnDblClickMgaObjectGmeActiveBrowserCtrl(LPUNKNOWN pMgaObject);
00077         afx_msg void OnShowAttributesGmeActiveBrowserCtrl(LPUNKNOWN pMgaObject);
00078         afx_msg void OnShowPreferencesGmeActiveBrowserCtrl(LPUNKNOWN pMgaObject);
00079         afx_msg void OnShowPropertiesGmeActiveBrowserCtrl();
00080         afx_msg void OnClickMgaObjectGmeActiveBrowserCtrl(LPUNKNOWN pMgaObject);
00081         afx_msg void OnShowInParentMgaObjectGmeActiveBrowserCtrl(LPUNKNOWN pMgaObject);
00082         afx_msg void OnShowFindDlgGmeActiveBrowserCtrl();
00083         afx_msg void OnShowObjInspDlgGmeActiveBrowserCtrl();
00084         afx_msg void OnCycleObjsInspGmeActiveBrowserCtrl(VARIANT_BOOL frwd);
00085         afx_msg void OnRootFolderNameChangedGmeActiveBrowserCtrl();
00086         DECLARE_EVENTSINK_MAP()
00087         //}}AFX_MSG
00088         DECLARE_MESSAGE_MAP()
00089 };
00090 
00091 //{{AFX_INSERT_LOCATION}}
00092 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00093 
00094 #endif // !defined(AFX_GMEBROWSER_H__7157C233_E649_11D3_9206_00104B98EAD9__INCLUDED_)