diff options
author | Michael Stahl <mst@openoffice.org> | 2010-03-16 11:28:29 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-03-16 11:28:29 +0100 |
commit | b0832f9ced2972f84f48d753554c1a5efc63d382 (patch) | |
tree | 088874bf269abc43664c996650cc7b49bee822b6 /sw/inc/doc.hxx | |
parent | 0c81e6d9550c35717e578cf8c622356400f3bed5 (diff) |
odfmetadata4: #i109600#: refactor insertion of TOX:
SwDoc::InsertTableOf(): do not create a SwTOXBaseSection.
SwNodes::InsertTextSection(): take SwTOXBase parameter.
SwSectionNode ctor: if SwTOXBase is given, create SwTOXBaseSection.
remove gross hack SwSectionNode::SetNewSection().
SwUnodo{Ins,Del}Section: adapt to store SwSection/SwTOXBase.
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r-- | sw/inc/doc.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index ff3d91add396..3b0f82bce4b6 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1803,8 +1803,9 @@ public: inline const Link& GetOle2Link() const {return aOle2Link;} // insert section (the ODF kind of section, not the nodesarray kind) - SwSection* InsertSwSection( const SwPaM& rRange, const SwSection& rNew, - const SfxItemSet* pAttr = 0, bool bUpdate = true); + SwSection * InsertSwSection(SwPaM const& rRange, SwSection const&, + SwTOXBase const*const pTOXBase = 0, + SfxItemSet const*const pAttr = 0, bool const bUpdate = true); sal_uInt16 IsInsRegionAvailable( const SwPaM& rRange, const SwNode** ppSttNd = 0 ) const; SwSection* GetCurrSection( const SwPosition& rPos ) const; |