summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-06-01 22:39:37 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-06-03 19:12:05 +0200
commitabf17aef7a1b5c559fee58e6db526fbd1758e331 (patch)
treeb72e7b20eee1478fee63e577f3c97fb450cdb465
parent86075a3f0f095cde29c6460d7e5dd4069ed89d00 (diff)
Moved SwDoc's get<Interface> methods from docnew to doc.cxx
To have them all in the same place. Change-Id: I8fd0f7fa0c88b5b17596998810d505deb14a8c06
-rw-r--r--sw/source/core/doc/doc.cxx36
-rw-r--r--sw/source/core/doc/docnew.cxx42
2 files changed, 36 insertions, 42 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index e4ea756240a3..01e94789a047 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -150,6 +150,32 @@ sal_Int32 SwDoc::getReferenceCount() const
return mReferenceCount;
}
+::sw::MetaFieldManager & SwDoc::GetMetaFieldManager()
+{
+ return *m_pMetaFieldManager;
+}
+
+::sw::UndoManager & SwDoc::GetUndoManager()
+{
+ return *m_pUndoManager;
+}
+
+::sw::UndoManager const & SwDoc::GetUndoManager() const
+{
+ return *m_pUndoManager;
+}
+
+
+IDocumentUndoRedo & SwDoc::GetIDocumentUndoRedo()
+{
+ return *m_pUndoManager;
+}
+
+IDocumentUndoRedo const & SwDoc::GetIDocumentUndoRedo() const
+{
+ return *m_pUndoManager;
+}
+
/* IDocumentDrawModelAccess */
IDocumentDrawModelAccess const & SwDoc::getIDocumentDrawModelAccess() const
{
@@ -182,6 +208,16 @@ IDocumentSettingAccess & SwDoc::getIDocumentSettingAccess()
return GetDocumentSettingManager();
}
+::sw::DocumentSettingManager & SwDoc::GetDocumentSettingManager()
+{
+ return *m_pDocumentSettingManager;
+}
+
+::sw::DocumentSettingManager const & SwDoc::GetDocumentSettingManager() const
+{
+ return *m_pDocumentSettingManager;
+}
+
sal_uInt32 SwDoc::getRsid() const
{
return mnRsid;
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 61441b4739fa..8699fca3f14b 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -912,48 +912,6 @@ SwDoc::GetXmlIdRegistry()
return *m_pXmlIdRegistry;
}
-::sw::MetaFieldManager &
-SwDoc::GetMetaFieldManager()
-{
- return *m_pMetaFieldManager;
-}
-
-::sw::UndoManager &
-SwDoc::GetUndoManager()
-{
- return *m_pUndoManager;
-}
-
-::sw::UndoManager const&
-SwDoc::GetUndoManager() const
-{
- return *m_pUndoManager;
-}
-
-::sw::DocumentSettingManager &
-SwDoc::GetDocumentSettingManager()
-{
- return *m_pDocumentSettingManager;
-}
-
-::sw::DocumentSettingManager const&
-SwDoc::GetDocumentSettingManager() const
-{
- return *m_pDocumentSettingManager;
-}
-
-IDocumentUndoRedo &
-SwDoc::GetIDocumentUndoRedo()
-{
- return *m_pUndoManager;
-}
-
-IDocumentUndoRedo const&
-SwDoc::GetIDocumentUndoRedo() const
-{
- return *m_pUndoManager;
-}
-
void SwDoc::InitTOXTypes()
{
ShellResource* pShellRes = SwViewShell::GetShellRes();