diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-27 22:30:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-30 16:13:32 +0200 |
commit | 3e719d72ed64b0690ebef2dda1d56a0d28bc0c0e (patch) | |
tree | 795bd01f8c9b64131b2952593eb16937a23e3a68 /svtools/source/misc/imagemgr.cxx | |
parent | 7ec12ce7e449d7849b3e67c443783110e2a50a17 (diff) |
add GetFileImageId and check if there is no parent
Change-Id: I80fdcb800642dbb850072a259d0f742e8c6cbb20
Reviewed-on: https://gerrit.libreoffice.org/61071
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source/misc/imagemgr.cxx')
-rw-r--r-- | svtools/source/misc/imagemgr.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index 88496840a93f..f7a9a9e8a703 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -773,6 +773,13 @@ Image SvFileInformationManager::GetImage( const INetURLObject& rObject, bool bBi return GetImageFromList_Impl( nImage, bBig ); } +OUString SvFileInformationManager::GetFileImageId(const INetURLObject& rObject) +{ + SvImageId nImage = GetImageId_Impl( rObject, false ); + DBG_ASSERT( nImage != SvImageId::NONE, "invalid ImageId" ); + return GetImageNameFromList_Impl(nImage, /*bBig*/false); +} + Image SvFileInformationManager::GetFileImage( const INetURLObject& rObject ) { SvImageId nImage = GetImageId_Impl( rObject, false ); |