LibreOffice Module vcl (master) 1
|
#include <imap.hxx>
Public Member Functions | |
ImageMap () | |
ImageMap (OUString aName) | |
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) const |
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 |
ImageMap::ImageMap | ( | const ImageMap & | rImageMap | ) |
Definition at line 559 of file imap.cxx.
References aName, Circle, GetIMapObject(), GetIMapObjectCount(), IMapObject::GetType(), i, maList, nCount, Polygon, and Rectangle.
void ImageMap::ClearImageMap | ( | ) |
Definition at line 608 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 |
||
) | const |
Definition at line 771 of file imap.cxx.
References Size::Height(), i, IMAP_MIRROR_HORZ, IMAP_MIRROR_VERT, IMapObject::IsActive(), maList, Point::setX(), Point::setY(), Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 84 of file imap.hxx.
References nPos.
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 486 of file imap2.cxx.
References aStr, Binary, CERN, IMAPMAGIC, nCount, NCSA, nPos, SvStream::ReadBytes(), SvStream::ReadLine(), SvStream::Seek(), and SvStream::Tell().
Referenced by Read().
|
private |
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.
References NOTEOL, and o3tl::toInt32().
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, and comphelper::string::stripStart().
Referenced by ImpReadCERN().
|
staticprivate |
Definition at line 337 of file imap2.cxx.
References aStr, NOTEOL, and o3tl::toInt32().
Referenced by ImpReadCERNLine().
|
staticprivate |
Definition at line 357 of file imap2.cxx.
References aStr, INetURLObject::GetAbsURL(), comphelper::string::strip(), and u.
Referenced by ImpReadCERNLine().
|
private |
Definition at line 854 of file imap.cxx.
References Circle, i, maList, nCount, nType, Polygon, IMapObject::Read(), SvStream::ReadUInt16(), Rectangle, SvStream::remainingSize(), SAL_WARN, and SvStream::SeekRel().
Referenced by Read().
|
private |
Definition at line 367 of file imap2.cxx.
References aStr, ClearImageMap(), ImpReadNCSALine(), and SvStream::ReadLine().
Referenced by Read().
|
staticprivate |
Definition at line 450 of file imap2.cxx.
References NOTEOL, and o3tl::toInt32().
Referenced by ImpReadNCSALine().
|
private |
Definition at line 377 of file imap2.cxx.
References aBuf, aStr, aURL, comphelper::string::getTokenCount(), i, ImpReadNCSACoords(), ImpReadNCSAURL(), maList, nCount, NOTEOL, comphelper::string::stripStart(), Point::X(), and Point::Y().
Referenced by ImpReadNCSA().
|
staticprivate |
Definition at line 430 of file imap2.cxx.
References aStr, INetURLObject::GetAbsURL(), NOTEOL, and u.
Referenced by ImpReadNCSALine().
|
private |
|
private |
|
private |
void ImageMap::InsertIMapObject | ( | const IMapObject & | rIMapObject | ) |
void ImageMap::InsertIMapObject | ( | std::unique_ptr< IMapObject > | rIMapObject | ) |
Definition at line 622 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 665 of file imap.cxx.
References aName, Circle, GetIMapObject(), GetIMapObjectCount(), IMapObject::GetType(), i, IMapCircleObject::IsEqual(), IMapPolygonObject::IsEqual(), IMapRectangleObject::IsEqual(), maList, nCount, Polygon, and Rectangle.
void ImageMap::Read | ( | SvStream & | rIStm | ) |
Definition at line 949 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().
|
inline |
void ImageMap::Write | ( | SvStream & | rOStm | ) | const |
Definition at line 913 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::WriteOString(), 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().