include/sal/log-areas.dox |    1 +
 vcl/win/gdi/salprn.cxx    |    4 ++++
 2 files changed, 5 insertions(+)

New commits:
commit b287e9bb4bf60fb49c2832eba0afd85102b84823
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Tue Nov 9 15:10:58 2021 +0200
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Wed Nov 10 11:34:26 2021 +0100

    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 <[email protected]>
    Reviewed-by: Tor Lillqvist <[email protected]>

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);

Reply via email to