LibreOffice Module sw (master) 1
|
Go to the source code of this file.
Functions | |
static void | SetMappingForVirtDev (const Point &_rNewOrigin, const vcl::RenderContext *_pOrgOutDev, vcl::RenderContext *_pVirDev) |
method to set mapping/pixel offset for virtual output device More... | |
|
static |
method to set mapping/pixel offset for virtual output device
OD 12.11.2002 #96272# - method implements two solutions for the mapping of the virtual output device: The old solution set the origin of the mapping mode, which will be used in the virtual output device. This causes several paint errors, because of the different roundings in the virtual output device and the original output device. The new solution avoids the rounding differences between virtual and original output device by setting a pixel offset at the virtual output device. A define controls, which solution is used, in order to switch in escalation back to old solution.
_pOrgOutDev | input parameter - constant instance of the original output device, for which the virtual output device is created. |
_pVirDev | input/output parameter - instance of the virtual output device. |
_rNewOrigin | input parameter - constant instance of the origin, which will be used in the virtual output device |
Definition at line 72 of file virtoutp.cxx.
References OutputDevice::LogicToPixel(), OutputDevice::SetPixelOffset(), Point::X(), and Point::Y().
Referenced by SwLayVout::Enter().