diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-07-16 22:19:33 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-12 23:26:36 +0200 |
commit | 274f1811b92b870b8d450423d9b280b0889ca130 (patch) | |
tree | 3a917bc576cc1ae8fdcc02074da08696e475a6ce /sw/source/core/unocore/unoredlines.cxx | |
parent | b513f288275ae96f55e232f07bf94294c66e95a1 (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/core/unocore/unoredlines.cxx')
-rw-r--r-- | sw/source/core/unocore/unoredlines.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/unocore/unoredlines.cxx b/sw/source/core/unocore/unoredlines.cxx index 22da9bd94adb..639dda3d9343 100644 --- a/sw/source/core/unocore/unoredlines.cxx +++ b/sw/source/core/unocore/unoredlines.cxx @@ -49,7 +49,7 @@ sal_Int32 SwXRedlines::getCount( ) throw(uno::RuntimeException, std::exception) SolarMutexGuard aGuard; if(!IsValid()) throw uno::RuntimeException(); - const SwRedlineTbl& rRedTbl = GetDoc()->GetRedlineTbl(); + const SwRedlineTbl& rRedTbl = GetDoc()->getIDocumentRedlineAccess().GetRedlineTbl(); return rRedTbl.size(); } @@ -59,7 +59,7 @@ uno::Any SwXRedlines::getByIndex(sal_Int32 nIndex) SolarMutexGuard aGuard; if(!IsValid()) throw uno::RuntimeException(); - const SwRedlineTbl& rRedTbl = GetDoc()->GetRedlineTbl(); + const SwRedlineTbl& rRedTbl = GetDoc()->getIDocumentRedlineAccess().GetRedlineTbl(); uno::Any aRet; if ((rRedTbl.size() > static_cast<size_t>(nIndex)) && (nIndex >= 0)) { @@ -90,7 +90,7 @@ sal_Bool SwXRedlines::hasElements( ) throw(uno::RuntimeException, std::exceptio SolarMutexGuard aGuard; if(!IsValid()) throw uno::RuntimeException(); - const SwRedlineTbl& rRedTbl = GetDoc()->GetRedlineTbl(); + const SwRedlineTbl& rRedTbl = GetDoc()->getIDocumentRedlineAccess().GetRedlineTbl(); return rRedTbl.size() > 0; } @@ -143,7 +143,7 @@ sal_Bool SwXRedlineEnumeration::hasMoreElements(void) throw( uno::RuntimeExcepti { if(!pDoc) throw uno::RuntimeException(); - return pDoc->GetRedlineTbl().size() > nCurrentIndex; + return pDoc->getIDocumentRedlineAccess().GetRedlineTbl().size() > nCurrentIndex; } uno::Any SwXRedlineEnumeration::nextElement(void) @@ -151,7 +151,7 @@ uno::Any SwXRedlineEnumeration::nextElement(void) { if(!pDoc) throw uno::RuntimeException(); - const SwRedlineTbl& rRedTbl = pDoc->GetRedlineTbl(); + const SwRedlineTbl& rRedTbl = pDoc->getIDocumentRedlineAccess().GetRedlineTbl(); if( rRedTbl.size() <= nCurrentIndex ) throw container::NoSuchElementException(); uno::Reference <beans::XPropertySet> xRet = SwXRedlines::GetObject( *rRedTbl[nCurrentIndex++], *pDoc ); |