20 #ifndef INCLUDED_VCL_IMAPOBJ_HXX
21 #define INCLUDED_VCL_IMAPOBJ_HXX
24 #include <rtl/strbuf.hxx>
36 #define IMAP_OBJ_VERSION (sal_uInt16(0x0005))
37 #define IMAGE_MAP_VERSION (sal_uInt16(0x0001))
39 #define IMAPMAGIC "SDIMAP"
41 #define IMAP_MIRROR_HORZ 0x00000001L
42 #define IMAP_MIRROR_VERT 0x00000002L
52 #define IMAP_ERR_OK 0x00000000L
53 #define IMAP_ERR_FORMAT 0x00000001L
84 const OUString& rAltText,
85 const OUString& rDesc,
86 const OUString& rTarget,
87 const OUString& rName,
97 virtual bool IsHit(
const Point& rPoint )
const = 0;
103 void SetURL(
const OUString& rURL ) { aURL = rURL; }
106 void SetAltText(
const OUString& rAltText) { aAltText = rAltText; }
109 void SetDesc(
const OUString& rDesc ) { aDesc = rDesc; }
112 void SetTarget(
const OUString& rTarget ) { aTarget = rTarget; }
115 void SetName(
const OUString& rName ) { aName = rName; }
118 void SetActive(
bool bSetActive ) { bActive = bSetActive; }
const OUString & GetTarget() const
virtual bool IsHit(const Point &rPoint) const =0
const OUString & GetName() const
IMapObject & operator=(IMapObject const &)=default
void SetTarget(const OUString &rTarget)
void Write(SvStream &rOStm) const
void AppendNCSAURL(OStringBuffer &rBuf) const
void SetAltText(const OUString &rAltText)
static void AppendNCSACoords(OStringBuffer &rBuf, const Point &rPoint100)
void SetDesc(const OUString &rDesc)
void SetMacroTable(const SvxMacroTableDtor &rTbl)
const OUString & GetAltText() const
static void AppendCERNCoords(OStringBuffer &rBuf, const Point &rPoint100)
void Read(SvStream &rIStm)
const SvxMacroTableDtor & GetMacroTable() const
virtual void ReadIMapObject(SvStream &rIStm)=0
bool IsEqual(const IMapObject &rEqObj)
void SetName(const OUString &rName)
void SetActive(bool bSetActive)
void SetURL(const OUString &rURL)
virtual IMapObjectType GetType() const =0
const OUString & GetDesc() const
void AppendCERNURL(OStringBuffer &rBuf) const
SvxMacroTableDtor aEventList
const OUString & GetURL() const
virtual void WriteIMapObject(SvStream &rOStm) const =0