LibreOffice Module sw (master)  1
Classes | Macros | Typedefs | Functions
swtable.cxx File Reference
#include <float.h>
#include <hintids.hxx>
#include <hints.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/colritem.hxx>
#include <sfx2/linkmgr.hxx>
#include <editeng/boxitem.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 <list>
#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 *pDoc, 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 long nOld, const long nNew, std::vector< SwFormat * > &rFormatArr)
 
static void lcl_ModifyLines (SwTableLines &rLines, const long nOld, const 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 long nDiff, Parm &rParm)
 
static void lcl_AdjustLines (SwTableLines &rLines, const long nDiff, Parm &rParm)
 
static void lcl_AdjustWidthsInLine (SwTableLine *pLine, ChangeList &rOldNew, Parm &rParm, sal_uInt16 nColFuzzy)
 
static void lcl_CalcNewWidths (std::list< sal_uInt16 > &rSpanPos, ChangeList &rChanges, SwTableLine *pLine, long nWish, 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 63 of file swtable.cxx.

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

#define COLFUZZY   20

Typedef Documentation

Definition at line 991 of file swtable.cxx.

typedef std::pair<sal_uInt16, sal_uInt16> ColChange

Definition at line 990 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 1947 of file swtable.cxx.

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

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

Definition at line 274 of file swtable.cxx.

Referenced by lcl_ModifyBoxes().

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

Definition at line 811 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::list< sal_uInt16 > &  rSpanPos,
ChangeList rChanges,
SwTableLine pLine,
long  nWish,
long  nWidth,
bool  bTop 
)
static
static OUString& lcl_DelTabsAtSttEnd ( OUString &  rText)
static

Definition at line 137 of file swtable.cxx.

Referenced by SwTableBox::IsNumberChanged().

static bool lcl_IsValidRowName ( const OUString &  rStr)
static

Definition at line 1270 of file swtable.cxx.

References i.

Referenced by SwTable::GetBoxNum().

static void lcl_ModifyBoxes ( SwTableBoxes rBoxes,
const long  nOld,
const long  nNew,
std::vector< SwFormat * > &  rFormatArr 
)
static
static void lcl_ModifyLines ( SwTableLines rLines,
const long  nOld,
const long  nNew,
std::vector< SwFormat * > &  rFormatArr,
const bool  bCheckSum 
)
static

Definition at line 284 of file swtable.cxx.

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

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 790 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 628 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 376 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 123 of file swtable.cxx.

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

void sw_GetTableBoxColStr ( sal_uInt16  nCol,
OUString &  rNm 
)