20#include <osl/endian.h>
31#include <sfx2/sfxsids.hrc>
40 switch( 5 <= rFltNm.size() ? rFltNm[4] : 0 )
43 aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_850 );
45 if( 5 < rFltNm.size() )
47 std::u16string_view aFilterNum = rFltNm.substr( 5 );
50 case 437: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_437 );
break;
51 case 850: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_850 );
break;
52 case 860: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_860 );
break;
53 case 861: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_861 );
break;
54 case 863: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_863 );
break;
55 case 865: aNewOpts.
SetCharSet( RTL_TEXTENCODING_IBM_865 );
break;
62 aNewOpts.
SetCharSet( RTL_TEXTENCODING_MS_1252 );
68 aNewOpts.
SetCharSet( RTL_TEXTENCODING_APPLE_ROMAN );
74 aNewOpts.
SetCharSet( RTL_TEXTENCODING_MS_1252 );
80 if( rFltNm.size() >= 4 && rFltNm.substr( 4 )==
u"_DLG" )
93 static constexpr OUStringLiteral STR_CR =
u"\015";
94 static constexpr OUStringLiteral STR_LF =
u"\012";
95 static constexpr OUStringLiteral STR_CRLF =
u"\015\012";
96 static constexpr OUStringLiteral STR_BLANK =
u" ";
161 else if (!pNd->
IsHidden() || bIncludeHidden)
167 case RTL_TEXTENCODING_UTF8:
174 case RTL_TEXTENCODING_UCS2:
187 bWriteSttTag =
false;
218 sItemOpt = pItem->GetValue();
225 std::u16string_view rFltNm, [[maybe_unused]]
const OUString& ,
WriterRef& xRet )
SwNodeFnTab aASCNodeFnTab
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemSet & GetItemSet() const
void StartWritingUnicodeText()
void SetEndian(SvStreamEndian SvStreamEndian)
SvStream & WriteUChar(unsigned char nChar)
void SetStreamCharSet(rtl_TextEncoding eCharSet)
rtl_TextEncoding GetStreamCharSet() const
void SetupFilterOptions(SfxMedium &rMedium) override
virtual ErrCode WriteStream() override
SwASCWriter(std::u16string_view rFilterName)
virtual ~SwASCWriter() override
rtl_TextEncoding GetCharSet() const
void SetParaFlags(LineEnd eVal)
bool GetIncludeHidden() const
void SetCharSet(rtl_TextEncoding nVal)
bool GetIncludeBOM() const
void ReadUserData(std::u16string_view)
const sw::FrameFormats< sw::SpzFrameFormat * > * GetSpzFrameFormats() const
SwDocShell * GetDocShell()
const SwNodeIndex * GetContentIdx() const
Marks a node in the document model.
SwNodeOffset GetIndex() const
SwNodeOffset GetIndex() const
SwNodeOffset EndOfSectionIndex() const
SwNode & GetEndOfExtras() const
This is the last EndNode of a special section.
SwNode & GetEndOfContent() const
Regular ContentSection (i.e. the BodyText).
SwNodeOffset Count() const
PaM is Point and Mark: a selection of the document model.
SwTextNode is a paragraph in the document model.
const OUString & GetText() const
bool CopyNextPam(SwPaM **)
void SetAsciiOptions(const SwAsciiOptions &rOpt)
bool m_bUCS2_WithStartChar
const SwAsciiOptions & GetAsciiOptions() const
static std::shared_ptr< SwUnoCursor > NewUnoCursor(SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx)
std::shared_ptr< SwUnoCursor > m_pCurrentPam
bool m_bASCII_ParaAsBlank
void StartProgress(TranslateId pMessResId, tools::Long nStartValue, tools::Long nEndValue, SwDocShell *pDocShell)
void EndProgress(SwDocShell const *pDocShell)
void SetProgressState(tools::Long nPosition, SwDocShell const *pDocShell)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
bool GoInNode(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
SwHTMLWriter & Out(const SwAttrFnTab, const SfxPoolItem &, SwHTMLWriter &)
void GetASCWriter(std::u16string_view rFltNm, const OUString &, WriterRef &xRet)