diff options
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/securityoptions.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/unotools/securityoptions.hxx b/include/unotools/securityoptions.hxx index b454c556691a..dd150f17daba 100644 --- a/include/unotools/securityoptions.hxx +++ b/include/unotools/securityoptions.hxx @@ -79,7 +79,8 @@ class UNOTOOLS_DLLPUBLIC SAL_WARN_UNUSED SvtSecurityOptions : public utl::detail E_MACRO_SECLEVEL, E_MACRO_TRUSTEDAUTHORS, E_MACRO_DISABLE, - E_CTRLCLICK_HYPERLINK + E_CTRLCLICK_HYPERLINK, + E_BLOCKUNTRUSTEDREFERERLINKS }; enum MacroAction @@ -189,6 +190,12 @@ class UNOTOOLS_DLLPUBLIC SAL_WARN_UNUSED SvtSecurityOptions : public utl::detail const; /** + Check whether the given referer URI is untrusted, and links + originating from it should not be accessed. + */ + bool isUntrustedReferer(OUString const & referer) const; + + /** Check whether the given uri is a trusted location. */ bool isTrustedLocationUri(OUString const & uri) const; |