LibreOffice Module svtools (master) 1
|
#include <svtools/imagemgr.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/urlobj.hxx>
#include <tools/debug.hxx>
#include <vcl/image.hxx>
#include <sot/storage.hxx>
#include <comphelper/classids.hxx>
#include <unotools/ucbhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/document/XTypeDetection.hpp>
#include <com/sun/star/ucb/CommandAbortedException.hpp>
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <ucbhelper/content.hxx>
#include <svtools/strings.hrc>
#include <svtools/svtresid.hxx>
#include <o3tl/string_view.hxx>
#include <bitmaps.hlst>
#include <strings.hxx>
Go to the source code of this file.
Macros | |
#define | NO_INDEX (-1) |
#define | CONTENT_HELPER ::utl::UCBContentHelper |
Functions | |
static OUString | GetImageExtensionByFactory_Impl (const OUString &rURL) |
static sal_Int32 | GetIndexOfExtension_Impl (const OUString &rExtension) |
static SvImageId | GetImageId_Impl (const OUString &rExtension) |
static bool | GetVolumeProperties_Impl (::ucbhelper::Content &rContent, svtools::VolumeInfo &rVolumeInfo) |
static SvImageId | GetFolderImageId_Impl (const OUString &rURL) |
static bool | isFolder (OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &env) |
static SvImageId | GetImageId_Impl (const INetURLObject &rObject, bool bDetectFolder, css::uno::Reference< css::ucb::XCommandEnvironment > const &env) |
static TranslateId | GetDescriptionId_Impl (const OUString &rExtension, bool &rbShowExt) |
static OUString | GetDescriptionByFactory_Impl (const OUString &rFactory) |
static TranslateId | GetFolderDescriptionId_Impl (const OUString &rURL) |
static OUString | GetImageNameFromList_Impl (SvImageId nImageId, vcl::ImageType eImageType) |
static Image | GetImageFromList_Impl (SvImageId nImageId, vcl::ImageType eImageType) |
Variables | |
SvtExtensionResIdMapping_Impl const | ExtensionMap_Impl [] |
SvtFactory2ExtensionMapping_Impl const | Fac2ExtMap_Impl [] |
#define CONTENT_HELPER ::utl::UCBContentHelper |
Definition at line 46 of file imagemgr.cxx.
#define NO_INDEX (-1) |
Definition at line 45 of file imagemgr.cxx.
|
static |
Definition at line 453 of file imagemgr.cxx.
References SvtResId().
Referenced by SvFileInformationManager::GetDescription_Impl().
|
static |
Definition at line 440 of file imagemgr.cxx.
References ExtensionMap_Impl, GetIndexOfExtension_Impl(), nIndex, and NO_INDEX.
Referenced by SvFileInformationManager::GetDescription_Impl().
|
static |
Definition at line 480 of file imagemgr.cxx.
References comphelper::getProcessComponentContext(), GetVolumeProperties_Impl(), svtools::VolumeInfo::m_bIsCompactDisc, svtools::VolumeInfo::m_bIsFloppy, svtools::VolumeInfo::m_bIsRemote, svtools::VolumeInfo::m_bIsRemoveable, and svtools::VolumeInfo::m_bIsVolume.
Referenced by SvFileInformationManager::GetDescription_Impl().
|
static |
Definition at line 330 of file imagemgr.cxx.
References CDRomDevice, FixedDevice, Folder, comphelper::getProcessComponentContext(), GetVolumeProperties_Impl(), svtools::VolumeInfo::m_bIsCompactDisc, svtools::VolumeInfo::m_bIsRemote, svtools::VolumeInfo::m_bIsRemoveable, svtools::VolumeInfo::m_bIsVolume, NetworkDevice, and RemoveableDevice.
Referenced by GetImageId_Impl().
|
static |
Definition at line 206 of file imagemgr.cxx.
References Fac2ExtMap_Impl, INetURLObject::GetURLPath(), nIndex, and INetURLObject::NONE.
Referenced by GetImageId_Impl().
|
static |
Definition at line 743 of file imagemgr.cxx.
References GetImageNameFromList_Impl().
Referenced by SvFileInformationManager::GetImage(), and SvFileInformationManager::GetImageNoDefault().
|
static |
Definition at line 376 of file imagemgr.cxx.
References CalcTemplate, DrawTemplate, env, File, INetURLObject::getExtension(), GetFolderImageId_Impl(), GetImageExtensionByFactory_Impl(), GetImageId_Impl(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), o3tl::getToken(), ImpressTemplate, isFolder(), MathTemplate, nId, INetURLObject::NONE, SO3_SC_CLASSID_30, SO3_SC_CLASSID_40, SO3_SC_CLASSID_50, SO3_SDRAW_CLASSID_50, SO3_SIMPRESS_CLASSID_30, SO3_SIMPRESS_CLASSID_40, SO3_SIMPRESS_CLASSID_50, SO3_SM_CLASSID_30, SO3_SM_CLASSID_40, SO3_SM_CLASSID_50, o3tl::toInt32(), TOOLS_WARN_EXCEPTION, u, URL_PREFIX_PRIV_SOFFICE, and WriterTemplate.
|
static |
Definition at line 292 of file imagemgr.cxx.
References ExtensionMap_Impl, File, GetIndexOfExtension_Impl(), nIndex, NO_INDEX, and NONE.
Referenced by SvFileInformationManager::GetFileImageId(), SvFileInformationManager::GetImage(), SvFileInformationManager::GetImageId(), GetImageId_Impl(), and SvFileInformationManager::GetImageNoDefault().
|
static |
Definition at line 510 of file imagemgr.cxx.
References Bitmap, Calc, CalcTemplate, CDRomDevice, Database, Draw, DrawTemplate, DXF, Extension, File, FixedDevice, Folder, GIF, GlobalDoc, HTML, Impress, ImpressTemplate, JPG, Math, MathTemplate, MET, NetworkDevice, OO_CalcDoc, OO_CalcTemplate, OO_DatabaseDoc, OO_DrawDoc, OO_DrawTemplate, OO_GlobalDoc, OO_ImpressDoc, OO_ImpressTemplate, OO_MathDoc, OO_WriterDoc, OO_WriterTemplate, PCD, PCT, PCX, PNG, RemoveableDevice, SIM, vcl::Size26, vcl::Size32, SVM, Table, TextFile, TIFF, WEBP, WMF, Writer, and WriterTemplate.
Referenced by SvFileInformationManager::GetFileImageId(), SvFileInformationManager::GetFolderImageId(), GetImageFromList_Impl(), and SvFileInformationManager::GetImageId().
|
static |
Definition at line 271 of file imagemgr.cxx.
References ExtensionMap_Impl, nIndex, and NO_INDEX.
Referenced by GetDescriptionId_Impl(), and GetImageId_Impl().
|
static |
Definition at line 306 of file imagemgr.cxx.
References ucbhelper::Content::getPropertyValue(), svtools::VolumeInfo::m_bIsCompactDisc, svtools::VolumeInfo::m_bIsFloppy, svtools::VolumeInfo::m_bIsRemote, svtools::VolumeInfo::m_bIsRemoveable, and svtools::VolumeInfo::m_bIsVolume.
Referenced by GetFolderDescriptionId_Impl(), and GetFolderImageId_Impl().
|
static |
Definition at line 360 of file imagemgr.cxx.
References env, comphelper::getProcessComponentContext(), ucbhelper::Content::isFolder(), and TOOLS_INFO_EXCEPTION.
Referenced by GetImageId_Impl().
SvtExtensionResIdMapping_Impl const ExtensionMap_Impl[] |
Definition at line 60 of file imagemgr.cxx.
Referenced by GetDescriptionId_Impl(), GetImageId_Impl(), and GetIndexOfExtension_Impl().
SvtFactory2ExtensionMapping_Impl const Fac2ExtMap_Impl[] |
Definition at line 192 of file imagemgr.cxx.
Referenced by GetImageExtensionByFactory_Impl().