newntui/discovermdi/src/dockablebrowser.cpp
//-----------------------------------------------------------------------------------------
// Pdf structure changed because of submissin. Need to re-fill.
//-----------------------------------------------------------------------------------------
Pdf structure changed because of submissin. Need to re-fill.
Pdf structure changed because of submissin . Need to re - fill .
void CDockableBrowser::PdfChanged() {
    ClearHistory();
    CDiscoverMDIApp* app = (CDiscoverMDIApp *) AfxGetApp();
	CDataSource* DataSource;
	DataSource = (CDataSource *)GetDlgItem(IDC_DATASOURCE);
	LPDISPATCH lpDispatch;
	DataSource->GetControlUnknown()->QueryInterface(IID_IDispatch,(void **)&lpDispatch);
	CQueryResults* Results  = (CQueryResults *) GetDlgItem(IDC_RESULTS);
	Results->SetFullListName("DiscoverAll");
	Results->SetFilterListName("DiscoverElements");
	Results->SetSelectionName("DiscoverSelection");
	Results->SetDataSource(lpDispatch);
    ExecuteCommand(CString("set DiscoverGroups [nil_set]"));
    ExecuteCommand(CString("set DiscoverElements [nil_set]"));
    ExecuteCommand(CString("set DiscoverAll [nil_set]"));
    ExecuteCommand(CString("set DiscoverScope /"));
	CCategoriesCombo* Category = (CCategoriesCombo *) GetDlgItem(IDC_CATEGORIES);
	Category->SetDataSource(lpDispatch);
	CQueriesCombo*    Query = (CQueriesCombo *) GetDlgItem(IDC_QUERIES);
	Query->SetDataSource(lpDispatch);
	CGroupsCombo*    Group = (CGroupsCombo *) GetDlgItem(IDC_GROUPS);
	Group->SetDataSource(lpDispatch);
	Group->SetSelectionVariable("DiscoverSelection");
	Group->SetOutputVariable("DiscoverAll");
    CMainFrame* main=(CMainFrame*) AfxGetMainWnd();
	main->m_SelectionSize=0;
	CProjectTree* Tree       = (CProjectTree *)    GetDlgItem(IDC_TREE);
	Tree->SetDataSource(lpDispatch);
    DisplayInfoString();
}
void CDockableBrowser :: PdfChanged ( ) { ClearHistory ( ) ; CDiscoverMDIApp * app = ( CDiscoverMDIApp * ) AfxGetApp ( ) ; CDataSource * DataSource ; DataSource = ( CDataSource * ) GetDlgItem ( IDC_DATASOURCE ) ; LPDISPATCH lpDispatch ; DataSource -> GetControlUnknown ( ) -> QueryInterface ( IID_IDispatch , ( void * * ) & lpDispatch ) ; CQueryResults * Results = ( CQueryResults * ) GetDlgItem ( IDC_RESULTS ) ; Results -> SetFullListName ( " " ) ; Results -> SetFilterListName ( " " ) ; Results -> SetSelectionName ( " " ) ; Results -> SetDataSource ( lpDispatch ) ; ExecuteCommand ( CString ( " " ) ) ; ExecuteCommand ( CString ( " " ) ) ; ExecuteCommand ( CString ( " " ) ) ; ExecuteCommand ( CString ( " " ) ) ; CCategoriesCombo * Category = ( CCategoriesCombo * ) GetDlgItem ( IDC_CATEGORIES ) ; Category -> SetDataSource ( lpDispatch ) ; CQueriesCombo * Query = ( CQueriesCombo * ) GetDlgItem ( IDC_QUERIES ) ; Query -> SetDataSource ( lpDispatch ) ; CGroupsCombo * Group = ( CGroupsCombo * ) GetDlgItem ( IDC_GROUPS ) ; Group -> SetDataSource ( lpDispatch ) ; Group -> SetSelectionVariable ( " " ) ; Group -> SetOutputVariable ( " " ) ; CMainFrame * main = ( CMainFrame * ) AfxGetMainWnd ( ) ; main -> m_SelectionSize = 0 ; CProjectTree * Tree = ( CProjectTree * ) GetDlgItem ( IDC_TREE ) ; Tree -> SetDataSource ( lpDispatch ) ; DisplayInfoString ( ) ; }
Pdf structure changed because of submissin.
Pdf structure changed because of submissin .