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:
@@ -87,10 +87,10 @@ public:
|
||||
MyPrintout(MyFrame* frame, const wxString &title = wxT("My printout"))
|
||||
: wxPrintout(title) { m_frame=frame; }
|
||||
|
||||
bool OnPrintPage(int page);
|
||||
bool HasPage(int page);
|
||||
bool OnBeginDocument(int startPage, int endPage);
|
||||
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
|
||||
virtual bool OnPrintPage(int page);
|
||||
virtual bool HasPage(int page);
|
||||
virtual bool OnBeginDocument(int startPage, int endPage);
|
||||
virtual void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
|
||||
|
||||
void DrawPageOne();
|
||||
void DrawPageTwo();
|
||||
|
Reference in New Issue
Block a user