LibreOffice Module svtools (master) 1
Macros | Functions | Variables
imagemgr.cxx File Reference
#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>
Include dependency graph for imagemgr.cxx:

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 []
 

Macro Definition Documentation

◆ CONTENT_HELPER

#define CONTENT_HELPER   ::utl::UCBContentHelper

Definition at line 46 of file imagemgr.cxx.

◆ NO_INDEX

#define NO_INDEX   (-1)

Definition at line 45 of file imagemgr.cxx.

Function Documentation

◆ GetDescriptionByFactory_Impl()

static OUString GetDescriptionByFactory_Impl ( const OUString &  rFactory)
static

Definition at line 453 of file imagemgr.cxx.

References SvtResId().

Referenced by SvFileInformationManager::GetDescription_Impl().

◆ GetDescriptionId_Impl()

static TranslateId GetDescriptionId_Impl ( const OUString &  rExtension,
bool &  rbShowExt 
)
static

◆ GetFolderDescriptionId_Impl()

static TranslateId GetFolderDescriptionId_Impl ( const OUString &  rURL)
static

◆ GetFolderImageId_Impl()

static SvImageId GetFolderImageId_Impl ( const OUString &  rURL)
static

◆ GetImageExtensionByFactory_Impl()

static OUString GetImageExtensionByFactory_Impl ( const OUString &  rURL)
static

Definition at line 206 of file imagemgr.cxx.

References Fac2ExtMap_Impl, INetURLObject::GetURLPath(), nIndex, and INetURLObject::NONE.

Referenced by GetImageId_Impl().

◆ GetImageFromList_Impl()

static Image GetImageFromList_Impl ( SvImageId  nImageId,
vcl::ImageType  eImageType 
)
static

◆ GetImageId_Impl() [1/2]

static SvImageId GetImageId_Impl ( const INetURLObject rObject,
bool  bDetectFolder,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  env 
)
static

◆ GetImageId_Impl() [2/2]

static SvImageId GetImageId_Impl ( const OUString &  rExtension)
static

◆ GetImageNameFromList_Impl()

static OUString GetImageNameFromList_Impl ( SvImageId  nImageId,
vcl::ImageType  eImageType 
)
static

◆ GetIndexOfExtension_Impl()

static sal_Int32 GetIndexOfExtension_Impl ( const OUString &  rExtension)
static

Definition at line 271 of file imagemgr.cxx.

References ExtensionMap_Impl, nIndex, and NO_INDEX.

Referenced by GetDescriptionId_Impl(), and GetImageId_Impl().

◆ GetVolumeProperties_Impl()

static bool GetVolumeProperties_Impl ( ::ucbhelper::Content rContent,
svtools::VolumeInfo rVolumeInfo 
)
static

◆ isFolder()

static bool isFolder ( OUString const &  url,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  env 
)
static

Variable Documentation

◆ ExtensionMap_Impl

SvtExtensionResIdMapping_Impl const ExtensionMap_Impl[]

Definition at line 60 of file imagemgr.cxx.

Referenced by GetDescriptionId_Impl(), GetImageId_Impl(), and GetIndexOfExtension_Impl().

◆ Fac2ExtMap_Impl

SvtFactory2ExtensionMapping_Impl const Fac2ExtMap_Impl[]
Initial value:
=
{
{ "swriter", "odt" },
{ "swriter/web", "html" },
{ "swriter/GlobalDocument", "odm" },
{ "scalc", "ods" },
{ "simpress", "odp" },
{ "sdraw", "odg" },
{ "smath", "odf" },
{ "sdatabase", "odb" },
{ nullptr, nullptr }
}

Definition at line 192 of file imagemgr.cxx.

Referenced by GetImageExtensionByFactory_Impl().