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

#include <imappoly.hxx>

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

Public Member Functions

 IMapPolygonObject ()
 
 IMapPolygonObject (const tools::Polygon &rPoly, 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::Polygon GetPolygon (bool bPixelCoords=true) const
 
bool HasExtraEllipse () const
 
const tools::RectangleGetExtraEllipse () const
 
void SetExtraEllipse (const tools::Rectangle &rEllipse)
 
void Scale (const Fraction &rFractX, const Fraction &rFracY)
 
bool IsEqual (const IMapPolygonObject &rEqObj)
 
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::Polygon &rPoly, bool bPixel)
 
virtual void WriteIMapObject (SvStream &rOStm) const override
 
virtual void ReadIMapObject (SvStream &rIStm) override
 

Private Attributes

tools::Polygon aPoly
 
tools::Rectangle aEllipse
 
bool bEllipse
 

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

Constructor & Destructor Documentation

◆ IMapPolygonObject() [1/2]

IMapPolygonObject::IMapPolygonObject ( )
inline

Definition at line 42 of file imappoly.hxx.

◆ IMapPolygonObject() [2/2]

IMapPolygonObject::IMapPolygonObject ( const tools::Polygon rPoly,
const OUString &  rURL,
const OUString &  rAltText,
const OUString &  rDesc,
const OUString &  rTarget,
const OUString &  rName,
bool  bActive = true,
bool  bPixelCoords = true 
)

Definition at line 376 of file imap.cxx.

References ImpConstruct(), and rTarget.

Member Function Documentation

◆ GetExtraEllipse()

const tools::Rectangle & IMapPolygonObject::GetExtraEllipse ( ) const
inline

Definition at line 58 of file imappoly.hxx.

◆ GetPolygon()

tools::Polygon IMapPolygonObject::GetPolygon ( bool  bPixelCoords = true) const

Definition at line 458 of file imap.cxx.

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

◆ GetType()

IMapObjectType IMapPolygonObject::GetType ( ) const
overridevirtual

Implements IMapObject.

Definition at line 441 of file imap.cxx.

References Polygon.

◆ HasExtraEllipse()

bool IMapPolygonObject::HasExtraEllipse ( ) const
inline

Definition at line 57 of file imappoly.hxx.

◆ ImpConstruct()

void IMapPolygonObject::ImpConstruct ( const tools::Polygon rPoly,
bool  bPixel 
)
private

Definition at line 390 of file imap.cxx.

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

Referenced by IMapPolygonObject().

◆ IsEqual() [1/2]

bool IMapObject::IsEqual ( const IMapObject rEqObj) const

Definition at line 120 of file imap.cxx.

◆ IsEqual() [2/2]

bool IMapPolygonObject::IsEqual ( const IMapPolygonObject rEqObj)

Definition at line 510 of file imap.cxx.

References aPoly, tools::Polygon::GetSize(), i, IMapObject::IsEqual(), and nCount.

Referenced by ImageMap::operator==().

◆ IsHit()

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

Implements IMapObject.

Definition at line 453 of file imap.cxx.

References aPoly, and tools::Polygon::Contains().

◆ ReadIMapObject()

void IMapPolygonObject::ReadIMapObject ( SvStream rIStm)
overrideprivatevirtual

◆ Scale()

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

◆ SetExtraEllipse()

void IMapPolygonObject::SetExtraEllipse ( const tools::Rectangle rEllipse)

Definition at line 470 of file imap.cxx.

References aEllipse, aPoly, bEllipse, and tools::Polygon::GetSize().

◆ WriteCERN()

void IMapPolygonObject::WriteCERN ( SvStream rOStm) const

◆ WriteIMapObject()

void IMapPolygonObject::WriteIMapObject ( SvStream rOStm) const
overrideprivatevirtual

◆ WriteNCSA()

void IMapPolygonObject::WriteNCSA ( SvStream rOStm) const

Member Data Documentation

◆ aEllipse

tools::Rectangle IMapPolygonObject::aEllipse
private

Definition at line 32 of file imappoly.hxx.

Referenced by ReadIMapObject(), Scale(), SetExtraEllipse(), and WriteIMapObject().

◆ aPoly

tools::Polygon IMapPolygonObject::aPoly
private

◆ bEllipse

bool IMapPolygonObject::bEllipse
private

Definition at line 33 of file imappoly.hxx.

Referenced by ReadIMapObject(), Scale(), SetExtraEllipse(), and WriteIMapObject().


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