LibreOffice Module sw (master) 1
Classes | Macros | Typedefs | Functions
swtable.cxx File Reference
#include <hintids.hxx>
#include <hints.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/colritem.hxx>
#include <osl/diagnose.h>
#include <sfx2/linkmgr.hxx>
#include <fmtfsize.hxx>
#include <fmtornt.hxx>
#include <fmtpdsc.hxx>
#include <fldbas.hxx>
#include <fmtfld.hxx>
#include <frmatr.hxx>
#include <doc.hxx>
#include <IDocumentLinksAdministration.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <docary.hxx>
#include <frame.hxx>
#include <swtable.hxx>
#include <ndtxt.hxx>
#include <tabcol.hxx>
#include <tabfrm.hxx>
#include <cellfrm.hxx>
#include <rowfrm.hxx>
#include <swserv.hxx>
#include <expfld.hxx>
#include <mdiexp.hxx>
#include <cellatr.hxx>
#include <txatbase.hxx>
#include <htmltbl.hxx>
#include <swtblfmt.hxx>
#include <ndindex.hxx>
#include <tblrwcl.hxx>
#include <shellres.hxx>
#include <viewsh.hxx>
#include <redline.hxx>
#include <vector>
#include <calbck.hxx>
#include <o3tl/string_view.hxx>
#include <svl/numformat.hxx>
Include dependency graph for swtable.cxx:

Go to the source code of this file.

Classes

struct  Parm
 
struct  SwTableCellInfo::Impl
 

Macros

#define CHECK_TABLE(t)   (t).CheckConsistency();
 
#define COLFUZZY   20
 

Typedefs

typedef std::pair< sal_uInt16, sal_uInt16 > ColChange
 
typedef std::list< ColChangeChangeList
 

Functions

static void ChgTextToNum (SwTableBox &rBox, const OUString &rText, const Color *pCol, bool bChgAlign, SwNodeOffset nNdPos)
 
static OUString & lcl_TabToBlankAtSttEnd (OUString &rText)
 
static OUString & lcl_DelTabsAtSttEnd (OUString &rText)
 
void InsTableBox (SwDoc &rDoc, SwTableNode *pTableNd, SwTableLine *pLine, SwTableBoxFormat *pBoxFrameFormat, SwTableBox *pBox, sal_uInt16 nInsPos, sal_uInt16 nCnt)
 
void DelBoxNode (SwTableSortBoxes const &rSortCntBoxes)
 
static void FormatInArr (std::vector< SwFormat * > &rFormatArr, SwFormat *pBoxFormat)
 
static void lcl_ModifyBoxes (SwTableBoxes &rBoxes, const tools::Long nOld, const tools::Long nNew, std::vector< SwFormat * > &rFormatArr)
 
static void lcl_ModifyLines (SwTableLines &rLines, const tools::Long nOld, const tools::Long nNew, std::vector< SwFormat * > &rFormatArr, const bool bCheckSum)
 
static void lcl_RefreshHidden (SwTabCols &rToFill, size_t nPos)
 
static void lcl_SortedTabColInsert (SwTabCols &rToFill, const SwTableBox *pBox, const SwFrameFormat *pTabFormat, const bool bHidden, const bool bRefreshHidden)
 
static void lcl_ProcessBoxGet (const SwTableBox *pBox, SwTabCols &rToFill, const SwFrameFormat *pTabFormat, bool bRefreshHidden)
 
static void lcl_ProcessLineGet (const SwTableLine *pLine, SwTabCols &rToFill, const SwFrameFormat *pTabFormat)
 
static void lcl_ProcessBoxSet (SwTableBox *pBox, Parm &rParm)
 
static void lcl_ProcessLine (SwTableLine *pLine, Parm &rParm)
 
static void lcl_ProcessBoxPtr (SwTableBox *pBox, std::deque< SwTableBox * > &rBoxArr, bool bBefore)
 
static void lcl_AdjustBox (SwTableBox *pBox, const tools::Long nDiff, Parm &rParm)
 
static void lcl_AdjustLines (SwTableLines &rLines, const tools::Long nDiff, Parm &rParm)
 
static void lcl_AdjustWidthsInLine (SwTableLine *pLine, ChangeList &rOldNew, Parm &rParm, sal_uInt16 nColFuzzy)
 
static void lcl_CalcNewWidths (std::vector< sal_uInt16 > &rSpanPos, ChangeList &rChanges, SwTableLine *pLine, tools::Long nWish, tools::Long nWidth, bool bTop)
 
static bool lcl_IsValidRowName (std::u16string_view rStr)
 
void sw_GetTableBoxColStr (sal_uInt16 nCol, OUString &rNm)
 
static void ChgTextToNum (SwTableBox &rBox, const OUString &rText, const Color *pCol, bool bChgAlign)
 
static void ChgNumToText (SwTableBox &rBox, sal_uLong nFormat)
 

Macro Definition Documentation

◆ CHECK_TABLE

#define CHECK_TABLE (   t)    (t).CheckConsistency();

Definition at line 64 of file swtable.cxx.

◆ COLFUZZY

#define COLFUZZY   20

Definition at line 72 of file swtable.cxx.

Typedef Documentation

◆ ChangeList

typedef std::list< ColChange > ChangeList

Definition at line 987 of file swtable.cxx.

◆ ColChange

typedef std::pair<sal_uInt16, sal_uInt16> ColChange

Definition at line 986 of file swtable.cxx.

Function Documentation

◆ ChgNumToText()

static void ChgNumToText ( SwTableBox rBox,
sal_uLong  nFormat 
)
static

◆ ChgTextToNum() [1/2]

