19#ifndef INCLUDED_SFX2_FCONTNR_HXX
20#define INCLUDED_SFX2_FCONTNR_HXX
25#include <rtl/ustring.hxx>
45 std::unique_ptr<SfxFilterContainer_Impl>
pImpl;
52 OUString
const &
GetName()
const;
54 std::shared_ptr<const SfxFilter> GetAnyFilter(
SfxFilterFlags nMust = SfxFilterFlags::IMPORT,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
55 std::shared_ptr<const SfxFilter> GetFilter4EA(
const OUString& rEA,
SfxFilterFlags nMust = SfxFilterFlags::IMPORT,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
56 std::shared_ptr<const SfxFilter> GetFilter4Extension(
const OUString& rExt,
SfxFilterFlags nMust = SfxFilterFlags::IMPORT,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
57 std::shared_ptr<const SfxFilter> GetFilter4FilterName(
const OUString& rName,
SfxFilterFlags nMust = SfxFilterFlags::NONE,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
59 SAL_DLLPRIVATE
static void ReadFilters_Impl(
bool bUpdate=
false );
60 SAL_DLLPRIVATE
static void ReadSingleFilter_Impl(
const OUString& rName,
61 const css::uno::Reference< css::container::XNameAccess >& xTypeCFG,
62 const css::uno::Reference< css::container::XNameAccess >& xFilterCFG,
64 SAL_DLLPRIVATE
static std::shared_ptr<const SfxFilter> GetDefaultFilter_Impl( std::u16string_view );
80 SAL_DLLPRIVATE
static bool IsFilterInstalled_Impl(
const std::shared_ptr<const SfxFilter>& pFilter );
83 ErrCode GuessFilterIgnoringContent(
SfxMedium const & rMedium, std::shared_ptr<const SfxFilter>& )
const;
86 ErrCode DetectFilter(
SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& )
const;
88 std::shared_ptr<const SfxFilter> GetFilter4Mime(
const OUString& rMime,
SfxFilterFlags nMust = SfxFilterFlags::IMPORT,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED)
const;
90 std::shared_ptr<const SfxFilter> GetFilter4EA(
const OUString& rEA,
SfxFilterFlags nMust = SfxFilterFlags::IMPORT,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
91 std::shared_ptr<const SfxFilter> GetFilter4Extension(
const OUString& rExt,
SfxFilterFlags nMust = SfxFilterFlags::IMPORT,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
92 std::shared_ptr<const SfxFilter> GetFilter4FilterName(
const OUString& rName,
SfxFilterFlags nMust = SfxFilterFlags::NONE,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
93 std::shared_ptr<const SfxFilter> GetFilter4UIName( std::u16string_view rName,
SfxFilterFlags nMust = SfxFilterFlags::NONE,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
94 std::shared_ptr<const SfxFilter> GetFilterForProps(
const css::uno::Sequence < css::beans::NamedValue >&
aSeq,
SfxFilterFlags nMust = SfxFilterFlags::NONE,
SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED )
const;
95 std::shared_ptr<const SfxFilter> GetAnyFilter(
SfxFilterFlags nMustg=SfxFilterFlags::NONE,
SfxFilterFlags nDont=SFX_FILTER_NOTINSTALLED )
const;
106 SAL_DLLPRIVATE std::shared_ptr<const SfxFilter> Find_Impl();
112 std::shared_ptr<const SfxFilter>
First();
113 std::shared_ptr<const SfxFilter>
Next();
std::unique_ptr< SfxFilterContainer_Impl > pImpl
const SfxFilterMatcher_Impl & m_rMatch
SfxFilterMatcherIter & operator=(const SfxFilterMatcherIter &)=delete
SfxFilterMatcherIter(const SfxFilterMatcherIter &)=delete
SfxFilterMatcher(const SfxFilterMatcher &)=delete
SfxFilterMatcher_Impl & m_rImpl
SfxFilterMatcher & operator=(const SfxFilterMatcher &)=delete
DECL_DLLPRIVATE_LINK(MaybeFileHdl_Impl, OUString *, bool)
virtual OUString GetName() const override
Sequence< sal_Int8 > aSeq