summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-07-16 22:19:33 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-12 23:26:36 +0200
commit274f1811b92b870b8d450423d9b280b0889ca130 (patch)
tree3a917bc576cc1ae8fdcc02074da08696e475a6ce /sw/source/ui/vba
parentb513f288275ae96f55e232f07bf94294c66e95a1 (diff)
Refactored IDocumentRedlineAccess out of SwDoc.
Into the new class DocumentRedlineManager. Added an non const version of GetRedlineTbl to the interface. Also Moved SetAutoFmtRedlineComment which is not part of interface. Change-Id: I600d5821d5d5831557f5fc5375fb1203fe67a295
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbarevision.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbarevision.cxx b/sw/source/ui/vba/vbarevision.cxx
index ceac995b5ac7..e1133dd430a4 100644
--- a/sw/source/ui/vba/vbarevision.cxx
+++ b/sw/source/ui/vba/vbarevision.cxx
@@ -23,6 +23,7 @@
#include "wordvbahelper.hxx"
#include <docsh.hxx>
#include <doc.hxx>
+#include <IDocumentRedlineAccess.hxx>
using namespace ::ooo::vba;
using namespace ::com::sun::star;
@@ -62,7 +63,7 @@ SwVbaRevision::Accept() throw ( css::uno::RuntimeException, std::exception )
{
SwDoc* pDoc = word::getDocShell( mxModel )->GetDoc();
if( pDoc )
- pDoc->AcceptRedline( GetPosition(), true );
+ pDoc->getIDocumentRedlineAccess().AcceptRedline( GetPosition(), true );
}
void SAL_CALL
@@ -70,7 +71,7 @@ SwVbaRevision::Reject( ) throw ( css::uno::RuntimeException, std::exception )
{
SwDoc* pDoc = word::getDocShell( mxModel )->GetDoc();
if( pDoc )
- pDoc->RejectRedline( GetPosition(), true );
+ pDoc->getIDocumentRedlineAccess().RejectRedline( GetPosition(), true );
}
OUString