LibreOffice Module vcl (master) 1
|
#include <imapobj.hxx>
Public Member Functions | |
IMapObject () | |
IMapObject (OUString aURL, OUString aAltText, OUString aDesc, OUString aTarget, OUString aName, bool bActive) | |
virtual | ~IMapObject () |
IMapObject (IMapObject const &)=default | |
IMapObject (IMapObject &&)=default | |
IMapObject & | operator= (IMapObject const &)=default |
IMapObject & | operator= (IMapObject &&)=default |
virtual IMapObjectType | GetType () const =0 |
virtual bool | IsHit (const Point &rPoint) const =0 |
void | Write (SvStream &rOStm) const |
void | Read (SvStream &rIStm) |
const OUString & | GetURL () const |
void | SetURL (const OUString &rURL) |
const OUString & | GetAltText () const |
void | SetAltText (const OUString &rAltText) |
const OUString & | GetDesc () const |
void | SetDesc (const OUString &rDesc) |
const OUString & | GetTarget () const |
void | SetTarget (const OUString &rTarget) |
const OUString & | GetName () const |
void | SetName (const OUString &rName) |
bool | IsActive () const |
void | SetActive (bool bSetActive) |
bool | IsEqual (const IMapObject &rEqObj) const |
const SvxMacroTableDtor & | GetMacroTable () const |
void | SetMacroTable (const SvxMacroTableDtor &rTbl) |
Protected Member Functions | |
virtual void | WriteIMapObject (SvStream &rOStm) const =0 |
virtual void | ReadIMapObject (SvStream &rIStm)=0 |
void | AppendCERNURL (OStringBuffer &rBuf) const |
void | AppendNCSAURL (OStringBuffer &rBuf) const |
Static Protected Member Functions | |
static void | AppendCERNCoords (OStringBuffer &rBuf, const Point &rPoint100) |
static void | AppendNCSACoords (OStringBuffer &rBuf, const Point &rPoint100) |
Protected Attributes | |
sal_uInt16 | nReadVersion |
Private Attributes | |
OUString | aURL |
OUString | aAltText |
OUString | aDesc |
OUString | aTarget |
OUString | aName |
SvxMacroTableDtor | aEventList |
bool | bActive |
Friends | |
class | ImageMap |
Definition at line 55 of file imapobj.hxx.
IMapObject::IMapObject | ( | OUString | aURL, |
OUString | aAltText, | ||
OUString | aDesc, | ||
OUString | aTarget, | ||
OUString | aName, | ||
bool | bActive | ||
) |
|
inlinevirtual |
Definition at line 89 of file imapobj.hxx.
|
default |
|
default |
|
staticprotected |
Definition at line 40 of file imap2.cxx.
References Application::GetDefaultDevice(), Point::X(), and Point::Y().
Referenced by IMapCircleObject::WriteCERN(), IMapPolygonObject::WriteCERN(), and IMapRectangleObject::WriteCERN().
|
protected |
Definition at line 61 of file imap2.cxx.
References aURL, OUStringToOString(), and URIHelper::simpleNormalizedMakeRelative().
Referenced by IMapCircleObject::WriteCERN(), IMapPolygonObject::WriteCERN(), and IMapRectangleObject::WriteCERN().
|
staticprotected |
Definition at line 51 of file imap2.cxx.
References Application::GetDefaultDevice(), Point::X(), and Point::Y().
Referenced by IMapCircleObject::WriteNCSA(), IMapPolygonObject::WriteNCSA(), and IMapRectangleObject::WriteNCSA().
|
protected |
Definition at line 66 of file imap2.cxx.
References aURL, OUStringToOString(), and URIHelper::simpleNormalizedMakeRelative().
Referenced by IMapCircleObject::WriteNCSA(), IMapPolygonObject::WriteNCSA(), and IMapRectangleObject::WriteNCSA().
|
inline |
Definition at line 105 of file imapobj.hxx.
References aAltText.
|
inline |
Definition at line 108 of file imapobj.hxx.
References aDesc.
|
inline |
Definition at line 123 of file imapobj.hxx.
References aEventList.
|
inline |
Definition at line 114 of file imapobj.hxx.
References aName.
|
inline |
Definition at line 111 of file imapobj.hxx.
References aTarget.
|
pure virtual |
Implemented in IMapCircleObject, IMapPolygonObject, and IMapRectangleObject.
Referenced by ImageMap::ImageMap(), ImageMap::ImpWriteCERN(), ImageMap::ImpWriteNCSA(), ImageMap::InsertIMapObject(), ImageMap::operator=(), ImageMap::operator==(), ImageMap::Scale(), and Write().
|
inline |
Definition at line 102 of file imapobj.hxx.
References aURL.
|
inline |
Definition at line 117 of file imapobj.hxx.
References bActive.
Referenced by ImageMap::GetHitIMapObject().
bool IMapObject::IsEqual | ( | const IMapObject & | rEqObj | ) | const |
Definition at line 127 of file imap.cxx.
References aAltText, aDesc, aName, aTarget, aURL, and bActive.
Referenced by IMapCircleObject::IsEqual(), IMapPolygonObject::IsEqual(), and IMapRectangleObject::IsEqual().
|
pure virtual |
Implemented in IMapCircleObject, IMapPolygonObject, and IMapRectangleObject.
|
default |
|
default |
void IMapObject::Read | ( | SvStream & | rIStm | ) |
Definition at line 97 of file imap.cxx.
References aAltText, aEventList, aTarget, aURL, bActive, URIHelper::GetMaybeFileHdl(), nReadVersion, SvxMacroTableDtor::Read(), read_uInt16_lenPrefixed_uInt8s_ToOUString(), SvStream::ReadCharAsBool(), ReadIMapObject(), SvStream::ReadUInt16(), SvStream::SeekRel(), URIHelper::SmartRel2Abs(), u, INetURLObject::Unambiguous, and INetURLObject::WasEncoded.
Referenced by ImageMap::ImpReadImageMap().
|
protectedpure virtual |
Implemented in IMapCircleObject, IMapPolygonObject, and IMapRectangleObject.
Referenced by Read().
|
inline |
Definition at line 118 of file imapobj.hxx.
References bActive.
|
inline |
Definition at line 106 of file imapobj.hxx.
References aAltText.
|
inline |
Definition at line 109 of file imapobj.hxx.
References aDesc.
|
inline |
Definition at line 124 of file imapobj.hxx.
References aEventList.
|
inline |
Definition at line 115 of file imapobj.hxx.
References aName.
|
inline |
Definition at line 112 of file imapobj.hxx.
|
inline |
Definition at line 103 of file imapobj.hxx.
References aURL.
void IMapObject::Write | ( | SvStream & | rOStm | ) | const |
Definition at line 68 of file imap.cxx.
References aAltText, aEventList, aName, aTarget, aURL, bActive, GetType(), IMAP_OBJ_VERSION, OUStringToOString(), URIHelper::simpleNormalizedMakeRelative(), SvxMacroTableDtor::Write(), write_uInt16_lenPrefixed_uInt8s_FromOString(), write_uInt16_lenPrefixed_uInt8s_FromOUString(), SvStream::WriteBool(), WriteIMapObject(), and SvStream::WriteUInt16().
|
protectedpure virtual |
Implemented in IMapCircleObject, IMapPolygonObject, and IMapRectangleObject.
Referenced by Write().
|
friend |
Definition at line 57 of file imapobj.hxx.
|
private |
Definition at line 60 of file imapobj.hxx.
Referenced by GetAltText(), IsEqual(), Read(), SetAltText(), and Write().
|
private |
Definition at line 61 of file imapobj.hxx.
|
private |
Definition at line 64 of file imapobj.hxx.
Referenced by GetMacroTable(), Read(), SetMacroTable(), and Write().
|
private |
|
private |
Definition at line 62 of file imapobj.hxx.
Referenced by GetTarget(), IsEqual(), Read(), SetTarget(), and Write().
|
private |
Definition at line 59 of file imapobj.hxx.
Referenced by AppendCERNURL(), AppendNCSAURL(), GetURL(), IsEqual(), Read(), SetURL(), and Write().
|
private |
Definition at line 65 of file imapobj.hxx.
Referenced by IsActive(), IsEqual(), Read(), SetActive(), and Write().
|
protected |
Definition at line 68 of file imapobj.hxx.
Referenced by Read(), and IMapPolygonObject::ReadIMapObject().