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:
[legend]
Collaboration diagram for oox::dump::Output:
[legend]

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 (const OUString &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 
)
explicit

Definition at line 1467 of file dumperbase.cxx.

References mnCol, and mxStrm.

Member Function Documentation

◆ contItem()

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

Definition at line 1592 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 1504 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 1491 of file dumperbase.cxx.

References mxStrm, and nCount.

◆ endItem()

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

◆ endMultiItems()

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

Definition at line 1625 of file dumperbase.cxx.

References mnMultiLevel, and newLine().

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

◆ endTable()

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

Definition at line 1566 of file dumperbase.cxx.

References maColPos.

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

◆ implIsValid()

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

Implements oox::dump::Base.

Definition at line 1680 of file dumperbase.cxx.

References mxStrm.

◆ incIndent()

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

◆ newLine()

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

Definition at line 1479 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 1571 of file dumperbase.cxx.

References mnItemIdx.

◆ startItem()

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

◆ startMultiItems()

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

Definition at line 1620 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 1510 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 1515 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 1523 of file dumperbase.cxx.

References startTable().

◆ startTable() [4/4]

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

Definition at line 1533 of file dumperbase.cxx.

References maColPos.

◆ tab() [1/2]

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

Definition at line 1545 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 1550 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 1649 of file dumperbase.cxx.

References writeChar(), and writeHex().

◆ writeAscii()

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

Definition at line 1638 of file dumperbase.cxx.

References maLine.

◆ writeBin()

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

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 1660 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 1665 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 = ' ' 
)
inline

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 
)
inline

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 
)
inline

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)
private

Definition at line 1685 of file dumperbase.cxx.

References oox::dump::String::has().

Referenced by startItem().

◆ writeName()

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

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 
)
inline

Definition at line 970 of file dumperbase.hxx.

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

◆ writeString()

void oox::dump::Output::writeString ( const OUString &  rStr)

Definition at line 1644 of file dumperbase.cxx.

Referenced by writeName().

◆ writeValue()

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

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
private

Definition at line 998 of file dumperbase.hxx.

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

◆ maIndent

OUString oox::dump::Output::maIndent
private

Definition at line 994 of file dumperbase.hxx.

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

◆ maLastItem

OUString oox::dump::Output::maLastItem
private

Definition at line 996 of file dumperbase.hxx.

Referenced by endItem().

◆ maLine

OUStringBuffer oox::dump::Output::maLine
private

◆ mnCol

size_t oox::dump::Output::mnCol
private

Definition at line 999 of file dumperbase.hxx.

Referenced by newLine(), and tab().

◆ mnItemIdx

sal_Int64 oox::dump::Output::mnItemIdx
private

Definition at line 1002 of file dumperbase.hxx.

Referenced by resetItemIndex().

◆ mnItemLevel

size_t oox::dump::Output::mnItemLevel
private

Definition at line 1000 of file dumperbase.hxx.

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

◆ mnLastItem

sal_Int32 oox::dump::Output::mnLastItem
private

Definition at line 1003 of file dumperbase.hxx.

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

◆ mnMultiLevel

size_t oox::dump::Output::mnMultiLevel
private

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
private

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: