mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-07 22:03:42 -06:00
CtrlLib: Automatic landscape mode for RichText print
git-svn-id: svn://ultimatepp.org/upp/trunk@2886 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1af459d936
commit
4b01db146b
1 changed files with 1 additions and 0 deletions
|
|
@ -465,6 +465,7 @@ bool Print(const RichText& text, const Rect& page, int currentpage, const char *
|
|||
PrinterJob pj(name);
|
||||
pj.CurrentPage(currentpage);
|
||||
pj.PageCount(text.GetHeight(page).page + 1);
|
||||
pj.Landscape(page.GetWidth() > page.GetHeight());
|
||||
if(pj.Execute()) {
|
||||
Print(pj, text, page, pj.GetPages());
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue