20 #include <osl/endian.h>
31 #include <strings.hrc>
37 switch( 5 <= rFltNm.getLength() ? rFltNm[4] : 0 )
40 aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_850 );
42 if( 5 < rFltNm.getLength() )
43 switch( rFltNm.copy( 5 ).toInt32() )
45 case 437: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_437 );
break;
46 case 850: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_850 );
break;
47 case 860: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_860 );
break;
48 case 861: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_861 );
break;
49 case 863: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_863 );
break;
50 case 865: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_865 );
break;
56 aNewOpts.
SetCharSet( RTL_TEXTENCODING_MS_1252 );
62 aNewOpts.
SetCharSet( RTL_TEXTENCODING_APPLE_ROMAN );
68 aNewOpts.
SetCharSet( RTL_TEXTENCODING_MS_1252 );
74 if( rFltNm.getLength() >= 4 && rFltNm.subView( 4 )==
u"_DLG" )
156 case RTL_TEXTENCODING_UTF8:
163 case RTL_TEXTENCODING_UCS2:
180 bWriteSttTag =
false;
206 const OUString& rFltNm, [[maybe_unused]]
const OUString& ,
WriterRef& xRet )
rtl_TextEncoding GetCharSet() const
sal_uLong GetIndex() const
bool GetIncludeBOM() const
const OUString & GetText() const
SwDocShell * GetDocShell()
virtual ~SwASCWriter() override
void EndProgress(SwDocShell const *pDocShell)
void SetParaFlags(LineEnd eVal)
const SwFrameFormats * GetSpzFrameFormats() const
void StartProgress(const char *pMessResId, tools::Long nStartValue, tools::Long nEndValue, SwDocShell *pDocShell)
bool m_bASCII_ParaAsBlank
sal_uLong GetIndex() const
SwNode & GetEndOfContent() const
Regular ContentSection (i.e. the BodyText).
void SetCharSet(rtl_TextEncoding nVal)
PaM is Point and Mark: a selection of the document model.
bool CopyNextPam(SwPaM **)
bool GoInNode(SwPaM &rPam, SwMoveFnCollection const &fnMove)
Writer & Out(const SwAttrFnTab, const SfxPoolItem &, Writer &)
Marks a node in the document model.
void GetASCWriter(const OUString &rFltNm, [[maybe_unused]] const OUString &, WriterRef &xRet)
const SwNodeIndex * GetContentIdx() const
bool m_bUCS2_WithStartChar
sal_uLong EndOfSectionIndex() const
SwTextNode is a paragraph in the document model.
SwNodeFnTab aASCNodeFnTab
static std::shared_ptr< SwUnoCursor > NewUnoCursor(SwDoc &rDoc, sal_uLong const nStartIdx, sal_uLong const nEndIdx)
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
void SetEndian(SvStreamEndian SvStreamEndian)
SvStream & WriteUChar(unsigned char nChar)
void SetProgressState(tools::Long nPosition, SwDocShell const *pDocShell)
void SetStreamCharSet(rtl_TextEncoding eCharSet)
rtl_TextEncoding GetStreamCharSet() const
virtual ErrCode WriteStream() override
std::shared_ptr< SwUnoCursor > m_pCurrentPam
void SetAsciiOptions(const SwAsciiOptions &rOpt)
const SwAsciiOptions & GetAsciiOptions() const
SwNode & GetEndOfExtras() const
This is the last EndNode of a special section.
SwASCWriter(const OUString &rFilterName)