diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-11-09 15:10:58 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-11-10 11:34:26 +0100 |
commit | b287e9bb4bf60fb49c2832eba0afd85102b84823 (patch) | |
tree | 37cd87d65d1bca8ea30f4afff9647ae45114c8a2 | |
parent | 8e65f21b286a7de1c459761243432e4bbbcd4713 (diff) |
Add SAL_INFO of what paper sizes the printer (driver) advertises
Change-Id: I9598a829c22cc4d02244fff6616584aa6dbac68e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124916
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | include/sal/log-areas.dox | 1 | ||||
-rw-r--r-- | vcl/win/gdi/salprn.cxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox index 55f15022f340..8702656bbb18 100644 --- a/include/sal/log-areas.dox +++ b/include/sal/log-areas.dox @@ -491,6 +491,7 @@ certain functionality. @li @c vcl.osx.clipboard @li @c vcl.osx.print @li @c vcl.pdfwriter +@li @c vcl.print @li @c vcl.plugadapt - the Unix/X11 backend plugin mechanism @li @c vcl.qt - Qt @li @c vcl.quartz diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index 332c7a8dfaae..835c571785a6 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -52,6 +52,7 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/windowsdebugoutput.hxx> #include <vcl/threadex.hxx> @@ -1126,6 +1127,9 @@ void WinSalInfoPrinter::InitPaperFormats( const ImplJobSetup* pSetupData ) sal_Unicode* pNamesBuffer = static_cast<sal_Unicode*>(std::malloc(nCount*64*sizeof(sal_Unicode))); ImplDeviceCaps( this, DC_PAPERNAMES, reinterpret_cast<BYTE*>(pNamesBuffer), pSetupData ); + + SAL_INFO("vcl.print", "DC_PAPERSIZE sizes (mm) from printer: " << DC_PAPERSIZE_array_to_string(pPaperSizes, nCount)); + for( DWORD i = 0; i < nCount; ++i ) { PaperInfo aInfo(pPaperSizes[i].x * 10, pPaperSizes[i].y * 10); |