LibreOffice Module sw (master) 1
|
#include <fmtinfmt.hxx>
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 SwFormatINetFormat * | Clone (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 SwTextINetFormat * | GetTextINetFormat () 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 SvxMacroTableDtor * | GetMacroTable () const |
void | SetMacro (SvMacroItemId nEvent, const SvxMacro &rMacro) |
Macro getter and setter. More... | |
const SvxMacro * | GetMacro (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 SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (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 | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
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< SvxMacroTableDtor > | mpMacroTable |
SwTextINetFormat * | mpTextAttr |
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) | |
Definition at line 35 of file fmtinfmt.hxx.
SwFormatINetFormat::SwFormatINetFormat | ( | OUString | aURL, |
OUString | aTarget | ||
) |
Definition at line 179 of file fmtatr2.cxx.
References aURL, SwStyleNameMapper::FillUIName(), mnINetFormatId, mnVisitedFormatId, msINetFormatName, and msVisitedFormatName.
SwFormatINetFormat::SwFormatINetFormat | ( | const SwFormatINetFormat & | rAttr | ) |
Definition at line 194 of file fmtatr2.cxx.
References GetMacroTable(), GetValue, and mpMacroTable.
SwFormatINetFormat::SwFormatINetFormat | ( | ) |
For TypeInfo.
Definition at line 167 of file fmtatr2.cxx.
Referenced by Clone(), and CreateDefault().
|
overridevirtual |
Definition at line 210 of file fmtatr2.cxx.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 241 of file fmtatr2.cxx.
References SwFormatINetFormat().
|
static |
Definition at line 58 of file fmtatr2.cxx.
References SwFormatINetFormat().
|
inline |
Definition at line 102 of file fmtinfmt.hxx.
Referenced by SwTextShell::ExecCharAttrArgs(), SwTextINetFormat::GetCharFormat(), sw::util::GetSwCharFormat(), lcl_CopyHint(), and DocxAttributeOutput::TextINetFormat().
|
inline |
Definition at line 107 of file fmtinfmt.hxx.
Referenced by SwTextShell::ExecCharAttrArgs(), SwTextINetFormat::GetCharFormat(), and sw::util::GetSwCharFormat().
const SvxMacro * SwFormatINetFormat::GetMacro | ( | SvMacroItemId | nEvent | ) | const |
Definition at line 269 of file fmtatr2.cxx.
References mpMacroTable.
Referenced by SwWrtShell::ClickToINetAttr(), SwHyperlinkEventDescriptor::copyMacrosFromINetFormat(), and SwHTMLParser::InsertImage().
|
inline |
Definition at line 132 of file fmtinfmt.hxx.
Referenced by SwDoc::CallEvent(), OutHTML_INetFormat(), and SwFormatINetFormat().
|
inline |
Definition at line 80 of file fmtinfmt.hxx.
Referenced by SwHTMLParser::InsertImage(), OutHTML_INetFormat(), and SwHTMLParser::SetAttr_().
|
overridevirtual |
|
inline |
Definition at line 89 of file fmtinfmt.hxx.
Referenced by SwWrtShell::ClickToINetAttr(), SwAccessibleHyperlink::doAccessibleAction(), SwHTMLParser::InsertImage(), SwWW8AttrIter::OutAttrWithRange(), OutHTML_INetFormat(), SwWW8FltControlStack::SetAttrInDoc(), and SwReadOnlyPopup::SwReadOnlyPopup().
|
inline |
Definition at line 70 of file fmtinfmt.hxx.
Referenced by SwWrtShell::ClickToINetAttr(), SwAccessibleHyperlink::doAccessibleAction(), SwView::JumpToSwMark(), SwURLStateChanged::Notify(), and RtfAttributeOutput::TextINetFormat().
|
inline |
Definition at line 75 of file fmtinfmt.hxx.
Referenced by SwWrtShell::ClickToINetAttr(), SwAccessibleHyperlink::doAccessibleAction(), SwTextAttr::dumpAsXml(), SwTextShell::Execute(), SwTextINetFormat::GetCharFormat(), SwCursorShell::GetContentAtPos(), SwTransferable::GetData(), SwVisibleCursor::getLOKPayload(), GetPresentation(), sw::util::GetSwCharFormat(), SwWW8ImplReader::InsertAttrsAsDrawingAttrs(), SwHTMLParser::InsertImage(), SwEditShell::InsertURL(), SwURLStateChanged::Notify(), SwWW8AttrIter::OutAttrWithRange(), OutHTML_INetFormat(), SwDoc::ResetAttrs(), SwWW8FltControlStack::SetAttrInDoc(), SwReadOnlyPopup::SwReadOnlyPopup(), and RtfAttributeOutput::TextINetFormat().
|
inline |
Definition at line 120 of file fmtinfmt.hxx.
Referenced by SwTextShell::ExecCharAttrArgs(), SwTextINetFormat::GetCharFormat(), and lcl_CopyHint().
|
inline |
Definition at line 125 of file fmtinfmt.hxx.
Referenced by SwTextShell::ExecCharAttrArgs(), and SwTextINetFormat::GetCharFormat().
|
overridevirtual |
"Pure virtual methods" of SfxPoolItem.
Implements SfxPoolItem.
Definition at line 214 of file fmtatr2.cxx.
References SvxMacroTableDtor::empty(), mnINetFormatId, mnVisitedFormatId, mpMacroTable, msHyperlinkName, msINetFormatName, msTargetFrame, msURL, msVisitedFormatName, and SfxPoolItem::operator==().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 330 of file fmtatr2.cxx.
References ChrFmt, SwStyleNameMapper::FillUIName(), SwStyleNameMapper::GetPoolIdFromUIName(), MID_URL_HYPERLINKEVENTS, MID_URL_HYPERLINKNAME, MID_URL_TARGET, MID_URL_UNVISITED_FMT, MID_URL_URL, MID_URL_VISITED_FMT, mnINetFormatId, mnVisitedFormatId, msHyperlinkName, msINetFormatName, msTargetFrame, msURL, and msVisitedFormatName.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 277 of file fmtatr2.cxx.
References ChrFmt, SwStyleNameMapper::FillProgName(), SwStyleNameMapper::FillUIName(), MID_URL_HYPERLINKEVENTS, MID_URL_HYPERLINKNAME, MID_URL_TARGET, MID_URL_UNVISITED_FMT, MID_URL_URL, MID_URL_VISITED_FMT, mnINetFormatId, mnVisitedFormatId, msHyperlinkName, msINetFormatName, msTargetFrame, msURL, and msVisitedFormatName.
|
inline |
Definition at line 94 of file fmtinfmt.hxx.
References nId.
Referenced by SwTextShell::ExecCharAttrArgs(), and SwCharURLPage::FillItemSet().
void SwFormatINetFormat::SetMacro | ( | SvMacroItemId | nEvent, |
const SvxMacro & | rMacro | ||
) |
Macro getter and setter.
Definition at line 261 of file fmtatr2.cxx.
References mpMacroTable.
Referenced by SwHyperlinkEventDescriptor::copyMacrosIntoINetFormat(), and SwTextShell::InsertHyperlink().
void SwFormatINetFormat::SetMacroTable | ( | const SvxMacroTableDtor * | pTable | ) |
Set a new MacroTable or clear the current one.
Definition at line 246 of file fmtatr2.cxx.
References mpMacroTable.
Referenced by SwCharURLPage::FillItemSet(), and SwHTMLParser::NewAnchor().
|
inline |
Definition at line 84 of file fmtinfmt.hxx.
Referenced by SwCharURLPage::FillItemSet(), SwTextShell::InsertHyperlink(), and SwHTMLParser::NewAnchor().
|
inline |
Definition at line 112 of file fmtinfmt.hxx.
References nId.
Referenced by SwTextShell::ExecCharAttrArgs(), and SwCharURLPage::FillItemSet().
|
friend |
Definition at line 39 of file fmtinfmt.hxx.
|
private |
Definition at line 48 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), QueryValue(), and SwFormatINetFormat().
|
private |
Definition at line 49 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), QueryValue(), and SwFormatINetFormat().
|
private |
Definition at line 46 of file fmtinfmt.hxx.
Referenced by GetMacro(), operator==(), SetMacro(), SetMacroTable(), and SwFormatINetFormat().
|
private |
My TextAttribute.
Definition at line 47 of file fmtinfmt.hxx.
Referenced by SwTextINetFormat::SwTextINetFormat().
|
private |
Name of the link.
Definition at line 45 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 43 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), QueryValue(), and SwFormatINetFormat().
|
private |
Target frame for URL.
Definition at line 42 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
URL.
Definition at line 41 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 44 of file fmtinfmt.hxx.
Referenced by operator==(), PutValue(), QueryValue(), and SwFormatINetFormat().