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

Public Member Functions

 SwImplProtocol ()
 
 ~SwImplProtocol ()
 
void Record (const SwFrame *pFrame, PROT nFunction, DbgAction nAct, void *pParam)
 
void InsertFrame (sal_uInt16 nFrameId)
 if pFrameIds==NULL all Frames will be logged. More...
 
void DeleteFrame (sal_uInt16 nFrameId)
 Removes a FrameId from the pFrameIds array, so that it won't be logged anymore. More...
 
void FileInit ()
 read the file "dbg_lay.ini" in the current directory and evaluate it. More...
 
void ChkStream ()
 

Private Member Functions

void Record_ (const SwFrame *pFrame, PROT nFunction, DbgAction nAct, void *pParam)
 Is only called if the PROTOCOL macro finds out, that this function should be recorded (. More...
 
bool NewStream ()
 
void CheckLine (OString &rLine)
 analyze a line in the INI file More...
 

Static Private Member Functions

static void SectFunc (OStringBuffer &rOut, DbgAction nAct, void const *pParam)
 Handle the output of the SectionFrames. More...
 

Private Attributes

std::unique_ptr< SvFileStreamm_pStream
 
std::unique_ptr< std::set< sal_uInt16 > > m_pFrameIds
 
std::vector< tools::Longm_aVars
 
OStringBuffer m_aLayer
 
SwFrameType m_nTypes
 
sal_uInt16 m_nLineCount
 
sal_uInt16 m_nMaxLines
 
sal_uInt8 m_nInitFile
 
sal_uInt8 m_nTestMode
 

Detailed Description

Definition at line 130 of file dbg_lay.cxx.

Constructor & Destructor Documentation

◆ SwImplProtocol()

SwImplProtocol::SwImplProtocol ( )

Definition at line 295 of file dbg_lay.cxx.

References NewStream().

◆ ~SwImplProtocol()

SwImplProtocol::~SwImplProtocol ( )

Definition at line 315 of file dbg_lay.cxx.

References m_aVars, m_pFrameIds, and m_pStream.

Member Function Documentation

◆ CheckLine()

void SwImplProtocol::CheckLine ( OString &  rLine)
private

◆ ChkStream()

void SwImplProtocol::ChkStream ( )
inline

Definition at line 159 of file dbg_lay.cxx.

References m_pStream, and NewStream().

Referenced by SwProtocol::Record().

◆ DeleteFrame()

void SwImplProtocol::DeleteFrame ( sal_uInt16  nFrameId)

Removes a FrameId from the pFrameIds array, so that it won't be logged anymore.

Definition at line 875 of file dbg_lay.cxx.

References m_pFrameIds, and nId.

Referenced by Record_().

◆ FileInit()

void SwImplProtocol::FileInit ( )

read the file "dbg_lay.ini" in the current directory and evaluate it.

Definition at line 426 of file dbg_lay.cxx.

References CheckLine(), SvFileStream::Close(), SvStream::good(), SvFileStream::IsOpen(), m_nInitFile, and SvStream::ReadChar().

Referenced by SwProtocol::Init(), and Record_().

◆ InsertFrame()

void SwImplProtocol::InsertFrame ( sal_uInt16  nId)

if pFrameIds==NULL all Frames will be logged.

But as soon as pFrameIds are set, only the added FrameIds are being logged.

Parameters
nIdnew FrameId for logging
Returns
TRUE if newly added, FALSE if FrameId is already under control

Definition at line 865 of file dbg_lay.cxx.

References m_pFrameIds, and nId.

Referenced by CheckLine(), and Record_().

◆ NewStream()

bool SwImplProtocol::NewStream ( )
private

Definition at line 304 of file dbg_lay.cxx.

References m_nLineCount, and m_pStream.

Referenced by ChkStream(), Record_(), and SwImplProtocol().

◆ Record()

void SwImplProtocol::Record ( const SwFrame pFrame,
PROT  nFunction,
DbgAction  nAct,
void *  pParam 
)
inline

Definition at line 151 of file dbg_lay.cxx.

References m_pStream, and Record_().

Referenced by SwProtocol::Record().

◆ Record_()

void SwImplProtocol::Record_ ( const SwFrame pFrame,
PROT  nFunction,
DbgAction  nAct,
void *  pParam 
)
private

◆ SectFunc()

void SwImplProtocol::SectFunc ( OStringBuffer &  rOut,
DbgAction  nAct,
void const *  pParam 
)
staticprivate

Handle the output of the SectionFrames.

Definition at line 828 of file dbg_lay.cxx.

References CreateFollow, CreateMaster, DelFollow, DelMaster, lcl_GetFrameId(), and Merge.

Referenced by Record_().

Member Data Documentation

◆ m_aLayer

OStringBuffer SwImplProtocol::m_aLayer
private

Definition at line 136 of file dbg_lay.cxx.

Referenced by Record_().

◆ m_aVars

std::vector<tools::Long> SwImplProtocol::m_aVars
private

Definition at line 135 of file dbg_lay.cxx.

Referenced by CheckLine(), and ~SwImplProtocol().

◆ m_nInitFile

sal_uInt8 SwImplProtocol::m_nInitFile
private

Definition at line 140 of file dbg_lay.cxx.

Referenced by CheckLine(), and FileInit().

◆ m_nLineCount

sal_uInt16 SwImplProtocol::m_nLineCount
private

Definition at line 138 of file dbg_lay.cxx.

Referenced by NewStream(), and Record_().

◆ m_nMaxLines

sal_uInt16 SwImplProtocol::m_nMaxLines
private

Definition at line 139 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

◆ m_nTestMode

sal_uInt8 SwImplProtocol::m_nTestMode
private

Definition at line 142 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

◆ m_nTypes

SwFrameType SwImplProtocol::m_nTypes
private

Definition at line 137 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

◆ m_pFrameIds

std::unique_ptr<std::set<sal_uInt16> > SwImplProtocol::m_pFrameIds
private

Definition at line 134 of file dbg_lay.cxx.

Referenced by CheckLine(), DeleteFrame(), InsertFrame(), Record_(), and ~SwImplProtocol().

◆ m_pStream

std::unique_ptr<SvFileStream> SwImplProtocol::m_pStream
private

Definition at line 132 of file dbg_lay.cxx.

Referenced by ChkStream(), NewStream(), Record(), Record_(), and ~SwImplProtocol().


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