LibreOffice Module sw (master) 1
|
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< SvFileStream > | m_pStream |
std::unique_ptr< std::set< sal_uInt16 > > | m_pFrameIds |
std::vector< tools::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 |
Definition at line 130 of file dbg_lay.cxx.
SwImplProtocol::SwImplProtocol | ( | ) |
Definition at line 295 of file dbg_lay.cxx.
References NewStream().
SwImplProtocol::~SwImplProtocol | ( | ) |
Definition at line 315 of file dbg_lay.cxx.
References m_aVars, m_pFrameIds, and m_pStream.
|
private |
analyze a line in the INI file
Definition at line 327 of file dbg_lay.cxx.
References FileInit, FRM_ALL, o3tl::getToken(), InsertFrame(), m_aVars, m_nInitFile, m_nMaxLines, m_nTestMode, m_nTypes, m_pFrameIds, nIndex, SwProtocol::Record(), SwProtocol::SetRecord(), and o3tl::toInt64().
Referenced by FileInit().
|
inline |
Definition at line 159 of file dbg_lay.cxx.
References m_pStream, and 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 875 of file dbg_lay.cxx.
References m_pFrameIds, and nId.
Referenced by Record_().
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_().
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.
nId | new FrameId for logging |
Definition at line 865 of file dbg_lay.cxx.
References m_pFrameIds, and nId.
Referenced by CheckLine(), and Record_().
|
private |
Definition at line 304 of file dbg_lay.cxx.
References m_nLineCount, and m_pStream.
Referenced by ChkStream(), Record_(), and SwImplProtocol().
|
inline |
Definition at line 151 of file dbg_lay.cxx.
References m_pStream, and Record_().
Referenced by SwProtocol::Record().
|
private |
Is only called if the PROTOCOL macro finds out, that this function should be recorded (.
In this method we also check if FrameId and frame type should be logged.
Definition at line 626 of file dbg_lay.cxx.
References AdjustN, Cut, DeleteFrame(), endl(), FileInit, FileInit(), FrmChanges, SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwFrame::GetType(), Grow, GrowTest, SwRect::Height(), Init, InsertFrame(), SwFrame::IsCellFrame(), SwFrame::IsRowFrame(), SwFrame::IsTabFrame(), SwFrame::IsTextFrame(), lcl_CellInfo(), lcl_Flags(), lcl_FrameRect(), lcl_FrameType(), lcl_GetFrameId(), lcl_RowInfo(), lcl_Start(), lcl_TableInfo(), Leaf, SwRect::Left(), m_aLayer, m_nLineCount, m_nMaxLines, m_nTestMode, m_nTypes, m_pFrameIds, m_pStream, MakeAll, MoveBack, MoveFwd, NewStream(), nId, OUStringToOString(), Paste, SwRect::Pos(), PrintArea, SAL_INFO, SAL_WARN, SectFunc(), Section, SwProtocol::SetRecord(), Shrink, ShrinkTest, Size, Start, TestFormat, text(), SwRect::Top(), and SwRect::Width().
Referenced by Record().
|
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_().
|
private |
Definition at line 136 of file dbg_lay.cxx.
Referenced by Record_().
|
private |
Definition at line 135 of file dbg_lay.cxx.
Referenced by CheckLine(), and ~SwImplProtocol().
|
private |
Definition at line 140 of file dbg_lay.cxx.
Referenced by CheckLine(), and FileInit().
|
private |
Definition at line 138 of file dbg_lay.cxx.
Referenced by NewStream(), and Record_().
|
private |
Definition at line 139 of file dbg_lay.cxx.
Referenced by CheckLine(), and Record_().
|
private |
Definition at line 142 of file dbg_lay.cxx.
Referenced by CheckLine(), and Record_().
|
private |
Definition at line 137 of file dbg_lay.cxx.
Referenced by CheckLine(), and Record_().
|
private |
Definition at line 134 of file dbg_lay.cxx.
Referenced by CheckLine(), DeleteFrame(), InsertFrame(), Record_(), and ~SwImplProtocol().
|
private |
Definition at line 132 of file dbg_lay.cxx.
Referenced by ChkStream(), NewStream(), Record(), Record_(), and ~SwImplProtocol().