summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/ndcopy.cxx
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-07-24 16:46:12 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-12 23:26:36 +0200
commit69e5f335abcd838ad6dac04f8e2d14f39856dc43 (patch)
tree19b7e1a929576ec4da8ca981d8aee7a519b119bd /sw/source/core/docnode/ndcopy.cxx
parent274f1811b92b870b8d450423d9b280b0889ca130 (diff)
Refactored IDocumentFieldsAccess out of SwDoc.
Into the new class DocumentFieldsManager. Removed SwDoc::_MakeFldList because it is not defined anywhere. Also moved a few non interface methods that belong to the manager. Change-Id: Icefd7ca7adcbb05a18d6fae0529fc54150b862fd
Diffstat (limited to 'sw/source/core/docnode/ndcopy.cxx')
-rw-r--r--sw/source/core/docnode/ndcopy.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx
index d403e16b7ee6..37ad94d5baea 100644
--- a/sw/source/core/docnode/ndcopy.cxx
+++ b/sw/source/core/docnode/ndcopy.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <doc.hxx>
+#include <IDocumentFieldsAccess.hxx>
#include <node.hxx>
#include <frmfmt.hxx>
#include <swtable.hxx>
@@ -271,9 +272,9 @@ SwTableNode* SwTableNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
// Is the field type available in the new document?
pDDEType = ((SwDDETable&)GetTable()).GetDDEFldType();
if( pDDEType->IsDeleted() )
- pDoc->InsDeletedFldType( *pDDEType );
+ pDoc->getIDocumentFieldsAccess().InsDeletedFldType( *pDDEType );
else
- pDDEType = (SwDDEFieldType*)pDoc->InsertFldType( *pDDEType );
+ pDDEType = (SwDDEFieldType*)pDoc->getIDocumentFieldsAccess().InsertFldType( *pDDEType );
OSL_ENSURE( pDDEType, "unknown FieldType" );
// Swap the table pointers in the node