CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdPdfPublish::OdLink Class Reference

#include <PdfPublishLink.h>

Inheritance diagram for OdPdfPublish::OdLink:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdLink)
 
 ODRX_HEAP_OPERATORS ()
 
 OdLink ()
 
virtual ~OdLink ()
 
void setJavaScript (const OdString &source)
 
void setBorderWidth (const OdUInt16 width)
 
void setHighlighting (const Highlighting::Mode mode)
 
void setBorderColor (const ODCOLORREF color)
 
void getJavaScript (OdString &source) const
 
void getBorderWidth (OdUInt16 &width) const
 
void getHighlighting (Highlighting::Mode &mode) const
 
void getBorderColor (ODCOLORREF &color) const
 
- Public Member Functions inherited from OdPdfPublish::OdObject
 ODRX_DECLARE_MEMBERS (OdObject)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdObject ()
 
virtual bool isEmpty () const
 
virtual bool isValid () const
 
virtual void clear ()
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdPdfPublish::OdObject
 OdObject (OdPublishObjectImpl *pImpl)
 

Detailed Description

This class implements a link control contained in a .pdf document created with Teigha Publish.

Definition at line 44 of file PdfPublishLink.h.

Constructor & Destructor Documentation

◆ OdLink()

OdPdfPublish::OdLink::OdLink ( )

Creates a link control.

◆ ~OdLink()

virtual OdPdfPublish::OdLink::~OdLink ( )
virtual

Destroys the link control.

Member Function Documentation

◆ getBorderColor()

void OdPdfPublish::OdLink::getBorderColor ( ODCOLORREF color) const

Returns the link control border color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.

Parameters
color[out] A placeholder for the border color value.

◆ getBorderWidth()

void OdPdfPublish::OdLink::getBorderWidth ( OdUInt16 width) const

Returns current border width of the link control. The method fills a passed value and returns it to a calling subroutine.

Parameters
width[out] A placeholder for the border width value (in points).
Remarks
Border width is measured in points.

◆ getHighlighting()

void OdPdfPublish::OdLink::getHighlighting ( Highlighting::Mode mode) const

Returns current link highlighting mode. The method fills a passed value with current highlighting mode and returns it to a calling subroutine.

Parameters
mode[out] A placeholder for the highlighting mode value.
See also
<link OdPdfPublish::Highlighting::Mode, Highlighting::Mode enumeration>.

◆ getJavaScript()

void OdPdfPublish::OdLink::getJavaScript ( OdString source) const

Returns current JavaScript scenario for the link control. The method fills a passed string object with JavaScript scenario source code and returns it to a calling subroutine.

Parameters
source[out] A placeholder for the JavaScript scenario source code.

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::OdLink::ODRX_DECLARE_MEMBERS ( OdLink  )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::OdLink::ODRX_HEAP_OPERATORS ( )

◆ setBorderColor()

void OdPdfPublish::OdLink::setBorderColor ( const ODCOLORREF  color)

Sets the link control border color.

Parameters
color[in] A new value of the border color.

◆ setBorderWidth()

void OdPdfPublish::OdLink::setBorderWidth ( const OdUInt16  width)

Sets the border width of the link control. Border width is measured in points.

Parameters
width[in] A border width value (in points).

◆ setHighlighting()

void OdPdfPublish::OdLink::setHighlighting ( const Highlighting::Mode  mode)

Sets the link highlighting mode.

Parameters
mode[in] A new highlighting mode for the link.
See also
<link OdPdfPublish::Highlighting::Mode, Highlighting::Mode enumeration>.

◆ setJavaScript()

void OdPdfPublish::OdLink::setJavaScript ( const OdString source)

Sets a JavaScript scenario for the link control.

Parameters
source[in] A string object that contains JavaScript scenario source code.

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