LibreOffice Module comphelper (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::MimeConfigurationHelper Class Reference

#include <mimeconfighelper.hxx>

Public Member Functions

 MimeConfigurationHelper (css::uno::Reference< css::uno::XComponentContext > xContext)
 
css::uno::Reference< css::container::XNameAccess > GetObjConfiguration ()
 
css::uno::Reference< css::container::XNameAccess > GetVerbsConfiguration ()
 
css::uno::Reference< css::container::XNameAccess > GetMediaTypeConfiguration ()
 
OUString GetDocServiceNameFromFilter (const OUString &aFilterName)
 
OUString GetDocServiceNameFromMediaType (const OUString &aMediaType)
 
css::uno::Sequence< css::beans::NamedValue > GetObjPropsFromConfigEntry (const css::uno::Sequence< sal_Int8 > &aClassID, const css::uno::Reference< css::container::XNameAccess > &xObjectProps)
 
bool GetVerbByShortcut (const OUString &aVerbShortcut, css::embed::VerbDescriptor &aDescriptor)
 
OUString GetExplicitlyRegisteredObjClassID (const OUString &aMediaType)
 
css::uno::Sequence< css::beans::NamedValue > GetObjectPropsByStringClassID (const OUString &aStringClassID)
 
css::uno::Sequence< css::beans::NamedValue > GetObjectPropsByClassID (const css::uno::Sequence< sal_Int8 > &aClassID)
 
css::uno::Sequence< css::beans::NamedValue > GetObjectPropsByMediaType (const OUString &aMediaType)
 
css::uno::Sequence< css::beans::NamedValue > GetObjectPropsByFilter (const OUString &aFilterName)
 
css::uno::Sequence< css::beans::NamedValue > GetObjectPropsByDocumentName (std::u16string_view aDocumentName)
 
OUString GetFactoryNameByStringClassID (const OUString &aStringClassID)
 
OUString GetFactoryNameByClassID (const css::uno::Sequence< sal_Int8 > &aClassID)
 
OUString GetFactoryNameByDocumentName (std::u16string_view aDocName)
 
OUString GetFactoryNameByMediaType (const OUString &aMediaType)
 
css::uno::Reference< css::container::XNameAccess > GetFilterFactory ()
 
OUString UpdateMediaDescriptorWithFilterName (css::uno::Sequence< css::beans::PropertyValue > &aMediaDescr, bool bIgnoreType)
 
OUString UpdateMediaDescriptorWithFilterName (css::uno::Sequence< css::beans::PropertyValue > &aMediaDescr, css::uno::Sequence< css::beans::NamedValue > &aObject)
 
OUString GetDefaultFilterFromServiceName (const OUString &aServName, sal_Int32 nVersion)
 
OUString GetExportFilterFromImportFilter (const OUString &aImportFilterName)
 

Static Public Member Functions

static OUString GetStringClassIDRepresentation (const css::uno::Sequence< sal_Int8 > &aClassID)
 
static css::uno::Sequence< sal_Int8GetSequenceClassIDRepresentation (std::u16string_view aClassID)
 
static css::uno::Sequence< css::beans::PropertyValue > SearchForFilter (const css::uno::Reference< css::container::XContainerQuery > &xFilterQuery, const css::uno::Sequence< css::beans::NamedValue > &aSearchRequest, SfxFilterFlags nMustFlags, SfxFilterFlags nDontFlags)
 
static bool ClassIDsEqual (const css::uno::Sequence< sal_Int8 > &aClassID1, const css::uno::Sequence< sal_Int8 > &aClassID2)
 
static css::uno::Sequence< sal_Int8GetSequenceClassID (sal_uInt32 n1, sal_uInt16 n2, sal_uInt16 n3, sal_uInt8 b8, sal_uInt8 b9, sal_uInt8 b10, sal_uInt8 b11, sal_uInt8 b12, sal_uInt8 b13, sal_uInt8 b14, sal_uInt8 b15)
 

Private Member Functions

css::uno::Reference< css::container::XNameAccess > GetConfigurationByPathImpl (const OUString &aPath)
 

Private Attributes

std::mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::lang::XMultiServiceFactory > m_xConfigProvider
 
css::uno::Reference< css::container::XNameAccess > m_xObjectConfig
 
css::uno::Reference< css::container::XNameAccess > m_xVerbsConfig
 
css::uno::Reference< css::container::XNameAccess > m_xMediaTypeConfig
 
css::uno::Reference< css::container::XNameAccess > m_xFilterFactory
 

Detailed Description

Definition at line 39 of file mimeconfighelper.hxx.

Constructor & Destructor Documentation

◆ MimeConfigurationHelper()

MimeConfigurationHelper::MimeConfigurationHelper ( css::uno::Reference< css::uno::XComponentContext >  xContext)

Definition at line 43 of file mimeconfighelper.cxx.

References m_xContext, and m_xContext.

Member Function Documentation

◆ ClassIDsEqual()

bool MimeConfigurationHelper::ClassIDsEqual ( const css::uno::Sequence< sal_Int8 > &  aClassID1,
const css::uno::Sequence< sal_Int8 > &  aClassID2 
)
static

◆ GetConfigurationByPathImpl()

uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetConfigurationByPathImpl ( const OUString &  aPath)
private

◆ GetDefaultFilterFromServiceName()

OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName ( const OUString &  aServName,
sal_Int32  nVersion 
)

◆ GetDocServiceNameFromFilter()

OUString MimeConfigurationHelper::GetDocServiceNameFromFilter ( const OUString &  aFilterName)

◆ GetDocServiceNameFromMediaType()

OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType ( const OUString &  aMediaType)

◆ GetExplicitlyRegisteredObjClassID()

OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID ( const OUString &  aMediaType)

◆ GetExportFilterFromImportFilter()

OUString MimeConfigurationHelper::GetExportFilterFromImportFilter ( const OUString &  aImportFilterName)

◆ GetFactoryNameByClassID()

OUString MimeConfigurationHelper::GetFactoryNameByClassID ( const css::uno::Sequence< sal_Int8 > &  aClassID)

◆ GetFactoryNameByDocumentName()

OUString MimeConfigurationHelper::GetFactoryNameByDocumentName ( std::u16string_view  aDocName)

Definition at line 512 of file mimeconfighelper.cxx.

References GetObjConfiguration().

Referenced by GetFactoryNameByMediaType().

◆ GetFactoryNameByMediaType()

OUString MimeConfigurationHelper::GetFactoryNameByMediaType ( const OUString &  aMediaType)

◆ GetFactoryNameByStringClassID()

OUString MimeConfigurationHelper::GetFactoryNameByStringClassID ( const OUString &  aStringClassID)

◆ GetFilterFactory()

uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFactory ( )

◆ GetMediaTypeConfiguration()

uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeConfiguration ( )

◆ GetObjConfiguration()

uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfiguration ( )

◆ GetObjectPropsByClassID()

uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClassID ( const css::uno::Sequence< sal_Int8 > &  aClassID)

◆ GetObjectPropsByDocumentName()

uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocumentName ( std::u16string_view  aDocumentName)

◆ GetObjectPropsByFilter()

uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilter ( const OUString &  aFilterName)

◆ GetObjectPropsByMediaType()

uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMediaType ( const OUString &  aMediaType)

◆ GetObjectPropsByStringClassID()

uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByStringClassID ( const OUString &  aStringClassID)

◆ GetObjPropsFromConfigEntry()

uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfigEntry ( const css::uno::Sequence< sal_Int8 > &  aClassID,
const css::uno::Reference< css::container::XNameAccess > &  xObjectProps 
)

◆ GetSequenceClassID()

uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassID ( sal_uInt32  n1,
sal_uInt16  n2,
sal_uInt16  n3,
sal_uInt8  b8,
sal_uInt8  b9,
sal_uInt8  b10,
sal_uInt8  b11,
sal_uInt8  b12,
sal_uInt8  b13,
sal_uInt8  b14,
sal_uInt8  b15 
)
static

◆ GetSequenceClassIDRepresentation()

uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentation ( std::u16string_view  aClassID)
static

◆ GetStringClassIDRepresentation()

OUString MimeConfigurationHelper::GetStringClassIDRepresentation ( const css::uno::Sequence< sal_Int8 > &  aClassID)
static

Definition at line 51 of file mimeconfighelper.cxx.

References aClassID.

Referenced by GetFactoryNameByClassID(), and GetObjectPropsByClassID().

◆ GetVerbByShortcut()

bool MimeConfigurationHelper::GetVerbByShortcut ( const OUString &  aVerbShortcut,
css::embed::VerbDescriptor &  aDescriptor 
)

Definition at line 259 of file mimeconfighelper.cxx.

References GetVerbsConfiguration(), and u.

Referenced by GetObjPropsFromConfigEntry().

◆ GetVerbsConfiguration()

uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfiguration ( )

Definition at line 155 of file mimeconfighelper.cxx.

References GetConfigurationByPathImpl(), m_aMutex, and m_xVerbsConfig.

Referenced by GetVerbByShortcut().

◆ SearchForFilter()

uno::Sequence< beans::PropertyValue > MimeConfigurationHelper::SearchForFilter ( const css::uno::Reference< css::container::XContainerQuery > &  xFilterQuery,
const css::uno::Sequence< css::beans::NamedValue > &  aSearchRequest,
SfxFilterFlags  nMustFlags,
SfxFilterFlags  nDontFlags 
)
static

◆ UpdateMediaDescriptorWithFilterName() [1/2]

OUString comphelper::MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName ( css::uno::Sequence< css::beans::PropertyValue > &  aMediaDescr,
bool  bIgnoreType 
)

◆ UpdateMediaDescriptorWithFilterName() [2/2]

OUString comphelper::MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName ( css::uno::Sequence< css::beans::PropertyValue > &  aMediaDescr,
css::uno::Sequence< css::beans::NamedValue > &  aObject 
)

Member Data Documentation

◆ m_aMutex

std::mutex comphelper::MimeConfigurationHelper::m_aMutex
private

◆ m_xConfigProvider

css::uno::Reference< css::lang::XMultiServiceFactory > comphelper::MimeConfigurationHelper::m_xConfigProvider
private

Definition at line 43 of file mimeconfighelper.hxx.

Referenced by GetConfigurationByPathImpl().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > comphelper::MimeConfigurationHelper::m_xContext
private

◆ m_xFilterFactory

css::uno::Reference< css::container::XNameAccess > comphelper::MimeConfigurationHelper::m_xFilterFactory
private

Definition at line 49 of file mimeconfighelper.hxx.

Referenced by GetFilterFactory().

◆ m_xMediaTypeConfig

css::uno::Reference< css::container::XNameAccess > comphelper::MimeConfigurationHelper::m_xMediaTypeConfig
private

Definition at line 47 of file mimeconfighelper.hxx.

Referenced by GetMediaTypeConfiguration().

◆ m_xObjectConfig

css::uno::Reference< css::container::XNameAccess > comphelper::MimeConfigurationHelper::m_xObjectConfig
private

Definition at line 45 of file mimeconfighelper.hxx.

Referenced by GetObjConfiguration().

◆ m_xVerbsConfig

css::uno::Reference< css::container::XNameAccess > comphelper::MimeConfigurationHelper::m_xVerbsConfig
private

Definition at line 46 of file mimeconfighelper.hxx.

Referenced by GetVerbsConfiguration().


The documentation for this class was generated from the following files: