LibreOffice Module vcl (master)  1
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
MapMode Class Reference

#include <mapmod.hxx>

Collaboration diagram for MapMode:
[legend]

Classes

struct  ImplMapMode
 

Public Types

typedef o3tl::cow_wrapper< ImplMapMode, o3tl::ThreadSafeRefCountingPolicyImplType
 

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 PointGetOrigin () const
 
void SetScaleX (const Fraction &rScaleX)
 
const FractionGetScaleX () const
 
void SetScaleY (const Fraction &rScaleY)
 
const FractionGetScaleY () const
 
MapModeoperator= (const MapMode &rMapMode)
 
MapModeoperator= (MapMode &&rMapMode)
 
bool operator== (const MapMode &rMapMode) const
 
bool operator!= (const MapMode &rMapMode) const
 
bool IsDefault () const
 

Private Member Functions

SAL_DLLPRIVATE bool IsSimple () const
 

Private Attributes

ImplType mpImplMapMode
 

Friends

class OutputDevice
 
VCL_DLLPUBLIC SvStreamReadMapMode (SvStream &rIStm, MapMode &rMapMode)
 
VCL_DLLPUBLIC SvStreamWriteMapMode (SvStream &rOStm, const MapMode &rMapMode)
 

Detailed Description

Definition at line 34 of file mapmod.hxx.

Member Typedef Documentation

Definition at line 71 of file mapmod.hxx.

Constructor & Destructor Documentation

MapMode::MapMode ( )

Definition at line 71 of file mapmod.cxx.

References get().

MapMode::MapMode ( const MapMode rMapMode)
default
MapMode::MapMode ( MapUnit  eUnit)
explicit

Definition at line 77 of file mapmod.cxx.

References mpImplMapMode.

MapMode::MapMode ( MapUnit  eUnit,
const Point rLogicOrg,
const Fraction rScaleX,
const Fraction rScaleY 
)

Definition at line 82 of file mapmod.cxx.

References mpImplMapMode.

MapMode::~MapMode ( )
default

Member Function Documentation

MapUnit MapMode::GetMapUnit ( ) const
const Point & MapMode::GetOrigin ( ) const
const Fraction & MapMode::GetScaleX ( ) const
const Fraction & MapMode::GetScaleY ( ) const
bool MapMode::IsDefault ( ) const
bool MapMode::IsSimple ( ) const
private

Definition at line 171 of file mapmod.cxx.

References mpImplMapMode.

Referenced by OutputDevice::LogicToLogic().

bool MapMode::operator!= ( const MapMode rMapMode) const
inline

Definition at line 62 of file mapmod.hxx.

References operator==().

MapMode & MapMode::operator= ( const MapMode rMapMode)
default
MapMode & MapMode::operator= ( MapMode &&  rMapMode)
default
bool MapMode::operator== ( const MapMode rMapMode) const

Definition at line 125 of file mapmod.cxx.

References mpImplMapMode.

Referenced by operator!=().

void MapMode::SetMapUnit ( MapUnit  eUnit)

Definition at line 96 of file mapmod.cxx.

References mpImplMapMode.

Referenced by GraphicDescriptor::ImpDetectJPG(), and EMFWriter::WriteEMF().

void MapMode::SetOrigin ( const Point rOrigin)
void MapMode::SetScaleX ( const Fraction rScaleX)
void MapMode::SetScaleY ( const Fraction rScaleY)

Friends And Related Function Documentation

friend class OutputDevice
friend

Definition at line 36 of file mapmod.hxx.

VCL_DLLPUBLIC SvStream& ReadMapMode ( SvStream rIStm,
MapMode rMapMode 
)
friend

Definition at line 135 of file mapmod.cxx.

VCL_DLLPUBLIC SvStream& WriteMapMode ( SvStream rOStm,
const MapMode rMapMode 
)
friend

Definition at line 149 of file mapmod.cxx.

Member Data Documentation

ImplType MapMode::mpImplMapMode
private

The documentation for this class was generated from the following files: