LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwWW8Writer Class Reference

The writer class that gets called for the WW8 filter. More...

#include <wrtww8.hxx>

Inheritance diagram for SwWW8Writer:
[legend]
Collaboration diagram for SwWW8Writer:
[legend]

Public Member Functions

 SwWW8Writer (std::u16string_view rFltName, const OUString &rBaseURL)
 
virtual ~SwWW8Writer () override
 
virtual ErrCode WriteStorage () override
 
virtual ErrCode WriteMedium (SfxMedium &) override
 
bool InitStd97CodecUpdateMedium (::msfilter::MSCodec_Std97 &rCodec)
 
virtual ErrCode Write (SwPaM &, SfxMedium &, const OUString *) override
 
SfxMediumGetMedia ()
 
IDocumentSettingAccessgetIDocumentSettingAccess ()
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *) override
 
- Public Member Functions inherited from StgWriter
 StgWriter ()
 
virtual bool IsStgWriter () const override
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *) override
 
SotStorageGetStorage () const
 
- Public Member Functions inherited from Writer
 Writer ()
 
virtual ~Writer () override
 
virtual ErrCode Write (SwPaM &, SfxMedium &, const OUString *)
 
ErrCode Write (SwPaM &, SvStream &, const OUString *)
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr)
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *)
 
virtual void SetupFilterOptions (SfxMedium &rMedium)
 
virtual bool IsStgWriter () const
 
void SetShowProgress (bool bFlag)
 
const OUString * GetOrigFileName () const
 
const SwAsciiOptionsGetAsciiOptions () const
 
void SetAsciiOptions (const SwAsciiOptions &rOpt)
 
const OUString & GetBaseURL () const
 
sal_Int32 FindPos_Bkmk (const SwPosition &rPos) const
 
void CreateBookmarkTable ()
 
bool GetBookmarks (const SwContentNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark * > &rArr)
 
bool CopyLocalFileToINet (OUString &rFileNm)
 
void SetStream (SvStream *const pStream)
 
SvStreamStrm ()
 
void SetOrganizerMode (bool bSet)
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Static Public Member Functions

static void InsUInt16 (ww::bytes &rO, sal_uInt16 n)
 
static void InsUInt32 (ww::bytes &rO, sal_uInt32 n)
 
static void InsAsString16 (ww::bytes &rO, const OUString &rStr)
 
static void InsAsString8 (ww::bytes &O, std::u16string_view rStr, rtl_TextEncoding eCodeSet)
 
static sal_uLong FillUntil (SvStream &rStrm, sal_uLong nEndPos=0)
 
static void FillCount (SvStream &rStrm, sal_uLong nCount)
 
static void WriteShort (SvStream &rStrm, sal_Int16 nVal)
 
static void WriteShort (SvStream &rStrm, sal_uLong nPos, sal_Int16 nVal)
 
static void WriteLong (SvStream &rStrm, sal_Int32 nVal)
 
static void WriteLong (SvStream &rStrm, sal_uLong nPos, sal_Int32 nVal)
 
static void WriteString16 (SvStream &rStrm, const OUString &rStr, bool bAddZero)
 
static void WriteString8 (SvStream &rStrm, std::u16string_view rStr, bool bAddZero, rtl_TextEncoding eCodeSet)
 
static void WriteString_xstz (SvStream &rStrm, const OUString &rStr, bool bAddZero)
 
- Static Public Member Functions inherited from Writer
static std::shared_ptr< SwUnoCursorNewUnoCursor (SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx)
 

Private Member Functions

 SwWW8Writer (const SwWW8Writer &)=delete
 
SwWW8Writeroperator= (const SwWW8Writer &)=delete
 
ErrCode WriteStorageImpl ()
 

Private Attributes

WW8Exportm_pExport
 
SfxMediummpMedium
 

Friends

void WW8_WrtRedlineAuthor::Write (Writer &rWrt)
 

Additional Inherited Members

- Public Attributes inherited from Writer
SwDocm_pDoc
 
SwPaMm_pOrigPam
 
std::shared_ptr< SwUnoCursorm_pCurrentPam
 
bool m_bWriteAll: 1
 
bool m_bShowProgress: 1
 
