LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
SwFormatINetFormat Class Referencefinal

#include <fmtinfmt.hxx>

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

Public Member Functions

 SwFormatINetFormat (OUString aURL, OUString aTarget)
 
 SwFormatINetFormat (const SwFormatINetFormat &rAttr)
 
 SwFormatINetFormat ()
 For TypeInfo. More...
 
virtual ~SwFormatINetFormat () override
 
virtual bool operator== (const SfxPoolItem &) const override
 "Pure virtual methods" of SfxPoolItem. More...
 
virtual SwFormatINetFormatClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) 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 SwTextINetFormatGetTextINetFormat () const
 
const OUString & GetValue () const
 
const OUString & GetName () const
 
void SetName (const OUString &rNm)
 
const OUString & GetTargetFrame () const
 
void SetINetFormatAndId (const OUString &rNm, const sal_uInt16 nId)
 
const OUString & GetINetFormat () const
 
sal_uInt16 GetINetFormatId () const
 
void SetVisitedFormatAndId (const OUString &rNm, const sal_uInt16 nId)
 
const OUString & GetVisitedFormat () const
 
sal_uInt16 GetVisitedFormatId () const
 
void SetMacroTable (const SvxMacroTableDtor *pTable)
 Set a new MacroTable or clear the current one. More...
 
const SvxMacroTableDtorGetMacroTable () const
 
void SetMacro (SvMacroItemId nEvent, const SvxMacro &rMacro)
 Macro getter and setter. More...
 
const SvxMacroGetMacro (SvMacroItemId nEvent) const
 
- 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
 
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 
 BroadcasterMixin (BroadcasterMixin const &)=default
 
BroadcasterMixinoperator= (const BroadcasterMixin &)
 
SvtBroadcasterGetNotifier ()
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 

Private Attributes

OUString msURL
 URL. More...
 
OUString msTargetFrame
 Target frame for URL. More...
 
OUString msINetFormatName
 
OUString msVisitedFormatName
 
OUString msHyperlinkName
 Name of the link. More...
 
std::unique_ptr< SvxMacroTableDtormpMacroTable
 
SwTextINetFormatmpTextAttr
 My TextAttribute. More...
 
sal_uInt16 mnINetFormatId
 
sal_uInt16 mnVisitedFormatId
 

Friends

class SwTextINetFormat
 

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 35 of file fmtinfmt.hxx.

Constructor & Destructor Documentation

◆ SwFormatINetFormat() [1/3]

SwFormatINetFormat::SwFormatINetFormat ( OUString  aURL,
OUString  aTarget 
)

◆ SwFormatINetFormat() [2/3]

SwFormatINetFormat::SwFormatINetFormat ( const SwFormatINetFormat rAttr)

Definition at line 183 of file fmtatr2.cxx.

References GetMacroTable(), GetValue, and mpMacroTable.

◆ SwFormatINetFormat() [3/3]

SwFormatINetFormat::SwFormatINetFormat ( )

For TypeInfo.

Definition at line 156 of file fmtatr2.cxx.

Referenced by Clone(), and CreateDefault().

◆ ~SwFormatINetFormat()

SwFormatINetFormat::~SwFormatINetFormat ( )
overridevirtual

Definition at line 199 of file fmtatr2.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 230 of file fmtatr2.cxx.

References SwFormatINetFormat().

◆ CreateDefault()

SfxPoolItem * SwFormatINetFormat::CreateDefault ( )
static

Definition at line 58 of file fmtatr2.cxx.

References SwFormatINetFormat().

◆ GetINetFormat()

const OUString & SwFormatINetFormat::GetINetFormat ( ) const
inline

◆ GetINetFormatId()

sal_uInt16 SwFormatINetFormat::GetINetFormatId ( ) const
inline

◆ GetMacro()

const SvxMacro * SwFormatINetFormat::GetMacro ( SvMacroItemId  nEvent) const

◆ GetMacroTable()

const SvxMacroTableDtor * SwFormatINetFormat::GetMacroTable ( ) const
inline

Definition at line 132 of file fmtinfmt.hxx.

Referenced by SwDoc::CallEvent(), OutHTML_INetFormat(), and SwFormatINetFormat().

◆ GetName()

const OUString & SwFormatINetFormat::GetName ( ) const
inline

◆ GetPresentation()

bool SwFormatINetFormat::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 121 of file attrdesc.cxx.

