LibreOffice Module sw (master)  1
Public Member Functions | Private Types | Private Attributes | List of all members
RtfStringBuffer Class Reference

Wrapper around OStringBuffers, so less hexdump of graphics have to be kept in memory during RTF export. More...

#include <rtfstringbuffer.hxx>

Public Member Functions

 RtfStringBuffer ()
 
sal_Int32 getLength () const
 Length of all the contained buffers. More...
 
void makeStringAndClear (RtfAttributeOutput *pAttributeOutput)
 Writes the contents of the buffer directly to the supplied stream. More...
 
OString makeStringAndClear ()
 Returns the buffered strings as a string (ignores graphic elements!) More...
 
OStringBuffer & getLastBuffer ()
 Access to the last buffer. More...
 
OStringBuffer * operator-> ()
 
void clear ()
 Similar to ->setLength(0), but for all buffers. More...
 
void append (const SwFlyFrameFormat *pFlyFrameFormat, const SwGrfNode *pGrfNode)
 Same as ->append(), but for graphics and without expanding contents to save memory. More...
 
void appendAndClear (RtfStringBuffer &rBuf)
 Append all contained buffers and clear the argument. More...
 

Private Types

using Values_t = std::vector< RtfStringBufferValue >
 

Private Attributes

Values_t m_aValues
 

Detailed Description

Wrapper around OStringBuffers, so less hexdump of graphics have to be kept in memory during RTF export.

Definition at line 42 of file rtfstringbuffer.hxx.

Member Typedef Documentation

using RtfStringBuffer::Values_t = std::vector<RtfStringBufferValue>
private

Definition at line 63 of file rtfstringbuffer.hxx.

Constructor & Destructor Documentation

RtfStringBuffer::RtfStringBuffer ( )
default

Member Function Documentation

void RtfStringBuffer::append ( const SwFlyFrameFormat pFlyFrameFormat,
const SwGrfNode pGrfNode 
)
void RtfStringBuffer::appendAndClear ( RtfStringBuffer rBuf)

Append all contained buffers and clear the argument.

Definition at line 79 of file rtfstringbuffer.cxx.

References clear(), and m_aValues.

Referenced by RtfAttributeOutput::EndParagraph().

void RtfStringBuffer::clear ( )

Similar to ->setLength(0), but for all buffers.

Definition at line 72 of file rtfstringbuffer.cxx.

References m_aValues.

Referenced by appendAndClear(), RtfAttributeOutput::TextFootnote_Impl(), RtfAttributeOutput::WriteHeaderFooter_Impl(), and RtfAttributeOutput::writeTextFrame().

OStringBuffer & RtfStringBuffer::getLastBuffer ( )

Access to the last buffer.

Definition at line 63 of file rtfstringbuffer.cxx.

References m_aValues.

Referenced by operator->().

sal_Int32 RtfStringBuffer::getLength ( ) const

Length of all the contained buffers.

Definition at line 39 of file rtfstringbuffer.cxx.

References m_aValues.

void RtfStringBuffer::makeStringAndClear ( RtfAttributeOutput pAttributeOutput)

Writes the contents of the buffer directly to the supplied stream.

Definition at line 48 of file rtfstringbuffer.cxx.

References m_aValues.

Referenced by RtfAttributeOutput::EndParagraph().

OString RtfStringBuffer::makeStringAndClear ( )

Returns the buffered strings as a string (ignores graphic elements!)

Definition at line 54 of file rtfstringbuffer.cxx.

References aBuf, and m_aValues.

OStringBuffer * RtfStringBuffer::operator-> ( )

Definition at line 70 of file rtfstringbuffer.cxx.

References getLastBuffer().

Member Data Documentation

Values_t RtfStringBuffer::m_aValues
private

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