bool m_bWriteClipboardDoc: 1
 
bool m_bWriteOnlyFirstTable: 1
 
bool m_bASCII_ParaAsCR: 1
 
bool m_bASCII_ParaAsBlank: 1
 
bool m_bASCII_NoLastLineEnd: 1
 
bool m_bUCS2_WithStartChar: 1
 
bool m_bExportParagraphNumbering: 1
 
bool m_bBlock: 1
 
bool m_bOrganizerMode: 1
 
bool m_bHideDeleteRedlines: 1
 
- Protected Member Functions inherited from StgWriter
virtual ErrCode WriteStream () override
 
virtual ErrCode WriteStorage ()=0
 
virtual ErrCode WriteMedium (SfxMedium &)=0
 
virtual ErrCode Write (SwPaM &, SfxMedium &, const OUString *)
 
ErrCode Write (SwPaM &, SvStream &, const OUString *)
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr)
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *)
 
- Protected Member Functions inherited from Writer
void ResetWriter ()
 
bool CopyNextPam (SwPaM **)
 
void PutNumFormatFontsInAttrPool ()
 
void PutEditEngFontsInAttrPool ()
 
virtual ErrCode WriteStream ()=0
 
void SetBaseURL (const OUString &rURL)
 
IDocumentSettingAccessgetIDocumentSettingAccess ()
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 
IDocumentStylePoolAccessgetIDocumentStylePoolAccess ()
 
const IDocumentStylePoolAccessgetIDocumentStylePoolAccess () const
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from StgWriter
tools::SvRef< SotStoragem_pStg
 
css::uno::Reference< css::embed::XStorage > m_xStg
 
- Protected Attributes inherited from Writer
const OUString * m_pOrigFileName
 

Detailed Description

The writer class that gets called for the WW8 filter.

Definition at line 938 of file wrtww8.hxx.

Constructor & Destructor Documentation

◆ SwWW8Writer() [1/2]

SwWW8Writer::SwWW8Writer ( std::u16string_view  rFltName,
const OUString &  rBaseURL 
)

Definition at line 4026 of file wrtww8.cxx.

References FILTER_WW8, and Writer::SetBaseURL().

◆ ~SwWW8Writer()

SwWW8Writer::~SwWW8Writer ( )
overridevirtual

Definition at line 4035 of file wrtww8.cxx.

◆ SwWW8Writer() [2/2]

SwWW8Writer::SwWW8Writer ( const SwWW8Writer )
privatedelete

Member Function Documentation

◆ FillCount()

void SwWW8Writer::FillCount ( SvStream rStrm,
sal_uLong  nCount 
)
static

◆ FillUntil()

sal_uLong SwWW8Writer::FillUntil ( SvStream rStrm,
sal_uLong  nEndPos = 0 
)
static

Definition at line 950 of file wrtww8.cxx.

References FillCount(), rStrm, and SvStream::Tell().

Referenced by WW8Export::StoreDoc1(), and WW8_WrPlcPn::WriteFkps().

◆ getIDocumentSettingAccess() [1/2]

IDocumentSettingAccess & Writer::getIDocumentSettingAccess ( )

Definition at line 400 of file writer.cxx.

Referenced by WW8Export::ExportDopTypography().

◆ getIDocumentSettingAccess() [2/2]

const IDocumentSettingAccess & Writer::getIDocumentSettingAccess ( ) const

Definition at line 401 of file writer.cxx.

References Writer::m_pImpl.

◆ GetMedia()

SfxMedium * SwWW8Writer::GetMedia ( )
inline

Definition at line 987 of file wrtww8.hxx.

References mpMedium.

Referenced by SwBasicEscherEx::GetBasePath(), and SwBasicEscherEx::IsRelUrl().

◆ InitStd97CodecUpdateMedium()

bool SwWW8Writer::InitStd97CodecUpdateMedium ( ::msfilter::MSCodec_Std97 rCodec)

◆ InsAsString16()

void SwWW8Writer::InsAsString16 ( ww::bytes rO,
const OUString &  rStr 
)
static

◆ InsAsString8()

void SwWW8Writer::InsAsString8 ( ww::bytes O,
std::u16string_view  rStr,
rtl_TextEncoding  eCodeSet 
)
static

