LibreOffice Module vcl (master) 1
Macros | Enumerations
emfwr.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <algorithm>
#include "emfwr.hxx"
#include <tools/helpers.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/dibtools.hxx>
#include <vcl/metaact.hxx>
#include <memory>
Include dependency graph for emfwr.cxx:

Go to the source code of this file.

Macros

#define WIN_EMR_POLYGON   3
 
#define WIN_EMR_POLYLINE   4
 
#define WIN_EMR_POLYBEZIERTO   5
 
#define WIN_EMR_POLYLINETO   6
 
#define WIN_EMR_POLYPOLYGON   8
 
#define WIN_EMR_SETWINDOWEXTEX   9
 
#define WIN_EMR_SETWINDOWORGEX   10
 
#define WIN_EMR_SETVIEWPORTEXTEX   11
 
#define WIN_EMR_SETVIEWPORTORGEX   12
 
#define WIN_EMR_EOF   14
 
#define WIN_EMR_SETPIXELV   15
 
#define WIN_EMR_SETMAPMODE   17
 
#define WIN_EMR_SETBKMODE   18
 
#define WIN_EMR_SETROP2   20
 
#define WIN_EMR_SETTEXTALIGN   22
 
#define WIN_EMR_SETTEXTCOLOR   24
 
#define WIN_EMR_MOVETOEX   27
 
#define WIN_EMR_INTERSECTCLIPRECT   30
 
#define WIN_EMR_SAVEDC   33
 
#define WIN_EMR_RESTOREDC   34
 
#define WIN_EMR_SELECTOBJECT   37
 
#define WIN_EMR_CREATEPEN   38
 
#define WIN_EMR_CREATEBRUSHINDIRECT   39
 
#define WIN_EMR_DELETEOBJECT   40
 
#define WIN_EMR_ELLIPSE   42
 
#define WIN_EMR_RECTANGLE   43
 
#define WIN_EMR_ROUNDRECT   44
 
#define WIN_EMR_LINETO   54
 
#define WIN_EMR_BEGINPATH   59
 
#define WIN_EMR_ENDPATH   60
 
#define WIN_EMR_CLOSEFIGURE   61
 
#define WIN_EMR_FILLPATH   62
 
#define WIN_EMR_STROKEPATH   64
 
#define WIN_EMR_GDICOMMENT   70
 
#define WIN_EMR_STRETCHDIBITS   81
 
#define WIN_EMR_EXTCREATEFONTINDIRECTW   82
 
#define WIN_EMR_EXTTEXTOUTW   84
 
#define WIN_SRCCOPY   0x00CC0020L
 
#define WIN_SRCPAINT   0x00EE0086L
 
#define WIN_SRCAND   0x008800C6L
 
#define WIN_SRCINVERT   0x00660046L
 
#define WIN_EMR_COMMENT_EMFPLUS   0x2B464D45L
 
#define HANDLE_INVALID   0xffffffff
 
#define MAXHANDLES   65000
 
#define LINE_SELECT   0x00000001
 
#define FILL_SELECT   0x00000002
 
#define TEXT_SELECT   0x00000004
 
#define TA_RIGHT   2
 
#define TA_TOP   0
 
#define TA_BOTTOM   8
 
#define TA_BASELINE   24
 
#define TA_RTLREADING   256
 
#define MM_ANISOTROPIC   8
 

Enumerations

enum class  EmfPlusRecordType {
  Header = 0x4001 ,
  EndOfFile = 0x4002 ,
  GetDC = 0x4004 ,
  FillPolygon = 0x400C ,
  SetAntiAliasMode = 0x401E ,
  SetInterpolationMode = 0x4021 ,
  SetPixelOffsetMode = 0x4022 ,
  SetCompositingQuality = 0x4024
}
 

Macro Definition Documentation

◆ FILL_SELECT

#define FILL_SELECT   0x00000002

Definition at line 85 of file emfwr.cxx.

◆ HANDLE_INVALID

#define HANDLE_INVALID   0xffffffff

