Add "virtual" keywords to the overridden functions in the printing sample.

There are no real changes, just make it easier to understand that the sample
code overrides the base class virtual methods by reusing the virtual keyword
in the derived class.

See #12819.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-01-03 18:44:16 +00:00
parent dd378f3ecb
commit ca8b470a41

View File

@@ -87,10 +87,10 @@ public:
MyPrintout(MyFrame* frame, const wxString &title = wxT("My printout")) MyPrintout(MyFrame* frame, const wxString &title = wxT("My printout"))
: wxPrintout(title) { m_frame=frame; } : wxPrintout(title) { m_frame=frame; }
bool OnPrintPage(int page); virtual bool OnPrintPage(int page);
bool HasPage(int page); virtual bool HasPage(int page);
bool OnBeginDocument(int startPage, int endPage); virtual bool OnBeginDocument(int startPage, int endPage);
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo); virtual void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
void DrawPageOne(); void DrawPageOne();
void DrawPageTwo(); void DrawPageTwo();