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

#include <mimeconfighelper.hxx>

Public Member Functions

 MimeConfigurationHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
css::uno::Reference< css::container::XNameAccess > GetConfigurationByPath (const OUString &aPath)
 
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 (const OUString &aDocumentName)
 
OUString GetFactoryNameByStringClassID (const OUString &aStringClassID)
 
OUString GetFactoryNameByClassID (const css::uno::Sequence< sal_Int8 > &aClassID)
 
OUString GetFactoryNameByDocumentName (const OUString &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 (const OUString &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 Attributes

::osl::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 38 of file mimeconfighelper.hxx.

Constructor & Destructor Documentation

MimeConfigurationHelper::MimeConfigurationHelper ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 42 of file mimeconfighelper.cxx.

References m_xContext, and m_xContext.

Member Function Documentation

bool MimeConfigurationHelper::ClassIDsEqual ( const css::uno::Sequence< sal_Int8 > &  aClassID1,
const css::uno::Sequence< sal_Int8 > &  aClassID2 
)
static
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetConfigurationByPath ( const OUString &  aPath)
OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName ( const OUString &  aServName,
sal_Int32  nVersion 
)
OUString MimeConfigurationHelper::GetDocServiceNameFromFilter ( const OUString &  aFilterName)
OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType ( const OUString &  aMediaType)
OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID ( const OUString &  aMediaType)
OUString MimeConfigurationHelper::GetExportFilterFromImportFilter ( const OUString &  aImportFilterName)
OUString MimeConfigurationHelper::GetFactoryNameByClassID ( const css::uno::Sequence< sal_Int8 > &  aClassID)
OUString MimeConfigurationHelper::GetFactoryNameByDocumentName ( const OUString &  aDocName)

Definition at line 510 of file mimeconfighelper.cxx.

References GetObjConfiguration().

Referenced by GetFactoryNameByMediaType().

OUString MimeConfigurationHelper::GetFactoryNameByMediaType ( const OUString &  aMediaType)
OUString MimeConfigurationHelper::GetFactoryNameByStringClassID ( const OUString &  aStringClassID)
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFactory ( )
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeConfiguration ( )
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfiguration ( )
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClassID ( const css::uno::Sequence< sal_Int8 > &  aClassID)
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocumentName ( const OUString &  aDocumentName)
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilter ( const OUString &  aFilterName)
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMediaType ( const OUString &  aMediaType)
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByStringClassID ( const OUString &  aStringClassID)
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfigEntry ( const css::uno::Sequence< sal_Int8 > &  aClassID,
const css::uno::Reference< css::container::XNameAccess > &  xObjectProps 
)
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
uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentation ( const OUString &  aClassID)
static
OUString MimeConfigurationHelper::GetStringClassIDRepresentation ( const css::uno::Sequence< sal_Int8 > &  aClassID)
static

Definition at line 50 of file mimeconfighelper.cxx.

Referenced by GetFactoryNameByClassID(), and GetObjectPropsByClassID().

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

Definition at line 259 of file mimeconfighelper.cxx.

References GetVerbsConfiguration().

Referenced by GetObjPropsFromConfigEntry().

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

Definition at line 155 of file mimeconfighelper.cxx.

References GetConfigurationByPath(), m_aMutex, and m_xVerbsConfig.

Referenced by GetVerbByShortcut().

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
OUString comphelper::MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName ( css::uno::Sequence< css::beans::PropertyValue > &  aMediaDescr,
bool  bIgnoreType 
)
OUString comphelper::MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName ( css::uno::Sequence< css::beans::PropertyValue > &  aMediaDescr,
css::uno::Sequence< css::beans::NamedValue > &  aObject 
)

Member Data Documentation

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

Definition at line 42 of file mimeconfighelper.hxx.

Referenced by GetConfigurationByPath().

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

Definition at line 48 of file mimeconfighelper.hxx.

Referenced by GetFilterFactory().

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

Definition at line 46 of file mimeconfighelper.hxx.

Referenced by GetMediaTypeConfiguration().

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

Definition at line 44 of file mimeconfighelper.hxx.

Referenced by GetObjConfiguration().

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

Definition at line 45 of file mimeconfighelper.hxx.

Referenced by GetVerbsConfiguration().


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