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:
@@ -53,6 +53,20 @@ filters. These filters are present by default:
|
|||||||
\item Plain Text filter (this filter is used if no other filter matches)
|
\item Plain Text filter (this filter is used if no other filter matches)
|
||||||
\end{itemize}
|
\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}
|
\membersection{wxHtmlWindow::GetInternalRepresentation}\label{wxhtmlwindowgetinternalrepresentation}
|
||||||
|
|
||||||
\constfunc{wxHtmlContainerCell*}{GetInternalRepresentation}{\void}
|
\constfunc{wxHtmlContainerCell*}{GetInternalRepresentation}{\void}
|
||||||
|
@@ -49,12 +49,12 @@ class WXDLLEXPORT wxHtmlWindow : public wxScrolledWindow
|
|||||||
friend class wxHtmlWinModule;
|
friend class wxHtmlWinModule;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxHtmlWindow() : wxScrolledWindow() {};
|
wxHtmlWindow() : wxScrolledWindow() {}
|
||||||
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
|
wxHtmlWindow(wxWindow *parent, wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = wxHW_SCROLLBAR_AUTO,
|
long style = wxHW_SCROLLBAR_AUTO,
|
||||||
const wxString& name = "htmlWindow");
|
const wxString& name = wxT("htmlWindow"));
|
||||||
~wxHtmlWindow();
|
~wxHtmlWindow();
|
||||||
|
|
||||||
// Set HTML page and display it. !! source is HTML document itself,
|
// Set HTML page and display it. !! source is HTML document itself,
|
||||||
@@ -62,6 +62,9 @@ public:
|
|||||||
// specify document location, use LoadPage() istead
|
// specify document location, use LoadPage() istead
|
||||||
// Return value : FALSE if an error occured, TRUE otherwise
|
// Return value : FALSE if an error occured, TRUE otherwise
|
||||||
bool SetPage(const wxString& source);
|
bool SetPage(const wxString& source);
|
||||||
|
|
||||||
|
// Append to current page
|
||||||
|
bool AppendToPage(const wxString& source);
|
||||||
|
|
||||||
// Load HTML page from given location. Location can be either
|
// Load HTML page from given location. Location can be either
|
||||||
// a) /usr/wxGTK2/docs/html/wx.htm
|
// a) /usr/wxGTK2/docs/html/wx.htm
|
||||||
|
@@ -197,6 +197,10 @@ bool wxHtmlWindow::SetPage(const wxString& source)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxHtmlWindow::AppendToPage(const wxString& source)
|
||||||
|
{
|
||||||
|
return SetPage(*(GetParser()->GetSource()) + source);
|
||||||
|
}
|
||||||
|
|
||||||
bool wxHtmlWindow::LoadPage(const wxString& location)
|
bool wxHtmlWindow::LoadPage(const wxString& location)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user