59 bool bAction =
false, bUnLockView =
false;
63 if( pFormatItem !=
nullptr &&
64 ( pFormatItem->
GetValue() == sURL || ( !sBkmk.isEmpty() && pFormatItem->
GetValue() == sBkmk )))
67 if (pTextAttr !=
nullptr)
70 if (pTextNd !=
nullptr)
72 if( !bAction && pESh )
109 aIObj.
SetMark( rURL.substr( 1 ) );
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
static INetURLHistory * GetOrCreate()
bool QueryUrl(const INetURLObject &rUrl) const
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
OUString GetMark(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
bool SetMark(std::u16string_view rTheFragment, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
const INetURLObject & GetURLObject() const
const OUString & GetName() const
SfxMedium * GetMedium() const
std::unique_ptr< SwURLStateChanged > mpURLStateChgd
SwEditShell const * GetEditShell() const
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
const SwAttrPool & GetAttrPool() const
bool IsVisitedURL(std::u16string_view rURL)
SwDocShell * GetDocShell()
void StartAllAction()
For all views of this document.
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
const sal_Int32 * End() const
sal_Int32 GetStart() const
SwTextAttr subclass that tracks the location of the wrapped SwFormatURL.
const SwTextNode * GetpTextNode() const
SwTextNode is a paragraph in the document model.
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual ~SwURLStateChanged() override
SwURLStateChanged(SwDoc &rD)
bool IsViewLocked() const
virtual css::uno::Reference< css::embed::XEmbeddedObject > GetObject() override
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(168)