LibreOffice Module vcl (master)
1
|
#include <imap.hxx>
Public Member Functions | |
ImageMap () | |
ImageMap (const OUString &rName) | |
ImageMap (const ImageMap &rImageMap) | |
~ImageMap () | |
ImageMap & | operator= (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) |
IMapObject * | GetIMapObject (size_t nPos) const |
IMapObject * | GetHitIMapObject (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 (const OString &rLine) |
void | ImpReadNCSALine (const OString &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 |
ImageMap::ImageMap | ( | const OUString & | rName | ) |
ImageMap::ImageMap | ( | const ImageMap & | rImageMap | ) |
Definition at line 565 of file imap.cxx.
References aName, Circle, GetIMapObject(), GetIMapObjectCount(), IMapObject::GetType(), i, maList, nCount, Polygon, and Rectangle.
void ImageMap::ClearImageMap | ( | ) |
Definition at line 614 of file imap.cxx.
Referenced by ImpReadCERN(), ImpReadNCSA(), operator=(), and Read().
IMapObject * ImageMap::GetHitIMapObject | ( | const Size & | rOriginalSize, |
const Size & | rDisplaySize, | ||
const Point & | rRelHitPoint, | ||
sal_uLong | nFlags = 0 |
||
) |
Definition at line 777 of file imap.cxx.
References Size::Height(), i, IMAP_MIRROR_HORZ, IMAP_MIRROR_VERT, IMapObject::IsActive(), maList, Point, and Size::Width().
|
inline |
Definition at line 84 of file imap.hxx.
Referenced by ImageMap(), operator=(), and operator==().
|
inline |
Definition at line 101 of file imap.hxx.
Referenced by ImageMap(), operator=(), operator==(), and Write().
|
inline |
|
staticprivate |
Definition at line 489 of file imap2.cxx.
References aStr, Binary, CERN, IMAPMAGIC, nCount, NCSA, nPos, SvStream::ReadBytes(), SvStream::ReadLine(), SvStream::Seek(), and SvStream::Tell().
Referenced by Read().
Definition at line 234 of file imap2.cxx.
References aStr, ClearImageMap(), ImpReadCERNLine(), and SvStream::ReadLine().
Referenced by Read().
|
staticprivate |
Definition at line 297 of file imap2.cxx.
Referenced by ImpReadCERNLine().
|
private |
Definition at line 244 of file imap2.cxx.
References aBuf, aStr, aURL, comphelper::string::getTokenCount(), i, ImpReadCERNCoords(), ImpReadCERNRadius(), ImpReadCERNURL(), maList, nCount, NOTEOL, Point, and comphelper::string::stripStart().
Referenced by ImpReadCERN().
|
staticprivate |
Definition at line 337 of file imap2.cxx.
Referenced by ImpReadCERNLine().
|
staticprivate |
Definition at line 357 of file imap2.cxx.
References aStr, INetURLObject::GetAbsURL(), comphelper::string::stripEnd(), and comphelper::string::stripStart().
Referenced by ImpReadCERNLine().
Definition at line 860 of file imap.cxx.
References Circle, i, maList, nType, Polygon, IMapObject::Read(), SvStream::ReadUInt16(), Rectangle, SvStream::remainingSize(), SAL_WARN, and SvStream::SeekRel().
Referenced by Read().
Definition at line 369 of file imap2.cxx.
References aStr, ClearImageMap(), ImpReadNCSALine(), and SvStream::ReadLine().
Referenced by Read().
|
staticprivate |
Definition at line 453 of file imap2.cxx.
Referenced by ImpReadNCSALine().
|
private |
Definition at line 379 of file imap2.cxx.
References aBuf, aStr, aURL, comphelper::string::getTokenCount(), i, ImpReadNCSACoords(), ImpReadNCSAURL(), maList, nCount, NOTEOL, Point, and comphelper::string::stripStart().
Referenced by ImpReadNCSA().
|
staticprivate |
Definition at line 433 of file imap2.cxx.
References aStr, INetURLObject::GetAbsURL(), and NOTEOL.
Referenced by ImpReadNCSALine().
void ImageMap::InsertIMapObject | ( | const IMapObject & | rIMapObject | ) |
void ImageMap::InsertIMapObject | ( | std::unique_ptr< IMapObject > | rIMapObject | ) |
Definition at line 628 of file imap.cxx.
References aName, Circle, ClearImageMap(), GetIMapObject(), GetIMapObjectCount(), IMapObject::GetType(), i, maList, nCount, Polygon, and Rectangle.
bool ImageMap::operator== | ( | const ImageMap & | rImageMap | ) |
Definition at line 671 of file imap.cxx.
References aName, Circle, GetIMapObject(), GetIMapObjectCount(), IMapObject::GetType(), i, maList, nCount, Polygon, and Rectangle.
Definition at line 955 of file imap.cxx.
References aName, ClearImageMap(), SvStream::GetEndian(), IMAPMAGIC, ImpReadImageMap(), nCount, read_uInt16_lenPrefixed_uInt8s_ToOString(), read_uInt16_lenPrefixed_uInt8s_ToOUString(), SvStream::ReadBytes(), SvStream::ReadUInt16(), SvStream::SeekRel(), SvStream::SetEndian(), SvStream::SetError(), and SVSTREAM_GENERALERROR.
Referenced by TransferableDataHelper::GetImageMap(), and Read().
sal_uLong ImageMap::Read | ( | SvStream & | rIStm, |
IMapFormat | nFormat | ||
) |
Definition at line 211 of file imap2.cxx.
References Binary, CERN, Detect, SvStream::GetError(), IMAP_ERR_FORMAT, IMAP_ERR_OK, ImpDetectFormat(), ImpReadCERN(), ImpReadNCSA(), NCSA, and Read().
Definition at line 919 of file imap.cxx.
References SvStream::GetEndian(), GetIMapObjectCount(), GetName(), IMAGE_MAP_VERSION, IMAPMAGIC, ImpWriteImageMap(), nCount, SvStream::SetEndian(), write_uInt16_lenPrefixed_uInt8s_FromOString(), write_uInt16_lenPrefixed_uInt8s_FromOUString(), SvStream::WriteCharPtr(), and SvStream::WriteUInt16().
Referenced by TransferableHelper::SetImageMap(), and Write().
void ImageMap::Write | ( | SvStream & | rOStm, |
IMapFormat | nFormat | ||
) | const |
Definition at line 142 of file imap2.cxx.
References Binary, CERN, ImpWriteCERN(), ImpWriteNCSA(), NCSA, and Write().
|
private |
Definition at line 40 of file imap.hxx.
Referenced by ClearImageMap(), ImageMap(), operator=(), operator==(), and Read().
|
private |
Definition at line 39 of file imap.hxx.
Referenced by ClearImageMap(), GetHitIMapObject(), ImageMap(), ImpReadCERNLine(), ImpReadImageMap(), ImpReadNCSALine(), ImpWriteCERN(), ImpWriteImageMap(), ImpWriteNCSA(), InsertIMapObject(), operator=(), operator==(), and Scale().