LibreOffice Module sw (master) 1
Functions
virtoutp.cxx File Reference
#include "virtoutp.hxx"
#include <viewopt.hxx>
#include <rootfrm.hxx>
#include <osl/diagnose.h>
Include dependency graph for virtoutp.cxx:

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...
 

Function Documentation

◆ SetMappingForVirtDev()

static void SetMappingForVirtDev ( const Point _rNewOrigin,
const vcl::RenderContext _pOrgOutDev,
vcl::RenderContext _pVirDev 
)
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.

Parameters
_pOrgOutDevinput parameter - constant instance of the original output device, for which the virtual output device is created.
_pVirDevinput/output parameter - instance of the virtual output device.
_rNewOrigininput 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().