summaryrefslogtreecommitdiff
path: root/include/svtools/imagemgr.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-09 17:20:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-04-09 21:16:11 +0200
commit6c6046a83e0285f4c4303ee8a049759113dac16d (patch)
treec667cd887691a633050b76be370d00e77fc7f6a7 /include/svtools/imagemgr.hxx
parentb721a1cecb6ea0013be8402350110822e50b4415 (diff)
Avoid user interaction when determining recent documents' MIME types
After 6fcabbd6199869753fd6a266f23901962a77f556 "tdf#129153: Show MIME type icon in main menu File>Recent documents list", I e.g. got an "Authentication Required" dialog asking for user name and password if there was an sftp URI among my recent documents. Change-Id: Ic772c500f9dd2bc2418ea7dbea966e8478a35729 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113887 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/svtools/imagemgr.hxx')
-rw-r--r--include/svtools/imagemgr.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svtools/imagemgr.hxx b/include/svtools/imagemgr.hxx
index 707fa5eda587..6abe56b08bb0 100644
--- a/include/svtools/imagemgr.hxx
+++ b/include/svtools/imagemgr.hxx
@@ -21,6 +21,7 @@
#include <rtl/ustring.hxx>
#include <svtools/svtdllapi.h>
+#include <unotools/ucbhelper.hxx>
#include <vcl/vclenum.hxx>
enum class SvImageId {
@@ -119,7 +120,10 @@ private:
public:
SVT_DLLPUBLIC static OUString GetImageId( const INetURLObject& rURL, bool bBig = false );
- SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, bool bBig = false);
+ SVT_DLLPUBLIC static Image GetImage(
+ const INetURLObject& rURL, bool bBig = false,
+ css::uno::Reference<css::ucb::XCommandEnvironment> const & env
+ = utl::UCBContentHelper::getDefaultCommandEnvironment());
SVT_DLLPUBLIC static OUString GetFileImageId( const INetURLObject& rURL );
SVT_DLLPUBLIC static Image GetImageNoDefault(const INetURLObject& rURL, vcl::ImageType eImageType = vcl::ImageType::Small);
SVT_DLLPUBLIC static OUString GetFolderImageId( const svtools::VolumeInfo& rInfo );