diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-04-09 22:17:49 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-06-01 08:59:15 +0200 |
commit | d77dc320738894ce22c31e5463325994af77436d (patch) | |
tree | 45e206658cabf0d226c776ebf4ef5ce5bd0ce5fc /svx/source/svdraw/svdpdf.cxx | |
parent | 8a97819f1109e72e55883106464c7f06045b08cf (diff) |
svx: more informative logging
Change-Id: Ia9f2fa1fbb24ad3466bd082b778244f451c90745
Diffstat (limited to 'svx/source/svdraw/svdpdf.cxx')
-rw-r--r-- | svx/source/svdraw/svdpdf.cxx | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx index 07a81cadadb9..60b81b71c999 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -229,29 +229,29 @@ void ImpSdrPdfImport::DoLoopActions(SvdProgressInfo* pProgrInfo, sal_uInt32* pAc if (pPageObject == nullptr) continue; - SAL_WARN("sd.filter", "Got page object number: " << nPageObjectIndex); + SAL_WARN("sd.filter", "Got page object number: "); - // Process everything but text, which is done separately below. const int nPageObjectType = FPDFPageObj_GetType(pPageObject); switch (nPageObjectType) { case FPDF_PAGEOBJ_TEXT: - ImportText(pPageObject); + ImportText(pPageObject, nPageObjectIndex); break; case FPDF_PAGEOBJ_PATH: - SAL_WARN("sd.filter", "Got page object PATH"); + SAL_WARN("sd.filter", "Got page object PATH: " << nPageObjectIndex); break; case FPDF_PAGEOBJ_IMAGE: - ImportImage(pPageObject); + ImportImage(pPageObject, nPageObjectIndex); break; case FPDF_PAGEOBJ_SHADING: - SAL_WARN("sd.filter", "Got page object SHADING"); + SAL_WARN("sd.filter", "Got page object SHADING: " << nPageObjectIndex); break; case FPDF_PAGEOBJ_FORM: - SAL_WARN("sd.filter", "Got page object FORM"); + SAL_WARN("sd.filter", "Got page object FORM: " << nPageObjectIndex); break; default: - SAL_WARN("sd.filter", "Unknown PDF page object type: " << nPageObjectType); + SAL_WARN("sd.filter", "Unknown PDF page object type: " + << nPageObjectType << ": " << nPageObjectIndex); break; } } @@ -1013,10 +1013,9 @@ void ImpSdrPdfImport::checkClip() } bool ImpSdrPdfImport::isClip() const { return !maClip.getB2DRange().isEmpty(); } - -void ImpSdrPdfImport::ImportText(FPDF_PAGEOBJECT pPageObject) +void ImpSdrPdfImport::ImportText(FPDF_PAGEOBJECT pPageObject, int nPageObjectIndex) { - SAL_WARN("sd.filter", "Got page object TEXT"); + SAL_WARN("sd.filter", "Got page object TEXT: " << nPageObjectIndex); float left; float bottom; float right; @@ -1156,9 +1155,9 @@ void ImpSdrPdfImport::MapScaling() mnMapScalingOfs = nCount; } -void ImpSdrPdfImport::ImportImage(FPDF_PAGEOBJECT pPageObject) +void ImpSdrPdfImport::ImportImage(FPDF_PAGEOBJECT pPageObject, int nPageObjectIndex) { - SAL_WARN("sd.filter", "Got page object IMAGE"); + SAL_WARN("sd.filter", "Got page object IMAGE: " << nPageObjectIndex); std::unique_ptr<void, FPDFBitmapDeleter> bitmap(FPDFImageObj_GetBitmapBgra(pPageObject)); if (!bitmap) { |