Definition at line 81 of file emfwr.cxx.

◆ LINE_SELECT

#define LINE_SELECT   0x00000001

Definition at line 84 of file emfwr.cxx.

◆ MAXHANDLES

#define MAXHANDLES   65000

Definition at line 82 of file emfwr.cxx.

◆ MM_ANISOTROPIC

#define MM_ANISOTROPIC   8

Definition at line 96 of file emfwr.cxx.

◆ TA_BASELINE

#define TA_BASELINE   24

Definition at line 93 of file emfwr.cxx.

◆ TA_BOTTOM

#define TA_BOTTOM   8

Definition at line 92 of file emfwr.cxx.

◆ TA_RIGHT

#define TA_RIGHT   2

Definition at line 89 of file emfwr.cxx.

◆ TA_RTLREADING

#define TA_RTLREADING   256

Definition at line 94 of file emfwr.cxx.

◆ TA_TOP

#define TA_TOP   0

Definition at line 91 of file emfwr.cxx.

◆ TEXT_SELECT

#define TEXT_SELECT   0x00000004

Definition at line 86 of file emfwr.cxx.

◆ WIN_EMR_BEGINPATH

#define WIN_EMR_BEGINPATH   59

Definition at line 64 of file emfwr.cxx.

◆ WIN_EMR_CLOSEFIGURE

#define WIN_EMR_CLOSEFIGURE   61

Definition at line 66 of file emfwr.cxx.

◆ WIN_EMR_COMMENT_EMFPLUS

#define WIN_EMR_COMMENT_EMFPLUS   0x2B464D45L

Definition at line 79 of file emfwr.cxx.

◆ WIN_EMR_CREATEBRUSHINDIRECT

#define WIN_EMR_CREATEBRUSHINDIRECT   39

Definition at line 58 of file emfwr.cxx.

◆ WIN_EMR_CREATEPEN

#define WIN_EMR_CREATEPEN   38

Definition at line 57 of file emfwr.cxx.

◆ WIN_EMR_DELETEOBJECT

#define WIN_EMR_DELETEOBJECT   40

Definition at line 59 of file emfwr.cxx.

◆ WIN_EMR_ELLIPSE

#define WIN_EMR_ELLIPSE   42

Definition at line 60 of file emfwr.cxx.

◆ WIN_EMR_ENDPATH

#define WIN_EMR_ENDPATH   60

Definition at line 65 of file emfwr.cxx.

◆ WIN_EMR_EOF

#define WIN_EMR_EOF   14

Definition at line 45 of file emfwr.cxx.

◆ WIN_EMR_EXTCREATEFONTINDIRECTW

#define WIN_EMR_EXTCREATEFONTINDIRECTW   82

Definition at line 72 of file emfwr.cxx.

◆ WIN_EMR_EXTTEXTOUTW

#define WIN_EMR_EXTTEXTOUTW   84

Definition at line 73 of file emfwr.cxx.

◆ WIN_EMR_FILLPATH

#define WIN_EMR_FILLPATH   62

Definition at line 67 of file emfwr.cxx.

◆ WIN_EMR_GDICOMMENT

#define WIN_EMR_GDICOMMENT   70

Definition at line 70 of file emfwr.cxx.

◆ WIN_EMR_INTERSECTCLIPRECT

#define WIN_EMR_INTERSECTCLIPRECT   30

Definition at line 53 of file emfwr.cxx.

◆ WIN_EMR_LINETO

#define WIN_EMR_LINETO   54

Definition at line 63 of file emfwr.cxx.

◆ WIN_EMR_MOVETOEX

#define WIN_EMR_MOVETOEX   27

Definition at line 52 of file emfwr.cxx.

◆ WIN_EMR_POLYBEZIERTO

#define WIN_EMR_POLYBEZIERTO   5

Definition at line 38 of file emfwr.cxx.

◆ WIN_EMR_POLYGON

#define WIN_EMR_POLYGON   3

Definition at line 36 of file emfwr.cxx.

◆ WIN_EMR_POLYLINE

