X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bc57fd972ddf7621bc6d4716e6dbda1cf09312e..6968a3b87cee46f5c5af9b46e1ef97f17133cef7:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index 9b8cfa7354..ae45ba71cd 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -21,6 +21,7 @@ #include "wx/string.h" #include "wx/frame.h" #include "wx/filehistory.h" +#include "wx/vector.h" #if wxUSE_PRINTING_ARCHITECTURE #include "wx/print.h" @@ -60,6 +61,10 @@ enum #define wxMAX_FILE_HISTORY 9 +typedef wxVector wxDocVector; +typedef wxVector wxViewVector; +typedef wxVector wxDocTemplateVector; + class WXDLLIMPEXP_CORE wxDocument : public wxEvtHandler { public: @@ -140,8 +145,17 @@ public: virtual bool AddView(wxView *view); virtual bool RemoveView(wxView *view); + +#ifndef __VISUALC6__ + wxViewVector GetViewsVector() const + { + return m_documentViews.AsVector(); + } +#endif // !__VISUALC6__ + wxList& GetViews() { return m_documentViews; } const wxList& GetViews() const { return m_documentViews; } + wxView *GetFirstView() const; virtual void UpdateAllViews(wxView *sender = NULL, wxObject *hint = NULL); @@ -455,6 +469,18 @@ public: virtual void ActivateView(wxView *view, bool activate = true); virtual wxView *GetCurrentView() const { return m_currentView; } +#ifndef __VISUALC6__ + wxDocVector GetDocumentsVector() const + { + return m_docs.AsVector(); + } + + wxDocTemplateVector GetTemplatesVector() const + { + return m_templates.AsVector(); + } +#endif // !__VISUALC6__ + wxList& GetDocuments() { return m_docs; } wxList& GetTemplates() { return m_templates; }