LibreOffice Module comphelper (master) 1
|
#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_Int8 > | GetSequenceClassIDRepresentation (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_Int8 > | 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) |
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 |
Definition at line 39 of file mimeconfighelper.hxx.
MimeConfigurationHelper::MimeConfigurationHelper | ( | css::uno::Reference< css::uno::XComponentContext > | xContext | ) |
Definition at line 43 of file mimeconfighelper.cxx.
References m_xContext, and m_xContext.
|
static |
Definition at line 879 of file mimeconfighelper.cxx.
Referenced by GetFactoryNameByStringClassID(), GetObjectPropsByClassID(), and GetObjectPropsByStringClassID().
|
private |
Definition at line 118 of file mimeconfighelper.cxx.
References comphelper::InitAnyPropertySequence(), m_xConfigProvider, and m_xContext.
Referenced by GetMediaTypeConfiguration(), GetObjConfiguration(), and GetVerbsConfiguration().
OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName | ( | const OUString & | aServName, |
sal_Int32 | nVersion | ||
) |
Definition at line 705 of file mimeconfighelper.cxx.
References EXPORT, GetFilterFactory(), IMPORT, NONE, nVersion, OWN, PREFERED, sName, SOFFICE_FILEFORMAT_60, and TEMPLATEPATH.
OUString MimeConfigurationHelper::GetDocServiceNameFromFilter | ( | const OUString & | aFilterName | ) |
Definition at line 192 of file mimeconfighelper.cxx.
References GetFilterFactory(), and uno::Any::Value.
Referenced by GetDocServiceNameFromMediaType(), and GetObjectPropsByFilter().
OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType | ( | const OUString & | aMediaType | ) |
Definition at line 218 of file mimeconfighelper.cxx.
References aSeq, GetDocServiceNameFromFilter(), and m_xContext.
Referenced by GetFactoryNameByMediaType(), and GetObjectPropsByMediaType().
OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID | ( | const OUString & | aMediaType | ) |
Definition at line 341 of file mimeconfighelper.cxx.
References GetMediaTypeConfiguration().
Referenced by GetFactoryNameByMediaType(), and GetObjectPropsByMediaType().
OUString MimeConfigurationHelper::GetExportFilterFromImportFilter | ( | const OUString & | aImportFilterName | ) |
Definition at line 772 of file mimeconfighelper.cxx.
References EXPORT, GetFilterFactory(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), IMPORT, INTERNAL, and SearchForFilter().
OUString MimeConfigurationHelper::GetFactoryNameByClassID | ( | const css::uno::Sequence< sal_Int8 > & | aClassID | ) |
Definition at line 481 of file mimeconfighelper.cxx.
References aClassID, GetFactoryNameByStringClassID(), and GetStringClassIDRepresentation().
OUString MimeConfigurationHelper::GetFactoryNameByDocumentName | ( | std::u16string_view | aDocName | ) |
Definition at line 512 of file mimeconfighelper.cxx.
References GetObjConfiguration().
Referenced by GetFactoryNameByMediaType().
OUString MimeConfigurationHelper::GetFactoryNameByMediaType | ( | const OUString & | aMediaType | ) |
Definition at line 547 of file mimeconfighelper.cxx.
References GetDocServiceNameFromMediaType(), GetExplicitlyRegisteredObjClassID(), GetFactoryNameByDocumentName(), and GetFactoryNameByStringClassID().
OUString MimeConfigurationHelper::GetFactoryNameByStringClassID | ( | const OUString & | aStringClassID | ) |
Definition at line 487 of file mimeconfighelper.cxx.
References aClassID, ClassIDsEqual(), GetObjConfiguration(), GetSequenceClassID(), GetSequenceClassIDRepresentation(), and SO3_DUMMY_CLASSID.
Referenced by GetFactoryNameByClassID(), and GetFactoryNameByMediaType().
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFactory | ( | ) |
Definition at line 179 of file mimeconfighelper.cxx.
References m_aMutex, m_xContext, and m_xFilterFactory.
Referenced by GetDefaultFilterFromServiceName(), GetDocServiceNameFromFilter(), and GetExportFilterFromImportFilter().
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeConfiguration | ( | ) |
Definition at line 167 of file mimeconfighelper.cxx.
References GetConfigurationByPathImpl(), m_aMutex, and m_xMediaTypeConfig.
Referenced by GetExplicitlyRegisteredObjClassID().
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfiguration | ( | ) |
Definition at line 143 of file mimeconfighelper.cxx.
References GetConfigurationByPathImpl(), m_aMutex, and m_xObjectConfig.
Referenced by GetFactoryNameByDocumentName(), GetFactoryNameByStringClassID(), GetObjectPropsByClassID(), GetObjectPropsByDocumentName(), and GetObjectPropsByStringClassID().
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClassID | ( | const css::uno::Sequence< sal_Int8 > & | aClassID | ) |
Definition at line 393 of file mimeconfighelper.cxx.
References aClassID, ClassIDsEqual(), GetObjConfiguration(), GetObjPropsFromConfigEntry(), GetSequenceClassID(), GetStringClassIDRepresentation(), and SO3_DUMMY_CLASSID.
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocumentName | ( | std::u16string_view | aDocumentName | ) |
Definition at line 448 of file mimeconfighelper.cxx.
References GetObjConfiguration(), GetObjPropsFromConfigEntry(), and GetSequenceClassIDRepresentation().
Referenced by GetObjectPropsByFilter(), and GetObjectPropsByMediaType().
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilter | ( | const OUString & | aFilterName | ) |
Definition at line 438 of file mimeconfighelper.cxx.
References GetDocServiceNameFromFilter(), and GetObjectPropsByDocumentName().
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMediaType | ( | const OUString & | aMediaType | ) |
Definition at line 423 of file mimeconfighelper.cxx.
References GetDocServiceNameFromMediaType(), GetExplicitlyRegisteredObjClassID(), GetObjectPropsByDocumentName(), and GetObjectPropsByStringClassID().
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByStringClassID | ( | const OUString & | aStringClassID | ) |
Definition at line 360 of file mimeconfighelper.cxx.
References aClassID, ClassIDsEqual(), GetObjConfiguration(), GetObjPropsFromConfigEntry(), GetSequenceClassID(), GetSequenceClassIDRepresentation(), and SO3_DUMMY_CLASSID.
Referenced by GetObjectPropsByMediaType().
uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfigEntry | ( | const css::uno::Sequence< sal_Int8 > & | aClassID, |
const css::uno::Reference< css::container::XNameAccess > & | xObjectProps | ||
) |
Definition at line 293 of file mimeconfighelper.cxx.
References aClassID, and GetVerbByShortcut().
Referenced by GetObjectPropsByClassID(), GetObjectPropsByDocumentName(), and GetObjectPropsByStringClassID().
|
static |
Definition at line 885 of file mimeconfighelper.cxx.
Referenced by GetFactoryNameByStringClassID(), GetObjectPropsByClassID(), and GetObjectPropsByStringClassID().
|
static |
Definition at line 85 of file mimeconfighelper.cxx.
References aClassID, GetDigit_Impl(), nLength, and OUStringToOString().
Referenced by GetFactoryNameByStringClassID(), GetObjectPropsByDocumentName(), and GetObjectPropsByStringClassID().
|
static |
Definition at line 51 of file mimeconfighelper.cxx.
References aClassID.
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(), and u.
Referenced by GetObjPropsFromConfigEntry().
uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfiguration | ( | ) |
Definition at line 155 of file mimeconfighelper.cxx.
References GetConfigurationByPathImpl(), m_aMutex, and m_xVerbsConfig.
Referenced by GetVerbByShortcut().
|
static |
Definition at line 839 of file mimeconfighelper.cxx.
References DEFAULT, and comphelper::SequenceAsHashMap::getUnpackedValueOrDefault().
Referenced by GetExportFilterFromImportFilter().
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 | ||
) |
|
private |
Definition at line 41 of file mimeconfighelper.hxx.
Referenced by GetFilterFactory(), GetMediaTypeConfiguration(), GetObjConfiguration(), and GetVerbsConfiguration().
|
private |
Definition at line 43 of file mimeconfighelper.hxx.
Referenced by GetConfigurationByPathImpl().
|
private |
Definition at line 42 of file mimeconfighelper.hxx.
Referenced by GetConfigurationByPathImpl(), GetDocServiceNameFromMediaType(), GetFilterFactory(), and MimeConfigurationHelper().
|
private |
Definition at line 49 of file mimeconfighelper.hxx.
Referenced by GetFilterFactory().
|
private |
Definition at line 47 of file mimeconfighelper.hxx.
Referenced by GetMediaTypeConfiguration().
|
private |
Definition at line 45 of file mimeconfighelper.hxx.
Referenced by GetObjConfiguration().
|
private |
Definition at line 46 of file mimeconfighelper.hxx.
Referenced by GetVerbsConfiguration().