]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/docview.h
Fix wxUSE_DC_CACHEING spelling in the documentation.
[wxWidgets.git] / interface / wx / docview.h
index 360c40e25897be14c02e25c910614b44ae83f978..14bf99ba6a9964579f41522e8ca169d344754825 100644 (file)
@@ -363,6 +363,27 @@ public:
     */
     void AssociateTemplate(wxDocTemplate* temp);
 
+    /**
+        Search for a particular document template.
+
+        Example:
+        @code
+           // creating a document instance of the specified document type:
+           m_doc = (MyDoc*)docManager->FindTemplate(CLASSINFO(MyDoc))->
+                        CreateDocument(wxEmptyString, wxDOC_SILENT);
+        @endcode
+
+        @param classinfo
+            Class info of a document class for which a wxDocTemplate had been
+            previously created.
+
+        @return
+            Pointer to a wxDocTemplate, or @NULL if none found.
+
+        @since 2.9.2
+     */
+    wxDocTemplate* FindTemplate(const wxClassInfo* classinfo);
+
     /**
         Closes the specified document.