LibreOffice Module oox (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
oox::dump::Output Class Reference

#include <dumperbase.hxx>

Inheritance diagram for oox::dump::Output:
Collaboration diagram for oox::dump::Output:

Public Member Functions

 Output (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &rFileName)
void newLine ()
void emptyLine (size_t nCount=1)
void incIndent ()
void decIndent ()
void startTable (sal_Int32 nW1)
void startTable (sal_Int32 nW1, sal_Int32 nW2)
void startTable (sal_Int32 nW1, sal_Int32 nW2, sal_Int32 nW3, sal_Int32 nW4)
void startTable (size_t nColCount, const sal_Int32 *pnColWidths)
void tab ()
void tab (size_t nCol)
void endTable ()
void resetItemIndex (sal_Int64 nIdx=0)
void startItem (const String &rItemName)
void contItem ()
void endItem ()
void startMultiItems ()
void endMultiItems ()
void writeChar (sal_Unicode cChar, sal_Int32 nCount=1)
void writeAscii (const char *pcStr)
void writeString (std::u16string_view rStr)
void writeArray (const sal_uInt8 *pnData, std::size_t nSize, sal_Unicode cSep=OOX_DUMP_LISTSEP)
void writeBool (bool bData)
void writeDateTime (const css::util::DateTime &rDateTime)
template<typename Type >
void writeDec (Type nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ')
template<typename Type >
void writeHex (Type nData, bool bPrefix=true)
template<typename Type >
void writeShortHex (Type nData, bool bPrefix=true)
template<typename Type >
void writeBin (Type nData, bool bDots=true)
template<typename Type >
void writeFix (Type nData, sal_Int32 nWidth)
template<typename Type >
void writeValue (Type nData, FormatType eFmtType)
template<typename Type >
void writeName (const Config &rCfg, Type nData, const NameListWrapper &rListWrp)
- Public Member Functions inherited from oox::dump::Base
virtual ~Base ()
 Base (Base const &)=default
 Base (Base &&)=default
Baseoperator= (Base const &)=default
Baseoperator= (Base &&)=default
bool isValid () const

Protected Member Functions

virtual bool implIsValid () const override
- Protected Member Functions inherited from oox::dump::Base
 Base ()
virtual bool implIsValid () const =0

Private Member Functions

void writeItemName (const String &rItemName)

Private Attributes

css::uno::Reference< css::io::XTextOutputStream2 > mxStrm
OUString maIndent
OUStringBuffer maLine
OUString maLastItem
::std::vector< sal_Int32 > maColPos
size_t mnCol
size_t mnItemLevel
size_t mnMultiLevel
sal_Int64 mnItemIdx
sal_Int32 mnLastItem

Additional Inherited Members

- Static Public Member Functions inherited from oox::dump::Base
static bool isValid (const std::shared_ptr< Base > &rxBase)

Detailed Description

Definition at line 926 of file dumperbase.hxx.

Constructor & Destructor Documentation

◆ Output()

oox::dump::Output::Output ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const OUString &  rFileName 

Definition at line 1466 of file dumperbase.cxx.

References mnCol, and mxStrm.

Member Function Documentation

◆ contItem()

void oox::dump::Output::contItem ( )

Definition at line 1591 of file dumperbase.cxx.

References maLine, mnItemLevel, mnLastItem, and writeChar().

Referenced by oox::dump::ItemGuard::cont(), and endItem().

◆ decIndent()

void oox::dump::Output::decIndent ( )

Definition at line 1503 of file dumperbase.cxx.

References maIndent.

Referenced by oox::dump::IndentGuard::~IndentGuard().

◆ emptyLine()

void oox::dump::Output::emptyLine ( size_t  nCount = 1)

Definition at line 1490 of file dumperbase.cxx.

References mxStrm, and nCount.

◆ endItem()

void oox::dump::Output::endItem ( )

◆ endMultiItems()

void oox::dump::Output::endMultiItems ( )

Definition at line 1624 of file dumperbase.cxx.

References mnMultiLevel, and newLine().

Referenced by oox::dump::MultiItemsGuard::~MultiItemsGuard().

◆ endTable()

void oox::dump::Output::endTable ( )

Definition at line 1565 of file dumperbase.cxx.

References maColPos.

Referenced by oox::dump::TableGuard::~TableGuard().

◆ implIsValid()

bool oox::dump::Output::implIsValid ( ) const

Implements oox::dump::Base.

Definition at line 1679 of file dumperbase.cxx.

References mxStrm.

◆ incIndent()

void oox::dump::Output::incIndent ( )

◆ newLine()

void oox::dump::Output::newLine ( )

Definition at line 1478 of file dumperbase.cxx.

References maIndent, maLine, mnCol, mnLastItem, and mxStrm.

Referenced by endItem(), and endMultiItems().

◆ resetItemIndex()

void oox::dump::Output::resetItemIndex ( sal_Int64  nIdx = 0)

Definition at line 1570 of file dumperbase.cxx.

References mnItemIdx.

◆ startItem()

void oox::dump::Output::startItem ( const String rItemName)

◆ startMultiItems()

void oox::dump::Output::startMultiItems ( )

Definition at line 1619 of file dumperbase.cxx.

References mnMultiLevel.

Referenced by oox::dump::MultiItemsGuard::MultiItemsGuard().

◆ startTable() [1/4]

void oox::dump::Output::startTable ( sal_Int32  nW1)

Definition at line 1509 of file dumperbase.cxx.

References startTable().

Referenced by startTable(), and oox::dump::TableGuard::TableGuard().

◆ startTable() [2/4]

void oox::dump::Output::startTable ( sal_Int32  nW1,
sal_Int32  nW2 

Definition at line 1514 of file dumperbase.cxx.

References startTable().

◆ startTable() [3/4]

void oox::dump::Output::startTable ( sal_Int32  nW1,
sal_Int32  nW2,
sal_Int32  nW3,
sal_Int32  nW4 

Definition at line 1522 of file dumperbase.cxx.

References startTable().

◆ startTable() [4/4]

void oox::dump::Output::startTable ( size_t  nColCount,
const sal_Int32 *  pnColWidths 

Definition at line 1532 of file dumperbase.cxx.

References maColPos.

◆ tab() [1/2]

void oox::dump::Output::tab ( )

Definition at line 1544 of file dumperbase.cxx.

References mnCol, and tab().

Referenced by startItem(), tab(), and oox::dump::TableGuard::tab().

◆ tab() [2/2]

void oox::dump::Output::tab ( size_t  nCol)

Definition at line 1549 of file dumperbase.cxx.

References oox::dump::StringHelper::appendChar(), maColPos, maLine, and mnCol.

◆ writeArray()

void oox::dump::Output::writeArray ( const sal_uInt8 pnData,
std::size_t  nSize,
sal_Unicode  cSep = OOX_DUMP_LISTSEP 

Definition at line 1648 of file dumperbase.cxx.

References writeChar(), and writeHex().

◆ writeAscii()

void oox::dump::Output::writeAscii ( const char *  pcStr)

Definition at line 1637 of file dumperbase.cxx.

References maLine.

◆ writeBin()

template<typename Type >
void oox::dump::Output::writeBin ( Type  nData,
bool  bDots = true 

Definition at line 973 of file dumperbase.hxx.

References oox::dump::StringHelper::appendBin(), and maLine.

◆ writeBool()

void oox::dump::Output::writeBool ( bool  bData)

Definition at line 1659 of file dumperbase.cxx.

References oox::dump::StringHelper::appendBool(), and maLine.

◆ writeChar()

void oox::dump::Output::writeChar ( sal_Unicode  cChar,
sal_Int32  nCount = 1 

◆ writeDateTime()

void oox::dump::Output::writeDateTime ( const css::util::DateTime &  rDateTime)

Definition at line 1664 of file dumperbase.cxx.

References writeChar(), and writeDec().

◆ writeDec()

template<typename Type >
void oox::dump::Output::writeDec ( Type  nData,
sal_Int32  nWidth = 0,
sal_Unicode  cFill = ' ' 

Definition at line 964 of file dumperbase.hxx.

References oox::dump::StringHelper::appendDec(), and maLine.

Referenced by writeDateTime().

◆ writeFix()

template<typename Type >
void oox::dump::Output::writeFix ( Type  nData,
sal_Int32  nWidth 

Definition at line 976 of file dumperbase.hxx.

References oox::dump::StringHelper::appendFix(), and maLine.

◆ writeHex()

template<typename Type >
void oox::dump::Output::writeHex ( Type  nData,
bool  bPrefix = true 

Definition at line 967 of file dumperbase.hxx.

References oox::dump::StringHelper::appendHex(), and maLine.

Referenced by writeArray().

◆ writeItemName()

void oox::dump::Output::writeItemName ( const String rItemName)

Definition at line 1684 of file dumperbase.cxx.

References oox::dump::String::has(), and writeString().

Referenced by startItem().

◆ writeName()

template<typename Type >
void oox::dump::Output::writeName ( const Config rCfg,
Type  nData,
const NameListWrapper rListWrp 

Definition at line 982 of file dumperbase.hxx.

References oox::dump::Config::getName(), and writeString().

◆ writeShortHex()

template<typename Type >
void oox::dump::Output::writeShortHex ( Type  nData,
bool  bPrefix = true 

Definition at line 970 of file dumperbase.hxx.

References oox::dump::StringHelper::appendShortHex(), and maLine.

◆ writeString()

void oox::dump::Output::writeString ( std::u16string_view  rStr)

Definition at line 1643 of file dumperbase.cxx.

Referenced by writeItemName(), and writeName().

◆ writeValue()

template<typename Type >
void oox::dump::Output::writeValue ( Type  nData,
FormatType  eFmtType 

Definition at line 979 of file dumperbase.hxx.

References oox::dump::StringHelper::appendValue(), and maLine.

Member Data Documentation

◆ maColPos

::std::vector< sal_Int32 > oox::dump::Output::maColPos

Definition at line 998 of file dumperbase.hxx.

Referenced by endTable(), startTable(), and tab().

◆ maIndent

OUString oox::dump::Output::maIndent

Definition at line 994 of file dumperbase.hxx.

Referenced by decIndent(), incIndent(), and newLine().

◆ maLastItem

OUString oox::dump::Output::maLastItem

Definition at line 996 of file dumperbase.hxx.

Referenced by endItem().

◆ maLine

OUStringBuffer oox::dump::Output::maLine

◆ mnCol

size_t oox::dump::Output::mnCol

Definition at line 999 of file dumperbase.hxx.

Referenced by newLine(), and tab().

◆ mnItemIdx

sal_Int64 oox::dump::Output::mnItemIdx

Definition at line 1002 of file dumperbase.hxx.

Referenced by resetItemIndex().

◆ mnItemLevel

size_t oox::dump::Output::mnItemLevel

Definition at line 1000 of file dumperbase.hxx.

Referenced by contItem(), endItem(), and startItem().

◆ mnLastItem

sal_Int32 oox::dump::Output::mnLastItem

Definition at line 1003 of file dumperbase.hxx.

Referenced by contItem(), endItem(), newLine(), and startItem().

◆ mnMultiLevel

size_t oox::dump::Output::mnMultiLevel

Definition at line 1001 of file dumperbase.hxx.

Referenced by endItem(), endMultiItems(), startItem(), and startMultiItems().

◆ mxStrm

css::uno::Reference< css::io::XTextOutputStream2 > oox::dump::Output::mxStrm

Definition at line 993 of file dumperbase.hxx.

Referenced by emptyLine(), implIsValid(), newLine(), and Output().

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