#define WIN_EMR_POLYLINE   4

Definition at line 37 of file emfwr.cxx.

◆ WIN_EMR_POLYLINETO

#define WIN_EMR_POLYLINETO   6

Definition at line 39 of file emfwr.cxx.

◆ WIN_EMR_POLYPOLYGON

#define WIN_EMR_POLYPOLYGON   8

Definition at line 40 of file emfwr.cxx.

◆ WIN_EMR_RECTANGLE

#define WIN_EMR_RECTANGLE   43

Definition at line 61 of file emfwr.cxx.

◆ WIN_EMR_RESTOREDC

#define WIN_EMR_RESTOREDC   34

Definition at line 55 of file emfwr.cxx.

◆ WIN_EMR_ROUNDRECT

#define WIN_EMR_ROUNDRECT   44

Definition at line 62 of file emfwr.cxx.

◆ WIN_EMR_SAVEDC

#define WIN_EMR_SAVEDC   33

Definition at line 54 of file emfwr.cxx.

◆ WIN_EMR_SELECTOBJECT

#define WIN_EMR_SELECTOBJECT   37

Definition at line 56 of file emfwr.cxx.

◆ WIN_EMR_SETBKMODE

#define WIN_EMR_SETBKMODE   18

Definition at line 48 of file emfwr.cxx.

◆ WIN_EMR_SETMAPMODE

#define WIN_EMR_SETMAPMODE   17

Definition at line 47 of file emfwr.cxx.

◆ WIN_EMR_SETPIXELV

#define WIN_EMR_SETPIXELV   15

Definition at line 46 of file emfwr.cxx.

◆ WIN_EMR_SETROP2

#define WIN_EMR_SETROP2   20

Definition at line 49 of file emfwr.cxx.

◆ WIN_EMR_SETTEXTALIGN

#define WIN_EMR_SETTEXTALIGN   22

Definition at line 50 of file emfwr.cxx.

◆ WIN_EMR_SETTEXTCOLOR

#define WIN_EMR_SETTEXTCOLOR   24

Definition at line 51 of file emfwr.cxx.

◆ WIN_EMR_SETVIEWPORTEXTEX

#define WIN_EMR_SETVIEWPORTEXTEX   11

Definition at line 43 of file emfwr.cxx.

◆ WIN_EMR_SETVIEWPORTORGEX

#define WIN_EMR_SETVIEWPORTORGEX   12

Definition at line 44 of file emfwr.cxx.

◆ WIN_EMR_SETWINDOWEXTEX

#define WIN_EMR_SETWINDOWEXTEX   9

Definition at line 41 of file emfwr.cxx.

◆ WIN_EMR_SETWINDOWORGEX

#define WIN_EMR_SETWINDOWORGEX   10

Definition at line 42 of file emfwr.cxx.

◆ WIN_EMR_STRETCHDIBITS

#define WIN_EMR_STRETCHDIBITS   81

Definition at line 71 of file emfwr.cxx.

◆ WIN_EMR_STROKEPATH

#define WIN_EMR_STROKEPATH   64

Definition at line 68 of file emfwr.cxx.

◆ WIN_SRCAND

#define WIN_SRCAND   0x008800C6L

Definition at line 77 of file emfwr.cxx.

◆ WIN_SRCCOPY

#define WIN_SRCCOPY   0x00CC0020L

Definition at line 75 of file emfwr.cxx.

◆ WIN_SRCINVERT

#define WIN_SRCINVERT   0x00660046L

Definition at line 78 of file emfwr.cxx.

◆ WIN_SRCPAINT

#define WIN_SRCPAINT   0x00EE0086L

Definition at line 76 of file emfwr.cxx.

Enumeration Type Documentation

◆ EmfPlusRecordType

enum class EmfPlusRecordType
strong
Enumerator
Header 
EndOfFile 
GetDC 
FillPolygon 
SetAntiAliasMode 
SetInterpolationMode 
SetPixelOffsetMode 
SetCompositingQuality 

Definition at line 98 of file emfwr.cxx.