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

#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 sal_uInt16 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
 
- 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::Polygon &rPoly, bool bPixel)
 

Private Attributes

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

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

Constructor & Destructor Documentation

IMapPolygonObject::IMapPolygonObject ( )
inline

Definition at line 44 of file imappoly.hxx.

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

References ImpConstruct().

Member Function Documentation

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

Definition at line 60 of file imappoly.hxx.

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

Implements IMapObject.

Definition at line 440 of file imap.cxx.

References IMAP_OBJ_POLYGON.

bool IMapPolygonObject::HasExtraEllipse ( ) const
inline

Definition at line 59 of file imappoly.hxx.

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

Definition at line 392 of file imap.cxx.

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

Referenced by IMapPolygonObject().

bool IMapPolygonObject::IsEqual ( const IMapPolygonObject rEqObj)

Definition at line 509 of file imap.cxx.

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

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

Implements IMapObject.

Definition at line 452 of file imap.cxx.

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

void IMapPolygonObject::ReadIMapObject ( SvStream rIStm)
overrideprotectedvirtual
void IMapPolygonObject::Scale ( const Fraction rFractX,
const Fraction rFracY 
)
void IMapPolygonObject::SetExtraEllipse ( const tools::Rectangle rEllipse)

Definition at line 469 of file imap.cxx.

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

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

Implements IMapObject.

Definition at line 407 of file imap.cxx.

References aEllipse, aPoly, bEllipse, SvStream::WriteBool(), WritePolygon(), and WriteRectangle().

void IMapPolygonObject::WriteNCSA ( SvStream rOStm) const

Member Data Documentation

tools::Rectangle IMapPolygonObject::aEllipse
private

Definition at line 32 of file imappoly.hxx.

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

tools::Polygon IMapPolygonObject::aPoly
private
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: