LibreOffice Module sfx2 (master) 1
|
#include <fcontnr.hxx>
Public Member Functions | |
SfxFilterContainer (const OUString &rName) | |
~SfxFilterContainer () | |
OUString const & | GetName () const |
std::shared_ptr< const SfxFilter > | GetAnyFilter (SfxFilterFlags nMust=SfxFilterFlags::IMPORT, SfxFilterFlags nDont=SFX_FILTER_NOTINSTALLED) const |
std::shared_ptr< const SfxFilter > | GetFilter4EA (const OUString &rEA, SfxFilterFlags nMust=SfxFilterFlags::IMPORT, SfxFilterFlags nDont=SFX_FILTER_NOTINSTALLED) const |
std::shared_ptr< const SfxFilter > | GetFilter4Extension (const OUString &rExt, SfxFilterFlags nMust=SfxFilterFlags::IMPORT, SfxFilterFlags nDont=SFX_FILTER_NOTINSTALLED) const |
std::shared_ptr< const SfxFilter > | GetFilter4FilterName (const OUString &rName, SfxFilterFlags nMust=SfxFilterFlags::NONE, SfxFilterFlags nDont=SFX_FILTER_NOTINSTALLED) const |
Static Public Member Functions | |
static SAL_DLLPRIVATE void | ReadFilters_Impl (bool bUpdate=false) |
static SAL_DLLPRIVATE void | ReadSingleFilter_Impl (const OUString &rName, const css::uno::Reference< css::container::XNameAccess > &xTypeCFG, const css::uno::Reference< css::container::XNameAccess > &xFilterCFG, bool bUpdate) |
static SAL_DLLPRIVATE std::shared_ptr< const SfxFilter > | GetDefaultFilter_Impl (std::u16string_view) |
Private Attributes | |
std::unique_ptr< SfxFilterContainer_Impl > | pImpl |
Definition at line 43 of file fcontnr.hxx.
SfxFilterContainer::SfxFilterContainer | ( | const OUString & | rName | ) |
Definition at line 125 of file fltfnc.cxx.
SfxFilterContainer::~SfxFilterContainer | ( | ) |
Definition at line 131 of file fltfnc.cxx.
std::shared_ptr< const SfxFilter > SfxFilterContainer::GetAnyFilter | ( | SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 118 of file fltfnc.cxx.
References SfxFilterMatcher::GetAnyFilter(), and pImpl.
Referenced by SfxObjectShell::SaveTo_Impl().
|
static |
Definition at line 141 of file fltfnc.cxx.
References bFirstRead, SvtModuleOptions::ClassifyFactoryByServiceName(), SvtModuleOptions::ClassifyFactoryByShortName(), SvtModuleOptions::GetFactoryDefaultFilter(), SvtModuleOptions::GetFactoryName(), SfxFilterMatcher::GetFilter4FilterName(), pFilterArr, ReadFilters_Impl(), sServiceName, and SvtModuleOptions::UNKNOWN_FACTORY.
Referenced by sfx2::appendFiltersForSave(), and SfxFilter::GetDefaultFilter().
std::shared_ptr< const SfxFilter > SfxFilterContainer::GetFilter4EA | ( | const OUString & | rEA, |
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 100 of file fltfnc.cxx.
References SfxFilterMatcher::GetFilter4EA(), and pImpl.
std::shared_ptr< const SfxFilter > SfxFilterContainer::GetFilter4Extension | ( | const OUString & | rExt, |
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 106 of file fltfnc.cxx.
References SfxFilterMatcher::GetFilter4Extension(), and pImpl.
std::shared_ptr< const SfxFilter > SfxFilterContainer::GetFilter4FilterName | ( | const OUString & | rName, |
SfxFilterFlags | nMust = SfxFilterFlags::NONE , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 112 of file fltfnc.cxx.
References SfxFilterMatcher::GetFilter4FilterName(), and pImpl.
Referenced by SfxBaseModel::attachResource(), and SfxObjectShell::CommonSaveAs_Impl().
OUString const & SfxFilterContainer::GetName | ( | ) | const |
Definition at line 136 of file fltfnc.cxx.
References pImpl.
|
static |
Definition at line 1047 of file fltfnc.cxx.
References bFirstRead, CreateFilterArr(), SfxFilter::nFormatType, pFilterArr, ReadSingleFilter_Impl(), SAL_WARN, and SFX_FILTER_NOTINSTALLED.
Referenced by GetDefaultFilter_Impl(), SfxFilterMatcher_Impl::InitForIterating(), and SfxFilterListener::refreshed().
|
static |
Definition at line 859 of file fltfnc.cxx.
References SfxFilter::aMimeType, SfxFilter::aServiceName, SfxFilter::aTypeName, SfxFilter::aUserData, SfxFilter::aWildCard, SfxFilter::GetFilterByName(), implc_convertStringlistToString(), SfxFilter::lFormat, SfxFilter::maFilterName, SfxFilter::mbEnabled, SfxFilter::nFormatType, pFilterArr, SotExchange::RegisterFormatName(), SAL_WARN, SfxFilter::SetDefaultTemplate(), SfxFilter::SetUIName(), SfxFilter::SetVersion(), sServiceName, sType, and u.
Referenced by SfxFilterMatcher::GetFilter4FilterName(), and ReadFilters_Impl().
|
private |
Definition at line 45 of file fcontnr.hxx.
Referenced by GetAnyFilter(), GetFilter4EA(), GetFilter4Extension(), GetFilter4FilterName(), and GetName().