LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IMapRectangleObject Class Referencefinal

#include <imaprect.hxx>

Inheritance diagram for IMapRectangleObject:
[legend]
Collaboration diagram for IMapRectangleObject:
[legend]

Public Member Functions

 IMapRectangleObject ()
 
 IMapRectangleObject (const tools::Rectangle &rRect, const OUString &rURL, const OUString &rAltText, const OUString &rDesc, const OUString &rTarget, const OUString &rName, bool bActive=true, bool bPixelCoords=true)
 
virtual IMapObjectType GetType () const override
 
virtual bool IsHit (const Point &rPoint) const override
 
tools::Rectangle GetRectangle (bool bPixelCoords=true) const
 
void Scale (const Fraction &rFractX, const Fraction &rFracY)
 
bool IsEqual (const IMapRectangleObject &rEqObj) const
 
void WriteCERN (SvStream &rOStm) const
 
void WriteNCSA (SvStream &rOStm) const
 
bool IsEqual (const IMapObject &rEqObj) const
 
- Public Member Functions inherited from IMapObject
 IMapObject ()
 
 IMapObject (OUString aURL, OUString aAltText, OUString aDesc, OUString aTarget, OUString aName, bool bActive)
 
virtual ~IMapObject ()
 
 IMapObject (IMapObject const &)=default
 
 IMapObject (IMapObject &&)=default
 
IMapObjectoperator= (IMapObject const &)=default
 
IMapObjectoperator= (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 SvxMacroTableDtorGetMacroTable () const
 
void SetMacroTable (const SvxMacroTableDtor &rTbl)
 

Private Member Functions

VCL_DLLPRIVATE void ImpConstruct (const tools::Rectangle &rRect, bool bPixel)
 
virtual void WriteIMapObject (SvStream &rOStm) const override
 
virtual void ReadIMapObject (SvStream &rIStm) override
 

Private Attributes

tools::Rectangle aRect
 

Additional Inherited Members

- Protected Member Functions inherited from IMapObject
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 inherited from IMapObject
static void AppendCERNCoords (OStringBuffer &rBuf, const Point &rPoint100)
 
static void AppendNCSACoords (OStringBuffer &rBuf, const Point &rPoint100)
 
- Protected Attributes inherited from IMapObject
sal_uInt16 nReadVersion
 

Detailed Description

Definition at line 28 of file imaprect.hxx.

Constructor & Destructor Documentation

◆ IMapRectangleObject() [1/2]

IMapRectangleObject::IMapRectangleObject ( )
inline

Definition at line 40 of file imaprect.hxx.

◆ IMapRectangleObject() [2/2]

IMapRectangleObject::IMapRectangleObject ( const tools::Rectangle rRect,
const OUString &  rURL,
const OUString &  rAltText,
const OUString &  rDesc,
const OUString &  rTarget,
const OUString &  rName,
bool  bActive = true,
bool  bPixelCoords = true 
)

Definition at line 137 of file imap.cxx.

References ImpConstruct(), and rTarget.

Member Function Documentation

◆ GetRectangle()

tools::Rectangle IMapRectangleObject::GetRectangle ( bool  bPixelCoords = true) const

Definition at line 208 of file imap.cxx.

References aRect, Application::GetDefaultDevice(), and OutputDevice::LogicToPixel().

◆ GetType()

IMapObjectType IMapRectangleObject::GetType ( ) const
overridevirtual

Implements IMapObject.

Definition at line 191 of file imap.cxx.

References Rectangle.

◆ ImpConstruct()

void IMapRectangleObject::ImpConstruct ( const tools::Rectangle rRect,
bool  bPixel 
)
private

Definition at line 150 of file imap.cxx.

References aRect, Application::GetDefaultDevice(), and OutputDevice::PixelToLogic().

Referenced by IMapRectangleObject().

◆ IsEqual() [1/2]

bool IMapObject::IsEqual ( const IMapObject rEqObj) const

Definition at line 120 of file imap.cxx.

◆ IsEqual() [2/2]

bool IMapRectangleObject::IsEqual ( const IMapRectangleObject rEqObj) const

Definition at line 234 of file imap.cxx.

References aRect, and IMapObject::IsEqual().

Referenced by ImageMap::operator==().

◆ IsHit()

bool IMapRectangleObject::IsHit ( const Point rPoint) const
overridevirtual

Implements IMapObject.

Definition at line 203 of file imap.cxx.

References aRect, and tools::Rectangle::Contains().

◆ ReadIMapObject()

void IMapRectangleObject::ReadIMapObject ( SvStream rIStm)
overrideprivatevirtual

Implements IMapObject.

Definition at line 178 of file imap.cxx.

References aRect, and tools::GenericTypeSerializer::readRectangle().

◆ Scale()

void IMapRectangleObject::Scale ( const Fraction rFractX,
const Fraction rFracY 
)

◆ WriteCERN()

void IMapRectangleObject::WriteCERN ( SvStream rOStm) const

◆ WriteIMapObject()

void IMapRectangleObject::WriteIMapObject ( SvStream rOStm) const
overrideprivatevirtual

Implements IMapObject.

Definition at line 165 of file imap.cxx.

References aRect, and tools::GenericTypeSerializer::writeRectangle().

◆ WriteNCSA()

void IMapRectangleObject::WriteNCSA ( SvStream rOStm) const

Member Data Documentation

◆ aRect

tools::Rectangle IMapRectangleObject::aRect
private

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