LibreOffice Module vcl (master) 1
|
#include <mapmod.hxx>
Classes | |
struct | ImplMapMode |
Public Types | |
typedef o3tl::cow_wrapper< ImplMapMode, o3tl::ThreadSafeRefCountingPolicy > | ImplType |
Public Member Functions | |
MapMode () | |
MapMode (const MapMode &rMapMode) | |
MapMode (MapUnit eUnit) | |
MapMode (MapUnit eUnit, const Point &rLogicOrg, const Fraction &rScaleX, const Fraction &rScaleY) | |
~MapMode () | |
void | SetMapUnit (MapUnit eUnit) |
MapUnit | GetMapUnit () const |
void | SetOrigin (const Point &rOrigin) |
const Point & | GetOrigin () const |
void | SetScaleX (const Fraction &rScaleX) |
const Fraction & | GetScaleX () const |
void | SetScaleY (const Fraction &rScaleY) |
const Fraction & | GetScaleY () const |
MapMode & | operator= (const MapMode &rMapMode) |
MapMode & | operator= (MapMode &&rMapMode) |
bool | operator== (const MapMode &rMapMode) const |
bool | operator!= (const MapMode &rMapMode) const |
bool | IsDefault () const |
size_t | GetHashValue () const |
bool | IsSimple () const |
Public Attributes | |
struct SAL_DLLPRIVATE | ImplMapMode |
Private Attributes | |
ImplType | mpImplMapMode |
Friends | |
class | OutputDevice |
Definition at line 33 of file mapmod.hxx.
Definition at line 72 of file mapmod.hxx.
MapMode::MapMode | ( | ) |
Definition at line 111 of file mapmod.cxx.
|
default |
|
explicit |
Definition at line 117 of file mapmod.cxx.
MapMode::MapMode | ( | MapUnit | eUnit, |
const Point & | rLogicOrg, | ||
const Fraction & | rScaleX, | ||
const Fraction & | rScaleY | ||
) |
Definition at line 121 of file mapmod.cxx.
References mpImplMapMode.
|
default |
References GetMapUnit().
size_t MapMode::GetHashValue | ( | ) | const |
Definition at line 170 of file mapmod.cxx.
References o3tl::hash_combine(), and mpImplMapMode.
Referenced by SalLayoutGlyphsCache::CachedGlyphsKey::CachedGlyphsKey().
MapUnit MapMode::GetMapUnit | ( | ) | const |
Definition at line 181 of file mapmod.cxx.
References mpImplMapMode.
Referenced by clipMetafileContentAgainstOwnRegions(), SalInstanceWidget::DoRecursivePaint(), vcl::PDFWriterImpl::drawLayout(), Graphic::GetPPI(), GraphicObject::GetTransformedGraphic(), ImpGetScaledGraphic(), ImplCalcMapResolution(), FloatingWindow::ImplCalcPos(), GraphicObject::ImplDrawTiled(), GraphicObject::ImplGetCropParams(), GDIMetaFile::ImplPlayWithRenderer(), OutputDevice::LogicToLogic(), ScrollBar::MouseButtonDown(), vcl::pngWrite(), vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout(), OutputDevice::SetMapMode(), OutputDevice::SetRelativeMapMode(), ScrollBar::Tracking(), TypeSerializer::writeMapMode(), WMFWriter::WriteRecords(), vcl::PDFWriterImpl::writeReferenceXObject(), MetafileXmlDump::writeXml(), and vcl::PaintBufferGuard::~PaintBufferGuard().
const Point & MapMode::GetOrigin | ( | ) | const |
Definition at line 183 of file mapmod.cxx.
References mpImplMapMode.
Referenced by SvxIconChoiceCtrl_Impl::AdjustScrollBars(), SvImpLBox::AdjustScrollBars(), vcl::PDFWriterImpl::beginRedirect(), SvxIconChoiceCtrl_Impl::CheckHorScrollBar(), SvxIconChoiceCtrl_Impl::CheckVerScrollBar(), OutputDevice::DrawTransformedBitmapEx(), SvImpLBox::EntryReallyHit(), SvImpLBox::GetClipRegionRect(), SvTreeListBox::GetFocusRect(), SvTreeListBox::GetItem_Impl(), SvTreeListBox::GetItemPos(), SvxIconChoiceCtrl_Impl::GetOutputRect(), GraphicObject::GetTransformedGraphic(), SvImpLBox::GetVisibleArea(), ImplCalcMapResolution(), EMFWriter::ImplWrite(), SvImpLBox::IsNodeButton(), SvxIconChoiceCtrl_Impl::MakeVisible(), SvTreeListBox::MouseButtonUp(), SvxIconChoiceCtrl_Impl::Paint(), SvTreeListBox::PaintEntry1(), vcl::PDFWriterImpl::playMetafile(), vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout(), SvxIconChoiceCtrl_Impl::RequestHelp(), MetaMapModeAction::Scale(), SvxIconChoiceCtrl_Impl::Scroll(), OutputDevice::SetMapMode(), SvImpLBox::SetMostRight(), SvImpLBox::ShowVerSBar(), SvxIconChoiceCtrl_Impl::ToDocPos(), TypeSerializer::writeMapMode(), WMFWriter::WriteRecords(), and MetafileXmlDump::writeXml().
const Fraction & MapMode::GetScaleX | ( | ) | const |
Definition at line 185 of file mapmod.cxx.
References mpImplMapMode.
Referenced by WMFWriter::CalcSaveTargetMapMode(), SalInstanceWidget::DoRecursivePaint(), vcl::PDFWriterImpl::drawLayout(), Graphic::GetPPI(), ImplCalcMapResolution(), GraphicObject::ImplDrawTiled(), GDIMetaFile::Play(), OutputDevice::SetMapMode(), OutputDevice::SetRelativeMapMode(), TypeSerializer::writeMapMode(), WMFWriter::WriteRecords(), and MetafileXmlDump::writeXml().
const Fraction & MapMode::GetScaleY | ( | ) | const |
Definition at line 187 of file mapmod.cxx.
References mpImplMapMode.
Referenced by WMFWriter::CalcSaveTargetMapMode(), SalInstanceWidget::DoRecursivePaint(), vcl::PDFWriterImpl::drawLayout(), Graphic::GetPPI(), ImplCalcMapResolution(), GraphicObject::ImplDrawTiled(), GDIMetaFile::Play(), OutputDevice::SetMapMode(), OutputDevice::SetRelativeMapMode(), TypeSerializer::writeMapMode(), WMFWriter::WriteRecords(), and MetafileXmlDump::writeXml().
bool MapMode::IsDefault | ( | ) | const |
Definition at line 165 of file mapmod.cxx.
References mpImplMapMode, and o3tl::cow_wrapper< typename T, class MTPolicy >::same_object().
Referenced by OutputDevice::LogicToPixel(), OutputDevice::PixelToLogic(), and OutputDevice::SetMapMode().
bool MapMode::IsSimple | ( | ) | const |
Definition at line 189 of file mapmod.cxx.
References mpImplMapMode.
Referenced by OutputDevice::LogicToLogic(), and TypeSerializer::writeMapMode().
|
inline |
Definition at line 61 of file mapmod.hxx.
References operator==().
bool MapMode::operator== | ( | const MapMode & | rMapMode | ) | const |
void MapMode::SetMapUnit | ( | MapUnit | eUnit | ) |
Definition at line 133 of file mapmod.cxx.
References mpImplMapMode.
Referenced by SalInstanceWidget::DoRecursivePaint(), vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout(), and EMFWriter::WriteEMF().
void MapMode::SetOrigin | ( | const Point & | rOrigin | ) |
Definition at line 138 of file mapmod.cxx.
References mpImplMapMode.
Referenced by vcl::PDFWriterImpl::beginRedirect(), SvImpLBox::Clear(), vcl::bitmap::DrawAndClipBitmap(), vcl::PDFWriterImpl::endPage(), GraphicObject::GetTransformedGraphic(), EMFWriter::ImplWrite(), SvImpLBox::KeyLeftRight(), ScrollBar::MouseButtonDown(), GDIMetaFile::Play(), vcl::PDFWriterImpl::playMetafile(), OutputDevice::RemoveTransparenciesFromMetaFile(), vcl::WindowOutputDevice::SaveBackground(), MetaMapModeAction::Scale(), OutputDevice::SetMapMode(), SvxIconChoiceCtrl_Impl::SetOrigin(), ScrollBar::Tracking(), and WMFWriter::WriteRecords().
void MapMode::SetScaleX | ( | const Fraction & | rScaleX | ) |
Definition at line 144 of file mapmod.cxx.
References mpImplMapMode.
Referenced by WMFWriter::CalcSaveTargetMapMode(), SalInstanceWidget::DoRecursivePaint(), vcl::bitmap::DrawAndClipBitmap(), EMFWriter::ImplWrite(), GDIMetaFile::Play(), vcl::PDFWriterImpl::playMetafile(), vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout(), OutputDevice::SetMapMode(), WMFWriter::WriteRecords(), and WMFWriter::WriteWMF().
void MapMode::SetScaleY | ( | const Fraction & | rScaleY | ) |
Definition at line 150 of file mapmod.cxx.
References mpImplMapMode.
Referenced by WMFWriter::CalcSaveTargetMapMode(), SalInstanceWidget::DoRecursivePaint(), vcl::bitmap::DrawAndClipBitmap(), EMFWriter::ImplWrite(), GDIMetaFile::Play(), vcl::PDFWriterImpl::playMetafile(), vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout(), OutputDevice::SetMapMode(), WMFWriter::WriteRecords(), and WMFWriter::WriteWMF().
|
friend |
Definition at line 35 of file mapmod.hxx.
struct SAL_DLLPRIVATE MapMode::ImplMapMode |
Definition at line 38 of file mapmod.hxx.
|
private |
Definition at line 78 of file mapmod.hxx.
Referenced by GetHashValue(), GetMapUnit(), GetOrigin(), GetScaleX(), GetScaleY(), IsDefault(), IsSimple(), MapMode(), operator==(), SetMapUnit(), SetOrigin(), SetScaleX(), and SetScaleY().