we need our own doc-manager derivative to handle functional enhancements which are not present or differ from that in wxDocManager TBD:: ideas...
Derived from
wxDocManager
Data structures
Members
wxPMDocManager::wxPMDocManager
wxPMDocManager::~wxPMDocManager
wxPMDocManager::ActivateDocument
wxPMDocManager::ActivatePMView
wxPMDocManager::AddListener
wxPMDocManager::CloseDocument
wxPMDocManager::CloseWorkplace
wxPMDocManager::CreateDocument
wxPMDocManager::CreatePMDocument
wxPMDocManager::CreateProjectByClass
wxPMDocManager::DoCloseDocument
wxPMDocManager::DoCreateWorkplace
wxPMDocManager::DoSaveDocumentRecursively
wxPMDocManager::FindProjectForOtherFiles
wxPMDocManager::FindTemplateForDocClass
wxPMDocManager::FindTemplateForDocType
wxPMDocManager::FindTemplateForDocument
wxPMDocManager::FindTemplateForPath
wxPMDocManager::GetDocClass
wxPMDocManager::GetMergableMenuChain
wxPMDocManager::NewProject
wxPMDocManager::NewWorkplace
wxPMDocManager::OnCloseAll
wxPMDocManager::OnCloseFile
wxPMDocManager::OnCloseWorkplace
wxPMDocManager::OnDocumentsSwitched
wxPMDocManager::OnNew
wxPMDocManager::OnOpenFile
wxPMDocManager::OnOpenProject
wxPMDocManager::OnOpenURL
wxPMDocManager::OnOpenWorkplace
wxPMDocManager::OnSave
wxPMDocManager::OnSaveAll
wxPMDocManager::OnSaveAs
wxPMDocManager::OnSaveAsURL
wxPMDocManager::OnSaveWorkplace
wxPMDocManager::OpenDocument
wxPMDocManager::OpenProject
wxPMDocManager::OpenWorkplace
wxPMDocManager::RemoveListener
wxPMDocManager::SaveDocument
wxPMDocManager::StartAssociatedServices
wxPMDocManager::StopAssociatedServices
wxPMDocManager(long flags = wxDEFAULT_DOCMAN_FLAGS, bool initialize = TRUE)
~wxPMDocManager()
void ActivateDocument(wxPMDocument* pDoc)
void ActivatePMView(wxPMView* pView)
void AddListener(wxPMDocumentListener* listener)
bool CloseDocument(wxPMDocument* pDoc)
-/-
bool CloseWorkplace()
wxDocument* CreateDocument(const wxString& path, long flags = 0)
overriden methods of wxDocManager
wxPMDocument* CreatePMDocument(const wxPMFileInfo& finfo, long flags = 0, wxDocTemplate* pSingleTemplate = NULL, wxPMDocument* pParentDoc = NULL, bool activate = TRUE)
wxPMProject* CreateProjectByClass(wxClassInfo* pPrjClass)
bool DoCloseDocument(wxPMDocument* pDoc, bool wasSaved)
bool DoCreateWorkplace(wxPMProject* pFirstPrj)
bool DoSaveDocumentRecursively(wxPMDocument* pDoc, PMClassInfoListT& docsToSkip, bool closeFlag)
wxPMProject* FindProjectForOtherFiles()
wxDocTemplate* FindTemplateForDocClass(wxClassInfo* pDocClass)
wxDocTemplate* FindTemplateForDocType(const wxString& docTypeName)
some helpers
wxDocTemplate* FindTemplateForDocument(wxPMDocument* pDoc)
wxDocTemplate* FindTemplateForPath(const wxString& path)
wxClassInfo* GetDocClass(wxDocTemplate* pTempl)
wxPMMergableMenuChain* GetMergableMenuChain()
void NewProject(wxPMFileInfo& location, wxDocTemplate& templ)
API-level commands
void NewWorkplace(wxPMFileInfo& location, wxDocTemplate& templ)
void OnCloseAll(wxCommandEvent& event)
void OnCloseFile(wxCommandEvent& event)
void OnCloseWorkplace(wxCommandEvent& event)
void OnDocumentsSwitched(wxPMDocument* fromDoc, wxPMDocument* toDoc)
notificiation received from MDIframe class (then is delegated to listeners)
void OnNew(wxCommandEvent& event)
command-event handlers **
void OnOpenFile(wxCommandEvent& event)
void OnOpenProject(wxCommandEvent& event)
void OnOpenURL(wxCommandEvent& event)
void OnOpenWorkplace(wxCommandEvent& event)
void OnSave(wxCommandEvent& event)
void OnSaveAll(wxCommandEvent& event)
void OnSaveAs(wxCommandEvent& event)
void OnSaveAsURL(wxCommandEvent& event)
void OnSaveWorkplace(wxCommandEvent& event)
wxPMDocument* OpenDocument(const wxPMFileInfo& finfo, wxPMDocument* pParentDoc, bool activate = TRUE)
opens document from file, or activates it if already opened
wxPMProject* OpenProject(const wxPMFileInfo& location)
wxPMWorkplace* OpenWorkplace(const wxPMFileInfo& location)
void RemoveListener(wxPMDocumentListener* listener)
bool SaveDocument(wxPMDocument* pDoc)
pDoc can be workplace or project or any other derivative of wxPMDocument
void StartAssociatedServices(wxPMDocument& doc)
TBD:: comments...
void StopAssociatedServices(wxPMDocument& doc)