LibreOffice Module sw (master) 1
Classes | Functions
dbg_lay.cxx File Reference
#include <dbg_lay.hxx>
#include <txtfrm.hxx>
#include <fntcache.hxx>
#include <tabfrm.hxx>
#include <rowfrm.hxx>
#include <cellfrm.hxx>
#include <layfrm.hxx>
#include <frame.hxx>
#include <swtable.hxx>
#include <ndtxt.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <tools/stream.hxx>
Include dependency graph for dbg_lay.cxx:

Go to the source code of this file.

Classes

class  SwImplProtocol
 
class  SwImplEnterLeave
 

Functions

static sal_uLong lcl_GetFrameId (const SwFrame *pFrame)
 
static void lcl_Start (OStringBuffer &rOut, OStringBuffer &rLay, DbgAction nAction)
 enable indentation by two spaces during DbgAction::Start and disable it again at DbgAction::End. More...
 
static void lcl_Flags (OStringBuffer &rOut, const SwFrame *pFrame)
 output the ValidSize-, ValidPos- and ValidPrtArea-Flag ("Sz","Ps","PA") of the frame; "+" stands for valid, "-" stands for invalid. More...
 
static void lcl_Padded (OStringBuffer &rOut, const OString &s, size_t length)
 
static void lcl_Padded (OStringBuffer &rOut, const tools::Long n, size_t length=5)
 
static void lcl_FrameRect (OStringBuffer &rOut, const char *hint, const SwRect &rect)
 output the frame as plain text. More...
 
static OString lcl_TableInfo (const SwTabFrame *pTabFrame)
 
static OString lcl_RowInfo (const SwRowFrame *pFrame)
 
static OUString lcl_CellText (const SwCellFrame *pFrame)
 
static OString lcl_CellInfo (const SwCellFrame *pFrame)
 
static void lcl_FrameType (OStringBuffer &rOut, const SwFrame *pFrame)
 output the type of the frame as plain text. More...
 

Function Documentation

◆ lcl_CellInfo()

static OString lcl_CellInfo ( const SwCellFrame pFrame)
static

◆ lcl_CellText()

static OUString lcl_CellText ( const SwCellFrame pFrame)
static

◆ lcl_Flags()

static void lcl_Flags ( OStringBuffer &  rOut,
const SwFrame pFrame 
)
static

output the ValidSize-, ValidPos- and ValidPrtArea-Flag ("Sz","Ps","PA") of the frame; "+" stands for valid, "-" stands for invalid.

Definition at line 474 of file dbg_lay.cxx.

References SwFrameAreaDefinition::isFrameAreaPositionValid(), SwFrameAreaDefinition::isFrameAreaSizeValid(), and SwFrameAreaDefinition::isFramePrintAreaValid().

Referenced by SwImplProtocol::Record_().

◆ lcl_FrameRect()

static void lcl_FrameRect ( OStringBuffer &  rOut,
const char *  hint,
const SwRect rect 
)
static

output the frame as plain text.

Definition at line 504 of file dbg_lay.cxx.

References lcl_Padded(), SwRect::Pos(), and SwRect::SSize().

Referenced by SwImplProtocol::Record_().

◆ lcl_FrameType()

static void lcl_FrameType ( OStringBuffer &  rOut,
const SwFrame pFrame 
)
static

◆ lcl_GetFrameId()

static sal_uLong lcl_GetFrameId ( const SwFrame pFrame)
static

◆ lcl_Padded() [1/2]

static void lcl_Padded ( OStringBuffer &  rOut,
const OString &  s,
size_t  length 
)
static

Definition at line 484 of file dbg_lay.cxx.

References i, length, and o3tl::make_unsigned().

Referenced by lcl_FrameRect(), and lcl_Padded().

◆ lcl_Padded() [2/2]

static void lcl_Padded ( OStringBuffer &  rOut,
const tools::Long  n,
size_t  length = 5 
)
static

Definition at line 495 of file dbg_lay.cxx.

References lcl_Padded(), length, and n.

◆ lcl_RowInfo()

static OString lcl_RowInfo ( const SwRowFrame pFrame)
static

Definition at line 527 of file dbg_lay.cxx.

References SwRowFrame::GetTabLine().

Referenced by SwImplProtocol::Record_().

◆ lcl_Start()

static void lcl_Start ( OStringBuffer &  rOut,
OStringBuffer &  rLay,
DbgAction  nAction 
)
static

enable indentation by two spaces during DbgAction::Start and disable it again at DbgAction::End.

Definition at line 454 of file dbg_lay.cxx.

References End, and Start.

Referenced by SwImplProtocol::Record_().

◆ lcl_TableInfo()

static OString lcl_TableInfo ( const SwTabFrame pTabFrame)
static