static void ChgTextToNum ( SwTableBox rBox,
const OUString &  rText,
const Color pCol,
bool  bChgAlign 
)
static

Definition at line 2162 of file swtable.cxx.

References ChgTextToNum(), and SwTableBox::IsValidNumTextNd().

◆ ChgTextToNum() [2/2]

void ChgTextToNum ( SwTableBox rBox,
const OUString &  rText,
const Color pCol,
bool  bChgAlign,
SwNodeOffset  nNdPos 
)
static

◆ DelBoxNode()

void DelBoxNode ( SwTableSortBoxes const &  rSortCntBoxes)

Definition at line 207 of file swtable.cxx.

Referenced by SwTable::~SwTable().

◆ FormatInArr()

static void FormatInArr ( std::vector< SwFormat * > &  rFormatArr,
SwFormat pBoxFormat 
)
static

Definition at line 253 of file swtable.cxx.

Referenced by lcl_ModifyBoxes().

◆ InsTableBox()

void InsTableBox ( SwDoc rDoc,
SwTableNode pTableNd,
SwTableLine pLine,
SwTableBoxFormat pBoxFrameFormat,
SwTableBox pBox,
sal_uInt16  nInsPos,
sal_uInt16  nCnt 
)

◆ lcl_AdjustBox()

static void lcl_AdjustBox ( SwTableBox pBox,
const tools::Long  nDiff,
Parm rParm 
)
static

◆ lcl_AdjustLines()

static void lcl_AdjustLines ( SwTableLines rLines,
const tools::Long  nDiff,
Parm rParm 
)
static

Definition at line 797 of file swtable.cxx.

References i, lcl_AdjustBox(), and SwTableLines::size().

Referenced by lcl_AdjustBox(), and SwTable::SetTabCols().

◆ lcl_AdjustWidthsInLine()

static void lcl_AdjustWidthsInLine ( SwTableLine pLine,
ChangeList rOldNew,
Parm rParm,
sal_uInt16  nColFuzzy 
)
static

◆ lcl_CalcNewWidths()

static void lcl_CalcNewWidths ( std::vector< sal_uInt16 > &  rSpanPos,
ChangeList rChanges,
SwTableLine pLine,
tools::Long  nWish,
tools::Long  nWidth,
bool  bTop 
)
static

◆ lcl_DelTabsAtSttEnd()

static OUString & lcl_DelTabsAtSttEnd ( OUString &  rText)
static

Definition at line 107 of file swtable.cxx.

References n.

Referenced by SwTableBox::IsNumberChanged().

◆ lcl_IsValidRowName()

static bool lcl_IsValidRowName ( std::u16string_view  rStr)
static

Definition at line 1265 of file swtable.cxx.

References i.

Referenced by SwTable::GetBoxNum().

◆ lcl_ModifyBoxes()

static void lcl_ModifyBoxes ( SwTableBoxes rBoxes,
const tools::Long  nOld,
const tools::Long  nNew,
std::vector< SwFormat * > &  rFormatArr 
)
static

◆ lcl_ModifyLines()

static void lcl_ModifyLines ( SwTableLines rLines,
const tools::Long  nOld,
const tools::Long  nNew,
std::vector< SwFormat * > &  rFormatArr,
const bool  bCheckSum 
)
static

Definition at line 263 of file swtable.cxx.

References i, lcl_ModifyBoxes(), SwTableLines::size(), and Variable.

Referenced by SwTable::AdjustWidths(), and lcl_ModifyBoxes().

◆ lcl_ProcessBoxGet()

static void lcl_ProcessBoxGet ( const SwTableBox pBox,
SwTabCols rToFill,
const SwFrameFormat pTabFormat,
bool  bRefreshHidden 
)
static

◆ lcl_ProcessBoxPtr()

static void lcl_ProcessBoxPtr ( SwTableBox pBox,
std::deque< SwTableBox * > &  rBoxArr,
bool  bBefore 
)
static

◆ lcl_ProcessBoxSet()

static void lcl_ProcessBoxSet ( SwTableBox pBox,
Parm rParm 
)
static

◆ lcl_ProcessLine()

static void lcl_ProcessLine ( SwTableLine pLine,
Parm rParm 
)
static

Definition at line 614 of file swtable.cxx.

References SwTableLine::GetTabBoxes(), i, and lcl_ProcessBoxSet().

Referenced by lcl_ProcessBoxSet(), and SwTable::SetTabCols().

◆ lcl_ProcessLineGet()

static void lcl_ProcessLineGet ( const SwTableLine pLine,
SwTabCols rToFill,
const SwFrameFormat pTabFormat 
)
static

◆ lcl_RefreshHidden()

static void lcl_RefreshHidden ( SwTabCols rToFill,
size_t  nPos 
)
static

Definition at line 362 of file swtable.cxx.

References abs(), COLFUZZY, SwTabCols::Count(), i, nPos, and SwTabCols::SetHidden().

Referenced by lcl_SortedTabColInsert().

◆ lcl_SortedTabColInsert()

static void lcl_SortedTabColInsert ( SwTabCols rToFill,
const SwTableBox pBox,
const SwFrameFormat pTabFormat,
const bool  bHidden,
const bool  bRefreshHidden 
)
static

◆ lcl_TabToBlankAtSttEnd()

static OUString & lcl_TabToBlankAtSttEnd ( OUString &  rText)
static

Definition at line 93 of file swtable.cxx.

References n, and u.

Referenced by SwTableBoxFormat::BoxAttributeChanged(), and SwTableBox::HasNumContent().

◆ sw_GetTableBoxColStr()

void sw_GetTableBoxColStr ( sal_uInt16  nCol,
OUString &  rNm 
)