From 060851706f280386e4b968ad6b53c6e1cbc48ab6 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Tue, 20 Feb 2024 13:25:41 +0100 Subject: tdf#159793 Save printer paper tray in RTF and DOCX Saves the paper tray id as w:paperSrc w:first and w:other in docx and \binfsxn and \binsxn in RTF Change-Id: I79004f54aba3b6609d7921afacf815726f7f2678 Change-Id: Ie3c11fffa6a133250b7db69b4e845bccaa8e2280 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163654 Tested-by: Jenkins Reviewed-by: Michael Stahl (cherry picked from commit 8b191a6566065438417665af32fa30f8346ad4df) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163831 --- include/vcl/print.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index e23cf8d0af1b..e7c88f56bdd8 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -228,6 +228,7 @@ public: bool SetPaperBin( sal_uInt16 nPaperBin ); sal_uInt16 GetPaperBin() const; sal_uInt16 GetPaperBinBySourceIndex(sal_uInt16 nPaperSource) const; + sal_uInt16 GetSourceIndexByPaperBin(sal_uInt16 nPaperBin) 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. */ -- cgit