LibreOffice Module sfx2 (master) 1
|
#include <fcontnr.hxx>
Static Public Member Functions | |
static SAL_DLLPRIVATE bool | IsFilterInstalled_Impl (const std::shared_ptr< const SfxFilter > &pFilter) |
Private Attributes | |
SfxFilterMatcher_Impl & | m_rImpl |
Friends | |
class | SfxFilterMatcherIter |
Definition at line 69 of file fcontnr.hxx.
SfxFilterMatcher::SfxFilterMatcher | ( | const OUString & | rFact | ) |
Definition at line 242 of file fltfnc.cxx.
SfxFilterMatcher::SfxFilterMatcher | ( | ) |
Definition at line 248 of file fltfnc.cxx.
SfxFilterMatcher::~SfxFilterMatcher | ( | ) |
Definition at line 256 of file fltfnc.cxx.
|
delete |
SfxFilterMatcher::DECL_DLLPRIVATE_LINK | ( | MaybeFileHdl_Impl | , |
OUString * | , | ||
bool | |||
) |
ErrCode SfxFilterMatcher::DetectFilter | ( | SfxMedium & | rMedium, |
std::shared_ptr< const SfxFilter > & | rpFilter | ||
) | const |
Definition at line 483 of file fltfnc.cxx.
References ERRCODE_ABORT, ERRCODE_IO_PENDING, ERRCODE_NONE, and CntUnencodedStringItem::GetValue().
Referenced by sfx2::DocumentInserter::CreateMediumList().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetAnyFilter | ( | SfxFilterFlags | nMustg = SfxFilterFlags::NONE , |
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 299 of file fltfnc.cxx.
References SfxFilterMatcher_Impl::InitForIterating(), m_rImpl, and SfxFilterMatcher_Impl::pList.
Referenced by SfxFilterContainer::GetAnyFilter().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilter4ClipBoardId | ( | SotClipboardFormatId | nId, |
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 699 of file fltfnc.cxx.
References aSeq, GetFilterForProps(), SotExchange::GetFormatName(), and nId.
Referenced by SfxFilter::GetTypeFromStorage(), lcl_getServiceName(), SfxSaveAsTemplateDialog::SaveTemplate(), and SfxObjectShell::SaveTo_Impl().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilter4EA | ( | const OUString & | rEA, |
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 637 of file fltfnc.cxx.
References aSeq, GetFilterForProps(), m_rImpl, and SfxFilterMatcher_Impl::pList.
Referenced by SfxFilterContainer::GetFilter4EA(), GetFilterForProps(), GuessFilterIgnoringContent(), and SfxApplication::OpenDocExec_Impl().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilter4Extension | ( | const OUString & | rExt, |
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 663 of file fltfnc.cxx.
References aSeq, GetFilterForProps(), m_rImpl, WildCard::Matches(), SfxFilterMatcher_Impl::pList, and ToUpper_Impl().
Referenced by SfxFilterContainer::GetFilter4Extension().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilter4FilterName | ( | const OUString & | rName, |
SfxFilterFlags | nMust = SfxFilterFlags::NONE , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 728 of file fltfnc.cxx.
References aName, bFirstRead, CreateFilterArr(), m_rImpl, nIndex, pFilterArr, SfxFilterMatcher_Impl::pList, SfxFilterContainer::ReadSingleFilter_Impl(), SAL_WARN, and u.
Referenced by SfxFilterContainer::GetDefaultFilter_Impl(), SfxFilterContainer::GetFilter4FilterName(), SfxFilter::GetFilterByName(), SfxBaseModel::load(), SfxObjectShell::Save_Impl(), sfx2::FileDialogHelper_Impl::setFilter(), and SfxBaseModel::storeToStorage().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilter4Mime | ( | const OUString & | rMime, |
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 619 of file fltfnc.cxx.
References aSeq, GetFilterForProps(), m_rImpl, and SfxFilterMatcher_Impl::pList.
Referenced by SfxObjectShell::APISaveAs_Impl().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilter4UIName | ( | std::u16string_view | rName, |
SfxFilterFlags | nMust = SfxFilterFlags::NONE , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 709 of file fltfnc.cxx.
References SfxFilterMatcher_Impl::InitForIterating(), m_rImpl, and SfxFilterMatcher_Impl::pList.
Referenced by sfx2::FileDialogHelper_Impl::getCurrentSfxFilter(), sfx2::FileDialogHelper_Impl::getRealFilter(), and IMPL_LINK().
std::shared_ptr< const SfxFilter > SfxFilterMatcher::GetFilterForProps | ( | const css::uno::Sequence< css::beans::NamedValue > & | aSeq, |
SfxFilterFlags | nMust = SfxFilterFlags::NONE , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 559 of file fltfnc.cxx.
References aName, SfxFilterMatcher_Impl::aName, aSeq, GetFilter4EA(), SfxFilter::GetFilterByName(), SfxFilterMatcher_Impl::InitForIterating(), m_rImpl, sName, and u.
Referenced by GetFilter4ClipBoardId(), GetFilter4EA(), GetFilter4Extension(), GetFilter4Mime(), and GuessFilterControlDefaultUI().
ErrCode SfxFilterMatcher::GuessFilter | ( | SfxMedium & | rMedium, |
std::shared_ptr< const SfxFilter > & | rpFilter, | ||
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 341 of file fltfnc.cxx.
References GuessFilterControlDefaultUI().
Referenced by SfxViewFrame::ExecReload_Impl(), and SfxApplication::LoadTemplate().
ErrCode SfxFilterMatcher::GuessFilterControlDefaultUI | ( | SfxMedium & | rMedium, |
std::shared_ptr< const SfxFilter > & | rpFilter, | ||
SfxFilterFlags | nMust = SfxFilterFlags::IMPORT , |
||
SfxFilterFlags | nDont = SFX_FILTER_NOTINSTALLED |
||
) | const |
Definition at line 347 of file fltfnc.cxx.
References SfxFilterMatcher_Impl::aName, createInstance(), ERRCODE_ABORT, ERRCODE_NONE, SfxFilter::GetFilterByName(), GetFilterForProps(), SfxMedium::GetInputStream(), SfxMedium::GetInteractionHandler(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), INetURLObject::GetMainURL(), comphelper::getProcessServiceFactory(), SfxMedium::GetURLObject(), CntUnencodedStringItem::GetValue(), m_rImpl, INetURLObject::NONE, utl::MediaDescriptor::PROP_DOCUMENTSERVICE, utl::MediaDescriptor::PROP_FILTERNAME, utl::MediaDescriptor::PROP_INPUTSTREAM, utl::MediaDescriptor::PROP_INTERACTIONHANDLER, utl::MediaDescriptor::PROP_REFERRER, utl::MediaDescriptor::PROP_TYPENAME, and utl::MediaDescriptor::PROP_URL.
Referenced by GuessFilter().
ErrCode SfxFilterMatcher::GuessFilterIgnoringContent | ( | SfxMedium const & | rMedium, |
std::shared_ptr< const SfxFilter > & | rpFilter | ||
) | const |
Definition at line 313 of file fltfnc.cxx.
References createInstance(), ERRCODE_ABORT, ERRCODE_NONE, GetFilter4EA(), INetURLObject::GetMainURL(), comphelper::getProcessServiceFactory(), SfxMedium::GetURLObject(), SfxFilterMatcher_Impl::InitForIterating(), m_rImpl, and INetURLObject::NONE.
|
static |
Definition at line 440 of file fltfnc.cxx.
References Application::CreateMessageDialog(), RET_YES, and SfxResId().
|
delete |
|
friend |
Definition at line 71 of file fcontnr.hxx.
|
private |
Definition at line 72 of file fcontnr.hxx.
Referenced by GetAnyFilter(), GetFilter4EA(), GetFilter4Extension(), GetFilter4FilterName(), GetFilter4Mime(), GetFilter4UIName(), GetFilterForProps(), GuessFilterControlDefaultUI(), and GuessFilterIgnoringContent().