LibreOffice Module vcl (master)  1
Macros | Functions
map.cxx File Reference
#include <tools/bigint.hxx>
#include <tools/debug.hxx>
#include <vcl/cursor.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/metaact.hxx>
#include <vcl/virdev.hxx>
#include <vcl/wrkwin.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svdata.hxx>
#include <window.h>
#include <outdev.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)
 
#define ENTER4(rMapModeSource, rMapModeDest)
 

Functions

static Fraction ImplMakeFraction (tools::Long nN1, tools::Long nN2, tools::Long nD1, tools::Long nD2)
 
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 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

#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 1310 of file map.cxx.

Referenced by OutputDevice::LogicToLogic().

#define ENTER4 (   rMapModeSource,
  rMapModeDest 
)
Value:
ImplMapRes aMapResSource; \
ImplMapRes aMapResDest; \
ImplCalcMapResolution( rMapModeSource, 72, 72, aMapResSource ); \
ImplCalcMapResolution( rMapModeDest, 72, 72, aMapResDest )
static void ImplCalcMapResolution(const MapMode &rMapMode, tools::Long nDPIX, tools::Long nDPIY, ImplMapRes &rMapRes)
Definition: map.cxx:85

Definition at line 1372 of file map.cxx.

Referenced by OutputDevice::LogicToLogic().

Function Documentation

static tools::Long fn3 ( const tools::Long  n1,
const o3tl::Length  eFrom,
const o3tl::Length  eTo 
)
static
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 1380 of file map.cxx.

References BigInt::IsNeg().

Referenced by OutputDevice::LogicToLogic().

static void ImplCalcMapResolution ( const MapMode rMapMode,
tools::Long  nDPIX,
tools::Long  nDPIY,
ImplMapRes rMapRes 
)
static
static tools::Long ImplLogicToPixel ( tools::Long  n,
tools::Long  nDPI,
tools::Long  nMapNum,
tools::Long  nMapDenom 
)
static
static Fraction ImplMakeFraction ( tools::Long  nN1,
tools::Long  nN2,
tools::Long  nD1,
tools::Long  nD2 
)
static
static tools::Long ImplPixelToLogic ( tools::Long  n,
tools::Long  nDPI,
tools::Long  nMapNum,
tools::Long  nMapDenom 
)
static
static auto setMapRes ( ImplMapRes rMapRes,
const o3tl::Length  eUnit 
)
static
static void verifyUnitSourceDest ( MapUnit  eUnitSource,
MapUnit  eUnitDest 
)
static

Definition at line 1340 of file map.cxx.

References DBG_ASSERT.

Referenced by OutputDevice::LogicToLogic().