]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/htmllbox.h
automated ifacecheck fixes
[wxWidgets.git] / interface / wx / htmllbox.h
index 7096573fc0f5edc6d6677999eb98fb319e74bd9a..190d8d63728ae8c159742be55624fda675e1e76a 100644 (file)
@@ -79,7 +79,7 @@ public:
 
         @see GetSelectedTextColour()
     */
-    wxColour GetSelectedTextBgColour(const wxColour& colBg) const;
+    virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const;
 
     /**
         This virtual function may be overridden to customize the appearance of the
@@ -91,27 +91,13 @@ public:
         @see GetSelectedTextBgColour(),
              wxVListBox::SetSelectionBackground, wxSystemSettings::GetColour
     */
-    wxColour GetSelectedTextColour(const wxColour& colFg) const;
-
-    /**
-        This method must be implemented in the derived class and should return
-        the body (i.e. without @c html nor @c body tags) of the HTML fragment
-        for the given item.
-        Note that this function should always return a text fragment for the @a n item
-        which renders with the same height both when it is selected and when it's not:
-        i.e. if you call, inside your OnGetItem() implementation, @c IsSelected(n) to
-        make the items appear differently when they are selected, then you should make
-        sure
-        that the returned HTML fragment will render with the same height or else you'll
-        see some artifacts when the user selects an item.
-    */
-    wxString OnGetItem(size_t n) const;
+    virtual wxColour GetSelectedTextColour(const wxColour& colFg) const;
 
     /**
         This function may be overridden to decorate HTML returned by
         OnGetItem().
     */
-    wxString OnGetItemMarkup(size_t n) const;
+    virtual wxString OnGetItemMarkup(size_t n) const;
 
     /**
         Called when the user clicks on hypertext link. Does nothing by default.
@@ -125,6 +111,21 @@ public:
         @see See also wxHtmlLinkInfo.
     */
     virtual void OnLinkClicked(size_t n, const wxHtmlLinkInfo& link);
+
+protected:
+    /**
+        This method must be implemented in the derived class and should return
+        the body (i.e. without @c html nor @c body tags) of the HTML fragment
+        for the given item.
+        Note that this function should always return a text fragment for the @a n item
+        which renders with the same height both when it is selected and when it's not:
+        i.e. if you call, inside your OnGetItem() implementation, @c IsSelected(n) to
+        make the items appear differently when they are selected, then you should make
+        sure
+        that the returned HTML fragment will render with the same height or else you'll
+        see some artifacts when the user selects an item.
+    */
+    virtual wxString OnGetItem(size_t n) const = 0;
 };