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  EmfPlusRecordType {
  EmfPlusRecordType::Header = 0x4001,
  EmfPlusRecordType::EndOfFile = 0x4002,
  EmfPlusRecordType::GetDC = 0x4004,
  EmfPlusRecordType::FillPolygon = 0x400C,
  EmfPlusRecordType::SetAntiAliasMode = 0x401E,
  EmfPlusRecordType::SetInterpolationMode = 0x4021,
  EmfPlusRecordType::SetPixelOffsetMode = 0x4022,
  EmfPlusRecordType::SetCompositingQuality = 0x4024
}
 

Macro Definition Documentation

#define FILL_SELECT   0x00000002

Definition at line 85 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckFillAttr(), and EMFWriter::ImplPrepareHandleSelect().

#define HANDLE_INVALID   0xffffffff
#define LINE_SELECT   0x00000001

Definition at line 84 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckLineAttr(), and EMFWriter::ImplPrepareHandleSelect().

#define MAXHANDLES   65000

Definition at line 82 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define MM_ANISOTROPIC   8

Definition at line 96 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define TA_BASELINE   24

Definition at line 93 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr().

#define TA_BOTTOM   8

Definition at line 92 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr().

#define TA_RIGHT   2

Definition at line 89 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define TA_RTLREADING   256

Definition at line 94 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define TA_TOP   0

Definition at line 91 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr().

#define TEXT_SELECT   0x00000004

Definition at line 86 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr(), and EMFWriter::ImplPrepareHandleSelect().

#define WIN_EMR_BEGINPATH   59

Definition at line 64 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_EMR_CLOSEFIGURE   61

Definition at line 66 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_EMR_COMMENT_EMFPLUS   0x2B464D45L
#define WIN_EMR_CREATEBRUSHINDIRECT   39

Definition at line 58 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckFillAttr().

#define WIN_EMR_CREATEPEN   38

Definition at line 57 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckLineAttr().

#define WIN_EMR_DELETEOBJECT   40

Definition at line 59 of file emfwr.cxx.

Referenced by EMFWriter::ImplPrepareHandleSelect().

#define WIN_EMR_ELLIPSE   42

Definition at line 60 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_ENDPATH   60

Definition at line 65 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_EMR_EOF   14

Definition at line 45 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_EXTCREATEFONTINDIRECTW   82

Definition at line 72 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr().

#define WIN_EMR_EXTTEXTOUTW   84

Definition at line 73 of file emfwr.cxx.

Referenced by EMFWriter::ImplWriteTextRecord().

#define WIN_EMR_FILLPATH   62

Definition at line 67 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_EMR_GDICOMMENT   70

Definition at line 70 of file emfwr.cxx.

Referenced by EMFWriter::ImplBeginCommentRecord().

#define WIN_EMR_INTERSECTCLIPRECT   30

Definition at line 53 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_LINETO   54

Definition at line 63 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite(), and EMFWriter::ImplWritePath().

#define WIN_EMR_MOVETOEX   27

Definition at line 52 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite(), and EMFWriter::ImplWritePath().

#define WIN_EMR_POLYBEZIERTO   5

Definition at line 38 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_EMR_POLYGON   3

Definition at line 36 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePolygonRecord().

#define WIN_EMR_POLYLINE   4

Definition at line 37 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePolygonRecord().

#define WIN_EMR_POLYLINETO   6

Definition at line 39 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_EMR_POLYPOLYGON   8

Definition at line 40 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePolyPolygonRecord().

#define WIN_EMR_RECTANGLE   43

Definition at line 61 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_RESTOREDC   34

Definition at line 55 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_ROUNDRECT   44

Definition at line 62 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_SAVEDC   33

Definition at line 54 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_SELECTOBJECT   37
#define WIN_EMR_SETBKMODE   18

Definition at line 48 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_SETMAPMODE   17

Definition at line 47 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_SETPIXELV   15

Definition at line 46 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_EMR_SETROP2   20

Definition at line 49 of file emfwr.cxx.

Referenced by EMFWriter::ImplWriteRasterOp().

#define WIN_EMR_SETTEXTALIGN   22

Definition at line 50 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr().

#define WIN_EMR_SETTEXTCOLOR   24

Definition at line 51 of file emfwr.cxx.

Referenced by EMFWriter::ImplCheckTextAttr().

#define WIN_EMR_SETVIEWPORTEXTEX   11

Definition at line 43 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_SETVIEWPORTORGEX   12

Definition at line 44 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_SETWINDOWEXTEX   9

Definition at line 41 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_SETWINDOWORGEX   10

Definition at line 42 of file emfwr.cxx.

Referenced by EMFWriter::WriteEMF().

#define WIN_EMR_STRETCHDIBITS   81

Definition at line 71 of file emfwr.cxx.

Referenced by EMFWriter::ImplWriteBmpRecord().

#define WIN_EMR_STROKEPATH   64

Definition at line 68 of file emfwr.cxx.

Referenced by EMFWriter::ImplWritePath().

#define WIN_SRCAND   0x008800C6L

Definition at line 77 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

#define WIN_SRCCOPY   0x00CC0020L

Definition at line 75 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite(), and EMFWriter::ImplWriteBmpRecord().

#define WIN_SRCINVERT   0x00660046L

Definition at line 78 of file emfwr.cxx.

Referenced by EMFWriter::ImplWriteBmpRecord().

#define WIN_SRCPAINT   0x00EE0086L

Definition at line 76 of file emfwr.cxx.

Referenced by EMFWriter::ImplWrite().

Enumeration Type Documentation

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

Definition at line 98 of file emfwr.cxx.