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 (const OUString &rName)
 
 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, sal_uLong nFormat) const
 
sal_uLong Read (SvStream &rIStm, sal_uLong 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 (const OString &rLine)
 
void ImpReadNCSALine (const OString &rLine)
 

Static Private Member Functions

static Point ImpReadCERNCoords (const char **ppStr)
 
static long ImpReadCERNRadius (const char **ppStr)
 
static OUString ImpReadCERNURL (const char **ppStr)
 
static OUString ImpReadNCSAURL (const char **ppStr)
 
static Point ImpReadNCSACoords (const char **ppStr)
 
static sal_uLong 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::ImageMap ( )
inline

Definition at line 65 of file imap.hxx.

ImageMap::ImageMap ( const OUString &  rName)

Definition at line 553 of file imap.cxx.

References aName.

ImageMap::ImageMap ( const ImageMap rImageMap)
ImageMap::~ImageMap ( )

Definition at line 603 of file imap.cxx.

Member Function Documentation

void ImageMap::ClearImageMap ( )

Definition at line 614 of file imap.cxx.

References aName, and maList.

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

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

Definition at line 84 of file imap.hxx.

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

size_t ImageMap::GetIMapObjectCount ( ) const
inline

Definition at line 101 of file imap.hxx.

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

const OUString& ImageMap::GetName ( ) const
inline

Definition at line 106 of file imap.hxx.

Referenced by Write().

sal_uLong ImageMap::ImpDetectFormat ( SvStream rIStm)
staticprivate
void ImageMap::ImpReadCERN ( SvStream rOStm)
private

Definition at line 234 of file imap2.cxx.

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

Referenced by Read().

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

Definition at line 297 of file imap2.cxx.

References NOTEOL.

Referenced by ImpReadCERNLine().

void ImageMap::ImpReadCERNLine ( const OString &  rLine)
private
long ImageMap::ImpReadCERNRadius ( const char **  ppStr)
staticprivate

Definition at line 337 of file imap2.cxx.

References aStr, and NOTEOL.

Referenced by ImpReadCERNLine().

OUString ImageMap::ImpReadCERNURL ( const char **  ppStr)
staticprivate
void ImageMap::ImpReadImageMap ( SvStream rIStm,
size_t  nCount 
)
private
void ImageMap::ImpReadNCSA ( SvStream rOStm)
private

Definition at line 369 of file imap2.cxx.

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

Referenced by Read().

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

Definition at line 453 of file imap2.cxx.

References NOTEOL.

Referenced by ImpReadNCSALine().

void ImageMap::ImpReadNCSALine ( const OString &  rLine)
private
OUString ImageMap::ImpReadNCSAURL ( const char **  ppStr)
staticprivate

Definition at line 433 of file imap2.cxx.

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

Referenced by ImpReadNCSALine().

void ImageMap::ImpWriteCERN ( SvStream rOStm) const
private

Definition at line 155 of file imap2.cxx.

References IMapObject::GetType(), i, IMAP_OBJ_CIRCLE, IMAP_OBJ_POLYGON, IMAP_OBJ_RECTANGLE, and maList.

Referenced by Write().

void ImageMap::ImpWriteImageMap ( SvStream rOStm) const
private

Definition at line 842 of file imap.cxx.

References i, and maList.

Referenced by Write().

void ImageMap::ImpWriteNCSA ( SvStream rOStm) const
private

Definition at line 183 of file imap2.cxx.

References IMapObject::GetType(), i, IMAP_OBJ_CIRCLE, IMAP_OBJ_POLYGON, IMAP_OBJ_RECTANGLE, and maList.

Referenced by Write().

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

Definition at line 766 of file imap.cxx.

References maList.

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

Definition at line 733 of file imap.cxx.

ImageMap & ImageMap::operator= ( const ImageMap rImageMap)
bool ImageMap::operator== ( const ImageMap rImageMap)
void ImageMap::Read ( SvStream rIStm)
sal_uLong ImageMap::Read ( SvStream rIStm,
sal_uLong  nFormat 
)
void ImageMap::Scale ( const Fraction rFractX,
const Fraction rFracY 
)
void ImageMap::SetName ( const OUString &  rName)
inline

Definition at line 107 of file imap.hxx.

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

Member Data Documentation

OUString ImageMap::aName
private

Definition at line 40 of file imap.hxx.

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

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

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