From: Karsten Ballüder Date: Fri, 14 Aug 1998 11:02:39 +0000 (+0000) Subject: printing works, page number controls are hidden X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/76810b8c97de5bf1086e1dc72efa0d9900ea0a58 printing works, page number controls are hidden portrait/landscape doesn't work, pages are printed wrong git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/user/wxLayout/wxllist.cpp b/user/wxLayout/wxllist.cpp index 81e2d690d4..551321b13c 100644 --- a/user/wxLayout/wxllist.cpp +++ b/user/wxLayout/wxllist.cpp @@ -1033,12 +1033,17 @@ void wxLayoutPrintout::GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, // This code doesn't work, because we don't have a DC yet. // How on earth are we supposed to calculate the number of pages then? + *minPage = 0; // set this to 0 to disable editing of page numbers + *maxPage = 100; - *minPage = 1; - *maxPage = 32000; + *selPageFrom = 0; // set this to 0 to hide page number controls + *selPageTo = 100; - *selPageFrom = 1; - *selPageTo = 1; +// *minPage = 1; +// *maxPage = 32000; + +// *selPageFrom = 1; +// *selPageTo = 1; #if 0 CoordType height; @@ -1064,7 +1069,7 @@ void wxLayoutPrintout::GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, bool wxLayoutPrintout::HasPage(int pageNum) { - return true; + return pageNum <= 5; // for testing // return m_maxPage >= pageNum; }