LibreOffice Module sw (master)  1
Static Public Member Functions | List of all members
SwIoSystem Class Reference

The following class is a wrapper for basic i/o functions of Writer 3.0. More...

#include <iodetect.hxx>

Static Public Member Functions

static SW_DLLPUBLIC std::shared_ptr< const SfxFilterGetFilterOfFormat (const OUString &rFormat, const SfxFilterContainer *pCnt=nullptr)
 find for an internal format name the corresponding filter entry More...
 
static std::shared_ptr< const SfxFilterGetFileFilter (const OUString &rFileName)
 Detect for the given file which filter should be used. More...
 
static bool IsValidStgFilter (SotStorage &, const SfxFilter &)
 
static bool IsValidStgFilter (const css::uno::Reference< css::embed::XStorage > &rStg, const SfxFilter &rFilter)
 
static bool IsDetectableText (const sal_Char *pBuf, sal_uLong &rLen, rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd)
 
static OUString GetSubStorageName (const SfxFilter &rFltr)
 

Detailed Description

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 names, i.e. the names in front of the equality sign in INSTALL.INI, like SWG or ASCII.

Definition at line 90 of file iodetect.hxx.

Member Function Documentation

std::shared_ptr< const SfxFilter > SwIoSystem::GetFileFilter ( const OUString &  rFileName)
static
std::shared_ptr< const SfxFilter > SwIoSystem::GetFilterOfFormat ( const OUString &  rFormat,
const SfxFilterContainer pCnt = nullptr 
)
static
OUString SwIoSystem::GetSubStorageName ( const SfxFilter rFltr)
static

Definition at line 55 of file iodetect.cxx.

References FILTER_WW8, FILTER_XML, FILTER_XMLV, FILTER_XMLVW, SfxFilter::GetUserData(), and sWW6.

Referenced by IsValidStgFilter().

bool SwIoSystem::IsDetectableText ( const sal_Char pBuf,
sal_uLong rLen,
rtl_TextEncoding *  pCharSet,
bool *  pSwap,
LineEnd pLineEnd 
)
static

Definition at line 241 of file iodetect.cxx.

References GetSystemLineEnd(), LINEEND_CR, LINEEND_CRLF, and LINEEND_LF.

Referenced by SwASCIIParser::ReadChars().

bool SwIoSystem::IsValidStgFilter ( SotStorage rStg,
const SfxFilter rFilter 
)
static
bool SwIoSystem::IsValidStgFilter ( const css::uno::Reference< css::embed::XStorage > &  rStg,
const SfxFilter rFilter 
)
static

Definition at line 95 of file iodetect.cxx.

References SfxFilter::GetFormat(), and SotStorage::GetFormatID().


The documentation for this class was generated from the following files: