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 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, sal_uLong 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 (const OUString &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

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

Definition at line 62 of file swtable.cxx.

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

#define COLFUZZY   20

Typedef Documentation

Definition at line 974 of file swtable.cxx.

typedef std::pair<sal_uInt16, sal_uInt16> ColChange

Definition at line 973 of file swtable.cxx.

Function Documentation

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

Definition at line 1933 of file swtable.cxx.

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

void DelBoxNode ( SwTableSortBoxes const &  rSortCntBoxes)

Definition at line 202 of file swtable.cxx.

References n, and o3tl::sorted_vector< Value, Compare, Find, class >::size().

Referenced by SwTable::~SwTable().

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

Definition at line 247 of file swtable.cxx.

Referenced by lcl_ModifyBoxes().

void InsTableBox ( SwDoc rDoc,
SwTableNode pTableNd,
SwTableLine pLine,
SwTableBoxFormat pBoxFrameFormat,
SwTableBox pBox,
sal_uInt16  nInsPos,
sal_uInt16  nCnt 
)
static void lcl_AdjustBox ( SwTableBox pBox,
const tools::Long  nDiff,
Parm rParm 
)
static
static void lcl_AdjustLines ( SwTableLines rLines,
const tools::Long  nDiff,
Parm rParm 
)
static

Definition at line 793 of file swtable.cxx.

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

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

static void lcl_AdjustWidthsInLine ( SwTableLine pLine,
ChangeList rOldNew,
Parm rParm,
sal_uInt16  nColFuzzy 
)
static
static void lcl_CalcNewWidths ( std::vector< sal_uInt16 > &  rSpanPos,
ChangeList rChanges,
SwTableLine pLine,
tools::Long  nWish,
tools::Long  nWidth,
bool  bTop 
)
static
static OUString& lcl_DelTabsAtSttEnd ( OUString &  rText)
static

Definition at line 110 of file swtable.cxx.

References n.

Referenced by SwTableBox::IsNumberChanged().

static bool lcl_IsValidRowName ( const OUString &  rStr)
static

Definition at line 1253 of file swtable.cxx.

References i.

Referenced by SwTable::GetBoxNum().

static void lcl_ModifyBoxes ( SwTableBoxes rBoxes,
const tools::Long  nOld,
const tools::Long  nNew,
std::vector< SwFormat * > &  rFormatArr 
)
static
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 257 of file swtable.cxx.

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

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

static void lcl_ProcessBoxGet ( const SwTableBox pBox,
SwTabCols rToFill,
const SwFrameFormat pTabFormat,
bool  bRefreshHidden 
)
static
static void lcl_ProcessBoxPtr ( SwTableBox pBox,
std::deque< SwTableBox * > &  rBoxArr,
bool  bBefore 
)
static

Definition at line 772 of file swtable.cxx.

References SwTableLines::empty(), SwTableBox::GetTabLines(), i, and SwTableLines::size().

Referenced by SwTable::SetTabCols().

static void lcl_ProcessBoxSet ( SwTableBox pBox,
Parm rParm 
)
static
static void lcl_ProcessLine ( SwTableLine pLine,
Parm rParm 
)
static

Definition at line 610 of file swtable.cxx.

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

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

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

Definition at line 358 of file swtable.cxx.

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

Referenced by lcl_SortedTabColInsert().

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

Definition at line 96 of file swtable.cxx.

References n.

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

void sw_GetTableBoxColStr ( sal_uInt16  nCol,
OUString &  rNm 
)