References GetValue().

◆ GetTargetFrame()

const OUString & SwFormatINetFormat::GetTargetFrame ( ) const
inline

◆ GetTextINetFormat()

const SwTextINetFormat * SwFormatINetFormat::GetTextINetFormat ( ) const
inline

◆ GetValue()

const OUString & SwFormatINetFormat::GetValue ( ) const
inline

◆ GetVisitedFormat()

const OUString & SwFormatINetFormat::GetVisitedFormat ( ) const
inline

◆ GetVisitedFormatId()

sal_uInt16 SwFormatINetFormat::GetVisitedFormatId ( ) const
inline

Definition at line 125 of file fmtinfmt.hxx.

Referenced by SwTextShell::ExecCharAttrArgs(), and SwTextINetFormat::GetCharFormat().

◆ operator==()

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

◆ PutValue()

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

◆ QueryValue()

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

◆ SetINetFormatAndId()

void SwFormatINetFormat::SetINetFormatAndId ( const OUString &  rNm,
const sal_uInt16  nId 
)
inline

Definition at line 94 of file fmtinfmt.hxx.

References nId.

Referenced by SwTextShell::ExecCharAttrArgs(), and SwCharURLPage::FillItemSet().

◆ SetMacro()

void SwFormatINetFormat::SetMacro ( SvMacroItemId  nEvent,
const SvxMacro rMacro 
)

Macro getter and setter.

Definition at line 250 of file fmtatr2.cxx.

References mpMacroTable.

Referenced by SwHyperlinkEventDescriptor::copyMacrosIntoINetFormat(), and SwTextShell::InsertHyperlink().

◆ SetMacroTable()

void SwFormatINetFormat::SetMacroTable ( const SvxMacroTableDtor pTable)

Set a new MacroTable or clear the current one.

Definition at line 235 of file fmtatr2.cxx.

References mpMacroTable.

Referenced by SwCharURLPage::FillItemSet(), and SwHTMLParser::NewAnchor().

◆ SetName()

void SwFormatINetFormat::SetName ( const OUString &  rNm)
inline

◆ SetVisitedFormatAndId()

void SwFormatINetFormat::SetVisitedFormatAndId ( const OUString &  rNm,
const sal_uInt16  nId 
)
inline

Definition at line 112 of file fmtinfmt.hxx.

References nId.

Referenced by SwTextShell::ExecCharAttrArgs(), and SwCharURLPage::FillItemSet().

Friends And Related Function Documentation

◆ SwTextINetFormat

friend class SwTextINetFormat
friend

Definition at line 39 of file fmtinfmt.hxx.

Member Data Documentation

◆ mnINetFormatId

sal_uInt16 SwFormatINetFormat::mnINetFormatId
private

Definition at line 48 of file fmtinfmt.hxx.

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

◆ mnVisitedFormatId

sal_uInt16 SwFormatINetFormat::mnVisitedFormatId
private

Definition at line 49 of file fmtinfmt.hxx.

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

◆ mpMacroTable

std::unique_ptr<SvxMacroTableDtor> SwFormatINetFormat::mpMacroTable
private

Definition at line 46 of file fmtinfmt.hxx.

Referenced by GetMacro(), operator==(), SetMacro(), SetMacroTable(), and SwFormatINetFormat().

◆ mpTextAttr

SwTextINetFormat* SwFormatINetFormat::mpTextAttr
private

My TextAttribute.

Definition at line 47 of file fmtinfmt.hxx.

Referenced by SwTextINetFormat::SwTextINetFormat().

◆ msHyperlinkName

OUString SwFormatINetFormat::msHyperlinkName
private

Name of the link.

Definition at line 45 of file fmtinfmt.hxx.

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

◆ msINetFormatName

OUString SwFormatINetFormat::msINetFormatName
private

Definition at line 43 of file fmtinfmt.hxx.

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

◆ msTargetFrame

OUString SwFormatINetFormat::msTargetFrame
private

Target frame for URL.

Definition at line 42 of file fmtinfmt.hxx.

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

◆ msURL

OUString SwFormatINetFormat::msURL
private

URL.

Definition at line 41 of file fmtinfmt.hxx.

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

◆ msVisitedFormatName

OUString SwFormatINetFormat::msVisitedFormatName
private

Definition at line 44 of file fmtinfmt.hxx.

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


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