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

#include <imapcirc.hxx>

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

Public Member Functions

 IMapCircleObject ()
 
 IMapCircleObject (const Point &rCenter, sal_Int32 nRad, 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
 
Point GetCenter (bool bPixelCoords=true) const
 
sal_Int32 GetRadius (bool bPixelCoords=true) const
 
void Scale (const Fraction &rFractX, const Fraction &rFracY)
 
bool IsEqual (const IMapCircleObject &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

void ImpConstruct (const Point &rCenter, sal_Int32 nRad, bool bPixel)
 
virtual void WriteIMapObject (SvStream &rOStm) const override
 
virtual void ReadIMapObject (SvStream &rIStm) override
 

Private Attributes

Point aCenter
 
sal_Int32 nRadius
 

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 imapcirc.hxx.

Constructor & Destructor Documentation

◆ IMapCircleObject() [1/2]

IMapCircleObject::IMapCircleObject ( )
inline

Definition at line 41 of file imapcirc.hxx.

◆ IMapCircleObject() [2/2]

IMapCircleObject::IMapCircleObject ( const Point rCenter,
sal_Int32  nRad,
const OUString &  rURL,
const OUString &  rAltText,
const OUString &  rDesc,
const OUString &  rTarget,
const OUString &  rName,
bool  bActive = true,
bool  bPixelCoords = true 
)

Definition at line 239 of file imap.cxx.

References ImpConstruct(), and rTarget.

Member Function Documentation

◆ GetCenter()

Point IMapCircleObject::GetCenter ( bool  bPixelCoords = true) const

Definition at line 327 of file imap.cxx.

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

◆ GetRadius()

sal_Int32 IMapCircleObject::GetRadius ( bool  bPixelCoords = true) const

Definition at line 339 of file imap.cxx.

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

◆ GetType()

IMapObjectType IMapCircleObject::GetType ( ) const
overridevirtual

Implements IMapObject.

Definition at line 308 of file imap.cxx.

References Circle.

◆ ImpConstruct()

void IMapCircleObject::ImpConstruct ( const Point rCenter,
sal_Int32  nRad,
bool  bPixel 
)
private

Definition at line 252 of file imap.cxx.

References aCenter, Application::GetDefaultDevice(), nRadius, and OutputDevice::PixelToLogic().

Referenced by IMapCircleObject().

◆ IsEqual() [1/2]

bool IMapCircleObject::IsEqual ( const IMapCircleObject rEqObj) const

Definition at line 369 of file imap.cxx.

References aCenter, IMapObject::IsEqual(), and nRadius.

Referenced by ImageMap::operator==().

◆ IsEqual() [2/2]

bool IMapObject::IsEqual ( const IMapObject rEqObj) const

Definition at line 120 of file imap.cxx.

References read_uInt16_lenPrefixed_uInt8s_ToOUString().

◆ IsHit()

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

Implements IMapObject.

Definition at line 320 of file imap.cxx.

References aCenter, nRadius, Point::X(), and Point::Y().

◆ ReadIMapObject()

void IMapCircleObject::ReadIMapObject ( SvStream rIStm)
overrideprivatevirtual

Implements IMapObject.

Definition at line 290 of file imap.cxx.

References aCenter, nRadius, tools::GenericTypeSerializer::readPoint(), and SvStream::ReadUInt32().

◆ Scale()

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

Definition at line 351 of file imap.cxx.

References aCenter, Fraction::GetDenominator(), nRadius, and SCALEPOINT.

◆ WriteCERN()

void IMapCircleObject::WriteCERN ( SvStream rOStm) const

◆ WriteIMapObject()

void IMapCircleObject::WriteIMapObject ( SvStream rOStm) const
overrideprivatevirtual

Implements IMapObject.

Definition at line 275 of file imap.cxx.

References aCenter, nRadius, tools::GenericTypeSerializer::writePoint(), and SvStream::WriteUInt32().

◆ WriteNCSA()

void IMapCircleObject::WriteNCSA ( SvStream rOStm) const

Member Data Documentation

◆ aCenter

Point IMapCircleObject::aCenter
private

◆ nRadius

sal_Int32 IMapCircleObject::nRadius
private

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