summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoredline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unoredline.cxx')
-rw-r--r--sw/source/core/unocore/unoredline.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/unocore/unoredline.cxx b/sw/source/core/unocore/unoredline.cxx
index ce58ecd5cca9..bd4d51bae2a2 100644
--- a/sw/source/core/unocore/unoredline.cxx
+++ b/sw/source/core/unocore/unoredline.cxx
@@ -161,7 +161,7 @@ uno::Reference<container::XEnumeration> SwXRedlineText::createEnumeration()
SolarMutexGuard aGuard;
SwPaM aPam(aNodeIndex);
aPam.Move(fnMoveForward, fnGoNode);
- auto pUnoCursor(GetDoc()->CreateUnoCrsr(*aPam.Start()));
+ auto pUnoCursor(GetDoc()->CreateUnoCursor(*aPam.Start()));
return SwXParagraphEnumeration::Create(this, pUnoCursor, CURSOR_REDLINE);
}
@@ -176,9 +176,9 @@ sal_Bool SwXRedlineText::hasElements( ) throw(uno::RuntimeException, std::excep
}
SwXRedlinePortion::SwXRedlinePortion(SwRangeRedline const& rRedline,
- SwUnoCrsr const*const pPortionCrsr,
+ SwUnoCursor const*const pPortionCursor,
uno::Reference< text::XText > const& xParent, bool const bStart)
- : SwXTextPortion(pPortionCrsr, xParent,
+ : SwXTextPortion(pPortionCursor, xParent,
(bStart) ? PORTION_REDLINE_START : PORTION_REDLINE_END)
, m_rRedline(rRedline)
{
@@ -239,8 +239,8 @@ uno::Any SwXRedlinePortion::getPropertyValue( const OUString& rPropertyName )
{
if ( 1 < ( pNodeIdx->GetNode().EndOfSectionIndex() - pNodeIdx->GetNode().GetIndex() ) )
{
- SwUnoCrsr& rUnoCrsr = GetCursor();
- uno::Reference<text::XText> xRet = new SwXRedlineText(rUnoCrsr.GetDoc(), *pNodeIdx);
+ SwUnoCursor& rUnoCursor = GetCursor();
+ uno::Reference<text::XText> xRet = new SwXRedlineText(rUnoCursor.GetDoc(), *pNodeIdx);
aRet <<= xRet;
}
else {
@@ -260,9 +260,9 @@ uno::Any SwXRedlinePortion::getPropertyValue( const OUString& rPropertyName )
void SwXRedlinePortion::Validate() throw( uno::RuntimeException )
{
- SwUnoCrsr& rUnoCrsr = GetCursor();
+ SwUnoCursor& rUnoCursor = GetCursor();
//search for the redline
- SwDoc* pDoc = rUnoCrsr.GetDoc();
+ SwDoc* pDoc = rUnoCursor.GetDoc();
const SwRedlineTable& rRedTable = pDoc->getIDocumentRedlineAccess().GetRedlineTable();
bool bFound = false;
for(size_t nRed = 0; nRed < rRedTable.size() && !bFound; nRed++)
@@ -535,7 +535,7 @@ uno::Reference< container::XEnumeration > SwXRedline::createEnumeration() throw
return nullptr;
SwPaM aPam(*pNodeIndex);
aPam.Move(fnMoveForward, fnGoNode);
- auto pUnoCursor(GetDoc()->CreateUnoCrsr(*aPam.Start()));
+ auto pUnoCursor(GetDoc()->CreateUnoCursor(*aPam.Start()));
return SwXParagraphEnumeration::Create(this, pUnoCursor, CURSOR_REDLINE);
}
@@ -564,20 +564,20 @@ uno::Reference< text::XTextCursor > SwXRedline::createTextCursor() throw( uno::
SwPosition aPos(*pNodeIndex);
SwXTextCursor *const pXCursor =
new SwXTextCursor(*pDoc, this, CURSOR_REDLINE, aPos);
- auto& rUnoCrsr(pXCursor->GetCursor());
- rUnoCrsr.Move(fnMoveForward, fnGoNode);
+ auto& rUnoCursor(pXCursor->GetCursor());
+ rUnoCursor.Move(fnMoveForward, fnGoNode);
// is here a table?
- SwTableNode* pTableNode = rUnoCrsr.GetNode().FindTableNode();
+ SwTableNode* pTableNode = rUnoCursor.GetNode().FindTableNode();
SwContentNode* pCont = nullptr;
while( pTableNode )
{
- rUnoCrsr.GetPoint()->nNode = *pTableNode->EndOfSectionNode();
- pCont = GetDoc()->GetNodes().GoNext(&rUnoCrsr.GetPoint()->nNode);
+ rUnoCursor.GetPoint()->nNode = *pTableNode->EndOfSectionNode();
+ pCont = GetDoc()->GetNodes().GoNext(&rUnoCursor.GetPoint()->nNode);
pTableNode = pCont->FindTableNode();
}
if(pCont)
- rUnoCrsr.GetPoint()->nContent.Assign(pCont, 0);
+ rUnoCursor.GetPoint()->nContent.Assign(pCont, 0);
xRet = static_cast<text::XWordCursor*>(pXCursor);
}
else