summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/ndtxt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode/ndtxt.cxx')
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 97198e980e56..31b9b3f43461 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -141,11 +141,11 @@ SwTextNode *SwNodes::MakeTextNode( const SwNodeIndex & rWhere,
SwNode * pNd = & aTmp.GetNode();
switch (pNd->GetNodeType())
{
- case ND_TABLENODE:
+ case SwNodeType::Table:
static_cast<SwTableNode*>(pNd)->MakeFrames( aIdx );
return pNode;
- case ND_SECTIONNODE:
+ case SwNodeType::Section:
if( static_cast<SwSectionNode*>(pNd)->GetSection().IsHidden() ||
static_cast<SwSectionNode*>(pNd)->IsContentHidden() )
{
@@ -159,13 +159,13 @@ SwTextNode *SwNodes::MakeTextNode( const SwNodeIndex & rWhere,
static_cast<SwSectionNode*>(pNd)->MakeFrames( aIdx );
return pNode;
- case ND_TEXTNODE:
- case ND_GRFNODE:
- case ND_OLENODE:
+ case SwNodeType::Text:
+ case SwNodeType::Grf:
+ case SwNodeType::Ole:
static_cast<SwContentNode*>(pNd)->MakeFrames( *pNode );
return pNode;
- case ND_ENDNODE:
+ case SwNodeType::End:
if( pNd->StartOfSectionNode()->IsSectionNode() &&
aTmp.GetIndex() < rWhere.GetIndex() )
{
@@ -199,7 +199,7 @@ SwTextNode *SwNodes::MakeTextNode( const SwNodeIndex & rWhere,
}
SwTextNode::SwTextNode( const SwNodeIndex &rWhere, SwTextFormatColl *pTextColl, const SfxItemSet* pAutoAttr )
-: SwContentNode( rWhere, ND_TEXTNODE, pTextColl ),
+: SwContentNode( rWhere, SwNodeType::Text, pTextColl ),
m_pSwpHints( nullptr ),
mpNodeNum( nullptr ),
m_Text(),