summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno/unotxdoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 2fd36e885ddc..3aa9a3cfa688 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -450,6 +450,12 @@ SwXTextDocument::SwXTextDocument(SwDocShell* pShell)
{
}
+SdrModel* SwXTextDocument::getSdrModelFromUnoModel() const
+{
+ OSL_ENSURE(pDocShell->GetDoc()->getIDocumentDrawModelAccess().GetOrCreateDrawModel(), "No SdrModel in SwDoc, should not happen");
+ return pDocShell->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel();
+}
+
SwXTextDocument::~SwXTextDocument()
{
InitNewDoc();