summaryrefslogtreecommitdiff
path: root/sw/inc/iodetect.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/iodetect.hxx')
-rw-r--r--sw/inc/iodetect.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx
index 9069b01ffda0..ce24e0800134 100644
--- a/sw/inc/iodetect.hxx
+++ b/sw/inc/iodetect.hxx
@@ -28,6 +28,8 @@
#include <tools/solar.h>
#include "swdllapi.h"
+#define DETECT_ENCODING_BUFFER_SIZE 4096
+
#define FILTER_RTF "RTF" ///< RTF filter
#define sRtfWH "WH_RTF"
#define FILTER_TEXT u"TEXT" ///< text filter with default codeset
@@ -105,6 +107,8 @@ public:
static bool IsValidStgFilter( SotStorage& , const SfxFilter& );
static bool IsValidStgFilter( const css::uno::Reference < css::embed::XStorage >& rStg, const SfxFilter& rFilter);
+ // tdf#106899 - wrapper around IsDetectableText to retrieve the text encoding for a given stream
+ static rtl_TextEncoding GetTextEncoding(SvStream&);
static bool IsDetectableText( const char* pBuf, sal_uLong &rLen,
rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool *pBom);