summaryrefslogtreecommitdiff
path: root/sw/inc/iodetect.hxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-04-28 18:31:24 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2014-05-01 17:03:48 +0000
commit4b7bdef4b1d1e4ff45a8816c038df38ce7995b3d (patch)
treecb6d82194ec4727cda762406281075a9dcb2caf5 /sw/inc/iodetect.hxx
parentdddd9b41f59fa9857159cef70add9e2343dd1ab1 (diff)
sw: iodetect is not a part of the type detector anymore
and remove now unused IsFileFilter method. Change-Id: I6b4559fdf6442b6baa869b2949142f8fc8c52f30 Reviewed-on: https://gerrit.libreoffice.org/9223 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/inc/iodetect.hxx')
-rw-r--r--sw/inc/iodetect.hxx21
1 files changed, 6 insertions, 15 deletions
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx
index e3e33cdf1d39..c3ed1e2d63b9 100644
--- a/sw/inc/iodetect.hxx
+++ b/sw/inc/iodetect.hxx
@@ -25,7 +25,7 @@
#include <sfx2/docfilt.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/fcontnr.hxx>
-#include <swddllapi.h>
+#include <swdllapi.h>
#define FILTER_RTF "RTF" ///< RTF filter
#define sRtfWH "WH_RTF"
@@ -76,7 +76,7 @@ enum ReaderWriterEnum {
MAXFILTER
};
-extern SWD_DLLPUBLIC SwIoDetect aFilterDetect[];
+extern SwIoDetect aFilterDetect[];
/** The following class is a wrapper for basic i/o functions of Writer 3.0.
Everything is static. All filter names mentioned are Writer-internal
@@ -87,33 +87,24 @@ class SwIoSystem
{
public:
/// find for an internal format name the corresponding filter entry
- SWD_DLLPUBLIC static const SfxFilter*
+ SW_DLLPUBLIC static const SfxFilter*
GetFilterOfFormat( const OUString& rFormat,
const SfxFilterContainer* pCnt = 0 );
/** Detect for the given file which filter should be used. The filter name
is returned. If no filter could be found, the name of the ASCII filter
is returned! */
- SWD_DLLPUBLIC static const SfxFilter*
- GetFileFilter( const OUString& rFileName,
- const OUString& rPrefFltName,
- SfxMedium* pMedium = 0 );
-
- /** Detect whether the given file is in the given format.
- For now, only our own filters are supported! */
- static bool IsFileFilter(SfxMedium& rMedium, const OUString& rFmtName);
+ static const SfxFilter* GetFileFilter( const OUString& rFileName, const OUString& rPrefFltName, SfxMedium* pMedium = 0 );
static bool IsValidStgFilter( SotStorage& , const SfxFilter& );
static bool IsValidStgFilter( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rStg, const SfxFilter& rFilter);
- SWD_DLLPUBLIC static bool
- IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen,
+ static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen,
rtl_TextEncoding *pCharSet=0, bool *pSwap=0, LineEnd *pLineEnd=0, bool bEncodedFilter = false );
static const SfxFilter* GetTextFilter( const sal_Char* pBuf, sal_uLong nLen );
- SWD_DLLPUBLIC static const OUString
- GetSubStorageName( const SfxFilter& rFltr );
+ static const OUString GetSubStorageName( const SfxFilter& rFltr );
};
#endif