LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SvxHyperlinkItem Class Referencefinal

#include <hlnkitem.hxx>

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

Public Member Functions

 SvxHyperlinkItem (TypedWhichId< SvxHyperlinkItem > _nWhich=SID_HYPERLINK_GETLINK)
 
 SvxHyperlinkItem (const SvxHyperlinkItem &rHyperlinkItem)
 
 SvxHyperlinkItem (TypedWhichId< SvxHyperlinkItem > nWhich, OUString aName, OUString aURL, OUString aTarget, OUString aIntName, SvxLinkInsertMode eTyp, HyperDialogEvent nEvents, SvxMacroTableDtor const *pMacroTbl, OUString aReplacementText=OUString())
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SvxHyperlinkItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
const OUString & GetName () const
 
void SetName (const OUString &rName)
 
const OUString & GetURL () const
 
void SetURL (const OUString &rURL)
 
const OUString & GetIntName () const
 
void SetIntName (const OUString &rIntName)
 
const OUString & GetTargetFrame () const
 
void SetTargetFrame (const OUString &rTarget)
 
SvxLinkInsertMode GetInsertMode () const
 
void SetInsertMode (SvxLinkInsertMode eNew)
 
void SetMacro (HyperDialogEvent nEvent, const SvxMacro &rMacro)
 
void SetMacroTable (const SvxMacroTableDtor &rTbl)
 
const SvxMacroTableDtorGetMacroTable () const
 
void SetMacroEvents (const HyperDialogEvent nEvents)
 
HyperDialogEvent GetMacroEvents () const
 
const OUString & GetReplacementText () const
 
void SetReplacementText (const OUString &rReplacementText)
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 

Private Attributes

OUString sName
 
OUString sURL
 
OUString sTarget
 
SvxLinkInsertMode eType
 
OUString sReplacementText
 
OUString sIntName
 
std::unique_ptr< SvxMacroTableDtorpMacroTable
 
HyperDialogEvent nMacroEvents
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 49 of file hlnkitem.hxx.

Constructor & Destructor Documentation

◆ SvxHyperlinkItem() [1/3]

SvxHyperlinkItem::SvxHyperlinkItem ( TypedWhichId< SvxHyperlinkItem _nWhich = SID_HYPERLINK_GETLINK)
inline

Definition at line 65 of file hlnkitem.hxx.

References eType, HLINK_DEFAULT, and NONE.

Referenced by Clone(), and CreateDefault().

◆ SvxHyperlinkItem() [2/3]

SvxHyperlinkItem::SvxHyperlinkItem ( const SvxHyperlinkItem rHyperlinkItem)

◆ SvxHyperlinkItem() [3/3]

SvxHyperlinkItem::SvxHyperlinkItem ( TypedWhichId< SvxHyperlinkItem nWhich,
OUString  aName,
OUString  aURL,
OUString  aTarget,
OUString  aIntName,
SvxLinkInsertMode  eTyp,
HyperDialogEvent  nEvents,
SvxMacroTableDtor const *  pMacroTbl,
OUString  aReplacementText = OUString() 
)

Definition at line 44 of file hlnkitem.cxx.

References aName, aURL, and pMacroTable.

Member Function Documentation

◆ Clone()

SvxHyperlinkItem * SvxHyperlinkItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 60 of file hlnkitem.cxx.

References SvxHyperlinkItem().

◆ CreateDefault()

SfxPoolItem * SvxHyperlinkItem::CreateDefault ( )
static

Definition at line 26 of file hlnkitem.cxx.

References SvxHyperlinkItem().

◆ GetInsertMode()

SvxLinkInsertMode SvxHyperlinkItem::GetInsertMode ( ) const
inline

Definition at line 92 of file hlnkitem.hxx.

References eType.

◆ GetIntName()

const OUString & SvxHyperlinkItem::GetIntName ( ) const
inline

Definition at line 86 of file hlnkitem.hxx.

◆ GetMacroEvents()

HyperDialogEvent SvxHyperlinkItem::GetMacroEvents ( ) const
inline

Definition at line 101 of file hlnkitem.hxx.

◆ GetMacroTable()

const SvxMacroTableDtor * SvxHyperlinkItem::GetMacroTable ( ) const
inline

Definition at line 98 of file hlnkitem.hxx.

Referenced by SvxHyperlinkItem().

◆ GetName()

const OUString & SvxHyperlinkItem::GetName ( ) const
inline

Definition at line 80 of file hlnkitem.hxx.

References sName.

◆ GetReplacementText()

const OUString & SvxHyperlinkItem::GetReplacementText ( ) const
inline

