diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-11-09 13:16:29 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-11-09 13:44:24 +0100 |
commit | 1134aad621a96a23af88aaa50e10e328ea58a502 (patch) | |
tree | 0e87ed2099b5f493dfaea82708093ac803b8ade9 /include/vcl | |
parent | 754247fe3fb1c8baa8f37f7ea1eb74aa3f0bcd57 (diff) |
Add Printer::GetSizeOfPaper() with semantics to match GetPaper()
Will be used in follow-up commits.
Change-Id: I18b167a217a4f82d8b6605e2ba14f1ddc6e98324
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124910
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/print.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index f67145335357..83f4170c241c 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -230,7 +230,10 @@ public: sal_uInt16 GetPaperBin() const; void SetPaper( Paper ePaper ); bool SetPaperSizeUser( const Size& rSize ); + /** @return The paper format of the printer's current "jobsetup". Note that if PAPER_USER the actual size can be anything. */ Paper GetPaper() const; + /** @return Size of the paper of the printer's current "jobsetup". */ + Size GetSizeOfPaper() const; static OUString GetPaperName( Paper ePaper ); /** @return Number of available paper formats */ |