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

#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 sal_uInt16 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)
 
void WriteCERN (SvStream &rOStm) const
 
void WriteNCSA (SvStream &rOStm) const
 
- Public Member Functions inherited from IMapObject
 IMapObject ()
 
 IMapObject (const OUString &rURL, const OUString &rAltText, const OUString &rDesc, const OUString &rTarget, const OUString &rName, bool bActive)
 
virtual ~IMapObject ()
 
 IMapObject (IMapObject const &)=default
 
 IMapObject (IMapObject &&)=default
 
IMapObjectoperator= (IMapObject const &)=default
 
IMapObjectoperator= (IMapObject &&)=default
 
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 SvxMacroTableDtorGetMacroTable () const
 
void SetMacroTable (const SvxMacroTableDtor &rTbl)
 

Protected Member Functions

virtual void WriteIMapObject (SvStream &rOStm) const override
 
virtual void ReadIMapObject (SvStream &rIStm) override
 
- Protected Member Functions inherited from IMapObject
void AppendCERNURL (OStringBuffer &rBuf) const
 
void AppendNCSAURL (OStringBuffer &rBuf) const
 

Private Member Functions

VCL_DLLPRIVATE void ImpConstruct (const tools::Rectangle &rRect, bool bPixel)
 

Private Attributes

tools::Rectangle aRect
 

Additional Inherited Members

- 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::IMapRectangleObject ( )
inline

Definition at line 42 of file imaprect.hxx.

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 135 of file imap.cxx.

References ImpConstruct().

Member Function Documentation

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

Implements IMapObject.

Definition at line 187 of file imap.cxx.

References IMAP_OBJ_RECTANGLE.

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

Definition at line 148 of file imap.cxx.

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

Referenced by IMapRectangleObject().

bool IMapRectangleObject::IsEqual ( const IMapRectangleObject rEqObj)

Definition at line 230 of file imap.cxx.

References aRect, and IMapObject::IsEqual().

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

Implements IMapObject.

Definition at line 199 of file imap.cxx.

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

void IMapRectangleObject::ReadIMapObject ( SvStream rIStm)
overrideprotectedvirtual

Implements IMapObject.

Definition at line 175 of file imap.cxx.

References aRect, and ReadRectangle().

void IMapRectangleObject::Scale ( const Fraction rFractX,
const Fraction rFracY 
)
void IMapRectangleObject::WriteCERN ( SvStream rOStm) const
void IMapRectangleObject::WriteIMapObject ( SvStream rOStm) const
overrideprotectedvirtual

Implements IMapObject.

Definition at line 163 of file imap.cxx.

References aRect, and WriteRectangle().

void IMapRectangleObject::WriteNCSA ( SvStream rOStm) const

Member Data Documentation

tools::Rectangle IMapRectangleObject::aRect
private

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