19#ifndef INCLUDED_SFX2_DOCFILT_HXX
20#define INCLUDED_SFX2_DOCFILT_HXX
23#include <rtl/ustring.hxx>
64 SfxFilter( OUString aProvider, OUString aFilterName );
67 std::u16string_view rWildCard,
73 OUString aServiceName,
74 bool bEnabled =
true );
78 bool IsOwnFormat()
const {
return bool(nFormatType & SfxFilterFlags::OWN); }
81 bool GetGpgEncryption()
const {
return bool(nFormatType & SfxFilterFlags::GPGENCRYPTION); }
84 bool IsAlienFormat()
const {
return bool(nFormatType & SfxFilterFlags::ALIEN); }
86 bool IsExoticFormat()
const {
return bool(nFormatType & SfxFilterFlags::EXOTIC); }
87 bool CanImport()
const {
return bool(nFormatType & SfxFilterFlags::IMPORT); }
88 bool CanExport()
const {
return bool(nFormatType & SfxFilterFlags::EXPORT); }
92 const OUString&
GetName()
const {
return maFilterName; }
105 OUString GetSuffixes()
const;
106 OUString GetDefaultExtension()
const;
110 static std::shared_ptr<const SfxFilter> GetDefaultFilter( std::u16string_view rName );
111 static std::shared_ptr<const SfxFilter> GetFilterByName(
const OUString& rName );
112 static std::shared_ptr<const SfxFilter> GetDefaultFilterFromFactory(
const OUString& rServiceName );
114 static OUString GetTypeFromStorage(
const SotStorage& rStg );
119 const css::uno::Reference<css::embed::XStorage>& xStorage );
const sal_uInt16 nVersion
const OUString & GetUserData() const
const OUString & GetMimeType() const
SfxFilterFlags GetFilterFlags() const
const OUString & GetFilterName() const
OUString aDefaultTemplate
SfxFilterFlags nFormatType
bool IsExoticFormat() const
an unusual/legacy file to be loading
void SetDefaultTemplate(const OUString &rStr)
bool GetSupportsSigning() const
If the filter supports digital signatures.
bool IsAllowedAsTemplate() const
bool IsAlienFormat() const
not our built-in format
const OUString & GetProviderName() const
SotClipboardFormatId GetFormat() const
OUString maProvider
Custom provider name in case the filter is provided via external libraries.
const OUString & GetUIName() const
bool GetGpgEncryption() const
const WildCard & GetWildcard() const
void SetVersion(sal_Int32 nVersionP)
bool IsOwnTemplateFormat() const
SotClipboardFormatId lFormat
sal_Int32 GetVersion() const
void SetUIName(const OUString &rName)
const OUString & GetTypeName() const
static OUString GetTypeFromStorage(const css::uno::Reference< css::embed::XStorage > &xStorage)
const OUString & GetName() const
const OUString & GetRealTypeName() const
const OUString & GetServiceName() const
const OUString & GetDefaultTemplate() const
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper) override
Implementation of the interface com.sun.star.rdf.XDocumentMetadataAccess.
const sal_Unicode *const aMimeType[]