added wxHtmlWindow::AppendToPage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-10-14 22:20:05 +00:00
parent e3fc616c07
commit 3902989824
3 changed files with 23 additions and 2 deletions

View File

@ -53,6 +53,20 @@ filters. These filters are present by default:
\item Plain Text filter (this filter is used if no other filter matches)
\end{itemize}
\membersection{wxHtmlWindow::AppendToPage}\label{wxhtmlwindowappendtopage}
\func{bool}{AppendToPage}{\param{const wxString\& }{source}}
Appends HTML fragment to currently displayed text and refreshes the window.
\wxheading{Parameters}
\docparam{source}{HTML code fragment}
\wxheading{Return value}
FALSE if an error occurred, TRUE otherwise.
\membersection{wxHtmlWindow::GetInternalRepresentation}\label{wxhtmlwindowgetinternalrepresentation}
\constfunc{wxHtmlContainerCell*}{GetInternalRepresentation}{\void}

View File

@ -49,12 +49,12 @@ class WXDLLEXPORT wxHtmlWindow : public wxScrolledWindow
friend class wxHtmlWinModule;
public:
wxHtmlWindow() : wxScrolledWindow() {};
wxHtmlWindow() : wxScrolledWindow() {}
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxHW_SCROLLBAR_AUTO,
const wxString& name = "htmlWindow");
const wxString& name = wxT("htmlWindow"));
~wxHtmlWindow();
// Set HTML page and display it. !! source is HTML document itself,
@ -62,6 +62,9 @@ public:
// specify document location, use LoadPage() istead
// Return value : FALSE if an error occured, TRUE otherwise
bool SetPage(const wxString& source);
// Append to current page
bool AppendToPage(const wxString& source);
// Load HTML page from given location. Location can be either
// a) /usr/wxGTK2/docs/html/wx.htm

View File

@ -197,6 +197,10 @@ bool wxHtmlWindow::SetPage(const wxString& source)
return TRUE;
}
bool wxHtmlWindow::AppendToPage(const wxString& source)
{
return SetPage(*(GetParser()->GetSource()) + source);
}
bool wxHtmlWindow::LoadPage(const wxString& location)
{