summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-19 15:29:30 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-19 15:29:30 +0200
commit21ec259db088e4fc3a57c83fd3e6f04b8c6741ce (patch)
tree61ea12c9199dadb135ca331548e5e2ad3823a405
parentb51ee751c3af1b73e44adb7eb19eeff83af3bcb9 (diff)
dump EmrMovetoex
-rw-r--r--msodumper/emfrecord.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/msodumper/emfrecord.py b/msodumper/emfrecord.py
index d96bedb..3e2573c 100644
--- a/msodumper/emfrecord.py
+++ b/msodumper/emfrecord.py
@@ -354,6 +354,20 @@ class EmrPolypolygon16(EMFRecord):
assert self.pos - posOrig == self.Size
+class EmrMovetoex(EMFRecord):
+ """Specifies the coordinates of a new drawing position, in logical
+ units."""
+ def __init__(self, parent):
+ EMFRecord.__init__(self, parent)
+
+ def dump(self):
+ posOrig = self.pos
+ self.printAndSet("Type", self.readuInt32())
+ self.printAndSet("Size", self.readuInt32(), hexdump=False)
+ wmfrecord.PointL(self, "Offset").dump()
+ assert self.pos - posOrig == self.Size
+
+
class EmrSelectclippath(EMFRecord):
"""Specifies the current path as a clipping region for the playback device
context, combining the new region with any existing clipping region using
@@ -526,7 +540,7 @@ RecordType = {
0x00000018: ['EMR_SETTEXTCOLOR'],
0x00000019: ['EMR_SETBKCOLOR'],
0x0000001A: ['EMR_OFFSETCLIPRGN'],
- 0x0000001B: ['EMR_MOVETOEX'],
+ 0x0000001B: ['EMR_MOVETOEX', EmrMovetoex],
0x0000001C: ['EMR_SETMETARGN'],
0x0000001D: ['EMR_EXCLUDECLIPRECT'],
0x0000001E: ['EMR_INTERSECTCLIPRECT'],