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

#include <imapcirc.hxx>

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

Public Member Functions

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

void ImpConstruct (const Point &rCenter, sal_uLong nRad, bool bPixel)
 

Private Attributes

Point aCenter
 
sal_Int32 nRadius
 

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 29 of file imapcirc.hxx.

Constructor & Destructor Documentation

IMapCircleObject::IMapCircleObject ( )
inline

Definition at line 44 of file imapcirc.hxx.

IMapCircleObject::IMapCircleObject ( const Point rCenter,
sal_uLong  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 235 of file imap.cxx.

References ImpConstruct().

Member Function Documentation

Point IMapCircleObject::GetCenter ( bool  bPixelCoords = true) const
sal_uLong IMapCircleObject::GetRadius ( bool  bPixelCoords = true) const
sal_uInt16 IMapCircleObject::GetType ( ) const
overridevirtual

Implements IMapObject.

Definition at line 303 of file imap.cxx.

References IMAP_OBJ_CIRCLE.

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

Definition at line 248 of file imap.cxx.

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

Referenced by IMapCircleObject().

bool IMapCircleObject::IsEqual ( const IMapCircleObject rEqObj)

Definition at line 371 of file imap.cxx.

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

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

Implements IMapObject.

Definition at line 315 of file imap.cxx.

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

void IMapCircleObject::ReadIMapObject ( SvStream rIStm)
overrideprotectedvirtual

Implements IMapObject.

Definition at line 286 of file imap.cxx.

References aCenter, nRadius, ReadPair(), and SvStream::ReadUInt32().

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

Definition at line 353 of file imap.cxx.

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

void IMapCircleObject::WriteCERN ( SvStream rOStm) const
void IMapCircleObject::WriteIMapObject ( SvStream rOStm) const
overrideprotectedvirtual

Implements IMapObject.

Definition at line 271 of file imap.cxx.

References aCenter, nRadius, WritePair(), and SvStream::WriteUInt32().

void IMapCircleObject::WriteNCSA ( SvStream rOStm) const

Member Data Documentation

Point IMapCircleObject::aCenter
private
sal_Int32 IMapCircleObject::nRadius
private

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