LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ImageMap Class Referencefinal

#include <imap.hxx>

Public Member Functions

 ImageMap ()
 
 ImageMap (OUString aName)
 
 ImageMap (const ImageMap &rImageMap)
 
 ~ImageMap ()
 
ImageMapoperator= (const ImageMap &rImageMap)
 
bool operator== (const ImageMap &rImageMap)
 
bool operator!= (const ImageMap &rImageMap)
 
void InsertIMapObject (const IMapObject &rIMapObject)
 
void InsertIMapObject (std::unique_ptr< IMapObject > rIMapObject)
 
IMapObjectGetIMapObject (size_t nPos) const
 
IMapObjectGetHitIMapObject (const Size &rOriginalSize, const Size &rDisplaySize, const Point &rRelHitPoint, sal_uLong nFlags=0)
 
size_t GetIMapObjectCount () const
 
void ClearImageMap ()
 
const OUString & GetName () const
 
void SetName (const OUString &rName)
 
void Scale (const Fraction &rFractX, const Fraction &rFracY)
 
void Write (SvStream &rOStm) const
 
void Read (SvStream &rIStm)
 
void Write (SvStream &rOStm, IMapFormat nFormat) const
 
sal_uLong Read (SvStream &rIStm, IMapFormat nFormat)
 

Private Member Functions

void ImpWriteImageMap (SvStream &rOStm) const
 
void ImpReadImageMap (SvStream &rIStm, size_t nCount)
 
void ImpWriteCERN (SvStream &rOStm) const
 
void ImpWriteNCSA (SvStream &rOStm) const
 
void ImpReadCERN (SvStream &rOStm)
 
void ImpReadNCSA (SvStream &rOStm)
 
void ImpReadCERNLine (std::string_view rLine)
 
void ImpReadNCSALine (std::string_view rLine)
 

Static Private Member Functions

static Point ImpReadCERNCoords (const char **ppStr)
 
static tools::Long ImpReadCERNRadius (const char **ppStr)
 
static OUString ImpReadCERNURL (const char **ppStr)
 
static OUString ImpReadNCSAURL (const char **ppStr)
 
static Point ImpReadNCSACoords (const char **ppStr)
 
static IMapFormat ImpDetectFormat (SvStream &rIStm)
 

Private Attributes

std::vector< std::unique_ptr< IMapObject > > maList
 
OUString aName
 

Detailed Description

Definition at line 35 of file imap.hxx.

Constructor & Destructor Documentation

◆ ImageMap() [1/3]

ImageMap::ImageMap ( )
inline

Definition at line 65 of file imap.hxx.

◆ ImageMap() [2/3]

ImageMap::ImageMap ( OUString  aName)

Definition at line 547 of file imap.cxx.

References aName.

◆ ImageMap() [3/3]

ImageMap::ImageMap ( const ImageMap rImageMap)

◆ ~ImageMap()

ImageMap::~ImageMap ( )

Definition at line 597 of file imap.cxx.

Member Function Documentation

◆ ClearImageMap()

void ImageMap::ClearImageMap ( )

Definition at line 608 of file imap.cxx.

References aName, and maList.

Referenced by ImpReadCERN(), ImpReadNCSA(), operator=(), and Read().

◆ GetHitIMapObject()

IMapObject * ImageMap::GetHitIMapObject ( const Size rOriginalSize,
const Size rDisplaySize,
const Point rRelHitPoint,
sal_uLong  nFlags = 0 
)

◆ GetIMapObject()

IMapObject * ImageMap::GetIMapObject ( size_t  nPos) const
inline

Definition at line 84 of file imap.hxx.

References nPos.

Referenced by ImageMap(), operator=(), and operator==().

◆ GetIMapObjectCount()

size_t ImageMap::GetIMapObjectCount ( ) const
inline

Definition at line 101 of file imap.hxx.

Referenced by ImageMap(), operator=(), operator==(), and Write().

◆ GetName()

const OUString & ImageMap::GetName ( ) const
inline

Definition at line 106 of file imap.hxx.

References aName.

Referenced by Write().

◆ ImpDetectFormat()

IMapFormat ImageMap::ImpDetectFormat ( SvStream rIStm)
staticprivate

◆ ImpReadCERN()

void ImageMap::ImpReadCERN ( SvStream rOStm)
private

Definition at line 235 of file imap2.cxx.

References aStr, ClearImageMap(), ImpReadCERNLine(), and SvStream::ReadLine().

Referenced by Read().

◆ ImpReadCERNCoords()

Point ImageMap::ImpReadCERNCoords ( const char **  ppStr)
staticprivate

Definition at line 298 of file imap2.cxx.

References NOTEOL, Point, and o3tl::toInt32().

Referenced by ImpReadCERNLine().

