LibreOffice Module sw (master) 1
|
SfxPoolItem subclass that wraps a URL. More...
#include <fmturl.hxx>
Public Member Functions | |
SwFormatURL () | |
SwFormatURL (const SwFormatURL &) | |
virtual | ~SwFormatURL () override |
virtual bool | operator== (const SfxPoolItem &) const override |
"Pure virtual methods" of SfxPoolItem. More... | |
virtual SwFormatURL * | 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 |
void | SetTargetFrameName (const OUString &rStr) |
void | SetURL (const OUString &rURL, bool bServerMap) |
void | SetMap (const ImageMap *pM) |
Pointer will be copied. More... | |
const OUString & | GetTargetFrameName () const |
const OUString & | GetURL () const |
bool | IsServerMap () const |
const ImageMap * | GetMap () const |
ImageMap * | GetMap () |
const OUString & | GetName () const |
void | SetName (const OUString &rNm) |
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 |
Private Attributes | |
OUString | m_sTargetFrameName |
Target frame for URL. More... | |
OUString | m_sURL |
Simple URL. More... | |
OUString | m_sName |
Name of the anchor. More... | |
std::unique_ptr< ImageMap > | m_pMap |
ClientSide images. More... | |
bool | m_bIsServerMap |
A ServerSideImageMap with the URL. More... | |
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) | |
SfxPoolItem subclass that wraps a URL.
Definition at line 32 of file fmturl.hxx.
SwFormatURL::SwFormatURL | ( | ) |
Definition at line 1830 of file atrfrm.cxx.
Referenced by Clone().
SwFormatURL::SwFormatURL | ( | const SwFormatURL & | rURL | ) |
|
overridevirtual |
Definition at line 1847 of file atrfrm.cxx.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1869 of file atrfrm.cxx.
References SwFormatURL().
Referenced by SwFrameURLPage::FillItemSet().
|
inline |
Definition at line 68 of file fmturl.hxx.
|
inline |
Definition at line 67 of file fmturl.hxx.
Referenced by SwVirtFlyDrawObj::CheckMacroHit(), SwTransferable::GetData(), SwEditWin::GetDropDestination(), SwFrameFormat::GetIMapObject(), SwTransferable::GetSotDestination(), SwVirtFlyDrawObj::HasMacro(), SwFEShell::IsURLGrfAtPos(), lcl_PaintReplacement(), lcl_UpdateIMapDlg(), operator==(), SwTransferable::PrepareForCopy(), SwDPage::RequestHelp(), SwCursorShell::SelectNxtPrvHyperlink(), SwTransferable::SetDataForDragAndDrop(), and SwFormatURL().
|
inline |
Definition at line 70 of file fmturl.hxx.
References m_sName.
Referenced by operator==(), OutHTML_ImageStart(), SwTransferable::PasteAsHyperlink(), SwTransferable::PasteFileName(), SwBasicEscherEx::PreWriteHyperlinkWithinFly(), and QueryValue().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 502 of file attrdesc.cxx.
References m_bIsServerMap, m_pMap, m_sTargetFrameName, and m_sURL.
|
inline |
Definition at line 64 of file fmturl.hxx.
Referenced by SwTransferable::GetData(), SwFEShell::IsURLGrfAtPos(), operator==(), WW8Export::OutGrf(), OutHTML_ImageStart(), SwTransferable::PrepareForCopy(), QueryValue(), SwTransferable::SetDataForDragAndDrop(), and SwBasicEscherEx::WriteHyperlinkWithinFly().
|
inline |
Definition at line 65 of file fmturl.hxx.
References m_sURL.
Referenced by SwVirtFlyDrawObj::CheckMacroHit(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwTransferable::GetData(), SwVirtFlyDrawObj::HasMacro(), SwFEShell::IsURLGrfAtPos(), lcl_PaintReplacement(), operator==(), WW8Export::OutGrf(), OutHTML_ImageStart(), SwTransferable::PrepareForCopy(), SwBasicEscherEx::PreWriteHyperlinkWithinFly(), QueryValue(), SwDPage::RequestHelp(), SwCursorShell::SelectNxtPrvHyperlink(), SwTransferable::SetDataForDragAndDrop(), and SwBasicEscherEx::WriteHyperlinkWithinFly().
|
inline |
Definition at line 66 of file fmturl.hxx.
Referenced by SwFEShell::IsURLGrfAtPos(), operator==(), OutHTML_ImageStart(), QueryValue(), and SwDPage::RequestHelp().
|
overridevirtual |
"Pure virtual methods" of SfxPoolItem.
Implements SfxPoolItem.
Definition at line 1851 of file atrfrm.cxx.
References GetMap(), GetName(), GetTargetFrameName(), GetURL(), IsServerMap(), m_bIsServerMap, m_pMap, m_sName, m_sTargetFrameName, and m_sURL.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1927 of file atrfrm.cxx.
References uno::Any::hasValue(), m_bIsServerMap, m_pMap, MID_URL_CLIENTMAP, MID_URL_HYPERLINKNAME, MID_URL_SERVERMAP, MID_URL_TARGET, MID_URL_URL, SetName(), SetTargetFrameName(), SetURL(), and SvUnoImageMap_fillImageMap().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1885 of file atrfrm.cxx.
References GetName(), GetTargetFrameName(), GetURL(), IsServerMap(), m_pMap, MID_URL_CLIENTMAP, MID_URL_HYPERLINKNAME, MID_URL_SERVERMAP, MID_URL_TARGET, MID_URL_URL, SvUnoImageMap_createInstance(), and sw_GetSupportedMacroItems().
void SwFormatURL::SetMap | ( | const ImageMap * | pM | ) |
|
inline |
Definition at line 71 of file fmturl.hxx.
References m_sName.
Referenced by SwTransferable::PasteAsHyperlink(), SwTransferable::PasteFileName(), and PutValue().
|
inline |
Definition at line 60 of file fmturl.hxx.
Referenced by PutValue().
void SwFormatURL::SetURL | ( | const OUString & | rURL, |
bool | bServerMap | ||
) |
Definition at line 1874 of file atrfrm.cxx.
References m_bIsServerMap, and m_sURL.
Referenced by SwTransferable::PasteAsHyperlink(), SwTransferable::PasteFileName(), and PutValue().
|
private |
A ServerSideImageMap with the URL.
Definition at line 40 of file fmturl.hxx.
Referenced by GetPresentation(), operator==(), PutValue(), and SetURL().
|
private |
ClientSide images.
Definition at line 38 of file fmturl.hxx.
Referenced by GetPresentation(), operator==(), PutValue(), QueryValue(), SetMap(), and SwFormatURL().
|
private |
|
private |
Target frame for URL.
Definition at line 34 of file fmturl.hxx.
Referenced by GetPresentation(), and operator==().
|
private |
Simple URL.
Definition at line 35 of file fmturl.hxx.
Referenced by GetPresentation(), operator==(), and SetURL().