Definition at line 103 of file hlnkitem.hxx.

◆ GetTargetFrame()

const OUString & SvxHyperlinkItem::GetTargetFrame ( ) const
inline

Definition at line 89 of file hlnkitem.hxx.

◆ GetURL()

const OUString & SvxHyperlinkItem::GetURL ( ) const
inline

Definition at line 83 of file hlnkitem.hxx.

◆ operator==()

bool SvxHyperlinkItem::operator== ( const SfxPoolItem rAttr) const
overridevirtual

◆ PutValue()

bool SvxHyperlinkItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 152 of file hlnkitem.cxx.

References aStr, eType, sIntName, sName, sReplacementText, sTarget, and sURL.

◆ QueryValue()

bool SvxHyperlinkItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 121 of file hlnkitem.cxx.

References eType, sIntName, sName, sReplacementText, sTarget, and sURL.

◆ SetInsertMode()

void SvxHyperlinkItem::SetInsertMode ( SvxLinkInsertMode  eNew)
inline

Definition at line 93 of file hlnkitem.hxx.

References eType.

◆ SetIntName()

void SvxHyperlinkItem::SetIntName ( const OUString &  rIntName)
inline

Definition at line 87 of file hlnkitem.hxx.

◆ SetMacro()

void SvxHyperlinkItem::SetMacro ( HyperDialogEvent  nEvent,
const SvxMacro rMacro 
)

Definition at line 93 of file hlnkitem.cxx.

References MouseClickObject, MouseOutObject, MouseOverObject, and pMacroTable.

◆ SetMacroEvents()

void SvxHyperlinkItem::SetMacroEvents ( const HyperDialogEvent  nEvents)
inline

Definition at line 100 of file hlnkitem.hxx.

◆ SetMacroTable()

void SvxHyperlinkItem::SetMacroTable ( const SvxMacroTableDtor rTbl)

Definition at line 116 of file hlnkitem.cxx.

References pMacroTable.

◆ SetName()

void SvxHyperlinkItem::SetName ( const OUString &  rName)
inline

Definition at line 81 of file hlnkitem.hxx.

References sName.

◆ SetReplacementText()

void SvxHyperlinkItem::SetReplacementText ( const OUString &  rReplacementText)
inline

Definition at line 104 of file hlnkitem.hxx.

◆ SetTargetFrame()

void SvxHyperlinkItem::SetTargetFrame ( const OUString &  rTarget)
inline

Definition at line 90 of file hlnkitem.hxx.

References rTarget.

◆ SetURL()

void SvxHyperlinkItem::SetURL ( const OUString &  rURL)
inline

Definition at line 84 of file hlnkitem.hxx.

Member Data Documentation

◆ eType

SvxLinkInsertMode SvxHyperlinkItem::eType
private

Definition at line 54 of file hlnkitem.hxx.

Referenced by operator==(), PutValue(), QueryValue(), and SvxHyperlinkItem().

◆ nMacroEvents

HyperDialogEvent SvxHyperlinkItem::nMacroEvents
private

Definition at line 60 of file hlnkitem.hxx.

Referenced by operator==(), and SvxHyperlinkItem().

◆ pMacroTable

std::unique_ptr<SvxMacroTableDtor> SvxHyperlinkItem::pMacroTable
private

Definition at line 58 of file hlnkitem.hxx.

Referenced by operator==(), SetMacro(), SetMacroTable(), and SvxHyperlinkItem().

◆ sIntName

OUString SvxHyperlinkItem::sIntName
private

Definition at line 57 of file hlnkitem.hxx.

Referenced by operator==(), PutValue(), QueryValue(), and SvxHyperlinkItem().

◆ sName

OUString SvxHyperlinkItem::sName
private

Definition at line 51 of file hlnkitem.hxx.

Referenced by operator==(), PutValue(), QueryValue(), and SvxHyperlinkItem().

◆ sReplacementText

OUString SvxHyperlinkItem::sReplacementText
private

Definition at line 55 of file hlnkitem.hxx.

Referenced by operator==(), PutValue(), QueryValue(), and SvxHyperlinkItem().

◆ sTarget

OUString SvxHyperlinkItem::sTarget
private

Definition at line 53 of file hlnkitem.hxx.

Referenced by operator==(), PutValue(), QueryValue(), and SvxHyperlinkItem().

◆ sURL

OUString SvxHyperlinkItem::sURL
private

Definition at line 52 of file hlnkitem.hxx.

Referenced by operator==(), PutValue(), QueryValue(), and SvxHyperlinkItem().


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