◆ ImpReadCERNLine()

void ImageMap::ImpReadCERNLine ( std::string_view  rLine)
private

◆ ImpReadCERNRadius()

tools::Long ImageMap::ImpReadCERNRadius ( const char **  ppStr)
staticprivate

Definition at line 338 of file imap2.cxx.

References aStr, NOTEOL, and o3tl::toInt32().

Referenced by ImpReadCERNLine().

◆ ImpReadCERNURL()

OUString ImageMap::ImpReadCERNURL ( const char **  ppStr)
staticprivate

Definition at line 358 of file imap2.cxx.

References aStr, INetURLObject::GetAbsURL(), comphelper::string::strip(), and u.

Referenced by ImpReadCERNLine().

◆ ImpReadImageMap()

void ImageMap::ImpReadImageMap ( SvStream rIStm,
size_t  nCount 
)
private

◆ ImpReadNCSA()

void ImageMap::ImpReadNCSA ( SvStream rOStm)
private

Definition at line 368 of file imap2.cxx.

References aStr, ClearImageMap(), ImpReadNCSALine(), and SvStream::ReadLine().

Referenced by Read().

◆ ImpReadNCSACoords()

Point ImageMap::ImpReadNCSACoords ( const char **  ppStr)
staticprivate

Definition at line 451 of file imap2.cxx.

References NOTEOL, Point, and o3tl::toInt32().

Referenced by ImpReadNCSALine().

◆ ImpReadNCSALine()

void ImageMap::ImpReadNCSALine ( std::string_view  rLine)
private

◆ ImpReadNCSAURL()

OUString ImageMap::ImpReadNCSAURL ( const char **  ppStr)
staticprivate

Definition at line 431 of file imap2.cxx.

References aStr, INetURLObject::GetAbsURL(), NOTEOL, and u.

Referenced by ImpReadNCSALine().

◆ ImpWriteCERN()

void ImageMap::ImpWriteCERN ( SvStream rOStm) const
private

Definition at line 156 of file imap2.cxx.

References Circle, IMapObject::GetType(), i, maList, nCount, Polygon, and Rectangle.

Referenced by Write().

◆ ImpWriteImageMap()

void ImageMap::ImpWriteImageMap ( SvStream rOStm) const
private

Definition at line 836 of file imap.cxx.

References i, maList, and nCount.

Referenced by Write().

◆ ImpWriteNCSA()

void ImageMap::ImpWriteNCSA ( SvStream rOStm) const
private

Definition at line 184 of file imap2.cxx.

References Circle, IMapObject::GetType(), i, maList, nCount, Polygon, and Rectangle.

Referenced by Write().

◆ InsertIMapObject() [1/2]

void ImageMap::InsertIMapObject ( const IMapObject rIMapObject)

Definition at line 739 of file imap.cxx.

References Circle, IMapObject::GetType(), maList, Polygon, and Rectangle.

◆ InsertIMapObject() [2/2]

void ImageMap::InsertIMapObject ( std::unique_ptr< IMapObject rIMapObject)

Definition at line 760 of file imap.cxx.

References maList.

◆ operator!=()

bool ImageMap::operator!= ( const ImageMap rImageMap)

Definition at line 727 of file imap.cxx.

◆ operator=()

ImageMap & ImageMap::operator= ( const ImageMap rImageMap)

◆ operator==()

bool ImageMap::operator== ( const ImageMap rImageMap)

◆ Read() [1/2]

void ImageMap::Read ( SvStream rIStm)

◆ Read() [2/2]

sal_uLong ImageMap::Read ( SvStream rIStm,
IMapFormat  nFormat 
)

◆ Scale()

void ImageMap::Scale ( const Fraction rFractX,
const Fraction rFracY 
)

Definition at line 801 of file imap.cxx.

References Circle, IMapObject::GetType(), i, maList, nCount, Polygon, Rectangle, and Scale().

Referenced by Scale().

◆ SetName()

void ImageMap::SetName ( const OUString &  rName)
inline

Definition at line 107 of file imap.hxx.

References aName.

◆ Write() [1/2]

void ImageMap::Write ( SvStream rOStm) const

◆ Write() [2/2]

void ImageMap::Write ( SvStream rOStm,
IMapFormat  nFormat 
) const

Definition at line 143 of file imap2.cxx.

References Binary, CERN, ImpWriteCERN(), ImpWriteNCSA(), NCSA, and Write().

Member Data Documentation

◆ aName

OUString ImageMap::aName
private

Definition at line 40 of file imap.hxx.

Referenced by ClearImageMap(), ImageMap(), operator=(), operator==(), and Read().

◆ maList

std::vector<std::unique_ptr<IMapObject> > ImageMap::maList
private

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