LibreOffice Module vcl (master)
1
|
#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>
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) |
#define ENTER1 | ( | rSource, | |
pMapModeSource, | |||
pMapModeDest | |||
) |
Definition at line 1255 of file map.cxx.
Referenced by OutputDevice::LogicToLogic().
#define ENTER4 | ( | rMapModeSource, | |
rMapModeDest | |||
) |
Definition at line 1317 of file map.cxx.
Referenced by OutputDevice::LogicToLogic().
|
static |
Definition at line 1442 of file map.cxx.
References o3tl::convert(), o3tl::getConversionMulDiv(), o3tl::invalid, BigInt::IsNeg(), and n2.
Referenced by OutputDevice::LogicToLogic().
|
static |
Definition at line 1325 of file map.cxx.
References BigInt::IsNeg().
Referenced by OutputDevice::LogicToLogic().
|
static |
Definition at line 85 of file map.cxx.
References assert(), o3tl::cm, Fraction::GetDenominator(), MapMode::GetMapUnit(), Fraction::GetNumerator(), MapMode::GetOrigin(), MapMode::GetScaleX(), MapMode::GetScaleY(), ImplGetSVData(), vcl::Window::ImplInitAppFontData(), ImplMakeFraction(), o3tl::in, o3tl::in10, o3tl::in100, o3tl::in1000, ImplSVData::maFrameData, ImplSVData::maGDIData, o3tl::mm, o3tl::mm10, o3tl::mm100, ImplSVGDIData::mnAppFontX, ImplSVGDIData::mnAppFontY, ImplMapRes::mnMapOfsX, ImplMapRes::mnMapOfsY, ImplMapRes::mnMapScDenomX, ImplMapRes::mnMapScDenomY, ImplMapRes::mnMapScNumX, ImplMapRes::mnMapScNumY, ImplSVFrameData::mpFirstFrame, Point, o3tl::pt, setMapRes(), and o3tl::twip.
Referenced by OutputDevice::GetViewTransformation(), OutputDevice::LogicToPixel(), OutputDevice::PixelToLogic(), and OutputDevice::SetMapMode().
|
static |
Definition at line 242 of file map.cxx.
References assert().
Referenced by OutputDevice::ImplLogicHeightToDevicePixel(), OutputDevice::ImplLogicToDevicePixel(), OutputDevice::ImplLogicWidthToDevicePixel(), OutputDevice::ImplLogicXToDevicePixel(), OutputDevice::ImplLogicYToDevicePixel(), OutputDevice::LogicToPixel(), and OutputDevice::LogicWidthToDeviceCoordinate().
|
static |
Definition at line 43 of file map.cxx.
References i, Fraction::IsValid(), Fraction::ReduceInaccurate(), and SAL_WARN.
Referenced by ImplCalcMapResolution(), OutputDevice::SetMapMode(), and OutputDevice::SetRelativeMapMode().
|
static |
Definition at line 271 of file map.cxx.
References assert().
Referenced by OutputDevice::ImplDevicePixelToLogic(), OutputDevice::ImplDevicePixelToLogicHeight(), OutputDevice::ImplDevicePixelToLogicWidth(), OutputDevice::PixelToLogic(), OutputDevice::SetMapMode(), OutputDevice::SetPixelOffset(), and OutputDevice::SetRelativeMapMode().
|
static |
Definition at line 78 of file map.cxx.
References o3tl::getConversionMulDiv(), o3tl::in, ImplMapRes::mnMapScDenomX, ImplMapRes::mnMapScDenomY, ImplMapRes::mnMapScNumX, and ImplMapRes::mnMapScNumY.
Referenced by ImplCalcMapResolution().
Definition at line 1285 of file map.cxx.
References DBG_ASSERT.
Referenced by OutputDevice::LogicToLogic().