LibreOffice Module sw (master) 1
Classes | Namespaces | Macros | Enumerations | Functions | Variables
iodetect.hxx File Reference
#include <memory>
#include <string_view>
#include <o3tl/string_view.hxx>
#include <rtl/ustring.hxx>
#include <tools/lineend.hxx>
#include <utility>
#include <tools/solar.h>
#include "swdllapi.h"
Include dependency graph for iodetect.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::embed
 
namespace  com::sun::star::uno
 

Macros

#define FILTER_XMLV   "CXMLV"
 XML filter. More...
 
#define FILTER_XMLVW   "CXMLVWEB"
 XML filter. More...
 

Enumerations

enum  ReaderWriterEnum {
  READER_WRITER_RTF ,
  READER_WRITER_BAS ,
  READER_WRITER_WW6 ,
  READER_WRITER_WW8 ,
  READER_WRITER_RTF_WH ,
  READER_WRITER_HTML ,
  READER_WRITER_WW5 ,
  READER_WRITER_XML ,
  READER_WRITER_TEXT_DLG ,
  READER_WRITER_TEXT ,
  READER_WRITER_DOCX ,
  MAXFILTER
}
 

Functions

SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODT (SvStream &rStream)
 
SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestPDFExportFODT (SvStream &rStream)
 

Variables

constexpr OUStringLiteral FILTER_RTF = u"RTF"
 RTF filter. More...
 
constexpr OUStringLiteral sRtfWH = u"WH_RTF"
 
constexpr OUStringLiteral FILTER_TEXT = u"TEXT"
 text filter with default codeset More...
 
constexpr OUStringLiteral FILTER_BAS = u"BAS"
 StarBasic (identical to ANSI) More...
 
constexpr OUStringLiteral FILTER_WW8 = u"CWW8"
 WinWord 97 filter. More...
 
constexpr OUStringLiteral FILTER_TEXT_DLG = u"TEXT_DLG"
 text filter with encoding dialog More...
 
constexpr OUStringLiteral FILTER_XML = u"CXML"
 XML filter. More...
 
constexpr OUStringLiteral FILTER_DOCX = u"OXML"
 
constexpr OUStringLiteral sHTML = u"HTML"
 
constexpr OUStringLiteral sWW5 = u"WW6"
 
constexpr OUStringLiteral sWW6 = u"CWW6"
 
constexpr OUStringLiteral sSWRITER = u"swriter"
 
constexpr OUStringLiteral sSWRITERWEB = u"swriter/web"
 
SwIoDetect aFilterDetect []
 

Macro Definition Documentation

◆ FILTER_XMLV

#define FILTER_XMLV   "CXMLV"

XML filter.

Definition at line 39 of file iodetect.hxx.

◆ FILTER_XMLVW

#define FILTER_XMLVW   "CXMLVWEB"

XML filter.

Definition at line 40 of file iodetect.hxx.

Enumeration Type Documentation

◆ ReaderWriterEnum

Enumerator
READER_WRITER_RTF 
READER_WRITER_BAS 
READER_WRITER_WW6 
READER_WRITER_WW8 
READER_WRITER_RTF_WH 
READER_WRITER_HTML 
READER_WRITER_WW5 
READER_WRITER_XML 
READER_WRITER_TEXT_DLG 
READER_WRITER_TEXT 
READER_WRITER_DOCX 
MAXFILTER 

Definition at line 71 of file iodetect.hxx.

Function Documentation

◆ TestImportFODT()

SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODT ( SvStream rStream)

◆ TestPDFExportFODT()

SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestPDFExportFODT ( SvStream rStream)

Variable Documentation

◆ aFilterDetect

SwIoDetect aFilterDetect[]
extern

Definition at line 40 of file iodetect.cxx.

Referenced by SwReaderWriter::GetReader(), and SwReaderWriter::GetWriter().

◆ FILTER_BAS

constexpr OUStringLiteral FILTER_BAS = u"BAS"
inlineconstexpr

StarBasic (identical to ANSI)

Definition at line 35 of file iodetect.hxx.

◆ FILTER_DOCX

constexpr OUStringLiteral FILTER_DOCX = u"OXML"
inlineconstexpr

Definition at line 41 of file iodetect.hxx.

Referenced by IMPL_LINK(), and SwReader::Read().

◆ FILTER_RTF

constexpr OUStringLiteral FILTER_RTF = u"RTF"
inlineconstexpr

RTF filter.

Definition at line 32 of file iodetect.hxx.

Referenced by SwReader::Read().

◆ FILTER_TEXT

constexpr OUStringLiteral FILTER_TEXT = u"TEXT"
inlineconstexpr

text filter with default codeset

Definition at line 34 of file iodetect.hxx.

Referenced by SwIoSystem::GetFileFilter(), and SwEditShell::GetSelectedText().

◆ FILTER_TEXT_DLG

constexpr OUStringLiteral FILTER_TEXT_DLG = u"TEXT_DLG"
inlineconstexpr

text filter with encoding dialog

Definition at line 37 of file iodetect.hxx.

Referenced by SwDocShell::ConvertTo(), SwUnoCursorHelper::GetTextFromPam(), and SwDocShell::StartConvertFrom().

◆ FILTER_WW8

constexpr OUStringLiteral FILTER_WW8 = u"CWW8"
inlineconstexpr

◆ FILTER_XML

constexpr OUStringLiteral FILTER_XML = u"CXML"
inlineconstexpr

◆ sHTML

constexpr OUStringLiteral sHTML = u"HTML"
inlineconstexpr

Definition at line 42 of file iodetect.hxx.

◆ sRtfWH

constexpr OUStringLiteral sRtfWH = u"WH_RTF"
inlineconstexpr

Definition at line 33 of file iodetect.hxx.

Referenced by SwReader::Read().

◆ sSWRITER

constexpr OUStringLiteral sSWRITER = u"swriter"
inlineconstexpr

Definition at line 46 of file iodetect.hxx.

Referenced by SwIoSystem::GetFileFilter(), and SwIoSystem::GetFilterOfFormat().

◆ sSWRITERWEB

constexpr OUStringLiteral sSWRITERWEB = u"swriter/web"
inlineconstexpr

Definition at line 47 of file iodetect.hxx.

Referenced by SwIoSystem::GetFileFilter(), and SwIoSystem::GetFilterOfFormat().

◆ sWW5

constexpr OUStringLiteral sWW5 = u"WW6"
inlineconstexpr

Definition at line 43 of file iodetect.hxx.

◆ sWW6

constexpr OUStringLiteral sWW6 = u"CWW6"
inlineconstexpr

Definition at line 44 of file iodetect.hxx.

Referenced by SwIoSystem::GetSubStorageName(), and SwIoSystem::IsValidStgFilter().