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< long > m_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 128 of file dbg_lay.cxx.

Constructor & Destructor Documentation

SwImplProtocol::SwImplProtocol ( )

Definition at line 293 of file dbg_lay.cxx.

References NewStream().

SwImplProtocol::~SwImplProtocol ( )

Definition at line 313 of file dbg_lay.cxx.

References m_aVars, m_pFrameIds, and m_pStream.

Member Function Documentation

void SwImplProtocol::CheckLine ( OString &  rLine)
private

analyze a line in the INI file

Definition at line 325 of file dbg_lay.cxx.

References FileInit, FRM_ALL, InsertFrame(), m_aVars, m_nInitFile, m_nMaxLines, m_nTestMode, m_nTypes, m_pFrameIds, nIndex, SwProtocol::Record(), SwProtocol::SetRecord(), and USHRT_MAX.

Referenced by FileInit().

void SwImplProtocol::ChkStream ( )
inline

Definition at line 157 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 876 of file dbg_lay.cxx.

References m_pFrameIds.

Referenced by Record_().

void SwImplProtocol::FileInit ( )

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

Definition at line 424 of file dbg_lay.cxx.

References CheckLine(), SvFileStream::Close(), SvStream::good(), SvFileStream::IsOpen(), m_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 866 of file dbg_lay.cxx.

References m_pFrameIds.

Referenced by CheckLine(), and Record_().

bool SwImplProtocol::NewStream ( )
private

Definition at line 302 of file dbg_lay.cxx.

References m_nLineCount, and m_pStream.

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

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

Definition at line 149 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 829 of file dbg_lay.cxx.

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

Referenced by Record_().

Member Data Documentation

OStringBuffer SwImplProtocol::m_aLayer
private

Definition at line 134 of file dbg_lay.cxx.

Referenced by Record_().

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

Definition at line 133 of file dbg_lay.cxx.

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

sal_uInt8 SwImplProtocol::m_nInitFile
private

Definition at line 138 of file dbg_lay.cxx.

Referenced by CheckLine(), and FileInit().

sal_uInt16 SwImplProtocol::m_nLineCount
private

Definition at line 136 of file dbg_lay.cxx.

Referenced by NewStream(), and Record_().

sal_uInt16 SwImplProtocol::m_nMaxLines
private

Definition at line 137 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

sal_uInt8 SwImplProtocol::m_nTestMode
private

Definition at line 140 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

SwFrameType SwImplProtocol::m_nTypes
private

Definition at line 135 of file dbg_lay.cxx.

Referenced by CheckLine(), and Record_().

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

Definition at line 132 of file dbg_lay.cxx.

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

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

Definition at line 130 of file dbg_lay.cxx.

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


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