20#ifndef INCLUDED_SW_INC_IODETECT_HXX
21#define INCLUDED_SW_INC_IODETECT_HXX
26#include <rtl/ustring.hxx>
33inline constexpr OUStringLiteral
sRtfWH =
u"WH_RTF";
39#define FILTER_XMLV "CXMLV"
40#define FILTER_XMLVW "CXMLVWEB"
42inline constexpr OUStringLiteral
sHTML =
u"HTML";
43inline constexpr OUStringLiteral
sWW5 =
u"WW6";
44inline constexpr OUStringLiteral
sWW6 =
u"CWW6";
46inline constexpr OUStringLiteral
sSWRITER =
u"swriter";
104 static std::shared_ptr<const SfxFilter>
GetFileFilter(
const OUString& rFileName);
112 rtl_TextEncoding *pCharSet,
bool *pSwap,
LineEnd *pLineEnd,
bool *pBom);
The following class is a wrapper for basic i/o functions of Writer 3.0.
static std::shared_ptr< const SfxFilter > GetFileFilter(const OUString &rFileName)
Detect for the given file which filter should be used.
static bool IsDetectableText(const char *pBuf, sal_uLong &rLen, rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool *pBom)
static OUString GetSubStorageName(const SfxFilter &rFltr)
static SW_DLLPUBLIC std::shared_ptr< const SfxFilter > GetFilterOfFormat(std::u16string_view rFormat, const SfxFilterContainer *pCnt=nullptr)
find for an internal format name the corresponding filter entry
static bool IsValidStgFilter(SotStorage &, const SfxFilter &)
static SW_DLLPUBLIC rtl_TextEncoding GetTextEncoding(SvStream &)
constexpr OUStringLiteral FILTER_WW8
WinWord 97 filter.
constexpr OUStringLiteral FILTER_TEXT_DLG
text filter with encoding dialog
constexpr OUStringLiteral sRtfWH
constexpr OUStringLiteral FILTER_RTF
RTF filter.
SwIoDetect aFilterDetect[]
constexpr OUStringLiteral FILTER_XML
XML filter.
constexpr OUStringLiteral FILTER_BAS
StarBasic (identical to ANSI)
constexpr OUStringLiteral sWW5
constexpr OUStringLiteral FILTER_DOCX
constexpr OUStringLiteral sSWRITERWEB
SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestPDFExportFODT(SvStream &rStream)
SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODT(SvStream &rStream)
constexpr OUStringLiteral sWW6
constexpr OUStringLiteral sSWRITER
constexpr OUStringLiteral sHTML
constexpr OUStringLiteral FILTER_TEXT
text filter with default codeset
constexpr bool starts_with(std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept
bool IsFilter(std::u16string_view rNm) const