]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
centralized the handling of border styles; added borders support for wxListBox and...
[wxWidgets.git] / src / html / htmlpars.cpp
index b1da8c92df2ccaf088f9f28d7259cdd891d49981..ea7f38d865fa4f1f76613f21ecb0ed0556f958c1 100644 (file)
@@ -432,12 +432,27 @@ bool wxHtmlParser::RestoreState()
     return true;
 }
 
+wxString wxHtmlParser::GetInnerSource(const wxHtmlTag& tag)
+{
+    return GetSource()->Mid(tag.GetBeginPos(),
+                            tag.GetEndPos1() - tag.GetBeginPos());
+}
+
 //-----------------------------------------------------------------------------
 // wxHtmlTagHandler
 //-----------------------------------------------------------------------------
 
 IMPLEMENT_ABSTRACT_CLASS(wxHtmlTagHandler,wxObject)
 
+void wxHtmlTagHandler::ParseInnerSource(const wxString& source)
+{
+    // It is safe to temporarily change the source being parsed,
+    // provided we restore the state back after parsing
+    m_Parser->SetSourceAndSaveState(source);
+    m_Parser->DoParsing();
+    m_Parser->RestoreState();
+}
+
 
 //-----------------------------------------------------------------------------
 // wxHtmlEntitiesParser