summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/inc/content.hxx15
-rw-r--r--sw/source/uibase/utlui/content.cxx6
2 files changed, 2 insertions, 19 deletions
diff --git a/sw/source/uibase/inc/content.hxx b/sw/source/uibase/inc/content.hxx
index 414db7068dcb..4bb37efaa544 100644
--- a/sw/source/uibase/inc/content.hxx
+++ b/sw/source/uibase/inc/content.hxx
@@ -53,21 +53,6 @@ class SwOutlineContent : public SwContent
bool IsMoveable() const {return bIsMoveable;};
};
-class SwRegionContent : public SwContent
-{
-
- sal_uInt8 nRegionLevel;
-
- public:
- SwRegionContent( const SwContentType* pCnt,
- const OUString& rName,
- sal_uInt8 nLevel,
- long nYPos) :
- SwContent(pCnt, rName, nYPos),
- nRegionLevel(nLevel){}
- sal_uInt8 GetRegionLevel() const {return nRegionLevel;}
-};
-
class SwURLFieldContent : public SwContent
{
OUString sURL;
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 366816e032f2..fa20a29864ff 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -369,8 +369,7 @@ void SwContentType::Init(bool* pbInvalidateWindow)
pParentFormat = pParentFormat->GetParent();
}
- std::unique_ptr<SwContent> pCnt(new SwRegionContent(this, rSectionName,
- nLevel,
+ std::unique_ptr<SwContent> pCnt(new SwContent(this, rSectionName,
pFormat->FindLayoutRect( false, &aNullPt ).Top()));
SwPtrMsgPoolItem aAskItem( RES_CONTENT_VISIBLE, nullptr );
@@ -675,8 +674,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
pParentFormat = pParentFormat->GetParent();
}
- std::unique_ptr<SwContent> pCnt(new SwRegionContent(this, sSectionName,
- nLevel,
+ std::unique_ptr<SwContent> pCnt(new SwContent(this, sSectionName,
pFormat->FindLayoutRect( false, &aNullPt ).Top()));
if( !pFormat->GetInfo( aAskItem ) &&
!aAskItem.pObject ) // not visible