LibreOffice Module vcl (master) 1
Macros | Functions
map.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <tools/bigint.hxx>
#include <tools/debug.hxx>
#include <vcl/cursor.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/metaact.hxx>
#include <vcl/virdev.hxx>
#include <vcl/wrkwin.hxx>
#include <ImplOutDevData.hxx>
#include <svdata.hxx>
#include <window.h>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <tools/UnitConversion.hxx>
Include dependency graph for map.cxx:

Go to the source code of this file.

Macros

#define ENTER1(rSource, pMapModeSource, pMapModeDest)
 

Functions

static auto setMapRes (ImplMapRes &rMapRes, const o3tl::Length eUnit)
 
static void ImplCalcMapResolution (const MapMode &rMapMode, tools::Long nDPIX, tools::Long nDPIY, ImplMapRes &rMapRes)
 
static tools::Long ImplLogicToPixel (tools::Long n, tools::Long nDPI, tools::Long nMapNum, tools::Long nMapDenom)
 
static double ImplLogicToSubPixel (tools::Long n, tools::Long nDPI, tools::Long nMapNum, tools::Long nMapDenom)
 
static tools::Long ImplSubPixelToLogic (double n, tools::Long nDPI, tools::Long nMapNum, tools::Long nMapDenom)
 
static tools::Long ImplPixelToLogic (tools::Long n, tools::Long nDPI, tools::Long nMapNum, tools::Long nMapDenom)
 
static void verifyUnitSourceDest (MapUnit eUnitSource, MapUnit eUnitDest)
 
static tools::Long fn5 (const tools::Long n1, const tools::Long n2, const tools::Long n3, const tools::Long n4, const tools::Long n5)
 
static tools::Long fn3 (const tools::Long n1, const o3tl::Length eFrom, const o3tl::Length eTo)
 

Macro Definition Documentation

◆ ENTER1

#define ENTER1 (   rSource,
  pMapModeSource,
  pMapModeDest 
)
Value:
if ( !pMapModeSource ) \
pMapModeSource = &maMapMode; \
if ( !pMapModeDest ) \
pMapModeDest = &maMapMode; \
if ( *pMapModeSource == *pMapModeDest ) \
return rSource; \
\
ImplMapRes aMapResSource; \
ImplMapRes aMapResDest; \
\
if ( !mbMap || pMapModeSource != &maMapMode ) \
{ \
if ( pMapModeSource->GetMapUnit() == MapUnit::MapRelative ) \
aMapResSource = maMapRes; \
ImplCalcMapResolution( *pMapModeSource, \
mnDPIX, mnDPIY, aMapResSource ); \
} \
else \
aMapResSource = maMapRes; \
if ( !mbMap || pMapModeDest != &maMapMode ) \
{ \
if ( pMapModeDest->GetMapUnit() == MapUnit::MapRelative ) \
aMapResDest = maMapRes; \
ImplCalcMapResolution( *pMapModeDest, \
mnDPIX, mnDPIY, aMapResDest ); \
} \
else \
aMapResDest = maMapRes

Definition at line 1368 of file map.cxx.

Function Documentation

◆ fn3()

static tools::Long fn3 ( const tools::Long  n1,
const o3tl::Length  eFrom,
const o3tl::Length  eTo 
)
static

Definition at line 1556 of file map.cxx.

References o3tl::convert(), o3tl::invalid, BigInt::IsNeg(), n1, n2, and n3.

Referenced by OutputDevice::LogicToLogic().

◆ fn5()

static tools::Long fn5 ( const tools::Long  n1,
const tools::Long  n2,
const tools::Long  n3,
const tools::Long  n4,
const tools::Long  n5 
)
static

Definition at line 1439 of file map.cxx.

References BigInt::IsNeg(), n1, n2, n3, n4, n5, and n6.

Referenced by OutputDevice::LogicToLogic().

◆ ImplCalcMapResolution()

static void ImplCalcMapResolution ( const MapMode rMapMode,
tools::Long  nDPIX,
tools::Long  nDPIY,
ImplMapRes rMapRes 
)
static

◆ ImplLogicToPixel()

static tools::Long ImplLogicToPixel ( tools::Long  n,
tools::Long  nDPI,
tools::Long  nMapNum,
tools::Long  nMapDenom 
)
static

◆ ImplLogicToSubPixel()

static double ImplLogicToSubPixel ( tools::Long  n,
tools::Long  nDPI,
tools::Long  nMapNum,
tools::Long  nMapDenom 
)
static

◆ ImplPixelToLogic()

static tools::Long ImplPixelToLogic ( tools::Long  n,
tools::Long  nDPI,
tools::Long  nMapNum,
tools::Long  nMapDenom 
)
static

◆ ImplSubPixelToLogic()

static tools::Long ImplSubPixelToLogic ( double  n,
tools::Long  nDPI,
tools::Long  nMapNum,
tools::Long  nMapDenom 
)
static

Definition at line 228 of file map.cxx.

References n.

Referenced by OutputDevice::SubPixelToLogic().

◆ setMapRes()

static auto setMapRes ( ImplMapRes rMapRes,
const o3tl::Length  eUnit 
)
static

◆ verifyUnitSourceDest()

static void verifyUnitSourceDest ( MapUnit  eUnitSource,
MapUnit  eUnitDest 
)
static

Definition at line 1398 of file map.cxx.

References DBG_ASSERT.

Referenced by OutputDevice::LogicToLogic().