summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndtbl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/docnode/ndtbl.cxx')
-rw-r--r--sw/source/core/docnode/ndtbl.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 00e249b9e0fb..c35ca9731936 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -1485,6 +1485,8 @@ bool SwDoc::TableToText( const SwTableNode* pTableNd, sal_Unicode cCh )
return bRet;
}
+namespace {
+
/**
* Use the ForEach method from PtrArray to recreate Text from a Table.
* The Boxes can also contain Lines!
@@ -1500,6 +1502,8 @@ struct DelTabPara
pLastNd(nullptr), rNds( rNodes ), pUndo( pU ), cCh( cChar ) {}
};
+}
+
// Forward declare so that the Lines and Boxes can use recursion
static void lcl_DelBox( SwTableBox* pBox, DelTabPara* pDelPara );
@@ -2500,11 +2504,15 @@ void SwDoc::GetTabCols( SwTabCols &rFill, const SwCellFrame* pBoxFrame )
#define ROWFUZZY 25
+namespace {
+
struct FuzzyCompare
{
bool operator() ( long s1, long s2 ) const;
};
+}
+
bool FuzzyCompare::operator() ( long s1, long s2 ) const
{
return ( s1 < s2 && std::abs( s1 - s2 ) > ROWFUZZY );
@@ -3239,6 +3247,8 @@ static bool lcl_ChgTableSize( SwTable& rTable )
return true;
}
+namespace {
+
class SplitTable_Para
{
std::map<SwFrameFormat const *, SwFrameFormat*> aSrcDestMap;
@@ -3265,6 +3275,8 @@ public:
}
};
+}
+
static void lcl_SplitTable_CpyBox( SwTableBox* pBox, SplitTable_Para* pPara );
static void lcl_SplitTable_CpyLine( SwTableLine* pLn, SplitTable_Para* pPara )
@@ -3583,6 +3595,8 @@ bool SwNodes::MergeTable( const SwNodeIndex& rPos, bool bWithPrev,
return true;
}
+namespace {
+
// Use the PtrArray's ForEach method
struct SetAFormatTabPara
{
@@ -3598,6 +3612,8 @@ struct SetAFormatTabPara
{}
};
+}
+
// Forward declare so that the Lines and Boxes can use recursion
static bool lcl_SetAFormatBox(FndBox_ &, SetAFormatTabPara *pSetPara, bool bResetDirect);
static bool lcl_SetAFormatLine(FndLine_ &, SetAFormatTabPara *pPara, bool bResetDirect);