X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93d0805b35757bbfd30ed4ae6756b9764c112c0d..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index f4ecc68950..420355df5f 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,11 +61,9 @@ enum #define wxMAX_FILE_HISTORY 9 -#ifndef __VISUALC6__ typedef wxVector wxDocVector; typedef wxVector wxViewVector; typedef wxVector wxDocTemplateVector; -#endif class WXDLLIMPEXP_CORE wxDocument : public wxEvtHandler { @@ -148,8 +147,9 @@ public: virtual bool RemoveView(wxView *view); #ifndef __VISUALC6__ - wxViewVector GetViewsVector() const { return m_documentViews.AsVector(); } -#endif + wxViewVector GetViewsVector() const; +#endif // !__VISUALC6__ + wxList& GetViews() { return m_documentViews; } const wxList& GetViews() const { return m_documentViews; } @@ -467,9 +467,10 @@ public: virtual wxView *GetCurrentView() const { return m_currentView; } #ifndef __VISUALC6__ - wxDocVector GetDocumentsVector() const { return m_docs.AsVector(); } - wxDocTemplateVector GetTemplatesVector() const { return m_templates.AsVector(); } -#endif + wxDocVector GetDocumentsVector() const; + wxDocTemplateVector GetTemplatesVector() const; +#endif // !__VISUALC6__ + wxList& GetDocuments() { return m_docs; } wxList& GetTemplates() { return m_templates; } @@ -1010,6 +1011,23 @@ enum }; #endif // WXWIN_COMPATIBILITY_2_8 +#ifndef __VISUALC6__ +inline wxViewVector wxDocument::GetViewsVector() const +{ + return m_documentViews.AsVector(); +} + +inline wxDocVector wxDocManager::GetDocumentsVector() const +{ + return m_docs.AsVector(); +} + +inline wxDocTemplateVector wxDocManager::GetTemplatesVector() const +{ + return m_templates.AsVector(); +} +#endif // !__VISUALC6__ + #endif // wxUSE_DOC_VIEW_ARCHITECTURE #endif // _WX_DOCH__