20#ifndef INCLUDED_SVL_URIHELPER_HXX
21#define INCLUDED_SVL_URIHELPER_HXX
23#include <com/sun/star/uno/Reference.hxx>
24#include <rtl/textenc.h>
30 namespace uno {
class XComponentContext; }
31 namespace uri {
class XUriReference; }
52 OUString
const & rTheRelURIRef,
54 bool bCheckFileExists =
true,
55 bool bIgnoreFragment =
false,
58 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8,
87 css::uno::Reference< css::uno::XComponentContext >
const & context,
88 OUString
const & baseUriReference,
89 OUString
const & uriReference);
114 OUString
const & uriReference);
121 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8);
156 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8);
SVL_DLLPUBLIC OUString FindFirstURLInText(OUString const &rText, sal_Int32 &rBegin, sal_Int32 &rEnd, CharClass const &rCharClass, INetURLObject::EncodeMechanism eMechanism=INetURLObject::EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
SVL_DLLPUBLIC OUString FindFirstDOIInText(OUString const &rText, sal_Int32 &rBegin, sal_Int32 &rEnd, CharClass const &rCharClass)
SVL_DLLPUBLIC Link< OUString *, bool > const & GetMaybeFileHdl()
SVL_DLLPUBLIC OUString SmartRel2Abs(INetURLObject const &rTheBaseURIRef, OUString const &rTheRelURIRef, Link< OUString *, bool > const &rMaybeFileHdl=Link< OUString *, bool >(), bool bCheckFileExists=true, bool bIgnoreFragment=false, INetURLObject::EncodeMechanism eEncodeMechanism=INetURLObject::EncodeMechanism::WasEncoded, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect)
@ATT Calling this function with defaulted arguments rMaybeFileHdl = Link() and bCheckFileExists = tru...
SVL_DLLPUBLIC OUString removePassword(OUString const &rURI, INetURLObject::EncodeMechanism eEncodeMechanism, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
Remove any password component from both absolute and relative URLs.
SVL_DLLPUBLIC css::uno::Reference< css::uri::XUriReference > normalizedMakeRelative(css::uno::Reference< css::uno::XComponentContext > const &context, OUString const &baseUriReference, OUString const &uriReference)
Converts a URI reference to a relative one, ignoring certain differences (for example,...
SVL_DLLPUBLIC OUString simpleNormalizedMakeRelative(OUString const &baseUriReference, OUString const &uriReference)
A variant of normalizedMakeRelative with a simplified interface.
SVL_DLLPUBLIC void SetMaybeFileHdl(Link< OUString *, bool > const &rTheMaybeFileHdl)
SVL_DLLPUBLIC OUString resolveIdnaHost(OUString const &url)
Resolve a URL's host component domain name in IDNA syntax to plain DNS syntax.