diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2019-12-04 19:40:30 +1100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2019-12-14 21:11:44 +0100 |
commit | 261b91a043d85f6b902145d208a6f63a10050b67 (patch) | |
tree | 3c45a4388432aeee2cf06997800163e53712d478 /drawinglayer | |
parent | 64e8c521d105c34d41a70e7a9437deb71af6becc (diff) |
drawinglayer: log UnitType enum
Change-Id: I5b13150e60109c0ede11c52940eeb10d2ba8e4e7
Reviewed-on: https://gerrit.libreoffice.org/84454
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/tools/emfphelperdata.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index f0c84dc34ec2..f29f470cec3b 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -51,7 +51,6 @@ namespace emfplushelper { - const char* emfTypeToName(sal_uInt16 type) { switch (type) @@ -161,6 +160,21 @@ namespace emfplushelper return ""; } + static OUString UnitTypeToString(sal_uInt16 nType) + { + switch (nType) + { + case UnitTypeWorld: return "UnitTypeWorld"; + case UnitTypeDisplay: return "UnitTypeDisplay"; + case UnitTypePixel: return "UnitTypePixel"; + case UnitTypePoint: return "UnitTypePoint"; + case UnitTypeInch: return "UnitTypeInch"; + case UnitTypeDocument: return "UnitTypeDocument"; + case UnitTypeMillimeter: return "UnitTypeMillimeter"; + } + return ""; + } + EMFPObject::~EMFPObject() { } @@ -1575,7 +1589,7 @@ namespace emfplushelper case EmfPlusRecordTypeSetPageTransform: { rMS.ReadFloat(mfPageScale); - SAL_INFO("drawinglayer", "EMF+\tscale: " << mfPageScale << " unit: " << flags); + SAL_INFO("drawinglayer", "EMF+\tscale: " << mfPageScale << " unit: " << UnitTypeToString(flags)); if ((flags == UnitTypeDisplay) || (flags == UnitTypeWorld)) { |