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< SvFileStreampStream
 
std::unique_ptr< std::set< sal_uInt16 > > pFrameIds
 
std::vector< long > aVars
 
OStringBuffer aLayer
 
SwFrameType nTypes
 
sal_uInt16 nLineCount
 
sal_uInt16 nMaxLines
 
sal_uInt8 nInitFile
 
sal_uInt8 nTestMode
 

Detailed Description

Definition at line 127 of file dbg_lay.cxx.

Constructor & Destructor Documentation

SwImplProtocol::SwImplProtocol ( )

Definition at line 264 of file dbg_lay.cxx.

References NewStream(), and nLineCount.

SwImplProtocol::~SwImplProtocol ( )

Definition at line 283 of file dbg_lay.cxx.

References aVars, pFrameIds, and pStream.

Member Function Documentation

void SwImplProtocol::CheckLine ( OString &  rLine)
private

analyze a line in the INI file

Definition at line 295 of file dbg_lay.cxx.

References aVars, FileInit, FRM_ALL, InsertFrame(), nInitFile, nMaxLines, nTestMode, nTypes, pFrameIds, SwProtocol::Record(), SwProtocol::SetRecord(), and USHRT_MAX.

Referenced by FileInit().

void SwImplProtocol::ChkStream ( )
inline

Definition at line 151 of file dbg_lay.cxx.

References NewStream().

Referenced by SwProtocol::Record().

void SwImplProtocol::DeleteFrame ( sal_uInt16  nFrameId)

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

Definition at line 839 of file dbg_lay.cxx.

References pFrameIds.

Referenced by Record_().

void SwImplProtocol::FileInit ( )

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

Definition at line 392 of file dbg_lay.cxx.

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

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

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 829 of file dbg_lay.cxx.

References pFrameIds.

Referenced by CheckLine(), and Record_().

bool SwImplProtocol::NewStream ( )
private

Definition at line 271 of file dbg_lay.cxx.

References aName, nLineCount, and pStream.

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

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

Definition at line 146 of file dbg_lay.cxx.

References Record_().

Referenced by SwProtocol::Record().

void SwImplProtocol::Record_ ( const SwFrame pFrame,
PROT  nFunction,
DbgAction  nAct,
void pParam 
)
private
void SwImplProtocol::SectFunc ( OStringBuffer &  rOut,
DbgAction  nAct,
void const *  pParam 
)
staticprivate

Handle the output of the SectionFrames.

Definition at line 792 of file dbg_lay.cxx.

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

Referenced by Record_().

Member Data Documentation

OStringBuffer SwImplProtocol::aLayer
private

Definition at line 132 of file dbg_lay.cxx.

Referenced by Record_().

std::vector<long> SwImplProtocol::aVars
private

Definition at line 131 of file dbg_lay.cxx.

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

sal_uInt8 SwImplProtocol::nInitFile
private

Definition at line 136 of file dbg_lay.cxx.

Referenced by CheckLine(), and FileInit().

sal_uInt16 SwImplProtocol::nLineCount
private

Definition at line 134 of file dbg_lay.cxx.

Referenced by NewStream(), and Record_().

sal_uInt16 SwImplProtocol::nMaxLines
private

Definition at line 135 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

sal_uInt8 SwImplProtocol::nTestMode
private

Definition at line 137 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

SwFrameType SwImplProtocol::nTypes
private

Definition at line 133 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

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

Definition at line 130 of file dbg_lay.cxx.

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

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

Definition at line 129 of file dbg_lay.cxx.

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


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