moved to appropriate 'protected' sections all functions wrongly placed in 'public' sections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -117,18 +117,6 @@ public:
|
||||
*/
|
||||
bool AddBook(const wxString& bookUrl, bool showWaitMsg);
|
||||
|
||||
/**
|
||||
This protected virtual method may be overridden so that when specifying the
|
||||
@c wxHF_DIALOG style, the controller uses a different dialog.
|
||||
*/
|
||||
virtual wxHtmlHelpDialog* CreateHelpDialog(wxHtmlHelpData* data);
|
||||
|
||||
/**
|
||||
This protected virtual method may be overridden so that the controller
|
||||
uses a different frame.
|
||||
*/
|
||||
virtual wxHtmlHelpFrame* CreateHelpFrame(wxHtmlHelpData* data);
|
||||
|
||||
/**
|
||||
Displays page @a x.
|
||||
This is THE important function - it is used to display the help in application.
|
||||
@@ -222,6 +210,20 @@ public:
|
||||
*/
|
||||
virtual void WriteCustomization(wxConfigBase* cfg,
|
||||
const wxString& path = wxEmptyString);
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
This protected virtual method may be overridden so that when specifying the
|
||||
@c wxHF_DIALOG style, the controller uses a different dialog.
|
||||
*/
|
||||
virtual wxHtmlHelpDialog* CreateHelpDialog(wxHtmlHelpData* data);
|
||||
|
||||
/**
|
||||
This protected virtual method may be overridden so that the controller
|
||||
uses a different frame.
|
||||
*/
|
||||
virtual wxHtmlHelpFrame* CreateHelpFrame(wxHtmlHelpData* data);
|
||||
};
|
||||
|
||||
|
||||
|
@@ -51,16 +51,6 @@ public:
|
||||
int helpStyle = wxHF_DEFAULT_STYLE,
|
||||
wxHtmlHelpData* data = NULL);
|
||||
|
||||
/**
|
||||
You may override this virtual method to add more buttons to the help window's
|
||||
toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
|
||||
flag as passed to the Create() method.
|
||||
|
||||
wxToolBar::Realize is called immediately after returning from this function.
|
||||
See @c samples/html/helpview for an example.
|
||||
*/
|
||||
virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
|
||||
|
||||
/**
|
||||
Creates the help window. See @ref wxHtmlHelpWindow() "the constructor"
|
||||
for a description of the parameters.
|
||||
@@ -70,11 +60,6 @@ public:
|
||||
const wxSize& size = wxDefaultSize, int style = wxTAB_TRAVERSAL|wxBORDER_NONE,
|
||||
int helpStyle = wxHF_DEFAULT_STYLE);
|
||||
|
||||
/**
|
||||
Creates search panel.
|
||||
*/
|
||||
void CreateSearch();
|
||||
|
||||
/**
|
||||
Displays page x.
|
||||
If not found it will give the user the choice of searching books.
|
||||
@@ -147,8 +132,28 @@ public:
|
||||
void WriteCustomization(wxConfigBase* cfg,
|
||||
const wxString& path = wxEmptyString);
|
||||
|
||||
/**
|
||||
Refresh all panels. This is necessary if a new book was added.
|
||||
*/
|
||||
void RefreshLists();
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
Creates search panel.
|
||||
*/
|
||||
void CreateSearch();
|
||||
|
||||
/**
|
||||
You may override this virtual method to add more buttons to the help window's
|
||||
toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
|
||||
flag as passed to the Create() method.
|
||||
|
||||
wxToolBar::Realize is called immediately after returning from this function.
|
||||
See @c samples/html/helpview for an example.
|
||||
*/
|
||||
virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
|
||||
|
||||
/**
|
||||
Creates contents panel. (May take some time.)
|
||||
*/
|
||||
@@ -158,10 +163,5 @@ protected:
|
||||
Creates index panel. (May take some time.)
|
||||
*/
|
||||
void CreateIndex();
|
||||
|
||||
/**
|
||||
Refresh all panels. This is necessary if a new book was added.
|
||||
*/
|
||||
void RefreshLists();
|
||||
};
|
||||
|
||||
|
@@ -55,6 +55,14 @@ public:
|
||||
*/
|
||||
virtual bool HandleTag(const wxHtmlTag& tag) = 0;
|
||||
|
||||
/**
|
||||
Assigns @a parser to this handler. Each @b instance of handler
|
||||
is guaranteed to be called only from the parser.
|
||||
*/
|
||||
virtual void SetParser(wxHtmlParser* parser);
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
This method calls parser's wxHtmlParser::DoParsing method
|
||||
for the string between this tag and the paired ending tag:
|
||||
@@ -67,13 +75,6 @@ public:
|
||||
*/
|
||||
void ParseInner(const wxHtmlTag& tag);
|
||||
|
||||
/**
|
||||
Assigns @a parser to this handler. Each @b instance of handler
|
||||
is guaranteed to be called only from the parser.
|
||||
*/
|
||||
virtual void SetParser(wxHtmlParser* parser);
|
||||
|
||||
protected:
|
||||
/**
|
||||
This attribute is used to access parent parser. It is protected so that
|
||||
it can't be accessed by user but can be accessed from derived classes.
|
||||
@@ -113,17 +114,6 @@ public:
|
||||
*/
|
||||
wxHtmlParser();
|
||||
|
||||
/**
|
||||
This may (and may not) be overwritten in derived class.
|
||||
|
||||
This method is called each time new tag is about to be added.
|
||||
@a tag contains information about the tag. (See wxHtmlTag for details.)
|
||||
|
||||
Default (wxHtmlParser) behaviour is this: first it finds a handler capable
|
||||
of handling this tag and then it calls handler's HandleTag() method.
|
||||
*/
|
||||
virtual void AddTag(const wxHtmlTag& tag);
|
||||
|
||||
/**
|
||||
Adds handler to the internal list ( hash table) of handlers.
|
||||
This method should not be called directly by user but rather by derived class'
|
||||
@@ -299,5 +289,18 @@ public:
|
||||
from Parse() or any function called by it (i.e. from tag handlers).
|
||||
*/
|
||||
virtual void StopParsing();
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
This may (and may not) be overwritten in derived class.
|
||||
|
||||
This method is called each time new tag is about to be added.
|
||||
@a tag contains information about the tag. (See wxHtmlTag for details.)
|
||||
|
||||
Default (wxHtmlParser) behaviour is this: first it finds a handler capable
|
||||
of handling this tag and then it calls handler's HandleTag() method.
|
||||
*/
|
||||
virtual void AddTag(const wxHtmlTag& tag);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user