Definition at line 1736 of file wrtww8.cxx.

References OUStringToOString().

Referenced by WriteString8().

◆ InsUInt16()

void SwWW8Writer::InsUInt16 ( ww::bytes rO,
sal_uInt16  n 
)
static

◆ InsUInt32()

void SwWW8Writer::InsUInt32 ( ww::bytes rO,
sal_uInt32  n 
)
static

Definition at line 1719 of file wrtww8.cxx.

References n.

Referenced by InsertSpecialChar(), WW8Export::InsUInt32(), and WW8Export::OutputLinkedOLE().

◆ operator=()

SwWW8Writer & SwWW8Writer::operator= ( const SwWW8Writer )
privatedelete

◆ Write() [1/3]

virtual ErrCode StgWriter::Write ( SwPaM ,
const css::uno::Reference< css::embed::XStorage > &  ,
const OUString *  ,
SfxMedium = nullptr 
)
overridevirtual

Reimplemented from StgWriter.

◆ Write() [2/3]

ErrCode SwWW8Writer::Write ( SwPaM rPaM,
SfxMedium rMed,
const OUString *  pFileName 
)
overridevirtual

Reimplemented from Writer.

Definition at line 3923 of file wrtww8.cxx.

References mpMedium, and StgWriter::Write().

◆ Write() [3/3]

ErrCode StgWriter::Write ( SwPaM rPaM,
SotStorage rStg,
const OUString *  pFName 
)
overridevirtual

Reimplemented from StgWriter.

Definition at line 492 of file writer.cxx.

◆ WriteLong() [1/2]

static void SwWW8Writer::WriteLong ( SvStream rStrm,
sal_Int32  nVal 
)
inlinestatic

◆ WriteLong() [2/2]

void SwWW8Writer::WriteLong ( SvStream rStrm,
sal_uLong  nPos,
sal_Int32  nVal 
)
static

Definition at line 1703 of file wrtww8.cxx.

References nPos, rStrm, SvStream::Seek(), SvStream::Tell(), and WriteLong().

◆ WriteMedium()

ErrCode SwWW8Writer::WriteMedium ( SfxMedium )
overridevirtual

Implements StgWriter.

Definition at line 3918 of file wrtww8.cxx.

References WriteStorage().

◆ WriteShort() [1/2]

static void SwWW8Writer::WriteShort ( SvStream rStrm,
sal_Int16  nVal 
)
inlinestatic

◆ WriteShort() [2/2]

void SwWW8Writer::WriteShort ( SvStream rStrm,
sal_uLong  nPos,
sal_Int16  nVal 
)
static

Definition at line 1695 of file wrtww8.cxx.

References nPos, rStrm, SvStream::Seek(), SvStream::Tell(), and WriteShort().

◆ WriteStorage()

ErrCode SwWW8Writer::WriteStorage ( )
overridevirtual

◆ WriteStorageImpl()

ErrCode SwWW8Writer::WriteStorageImpl ( )
private

◆ WriteString16()

void SwWW8Writer::WriteString16 ( SvStream rStrm,
const OUString &  rStr,
bool  bAddZero 
)
static

◆ WriteString8()

void SwWW8Writer::WriteString8 ( SvStream rStrm,
std::u16string_view  rStr,
bool  bAddZero,
rtl_TextEncoding  eCodeSet 
)
static

◆ WriteString_xstz()

void SwWW8Writer::WriteString_xstz ( SvStream rStrm,
const OUString &  rStr,
bool  bAddZero 
)
static

Definition at line 1759 of file wrtww8.cxx.

References InsAsString16(), InsUInt16(), rStrm, and SvStream::WriteBytes().

Referenced by WW8Export::WriteFormData().

Friends And Related Function Documentation

◆ WW8_WrtRedlineAuthor::Write

void WW8_WrtRedlineAuthor::Write ( Writer rWrt)
friend

Member Data Documentation

◆ m_pExport

WW8Export* SwWW8Writer::m_pExport
private

Definition at line 945 of file wrtww8.hxx.

Referenced by WriteStorageImpl().

◆ mpMedium

SfxMedium* SwWW8Writer::mpMedium
private

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