editeng/source/editeng/editeng.cxx  |   47 +--
 editeng/source/editeng/editsel.cxx  |    8 
 editeng/source/editeng/editundo.cxx |   52 +--
 editeng/source/editeng/editview.cxx |  361 ++++++++++++------------
 editeng/source/editeng/edtspell.cxx |   11 
 editeng/source/editeng/impedit.cxx  |  520 ++++++++++++++++++------------------
 editeng/source/editeng/impedit.hxx  |  138 +++++----
 editeng/source/editeng/impedit2.cxx |   98 +++---
 editeng/source/editeng/impedit3.cxx |   18 -
 editeng/source/editeng/impedit4.cxx |   84 ++---
 editeng/source/editeng/impedit5.cxx |    2 
 editeng/source/editeng/textconv.cxx |    6 
 include/editeng/editview.hxx        |    4 
 13 files changed, 677 insertions(+), 672 deletions(-)

New commits:
commit da1df4cc483f10667c3d42369581d53a5b34f421
Author:     Tomaž Vajngerl <[email protected]>
AuthorDate: Mon Jan 22 00:26:48 2024 +0900
Commit:     Tomaž Vajngerl <[email protected]>
CommitDate: Thu Jan 25 11:02:13 2024 +0100

    editeng: prefix members of ImpEditView
    
    Change-Id: Icc64978d53a3fbbf4f1d71058ffc83b8483cc0fe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162529
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <[email protected]>

diff --git a/editeng/source/editeng/editeng.cxx 
b/editeng/source/editeng/editeng.cxx
index 61b979abd320..51dce307064b 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1400,7 +1400,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
     if ( ( !IsEffectivelyVertical() && ( nCode != KEY_UP ) && ( nCode != 
KEY_DOWN ) ) ||
          ( IsEffectivelyVertical() && ( nCode != KEY_LEFT ) && ( nCode != 
KEY_RIGHT ) ))
     {
-        pEditView->getImpl().nTravelXPos = TRAVEL_X_DONTKNOW;
+        pEditView->getImpl().mnTravelXPos = TRAVEL_X_DONTKNOW;
     }
 
     if ( /* ( nCode != KEY_HOME ) && ( nCode != KEY_END ) && */
@@ -1410,8 +1410,8 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
         pEditView->getImpl().SetCursorBidiLevel( CURSOR_BIDILEVEL_DONTKNOW );
     }
 
-    if ( bSetCursorFlags )
-        pEditView->getImpl().nExtraCursorFlags = nNewCursorFlags;
+    if (bSetCursorFlags)
+        pEditView->getImpl().mnExtraCursorFlags = nNewCursorFlags;
 
     if ( bModified )
     {
diff --git a/editeng/source/editeng/editview.cxx 
b/editeng/source/editeng/editview.cxx
index 791902f4e486..c8b702c0de71 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -183,11 +183,11 @@ EditEngine& EditView::getEditEngine() const
 
 tools::Rectangle EditView::GetInvalidateRect() const
 {
-    if ( !getImpl().DoInvalidateMore() )
-        return getImpl().aOutArea;
+    if (!getImpl().DoInvalidateMore())
+        return getImpl().maOutputArea;
     else
     {
-        tools::Rectangle aRect( getImpl().aOutArea );
+        tools::Rectangle aRect(getImpl().maOutputArea);
         tools::Long nMore = getImpl().GetOutputDevice().PixelToLogic( Size( 
getImpl().GetInvalidateMore(), 0 ) ).Width();
         aRect.AdjustLeft( -nMore );
         aRect.AdjustRight(nMore );
@@ -229,7 +229,7 @@ void EditView::InvalidateOtherViewWindows( const 
tools::Rectangle& rInvRect )
     if (comphelper::LibreOfficeKit::isActive())
     {
         bool bNegativeX = IsNegativeX();
-        for (auto& pWin : getImpl().aOutWindowSet)
+        for (auto& pWin : getImpl().maOutWindowSet)
         {
             if (pWin)
             {
@@ -249,12 +249,12 @@ void EditView::Invalidate()
 
 void EditView::SetReadOnly( bool bReadOnly )
 {
-    getImpl().bReadOnly = bReadOnly;
+    getImpl().mbReadOnly = bReadOnly;
 }
 
 bool EditView::IsReadOnly() const
 {
-    return getImpl().bReadOnly;
+    return getImpl().mbReadOnly;
 }
 
 void EditView::SetSelection( const ESelection& rESel )
@@ -364,15 +364,15 @@ void EditView::setEditEngine(EditEngine* pEditEngine)
     getImpl().SetEditSelection( aStartSel );
 }
 
-void EditView::SetWindow( vcl::Window* pWin )
+void EditView::SetWindow(vcl::Window* pWindow)
 {
-    getImpl().pOutWin = pWin;
+    getImpl().mpOutputWindow = pWindow;
     getImpEditEngine().GetSelEngine().Reset();
 }
 
 vcl::Window* EditView::GetWindow() const
 {
-    return getImpl().pOutWin;
+    return getImpl().mpOutputWindow;
 }
 
 OutputDevice& EditView::GetOutputDevice() const
@@ -390,7 +390,7 @@ LanguageType EditView::GetInputLanguage() const
 
 bool EditView::HasOtherViewWindow( vcl::Window* pWin )
 {
-    OutWindowSet& rOutWindowSet = getImpl().aOutWindowSet;
+    OutWindowSet& rOutWindowSet = getImpl().maOutWindowSet;
     auto found = std::find(rOutWindowSet.begin(), rOutWindowSet.end(), pWin);
     return (found != rOutWindowSet.end());
 }
@@ -399,13 +399,13 @@ bool EditView::AddOtherViewWindow( vcl::Window* pWin )
 {
     if (HasOtherViewWindow(pWin))
         return false;
-    getImpl().aOutWindowSet.emplace_back(pWin);
+    getImpl().maOutWindowSet.emplace_back(pWin);
     return true;
 }
 
 bool EditView::RemoveOtherViewWindow( vcl::Window* pWin )
 {
-    OutWindowSet& rOutWindowSet = getImpl().aOutWindowSet;
+    OutWindowSet& rOutWindowSet = getImpl().maOutWindowSet;
     auto found = std::find(rOutWindowSet.begin(), rOutWindowSet.end(), pWin);
     if (found == rOutWindowSet.end())
         return false;
@@ -446,7 +446,7 @@ PointerStyle EditView::GetPointer() const
 
 vcl::Cursor* EditView::GetCursor() const
 {
-    return getImpl().pCursor.get();
+    return getImpl().GetCursor();
 }
 
 void EditView::InsertText( const OUString& rStr, bool bSelect, bool 
bLOKShowSelect )
@@ -533,9 +533,9 @@ void EditView::ShowCursor( bool bGotoCursor, bool 
bForceVisCursor, bool bActivat
 
     if (getImpl().mpViewShell && !bActivate)
     {
-        if (!getImpl().pOutWin)
+        if (!getImpl().mpOutputWindow)
             return;
-        VclPtr<vcl::Window> pParent = 
getImpl().pOutWin->GetParentWithLOKNotifier();
+        VclPtr<vcl::Window> pParent = 
getImpl().mpOutputWindow->GetParentWithLOKNotifier();
         if (pParent && pParent->GetLOKWindowId() != 0)
             return;
 
@@ -551,9 +551,9 @@ void EditView::HideCursor(bool bDeactivate)
 
     if (getImpl().mpViewShell && !bDeactivate)
     {
-        if (!getImpl().pOutWin)
+        if (!getImpl().mpOutputWindow)
             return;
-        VclPtr<vcl::Window> pParent = 
getImpl().pOutWin->GetParentWithLOKNotifier();
+        VclPtr<vcl::Window> pParent = 
getImpl().mpOutputWindow->GetParentWithLOKNotifier();
         if (pParent && pParent->GetLOKWindowId() != 0)
             return;
 
@@ -575,7 +575,7 @@ const SfxItemSet& EditView::GetEmptyItemSet() const
 
 void EditView::SetAttribs( const SfxItemSet& rSet )
 {
-    DBG_ASSERT( !getImpl().aEditSelection.IsInvalid(), "Blind Selection in..." 
);
+    DBG_ASSERT(!getImpl().maEditSelection.IsInvalid(), "Blind Selection 
in...");
 
     getImpl().DrawSelectionXOR();
     getEditEngine().SetAttribs( getImpl().GetEditSelection(), rSet, 
SetAttribsMode::WholeWord );
@@ -631,7 +631,7 @@ void EditView::RemoveCharAttribs( sal_Int32 nPara, 
sal_uInt16 nWhich )
 
 SfxItemSet EditView::GetAttribs()
 {
-    DBG_ASSERT( !getImpl().aEditSelection.IsInvalid(), "Blind Selection in..." 
);
+    DBG_ASSERT(!getImpl().maEditSelection.IsInvalid(), "Blind Selection 
in...");
     return getImpEditEngine().GetAttribs( getImpl().GetEditSelection() );
 }
 
@@ -754,12 +754,12 @@ void EditView::RegisterOtherShell(OutlinerViewShell* 
pOtherShell)
 
 void EditView::SetControlWord( EVControlBits nWord )
 {
-    getImpl().nControl = nWord;
+    getImpl().mnControl = nWord;
 }
 
 EVControlBits EditView::GetControlWord() const
 {
-    return getImpl().nControl;
+    return getImpl().mnControl;
 }
 
 std::unique_ptr<EditTextObject> EditView::CreateTextObject()
diff --git a/editeng/source/editeng/impedit.cxx 
b/editeng/source/editeng/impedit.cxx
index 1808b6678cdd..4d5ba270bcb9 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -178,31 +178,31 @@ Point LOKSpecialPositioning::GetRefPoint() const
 
 //  class ImpEditView
 
-ImpEditView::ImpEditView( EditView* pView, EditEngine* pEditEngine, 
vcl::Window* pWindow ) :
-    pEditView(pView),
-    mpViewShell(nullptr),
-    mpOtherShell(nullptr),
-    mpEditEngine(pEditEngine),
-    pOutWin(pWindow),
-    nInvMore(1),
-    nControl(EVControlBits::AUTOSCROLL | EVControlBits::ENABLEPASTE),
-    nTravelXPos(TRAVEL_X_DONTKNOW),
-    nExtraCursorFlags(GetCursorFlags::NONE),
-    nCursorBidiLevel(CURSOR_BIDILEVEL_DONTKNOW),
-    nScrollDiffX(0),
-    bReadOnly(false),
-    bClickedInSelection(false),
-    bActiveDragAndDropListener(false),
-    aOutArea( Point(), mpEditEngine->GetPaperSize() ),
-    eSelectionMode(EESelectionMode::Std),
-    eAnchorMode(EEAnchorMode::TopLeft),
-    mpEditViewCallbacks(nullptr),
-    mbBroadcastLOKViewCursor(comphelper::LibreOfficeKit::isActive()),
-    mbSuppressLOKMessages(false),
-    mbNegativeX(false)
-{
-    aEditSelection.Min() = mpEditEngine->GetEditDoc().GetStartPaM();
-    aEditSelection.Max() = mpEditEngine->GetEditDoc().GetEndPaM();
+ImpEditView::ImpEditView(EditView* pView, EditEngine* pEditEngine, 
vcl::Window* pWindow)
+    : mpEditView(pView)
+    , mpViewShell(nullptr)
+    , mpOtherShell(nullptr)
+    , mpEditEngine(pEditEngine)
+    , mpOutputWindow(pWindow)
+    , mnInvalidateMore(1)
+    , mnControl(EVControlBits::AUTOSCROLL | EVControlBits::ENABLEPASTE)
+    , mnTravelXPos(TRAVEL_X_DONTKNOW)
+    , mnExtraCursorFlags(GetCursorFlags::NONE)
+    , mnCursorBidiLevel(CURSOR_BIDILEVEL_DONTKNOW)
+    , mnScrollDiffX(0)
+    , mbReadOnly(false)
+    , mbClickedInSelection(false)
+    , mbActiveDragAndDropListener(false)
+    , maOutputArea(Point(), mpEditEngine->GetPaperSize())
+    , meSelectionMode(EESelectionMode::Std)
+    , meAnchorMode(EEAnchorMode::TopLeft)
+    , mpEditViewCallbacks(nullptr)
+    , mbBroadcastLOKViewCursor(comphelper::LibreOfficeKit::isActive())
+    , mbSuppressLOKMessages(false)
+    , mbNegativeX(false)
+{
+    maEditSelection.Min() = mpEditEngine->GetEditDoc().GetStartPaM();
+    maEditSelection.Max() = mpEditEngine->GetEditDoc().GetEndPaM();
 
     SelectionChanged();
 }
@@ -211,8 +211,8 @@ ImpEditView::~ImpEditView()
 {
     RemoveDragAndDropListeners();
 
-    if ( pOutWin && ( pOutWin->GetCursor() == pCursor.get() ) )
-        pOutWin->SetCursor( nullptr );
+    if (mpOutputWindow && (mpOutputWindow->GetCursor() == mpCursor.get()))
+        mpOutputWindow->SetCursor( nullptr );
 }
 
 void ImpEditView::SetBackgroundColor( const Color& rColor )
@@ -243,14 +243,14 @@ const OutlinerViewShell* ImpEditView::GetViewShell() const
 void ImpEditView::SetEditSelection( const EditSelection& rEditSelection )
 {
     // set state before notification
-    aEditSelection = rEditSelection;
+    maEditSelection = rEditSelection;
 
     SelectionChanged();
 
     if (comphelper::LibreOfficeKit::isActive())
     {
         // Tiled rendering: selections are only painted when we are in 
selection mode.
-        getEditEngine().SetInSelectionMode(aEditSelection.HasRange());
+        getEditEngine().SetInSelectionMode(maEditSelection.HasRange());
     }
 
     if (getImpEditEngine().GetNotifyHdl().IsSet() )
@@ -324,13 +324,13 @@ void ImpEditView::SelectionChanged()
 
 // This function is also called when a text's font || size is changed. Because 
its highlight rectangle must be updated.
 void ImpEditView::lokSelectionCallback(const std::optional<tools::PolyPolygon> 
&pPolyPoly, bool bStartHandleVisible, bool bEndHandleVisible) {
-    VclPtr<vcl::Window> pParent = pOutWin->GetParentWithLOKNotifier();
+    VclPtr<vcl::Window> pParent = mpOutputWindow->GetParentWithLOKNotifier();
     vcl::Region aRegion( *pPolyPoly );
 
     if (pParent && pParent->GetLOKWindowId() != 0)
     {
-        const tools::Long nX = pOutWin->GetOutOffXPixel() - 
pParent->GetOutOffXPixel();
-        const tools::Long nY = pOutWin->GetOutOffYPixel() - 
pParent->GetOutOffYPixel();
+        const tools::Long nX = mpOutputWindow->GetOutOffXPixel() - 
pParent->GetOutOffXPixel();
+        const tools::Long nY = mpOutputWindow->GetOutOffYPixel() - 
pParent->GetOutOffYPixel();
 
         std::vector<tools::Rectangle> aRectangles;
         aRegion.GetRegionRectangles(aRectangles);
@@ -338,7 +338,7 @@ void ImpEditView::lokSelectionCallback(const 
std::optional<tools::PolyPolygon> &
         std::vector<OString> v;
         for (tools::Rectangle & rRectangle : aRectangles)
         {
-            rRectangle = pOutWin->LogicToPixel(rRectangle);
+            rRectangle = mpOutputWindow->LogicToPixel(rRectangle);
             rRectangle.Move(nX, nY);
             v.emplace_back(rRectangle.toString().getStr());
         }
@@ -353,32 +353,31 @@ void ImpEditView::lokSelectionCallback(const 
std::optional<tools::PolyPolygon> &
     }
     else if (mpViewShell)
     {
-        pOutWin->GetOutDev()->Push(vcl::PushFlags::MAPMODE);
-        if (pOutWin->GetMapMode().GetMapUnit() == MapUnit::MapTwip)
+        mpOutputWindow->GetOutDev()->Push(vcl::PushFlags::MAPMODE);
+        if (mpOutputWindow->GetMapMode().GetMapUnit() == MapUnit::MapTwip)
         {
             // Find the parent that is not right
             // on top of us to use its offset.
-            vcl::Window* parent = pOutWin->GetParent();
+            vcl::Window* parent = mpOutputWindow->GetParent();
             while (parent &&
-                    parent->GetOutOffXPixel() == pOutWin->GetOutOffXPixel() &&
-                    parent->GetOutOffYPixel() == pOutWin->GetOutOffYPixel())
+                    parent->GetOutOffXPixel() == 
mpOutputWindow->GetOutOffXPixel() &&
+                    parent->GetOutOffYPixel() == 
mpOutputWindow->GetOutOffYPixel())
             {
                 parent = parent->GetParent();
             }
 
             if (parent)
             {
-                lcl_translateTwips(*parent->GetOutDev(), 
*pOutWin->GetOutDev());
+                lcl_translateTwips(*parent->GetOutDev(), 
*mpOutputWindow->GetOutDev());
             }
         }
 
-        bool bMm100ToTwip = !mpLOKSpecialPositioning &&
-                (pOutWin->GetMapMode().GetMapUnit() == MapUnit::Map100thMM);
+        bool bMm100ToTwip = !mpLOKSpecialPositioning && 
(mpOutputWindow->GetMapMode().GetMapUnit() == MapUnit::Map100thMM);
 
         Point aOrigin;
-        if (pOutWin->GetMapMode().GetMapUnit() == MapUnit::MapTwip)
+        if (mpOutputWindow->GetMapMode().GetMapUnit() == MapUnit::MapTwip)
             // Writer comments: they use editeng, but are separate widgets.
-            aOrigin = pOutWin->GetMapMode().GetOrigin();
+            aOrigin = mpOutputWindow->GetMapMode().GetOrigin();
 
         OString sRectangle;
         OString sRefPoint;
@@ -390,13 +389,13 @@ void ImpEditView::lokSelectionCallback(const 
std::optional<tools::PolyPolygon> &
 
         if (!aRectangles.empty())
         {
-            if (pOutWin->IsChart())
+            if (mpOutputWindow->IsChart())
             {
                 const vcl::Window* pViewShellWindow = 
mpViewShell->GetEditWindowForActiveOLEObj();
-                if (pViewShellWindow && 
pViewShellWindow->IsAncestorOf(*pOutWin))
+                if (pViewShellWindow && 
pViewShellWindow->IsAncestorOf(*mpOutputWindow))
                 {
-                    Point aOffsetPx = 
pOutWin->GetOffsetPixelFrom(*pViewShellWindow);
-                    Point aLogicOffset = pOutWin->PixelToLogic(aOffsetPx);
+                    Point aOffsetPx = 
mpOutputWindow->GetOffsetPixelFrom(*pViewShellWindow);
+                    Point aLogicOffset = 
mpOutputWindow->PixelToLogic(aOffsetPx);
                     for (tools::Rectangle& rRect : aRectangles)
                         rRect.Move(aLogicOffset.getX(), aLogicOffset.getY());
                 }
@@ -448,7 +447,7 @@ void ImpEditView::lokSelectionCallback(const 
std::optional<tools::PolyPolygon> &
             mpViewShell->NotifyOtherViews(LOK_CALLBACK_TEXT_VIEW_SELECTION, 
"selection"_ostr, sRectangle);
         }
 
-        pOutWin->GetOutDev()->Pop();
+        mpOutputWindow->GetOutDev()->Pop();
     }
 }
 
@@ -473,7 +472,7 @@ void ImpEditView::DrawSelectionXOR( EditSelection aTmpSel, 
vcl::Region* pRegion,
         return;
     }
 
-    if ( eSelectionMode == EESelectionMode::Hidden )
+    if (meSelectionMode == EESelectionMode::Hidden)
         return;
 
     // It must be ensured before rendering the selection, that the contents of
@@ -502,13 +501,13 @@ void ImpEditView::DrawSelectionXOR( EditSelection 
aTmpSel, vcl::Region* pRegion,
 
         // aTmpOutArea: if OutputArea > Paper width and
         // Text > Paper width ( over large fields )
-        tools::Rectangle aTmpOutArea( aOutArea );
+        tools::Rectangle aTmpOutArea(maOutputArea);
         if ( aTmpOutArea.GetWidth() > 
getImpEditEngine().GetPaperSize().Width() )
             aTmpOutArea.SetRight( aTmpOutArea.Left() + 
getImpEditEngine().GetPaperSize().Width() );
         rTarget.IntersectClipRegion( aTmpOutArea );
 
-        if (pOutWin && pOutWin->GetCursor())
-            pOutWin->GetCursor()->Hide();
+        if (mpOutputWindow && mpOutputWindow->GetCursor())
+            mpOutputWindow->GetCursor()->Hide();
     }
 
     if (comphelper::LibreOfficeKit::isActive() || pRegion)
@@ -636,7 +635,7 @@ void ImpEditView::DrawSelectionXOR( EditSelection aTmpSel, 
vcl::Region* pRegion,
     };
     getImpEditEngine().IterateLineAreas(DrawHighlight, 
ImpEditEngine::IterFlag::none);
 
-    if (comphelper::LibreOfficeKit::isActive() && mpViewShell && pOutWin)
+    if (comphelper::LibreOfficeKit::isActive() && mpViewShell && 
mpOutputWindow)
         lokSelectionCallback(pPolyPoly, bStartHandleVisible, 
bEndHandleVisible);
 
     if (pRegion || comphelper::LibreOfficeKit::isActive())
@@ -647,8 +646,8 @@ void ImpEditView::DrawSelectionXOR( EditSelection aTmpSel, 
vcl::Region* pRegion,
     }
     else
     {
-        if (pOutWin && pOutWin->GetCursor())
-            pOutWin->GetCursor()->Show();
+        if (mpOutputWindow && mpOutputWindow->GetCursor())
+            mpOutputWindow->GetCursor()->Show();
 
         if (bClipRegion)
             rTarget.SetClipRegion(aOldRegion);
@@ -765,20 +764,20 @@ Point ImpEditView::GetDocPos( const Point& rWindowPos ) 
const
 
     if (!getImpEditEngine().IsEffectivelyVertical())
     {
-        aPoint.setX( rWindowPos.X() - aOutArea.Left() + GetVisDocLeft() );
-        aPoint.setY( rWindowPos.Y() - aOutArea.Top() + GetVisDocTop() );
+        aPoint.setX( rWindowPos.X() - maOutputArea.Left() + GetVisDocLeft() );
+        aPoint.setY( rWindowPos.Y() - maOutputArea.Top() + GetVisDocTop() );
     }
     else
     {
         if (getImpEditEngine().IsTopToBottom())
         {
-            aPoint.setX( rWindowPos.Y() - aOutArea.Top() + GetVisDocLeft() );
-            aPoint.setY( aOutArea.Right() - rWindowPos.X() + GetVisDocTop() );
+            aPoint.setX( rWindowPos.Y() - maOutputArea.Top() + GetVisDocLeft() 
);
+            aPoint.setY( maOutputArea.Right() - rWindowPos.X() + 
GetVisDocTop() );
         }
         else
         {
-            aPoint.setX( aOutArea.Bottom() - rWindowPos.Y() + GetVisDocLeft() 
);
-            aPoint.setY( rWindowPos.X() - aOutArea.Left() + GetVisDocTop() );
+            aPoint.setX( maOutputArea.Bottom() - rWindowPos.Y() + 
GetVisDocLeft() );
+            aPoint.setY( rWindowPos.X() - maOutputArea.Left() + GetVisDocTop() 
);
         }
     }
 
@@ -792,20 +791,20 @@ Point ImpEditView::GetWindowPos( const Point& rDocPos ) 
const
 
     if (!getImpEditEngine().IsEffectivelyVertical())
     {
-        aPoint.setX( rDocPos.X() + aOutArea.Left() - GetVisDocLeft() );
-        aPoint.setY( rDocPos.Y() + aOutArea.Top() - GetVisDocTop() );
+        aPoint.setX( rDocPos.X() + maOutputArea.Left() - GetVisDocLeft() );
+        aPoint.setY( rDocPos.Y() + maOutputArea.Top() - GetVisDocTop() );
     }
     else
     {
         if (getImpEditEngine().IsTopToBottom())
         {
-            aPoint.setX( aOutArea.Right() - rDocPos.Y() + GetVisDocTop() );
-            aPoint.setY( rDocPos.X() + aOutArea.Top() - GetVisDocLeft() );
+            aPoint.setX( maOutputArea.Right() - rDocPos.Y() + GetVisDocTop() );
+            aPoint.setY( rDocPos.X() + maOutputArea.Top() - GetVisDocLeft() );
         }
         else
         {
-            aPoint.setX( aOutArea.Left() + rDocPos.Y() - GetVisDocTop() );
-            aPoint.setY( aOutArea.Bottom() - rDocPos.X() + GetVisDocLeft() );
+            aPoint.setX( maOutputArea.Left() + rDocPos.Y() - GetVisDocTop() );
+            aPoint.setY( maOutputArea.Bottom() - rDocPos.X() + GetVisDocLeft() 
);
         }
     }
 
@@ -833,10 +832,10 @@ tools::Rectangle ImpEditView::GetWindowPos( const 
tools::Rectangle& rDocRect ) c
 
 void ImpEditView::SetSelectionMode( EESelectionMode eNewMode )
 {
-    if ( eSelectionMode != eNewMode )
+    if (meSelectionMode != eNewMode)
     {
         DrawSelectionXOR();
-        eSelectionMode = eNewMode;
+        meSelectionMode = eNewMode;
         DrawSelectionXOR();    // redraw
     }
 }
@@ -845,7 +844,7 @@ OutputDevice& ImpEditView::GetOutputDevice() const
 {
     if (EditViewCallbacks* pCallbacks = getEditViewCallbacks())
         return pCallbacks->EditViewOutputDevice();
-    return *pOutWin->GetOutDev();
+    return *mpOutputWindow->GetOutDev();
 }
 
 weld::Widget* ImpEditView::GetPopupParent(tools::Rectangle& rRect) const
@@ -856,7 +855,7 @@ weld::Widget* ImpEditView::GetPopupParent(tools::Rectangle& 
rRect) const
         if (pParent)
             return pParent;
     }
-    return weld::GetPopupParent(*pOutWin, rRect);
+    return weld::GetPopupParent(*mpOutputWindow, rRect);
 }
 
 void ImpEditView::SetOutputArea( const tools::Rectangle& rRect )
@@ -865,13 +864,13 @@ void ImpEditView::SetOutputArea( const tools::Rectangle& 
rRect )
     // should be better be aligned on pixels!
     tools::Rectangle aNewRect(rOutDev.LogicToPixel(rRect));
     aNewRect = rOutDev.PixelToLogic(aNewRect);
-    aOutArea = aNewRect;
-    if ( !aOutArea.IsWidthEmpty() && aOutArea.Right() < aOutArea.Left() )
-        aOutArea.SetRight( aOutArea.Left() );
-    if ( !aOutArea.IsHeightEmpty() && aOutArea.Bottom() < aOutArea.Top() )
-        aOutArea.SetBottom( aOutArea.Top() );
+    maOutputArea = aNewRect;
+    if (!maOutputArea.IsWidthEmpty() && maOutputArea.Right() < 
maOutputArea.Left())
+        maOutputArea.SetRight(maOutputArea.Left());
+    if (!maOutputArea.IsHeightEmpty() && maOutputArea.Bottom() < 
maOutputArea.Top())
+        maOutputArea.SetBottom(maOutputArea.Top());
 
-    SetScrollDiffX( static_cast<sal_uInt16>(aOutArea.GetWidth()) * 2 / 10 );
+    SetScrollDiffX( static_cast<sal_uInt16>(maOutputArea.GetWidth()) * 2 / 10 
);
 }
 
 namespace {
@@ -903,7 +902,7 @@ void ImpEditView::InvalidateAtWindow(const 
tools::Rectangle& rRect)
 void ImpEditView::ResetOutputArea( const tools::Rectangle& rRect )
 {
     // remember old out area
-    const tools::Rectangle aOldArea(aOutArea);
+    const tools::Rectangle aOldArea(maOutputArea);
 
     // apply new one
     SetOutputArea(rRect);
@@ -913,84 +912,84 @@ void ImpEditView::ResetOutputArea( const 
tools::Rectangle& rRect )
         return;
 
     // #i119885# use grown area if needed; do when getting bigger OR smaller
-    const sal_Int32 nMore(DoInvalidateMore() ? 
GetOutputDevice().PixelToLogic(Size(nInvMore, 0)).Width() : 0);
+    const sal_Int32 nMore(DoInvalidateMore() ? 
GetOutputDevice().PixelToLogic(Size(mnInvalidateMore, 0)).Width() : 0);
 
-    if(aOldArea.Left() > aOutArea.Left())
+    if (aOldArea.Left() > maOutputArea.Left())
     {
-        const tools::Rectangle aRect(aOutArea.Left() - nMore, aOldArea.Top() - 
nMore, aOldArea.Left(), aOldArea.Bottom() + nMore);
+        const tools::Rectangle aRect(maOutputArea.Left() - nMore, 
aOldArea.Top() - nMore, aOldArea.Left(), aOldArea.Bottom() + nMore);
         InvalidateAtWindow(aRect);
     }
-    else if(aOldArea.Left() < aOutArea.Left())
+    else if (aOldArea.Left() < maOutputArea.Left())
     {
-        const tools::Rectangle aRect(aOldArea.Left() - nMore, aOldArea.Top() - 
nMore, aOutArea.Left(), aOldArea.Bottom() + nMore);
+        const tools::Rectangle aRect(aOldArea.Left() - nMore, aOldArea.Top() - 
nMore, maOutputArea.Left(), aOldArea.Bottom() + nMore);
         InvalidateAtWindow(aRect);
     }
 
-    if(aOldArea.Right() > aOutArea.Right())
+    if (aOldArea.Right() > maOutputArea.Right())
     {
-        const tools::Rectangle aRect(aOutArea.Right(), aOldArea.Top() - nMore, 
aOldArea.Right() + nMore, aOldArea.Bottom() + nMore);
+        const tools::Rectangle aRect(maOutputArea.Right(), aOldArea.Top() - 
nMore, aOldArea.Right() + nMore, aOldArea.Bottom() + nMore);
         InvalidateAtWindow(aRect);
     }
-    else if(aOldArea.Right() < aOutArea.Right())
+    else if (aOldArea.Right() < maOutputArea.Right())
     {
-        const tools::Rectangle aRect(aOldArea.Right(), aOldArea.Top() - nMore, 
aOutArea.Right() + nMore, aOldArea.Bottom() + nMore);
+        const tools::Rectangle aRect(aOldArea.Right(), aOldArea.Top() - nMore, 
maOutputArea.Right() + nMore, aOldArea.Bottom() + nMore);
         InvalidateAtWindow(aRect);
     }
 
-    if(aOldArea.Top() > aOutArea.Top())
+    if (aOldArea.Top() > maOutputArea.Top())
     {
-        const tools::Rectangle aRect(aOldArea.Left() - nMore, aOutArea.Top() - 
nMore, aOldArea.Right() + nMore, aOldArea.Top());
+        const tools::Rectangle aRect(aOldArea.Left() - nMore, 
maOutputArea.Top() - nMore, aOldArea.Right() + nMore, aOldArea.Top());
         InvalidateAtWindow(aRect);
     }
-    else if(aOldArea.Top() < aOutArea.Top())
+    else if (aOldArea.Top() < maOutputArea.Top())
     {
-        const tools::Rectangle aRect(aOldArea.Left() - nMore, aOldArea.Top() - 
nMore, aOldArea.Right() + nMore, aOutArea.Top());
+        const tools::Rectangle aRect(aOldArea.Left() - nMore, aOldArea.Top() - 
nMore, aOldArea.Right() + nMore, maOutputArea.Top());
         InvalidateAtWindow(aRect);
     }
 
-    if(aOldArea.Bottom() > aOutArea.Bottom())
+    if (aOldArea.Bottom() > maOutputArea.Bottom())
     {
-        const tools::Rectangle aRect(aOldArea.Left() - nMore, 
aOutArea.Bottom(), aOldArea.Right() + nMore, aOldArea.Bottom() + nMore);
+        const tools::Rectangle aRect(aOldArea.Left() - nMore, 
maOutputArea.Bottom(), aOldArea.Right() + nMore, aOldArea.Bottom() + nMore);
         InvalidateAtWindow(aRect);
     }
-    else if(aOldArea.Bottom() < aOutArea.Bottom())
+    else if (aOldArea.Bottom() < maOutputArea.Bottom())
     {
-        const tools::Rectangle aRect(aOldArea.Left() - nMore, 
aOldArea.Bottom(), aOldArea.Right() + nMore, aOutArea.Bottom() + nMore);
+        const tools::Rectangle aRect(aOldArea.Left() - nMore, 
aOldArea.Bottom(), aOldArea.Right() + nMore, maOutputArea.Bottom() + nMore);
         InvalidateAtWindow(aRect);
     }
 }
 
 void ImpEditView::RecalcOutputArea()
 {
-    Point aNewTopLeft( aOutArea.TopLeft() );
-    Size aNewSz( aOutArea.GetSize() );
+    Point aNewTopLeft(maOutputArea.TopLeft());
+    Size aNewSz(maOutputArea.GetSize());
 
     // X:
     if ( DoAutoWidth() )
     {
         if (getImpEditEngine().GetStatus().AutoPageWidth())
             aNewSz.setWidth(getImpEditEngine().GetPaperSize().Width());
-        switch ( eAnchorMode )
+        switch (meAnchorMode)
         {
             case EEAnchorMode::TopLeft:
             case EEAnchorMode::VCenterLeft:
             case EEAnchorMode::BottomLeft:
             {
-                aNewTopLeft.setX( aAnchorPoint.X() );
+                aNewTopLeft.setX(maAnchorPoint.X());
             }
             break;
             case EEAnchorMode::TopHCenter:
             case EEAnchorMode::VCenterHCenter:
             case EEAnchorMode::BottomHCenter:
             {
-                aNewTopLeft.setX( aAnchorPoint.X() - aNewSz.Width() / 2 );
+                aNewTopLeft.setX(maAnchorPoint.X() - aNewSz.Width() / 2);
             }
             break;
             case EEAnchorMode::TopRight:
             case EEAnchorMode::VCenterRight:
             case EEAnchorMode::BottomRight:
             {
-                aNewTopLeft.setX( aAnchorPoint.X() - aNewSz.Width() - 1 );
+                aNewTopLeft.setX(maAnchorPoint.X() - aNewSz.Width() - 1);
             }
             break;
         }
@@ -1001,27 +1000,27 @@ void ImpEditView::RecalcOutputArea()
     {
         if (getImpEditEngine().GetStatus().AutoPageHeight())
             aNewSz.setHeight(getImpEditEngine().GetPaperSize().Height());
-        switch ( eAnchorMode )
+        switch (meAnchorMode)
         {
             case EEAnchorMode::TopLeft:
             case EEAnchorMode::TopHCenter:
             case EEAnchorMode::TopRight:
             {
-                aNewTopLeft.setY( aAnchorPoint.Y() );
+                aNewTopLeft.setY(maAnchorPoint.Y());
             }
             break;
             case EEAnchorMode::VCenterLeft:
             case EEAnchorMode::VCenterHCenter:
             case EEAnchorMode::VCenterRight:
             {
-                aNewTopLeft.setY( aAnchorPoint.Y() - aNewSz.Height() / 2 );
+                aNewTopLeft.setY(maAnchorPoint.Y() - aNewSz.Height() / 2);
             }
             break;
             case EEAnchorMode::BottomLeft:
             case EEAnchorMode::BottomHCenter:
             case EEAnchorMode::BottomRight:
             {
-                aNewTopLeft.setY( aAnchorPoint.Y() - aNewSz.Height() - 1 );
+                aNewTopLeft.setY(maAnchorPoint.Y() - aNewSz.Height() - 1);
             }
             break;
         }
@@ -1029,9 +1028,9 @@ void ImpEditView::RecalcOutputArea()
     ResetOutputArea( tools::Rectangle( aNewTopLeft, aNewSz ) );
 }
 
-void ImpEditView::SetAnchorMode( EEAnchorMode eMode )
+void ImpEditView::SetAnchorMode(EEAnchorMode eMode)
 {
-    eAnchorMode = eMode;
+    meAnchorMode = eMode;
     CalcAnchorPoint();
 }
 
@@ -1040,53 +1039,53 @@ void ImpEditView::CalcAnchorPoint()
     // GetHeight() and GetWidth() -1, because rectangle calculation not 
preferred.
 
     // X:
-    switch ( eAnchorMode )
+    switch (meAnchorMode)
     {
         case EEAnchorMode::TopLeft:
         case EEAnchorMode::VCenterLeft:
         case EEAnchorMode::BottomLeft:
         {
-            aAnchorPoint.setX( aOutArea.Left() );
+            maAnchorPoint.setX(maOutputArea.Left());
         }
         break;
         case EEAnchorMode::TopHCenter:
         case EEAnchorMode::VCenterHCenter:
         case EEAnchorMode::BottomHCenter:
         {
-            aAnchorPoint.setX( aOutArea.Left() + (aOutArea.GetWidth()-1) / 2 );
+            maAnchorPoint.setX(maOutputArea.Left() + (maOutputArea.GetWidth() 
- 1) / 2);
         }
         break;
         case EEAnchorMode::TopRight:
         case EEAnchorMode::VCenterRight:
         case EEAnchorMode::BottomRight:
         {
-            aAnchorPoint.setX( aOutArea.Right() );
+            maAnchorPoint.setX(maOutputArea.Right());
         }
         break;
     }
 
     // Y:
-    switch ( eAnchorMode )
+    switch (meAnchorMode)
     {
         case EEAnchorMode::TopLeft:
         case EEAnchorMode::TopHCenter:
         case EEAnchorMode::TopRight:
         {
-            aAnchorPoint.setY( aOutArea.Top() );
+            maAnchorPoint.setY(maOutputArea.Top());
         }
         break;
         case EEAnchorMode::VCenterLeft:
         case EEAnchorMode::VCenterHCenter:
         case EEAnchorMode::VCenterRight:
         {
-            aAnchorPoint.setY( aOutArea.Top() + (aOutArea.GetHeight()-1) / 2 );
+            maAnchorPoint.setY(maOutputArea.Top() + (maOutputArea.GetHeight() 
- 1) / 2);
         }
         break;
         case EEAnchorMode::BottomLeft:
         case EEAnchorMode::BottomHCenter:
         case EEAnchorMode::BottomRight:
         {
-            aAnchorPoint.setY( aOutArea.Bottom() - 1 );
+            maAnchorPoint.setY(maOutputArea.Bottom() - 1);
         }
         break;
     }
@@ -1109,7 +1108,7 @@ boost::property_tree::ptree getHyperlinkPropTree(const 
OUString& sText, const OU
 tools::Rectangle ImpEditView::ImplGetEditCursor(EditPaM& aPaM, GetCursorFlags 
nShowCursorFlags, sal_Int32& nTextPortionStart, ParaPortion const& 
rParaPortion) const
 {
     tools::Rectangle aEditCursor = getImpEditEngine().PaMtoEditCursor( aPaM, 
nShowCursorFlags );
-    if ( !IsInsertMode() && !aEditSelection.HasRange() )
+    if (!IsInsertMode() && !maEditSelection.HasRange())
     {
         if ( aPaM.GetNode()->Len() && ( aPaM.GetIndex() < 
aPaM.GetNode()->Len() ) )
         {
@@ -1134,7 +1133,7 @@ tools::Rectangle ImpEditView::ImplGetEditCursor(EditPaM& 
aPaM, GetCursorFlags nS
         }
     }
 
-    tools::Long nMaxHeight = !IsVertical() ? aOutArea.GetHeight() : 
aOutArea.GetWidth();
+    tools::Long nMaxHeight = !IsVertical() ? maOutputArea.GetHeight() : 
maOutputArea.GetWidth();
     if ( aEditCursor.GetHeight() > nMaxHeight )
     {
         aEditCursor.SetBottom( aEditCursor.Top() + nMaxHeight - 1 );
@@ -1145,7 +1144,7 @@ tools::Rectangle ImpEditView::ImplGetEditCursor(EditPaM& 
aPaM, GetCursorFlags nS
 
 tools::Rectangle ImpEditView::GetEditCursor() const
 {
-    EditPaM aPaM( aEditSelection.Max() );
+    EditPaM aPaM(maEditSelection.Max());
 
     sal_Int32 nTextPortionStart = 0;
     sal_Int32 nPara = getEditEngine().GetEditDoc().GetPos( aPaM.GetNode() );
@@ -1154,7 +1153,7 @@ tools::Rectangle ImpEditView::GetEditCursor() const
 
     ParaPortion const& rParaPortion = 
getEditEngine().GetParaPortions().getRef(nPara);
 
-    GetCursorFlags nShowCursorFlags = nExtraCursorFlags | 
GetCursorFlags::TextOnly;
+    GetCursorFlags nShowCursorFlags = mnExtraCursorFlags | 
GetCursorFlags::TextOnly;
 
     // Use CursorBidiLevel 0/1 in meaning of
     // 0: prefer portion end, normal mode
@@ -1171,9 +1170,9 @@ tools::Rectangle ImpEditView::GetEditCursor() const
 void ImpEditView::ShowCursor( bool bGotoCursor, bool bForceVisCursor )
 {
     // No ShowCursor in an empty View ...
-    if (aOutArea.IsEmpty())
+    if (maOutputArea.IsEmpty())
         return;
-    if ( ( aOutArea.Left() >= aOutArea.Right() ) && ( aOutArea.Top() >= 
aOutArea.Bottom() ) )
+    if ( (maOutputArea.Left() >= maOutputArea.Right() ) && ( 
maOutputArea.Top() >= maOutputArea.Bottom() ) )
         return;
 
     getEditEngine().CheckIdleFormatter();
@@ -1189,10 +1188,10 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool 
bForceVisCursor )
     if (getImpEditEngine().IsInUndo())
         return;
 
-    if (pOutWin && pOutWin->GetCursor() != GetCursor())
-        pOutWin->SetCursor(GetCursor());
+    if (mpOutputWindow && mpOutputWindow->GetCursor() != GetCursor())
+        mpOutputWindow->SetCursor(GetCursor());
 
-    EditPaM aPaM( aEditSelection.Max() );
+    EditPaM aPaM(maEditSelection.Max());
 
     sal_Int32 nTextPortionStart = 0;
     sal_Int32 nPara = getEditEngine().GetEditDoc().GetPos( aPaM.GetNode() );
@@ -1201,7 +1200,7 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool 
bForceVisCursor )
 
     ParaPortion const& rParaPortion = 
getEditEngine().GetParaPortions().getRef(nPara);
 
-    GetCursorFlags nShowCursorFlags = nExtraCursorFlags | 
GetCursorFlags::TextOnly;
+    GetCursorFlags nShowCursorFlags = mnExtraCursorFlags | 
GetCursorFlags::TextOnly;
 
     // Use CursorBidiLevel 0/1 in meaning of
     // 0: prefer portion end, normal mode
@@ -1369,13 +1368,13 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool 
bForceVisCursor )
                 aMessageParams.put("refpoint", aRefPoint.toString());
             }
 
-            if (pOutWin && pOutWin->IsChart())
+            if (mpOutputWindow && mpOutputWindow->IsChart())
             {
                 const vcl::Window* pViewShellWindow = 
mpViewShell->GetEditWindowForActiveOLEObj();
-                if (pViewShellWindow && 
pViewShellWindow->IsAncestorOf(*pOutWin))
+                if (pViewShellWindow && 
pViewShellWindow->IsAncestorOf(*mpOutputWindow))
                 {
-                    Point aOffsetPx = 
pOutWin->GetOffsetPixelFrom(*pViewShellWindow);
-                    Point aLogicOffset = pOutWin->PixelToLogic(aOffsetPx);
+                    Point aOffsetPx = 
mpOutputWindow->GetOffsetPixelFrom(*pViewShellWindow);
+                    Point aLogicOffset = 
mpOutputWindow->PixelToLogic(aOffsetPx);
                     aPos.Move(aLogicOffset.getX(), aLogicOffset.getY());
                 }
             }
@@ -1457,7 +1456,7 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool 
bForceVisCursor )
         }
 
         CursorDirection nCursorDir = CursorDirection::NONE;
-        if ( IsInsertMode() && !aEditSelection.HasRange() && 
(getImpEditEngine().HasDifferentRTLLevels(aPaM.GetNode()) ) )
+        if ( IsInsertMode() && !maEditSelection.HasRange() && 
(getImpEditEngine().HasDifferentRTLLevels(aPaM.GetNode()) ) )
         {
             sal_uInt16 nTextPortion = 
rParaPortion.GetTextPortions().FindPortion( aPaM.GetIndex(), nTextPortionStart, 
bool(nShowCursorFlags & GetCursorFlags::PreferPortionStart) );
             const TextPortion& rTextPortion = 
rParaPortion.GetTextPortions()[nTextPortion];
@@ -1509,10 +1508,10 @@ Pair ImpEditView::Scroll( tools::Long ndX, tools::Long 
ndY, ScrollRangeCheck nRa
     const OutputDevice& rOutDev = GetOutputDevice();
 
 #ifdef DBG_UTIL
-    tools::Rectangle aR( aOutArea );
+    tools::Rectangle aR(maOutputArea);
     aR = rOutDev.LogicToPixel( aR );
     aR = rOutDev.PixelToLogic( aR );
-    SAL_WARN_IF( aR != aOutArea, "editeng", "OutArea before Scroll not 
aligned" );
+    SAL_WARN_IF(aR != maOutputArea, "editeng", "OutArea before Scroll not 
aligned");
 #endif
 
     tools::Rectangle aNewVisArea( GetVisDocArea() );
@@ -1589,41 +1588,42 @@ Pair ImpEditView::Scroll( tools::Long ndX, tools::Long 
ndY, ScrollRangeCheck nRa
         vcl::Cursor* pCrsr = GetCursor();
         bool bVisCursor = pCrsr->IsVisible();
         pCrsr->Hide();
-        if (pOutWin)
-            pOutWin->PaintImmediately();
-        if ( !IsVertical() )
-            aVisDocStartPos.Move( -nRealDiffX, -nRealDiffY );
+        if (mpOutputWindow)
+            mpOutputWindow->PaintImmediately();
+        if (!IsVertical())
+            maVisDocStartPos.Move(-nRealDiffX, -nRealDiffY);
         else
         {
             if (IsTopToBottom())
-                aVisDocStartPos.Move(-nRealDiffY, nRealDiffX);
+                maVisDocStartPos.Move(-nRealDiffY, nRealDiffX);
             else
-                aVisDocStartPos.Move(nRealDiffY, -nRealDiffX);
+                maVisDocStartPos.Move(nRealDiffY, -nRealDiffX);
         }
         // Move by aligned value does not necessarily result in aligned
         // rectangle ...
-        aVisDocStartPos = rOutDev.LogicToPixel( aVisDocStartPos );
-        aVisDocStartPos = rOutDev.PixelToLogic( aVisDocStartPos );
-        tools::Rectangle aRect( aOutArea );
+        maVisDocStartPos = rOutDev.LogicToPixel(maVisDocStartPos);
+        maVisDocStartPos = rOutDev.PixelToLogic(maVisDocStartPos);
+        maVisDocStartPos = rOutDev.PixelToLogic(maVisDocStartPos);
+        tools::Rectangle aRect(maOutputArea);
 
-        if (pOutWin)
+        if (mpOutputWindow)
         {
-            pOutWin->Scroll( nRealDiffX, nRealDiffY, aRect, ScrollFlags::Clip 
);
+            mpOutputWindow->Scroll( nRealDiffX, nRealDiffY, aRect, 
ScrollFlags::Clip );
         }
 
         if (comphelper::LibreOfficeKit::isActive() || getEditViewCallbacks())
         {
             // Need to invalidate the window, otherwise no tile will be 
re-painted.
-            pEditView->Invalidate();
+            GetEditViewPtr()->Invalidate();
         }
 
-        if (pOutWin)
-            pOutWin->PaintImmediately();
+        if (mpOutputWindow)
+            mpOutputWindow->PaintImmediately();
         pCrsr->SetPos( pCrsr->GetPos() + Point( nRealDiffX, nRealDiffY ) );
         if ( bVisCursor )
         {
             tools::Rectangle aCursorRect( pCrsr->GetPos(), pCrsr->GetSize() );
-            if ( aOutArea.Contains( aCursorRect ) )
+            if (maOutputArea.Contains(aCursorRect))
                 pCrsr->Show();
         }
 
@@ -1666,7 +1666,7 @@ bool ImpEditView::PostKeyEvent( const KeyEvent& 
rKeyEvent, vcl::Window const * p
         {
             case KeyFuncType::CUT:
             {
-                if ( !bReadOnly )
+                if (!mbReadOnly)
                 {
                     uno::Reference<datatransfer::clipboard::XClipboard> 
aClipBoard(GetClipboard());
                     CutCopy( aClipBoard, true );
@@ -1683,7 +1683,7 @@ bool ImpEditView::PostKeyEvent( const KeyEvent& 
rKeyEvent, vcl::Window const * p
             break;
             case KeyFuncType::PASTE:
             {
-                if ( !bReadOnly && IsPasteEnabled() )
+                if (!mbReadOnly && IsPasteEnabled())
                 {
                     getImpEditEngine().UndoActionStart( EDITUNDO_PASTE );
                     uno::Reference<datatransfer::clipboard::XClipboard> 
aClipBoard(GetClipboard());
@@ -1706,12 +1706,12 @@ bool ImpEditView::PostKeyEvent( const KeyEvent& 
rKeyEvent, vcl::Window const * p
 
 bool ImpEditView::MouseButtonUp( const MouseEvent& rMouseEvent )
 {
-    nTravelXPos = TRAVEL_X_DONTKNOW;
-    nCursorBidiLevel = CURSOR_BIDILEVEL_DONTKNOW;
-    nExtraCursorFlags = GetCursorFlags::NONE;
-    bClickedInSelection = false;
+    mnTravelXPos = TRAVEL_X_DONTKNOW;
+    mnCursorBidiLevel = CURSOR_BIDILEVEL_DONTKNOW;
+    mnExtraCursorFlags = GetCursorFlags::NONE;
+    mbClickedInSelection = false;
 
-    if ( rMouseEvent.IsMiddle() && !bReadOnly &&
+    if ( rMouseEvent.IsMiddle() && !mbReadOnly &&
          Application::GetSettings().GetMouseSettings().GetMiddleButtonAction() 
== MouseMiddleButtonAction::PasteSelection )
     {
         uno::Reference<datatransfer::clipboard::XClipboard> 
aClipBoard(GetSystemPrimarySelection());
@@ -1734,11 +1734,11 @@ void ImpEditView::ReleaseMouse()
 bool ImpEditView::MouseButtonDown( const MouseEvent& rMouseEvent )
 {
     getEditEngine().CheckIdleFormatter();  // If fast typing and mouse button 
downs
-    nTravelXPos         = TRAVEL_X_DONTKNOW;
-    nExtraCursorFlags   = GetCursorFlags::NONE;
-    nCursorBidiLevel    = CURSOR_BIDILEVEL_DONTKNOW;
+    mnTravelXPos = TRAVEL_X_DONTKNOW;
+    mnExtraCursorFlags = GetCursorFlags::NONE;
+    mnCursorBidiLevel = CURSOR_BIDILEVEL_DONTKNOW;
     bool bPrevUpdateLayout = getImpEditEngine().SetUpdateLayout(true);
-    bClickedInSelection = IsSelectionAtPoint( rMouseEvent.GetPosPixel() );
+    mbClickedInSelection = IsSelectionAtPoint( rMouseEvent.GetPosPixel() );
     bool bRet = getImpEditEngine().MouseButtonDown( rMouseEvent, 
GetEditViewPtr() );
     getImpEditEngine().SetUpdateLayout(bPrevUpdateLayout);
     return bRet;
@@ -1760,7 +1760,7 @@ void ImpEditView::SetInsertMode( bool bInsert )
 {
     if ( bInsert != IsInsertMode() )
     {
-        SetFlags( nControl, EVControlBits::OVERWRITE, !bInsert );
+        SetFlags(mnControl, EVControlBits::OVERWRITE, !bInsert);
         ShowCursor( DoAutoScroll(), false );
     }
 }
@@ -2087,9 +2087,9 @@ void ImpEditView::DeselectAll()
     SetEditSelection(aNewSelection);
     // const_cast<EditPaM&>(GetEditSelection().Min()) = 
GetEditSelection().Max();
 
-    if (comphelper::LibreOfficeKit::isActive() && mpViewShell && pOutWin)
+    if (comphelper::LibreOfficeKit::isActive() && mpViewShell && 
mpOutputWindow)
     {
-        VclPtr<vcl::Window> pParent = pOutWin->GetParentWithLOKNotifier();
+        VclPtr<vcl::Window> pParent = 
mpOutputWindow->GetParentWithLOKNotifier();
         if (pParent && pParent->GetLOKWindowId())
         {
             const vcl::ILibreOfficeKitNotifier* pNotifier = 
pParent->GetLOKNotifier();
@@ -2102,7 +2102,7 @@ void ImpEditView::DeselectAll()
 
 bool ImpEditView::IsSelectionAtPoint( const Point& rPosPixel )
 {
-    if ( pDragAndDropInfo && pDragAndDropInfo->pField )
+    if (mpDragAndDropInfo && mpDragAndDropInfo->pField)
         return true;
 
     // Logical units ...
@@ -2171,29 +2171,29 @@ bool ImpEditView::SetCursorAtPoint( const Point& 
rPointPixel )
         SetEditSelection( aNewEditSelection );
     }
 
-    bool bForceCursor = pDragAndDropInfo == nullptr && 
!getImpEditEngine().IsInSelectionMode();
+    bool bForceCursor = mpDragAndDropInfo == nullptr && 
!getImpEditEngine().IsInSelectionMode();
     ShowCursor( bGotoCursor, bForceCursor );
     return true;
 }
 
 void ImpEditView::HideDDCursor()
 {
-    if ( pDragAndDropInfo && pDragAndDropInfo->bVisCursor )
+    if (mpDragAndDropInfo && mpDragAndDropInfo->bVisCursor)
     {
         OutputDevice& rOutDev = GetOutputDevice();
-        rOutDev.DrawOutDev( pDragAndDropInfo->aCurSavedCursor.TopLeft(), 
pDragAndDropInfo->aCurSavedCursor.GetSize(),
-                            Point(0,0), 
pDragAndDropInfo->aCurSavedCursor.GetSize(),*pDragAndDropInfo->pBackground );
-        pDragAndDropInfo->bVisCursor = false;
+        rOutDev.DrawOutDev(mpDragAndDropInfo->aCurSavedCursor.TopLeft(), 
mpDragAndDropInfo->aCurSavedCursor.GetSize(),
+                            Point(0,0), 
mpDragAndDropInfo->aCurSavedCursor.GetSize(),*mpDragAndDropInfo->pBackground);
+        mpDragAndDropInfo->bVisCursor = false;
     }
 }
 
 void ImpEditView::ShowDDCursor( const tools::Rectangle& rRect )
 {
-    if ( !pDragAndDropInfo || pDragAndDropInfo->bVisCursor )
+    if (!mpDragAndDropInfo || mpDragAndDropInfo->bVisCursor)
         return;
 
-    if (pOutWin && pOutWin->GetCursor())
-        pOutWin->GetCursor()->Hide();
+    if (mpOutputWindow && mpOutputWindow->GetCursor())
+        mpOutputWindow->GetCursor()->Hide();
 
     OutputDevice& rOutDev = GetOutputDevice();
     Color aOldFillColor = rOutDev.GetFillColor();
@@ -2205,54 +2205,54 @@ void ImpEditView::ShowDDCursor( const tools::Rectangle& 
rRect )
     aSaveRect.AdjustRight(1 );
     aSaveRect.AdjustBottom(1 );
 
-    if ( !pDragAndDropInfo->pBackground )
+    if (!mpDragAndDropInfo->pBackground)
     {
-        pDragAndDropInfo->pBackground = VclPtr<VirtualDevice>::Create(rOutDev);
+        mpDragAndDropInfo->pBackground = 
VclPtr<VirtualDevice>::Create(rOutDev);
         MapMode aMapMode( rOutDev.GetMapMode() );
         aMapMode.SetOrigin( Point( 0, 0 ) );
-        pDragAndDropInfo->pBackground->SetMapMode( aMapMode );
+        mpDragAndDropInfo->pBackground->SetMapMode( aMapMode );
 
     }
 
     Size aNewSzPx( aSaveRect.GetSize() );
-    Size aCurSzPx( pDragAndDropInfo->pBackground->GetOutputSizePixel() );
+    Size aCurSzPx(mpDragAndDropInfo->pBackground->GetOutputSizePixel());
     if ( ( aCurSzPx.Width() < aNewSzPx.Width() ) ||( aCurSzPx.Height() < 
aNewSzPx.Height() ) )
     {
-        bool bDone = pDragAndDropInfo->pBackground->SetOutputSizePixel( 
aNewSzPx );
+        bool bDone = mpDragAndDropInfo->pBackground->SetOutputSizePixel( 
aNewSzPx );
         DBG_ASSERT( bDone, "Virtual Device broken?" );
     }
 
     aSaveRect = rOutDev.PixelToLogic( aSaveRect );
 
-    pDragAndDropInfo->pBackground->DrawOutDev( Point(0,0), aSaveRect.GetSize(),
+    mpDragAndDropInfo->pBackground->DrawOutDev( Point(0,0), 
aSaveRect.GetSize(),
                                 aSaveRect.TopLeft(), aSaveRect.GetSize(), 
rOutDev );
-    pDragAndDropInfo->aCurSavedCursor = aSaveRect;
+    mpDragAndDropInfo->aCurSavedCursor = aSaveRect;
 
     // Draw Cursor...
     rOutDev.DrawRect( rRect );
 
-    pDragAndDropInfo->bVisCursor = true;
-    pDragAndDropInfo->aCurCursor = rRect;
+    mpDragAndDropInfo->bVisCursor = true;
+    mpDragAndDropInfo->aCurCursor = rRect;
 
     rOutDev.SetFillColor( aOldFillColor );
 }
 
 void ImpEditView::dragGestureRecognized(const 
css::datatransfer::dnd::DragGestureEvent& rDGE)
 {
-    DBG_ASSERT( !pDragAndDropInfo, "dragGestureRecognized - DragAndDropInfo 
exist!" );
+    DBG_ASSERT(!mpDragAndDropInfo, "dragGestureRecognized - DragAndDropInfo 
exist!");
 
     SolarMutexGuard aVclGuard;
 
-    pDragAndDropInfo.reset();
+    mpDragAndDropInfo.reset();
 
     Point aMousePosPixel( rDGE.DragOriginX, rDGE.DragOriginY );
 
     EditSelection aCopySel( GetEditSelection() );
     aCopySel.Adjust(getEditEngine().GetEditDoc());
 
-    if ( HasSelection() && bClickedInSelection )
+    if (HasSelection() && mbClickedInSelection)
     {
-        pDragAndDropInfo.reset(new DragAndDropInfo());
+        mpDragAndDropInfo.reset(new DragAndDropInfo());
     }
     else
     {
@@ -2263,8 +2263,8 @@ void ImpEditView::dragGestureRecognized(const 
css::datatransfer::dnd::DragGestur
         const SvxFieldItem* pField = GetField( aMousePos, &nPara, &nPos );
         if ( pField )
         {
-            pDragAndDropInfo.reset(new DragAndDropInfo());
-            pDragAndDropInfo->pField = pField;
+            mpDragAndDropInfo.reset(new DragAndDropInfo());
+            mpDragAndDropInfo->pField = pField;
             ContentNode* pNode = getEditEngine().GetEditDoc().GetObject( nPara 
);
             aCopySel = EditSelection( EditPaM( pNode, nPos ), EditPaM( pNode, 
nPos+1 ) );
             SetEditSelection(aCopySel);
@@ -2274,8 +2274,8 @@ void ImpEditView::dragGestureRecognized(const 
css::datatransfer::dnd::DragGestur
         }
         else if ( IsBulletArea( aMousePos, &nPara ) )
         {
-            pDragAndDropInfo.reset(new DragAndDropInfo());
-            pDragAndDropInfo->bOutlinerMode = true;
+            mpDragAndDropInfo.reset(new DragAndDropInfo());
+            mpDragAndDropInfo->bOutlinerMode = true;
             EditPaM aStartPaM(getEditEngine().GetEditDoc().GetObject(nPara), 
0);
             EditPaM aEndPaM( aStartPaM );
             const SfxInt16Item& rLevel = getEditEngine().GetParaAttrib(nPara, 
EE_PARA_OUTLLEVEL);
@@ -2296,22 +2296,22 @@ void ImpEditView::dragGestureRecognized(const 
css::datatransfer::dnd::DragGestur
         }
     }
 
-    if ( !pDragAndDropInfo )
+    if (!mpDragAndDropInfo)
         return;
 
 
-    pDragAndDropInfo->bStarterOfDD = true;
+    mpDragAndDropInfo->bStarterOfDD = true;
 
     // Sensitive area to be scrolled.
     Size aSz( 5, 0 );
     aSz = GetOutputDevice().PixelToLogic( aSz );
-    pDragAndDropInfo->nSensibleRange = static_cast<sal_uInt16>(aSz.Width());
-    pDragAndDropInfo->nCursorWidth = static_cast<sal_uInt16>(aSz.Width()) / 2;
-    pDragAndDropInfo->aBeginDragSel = getImpEditEngine().CreateESel( aCopySel 
);
+    mpDragAndDropInfo->nSensibleRange = static_cast<sal_uInt16>(aSz.Width());
+    mpDragAndDropInfo->nCursorWidth = static_cast<sal_uInt16>(aSz.Width()) / 2;
+    mpDragAndDropInfo->aBeginDragSel = getImpEditEngine().CreateESel( aCopySel 
);
 
     uno::Reference<datatransfer::XTransferable> xData = 
getEditEngine().CreateTransferable(aCopySel);
 
-    sal_Int8 nActions = bReadOnly ? 
datatransfer::dnd::DNDConstants::ACTION_COPY : 
datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE;
+    sal_Int8 nActions = mbReadOnly ? 
datatransfer::dnd::DNDConstants::ACTION_COPY : 
datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE;
 
     rDGE.DragSource->startDrag( rDGE, nActions, 0 /*cursor*/, 0 /*image*/, 
xData, mxDnDListener );
     // If Drag&Move in an Engine, then Copy&Del has to be optional!
@@ -2322,37 +2322,37 @@ void ImpEditView::dragDropEnd( const 
css::datatransfer::dnd::DragSourceDropEvent
 {
     SolarMutexGuard aVclGuard;
 
-    DBG_ASSERT( pDragAndDropInfo, "ImpEditView::dragDropEnd: pDragAndDropInfo 
is NULL!" );
+    DBG_ASSERT(mpDragAndDropInfo, "ImpEditView::dragDropEnd: mpDragAndDropInfo 
is NULL!");
 
     // #123688# Shouldn't happen, but seems to happen...
-    if ( !pDragAndDropInfo )
+    if (!mpDragAndDropInfo)
         return;
 
-    if ( !bReadOnly && rDSDE.DropSuccess && !pDragAndDropInfo->bOutlinerMode 
&& ( rDSDE.DropAction & datatransfer::dnd::DNDConstants::ACTION_MOVE ) )
+    if (!mbReadOnly && rDSDE.DropSuccess && !mpDragAndDropInfo->bOutlinerMode 
&& ( rDSDE.DropAction & datatransfer::dnd::DNDConstants::ACTION_MOVE ) )
     {
-        if ( pDragAndDropInfo->bStarterOfDD && pDragAndDropInfo->bDroppedInMe )
+        if (mpDragAndDropInfo->bStarterOfDD && mpDragAndDropInfo->bDroppedInMe 
)
         {
             // DropPos: Where was it dropped, irrespective of length.
-            ESelection aDropPos( pDragAndDropInfo->aDropSel.nStartPara, 
pDragAndDropInfo->aDropSel.nStartPos, pDragAndDropInfo->aDropSel.nStartPara, 
pDragAndDropInfo->aDropSel.nStartPos );
-            ESelection aToBeDelSel = pDragAndDropInfo->aBeginDragSel;
-            ESelection aNewSel( pDragAndDropInfo->aDropSel.nEndPara, 
pDragAndDropInfo->aDropSel.nEndPos,
-                                pDragAndDropInfo->aDropSel.nEndPara, 
pDragAndDropInfo->aDropSel.nEndPos );
-            bool bBeforeSelection = aDropPos < pDragAndDropInfo->aBeginDragSel;
-            sal_Int32 nParaDiff = pDragAndDropInfo->aBeginDragSel.nEndPara - 
pDragAndDropInfo->aBeginDragSel.nStartPara;
+            ESelection aDropPos(mpDragAndDropInfo->aDropSel.nStartPara, 
mpDragAndDropInfo->aDropSel.nStartPos, mpDragAndDropInfo->aDropSel.nStartPara, 
mpDragAndDropInfo->aDropSel.nStartPos );
+            ESelection aToBeDelSel = mpDragAndDropInfo->aBeginDragSel;
+            ESelection aNewSel( mpDragAndDropInfo->aDropSel.nEndPara, 
mpDragAndDropInfo->aDropSel.nEndPos,
+                                mpDragAndDropInfo->aDropSel.nEndPara, 
mpDragAndDropInfo->aDropSel.nEndPos );
+            bool bBeforeSelection = aDropPos < 
mpDragAndDropInfo->aBeginDragSel;
+            sal_Int32 nParaDiff = mpDragAndDropInfo->aBeginDragSel.nEndPara - 
mpDragAndDropInfo->aBeginDragSel.nStartPara;
             if ( bBeforeSelection )
             {
                 // Adjust aToBeDelSel.
-                DBG_ASSERT( pDragAndDropInfo->aBeginDragSel.nStartPara >= 
pDragAndDropInfo->aDropSel.nStartPara, "But not before? ");
+                DBG_ASSERT(mpDragAndDropInfo->aBeginDragSel.nStartPara >= 
mpDragAndDropInfo->aDropSel.nStartPara, "But not before? ");
                 aToBeDelSel.nStartPara = aToBeDelSel.nStartPara + nParaDiff;
                 aToBeDelSel.nEndPara = aToBeDelSel.nEndPara + nParaDiff;
                 // To correct the character?
-                if ( aToBeDelSel.nStartPara == 
pDragAndDropInfo->aDropSel.nEndPara )
+                if ( aToBeDelSel.nStartPara == 
mpDragAndDropInfo->aDropSel.nEndPara )
                 {
                     sal_uInt16 nMoreChars;
-                    if ( pDragAndDropInfo->aDropSel.nStartPara == 
pDragAndDropInfo->aDropSel.nEndPara )
-                        nMoreChars = pDragAndDropInfo->aDropSel.nEndPos - 
pDragAndDropInfo->aDropSel.nStartPos;
+                    if (mpDragAndDropInfo->aDropSel.nStartPara == 
mpDragAndDropInfo->aDropSel.nEndPara )
+                        nMoreChars = mpDragAndDropInfo->aDropSel.nEndPos - 
mpDragAndDropInfo->aDropSel.nStartPos;
                     else
-                        nMoreChars = pDragAndDropInfo->aDropSel.nEndPos;
+                        nMoreChars = mpDragAndDropInfo->aDropSel.nEndPos;
                     aToBeDelSel.nStartPos =
                         aToBeDelSel.nStartPos + nMoreChars;
                     if ( aToBeDelSel.nStartPara == aToBeDelSel.nEndPara )
@@ -2364,17 +2364,17 @@ void ImpEditView::dragDropEnd( const 
css::datatransfer::dnd::DragSourceDropEvent
             {
                 // aToBeDelSel is ok, but the selection of the  View
                 // has to be adapted, if it was deleted before!
-                DBG_ASSERT( pDragAndDropInfo->aBeginDragSel.nStartPara <= 
pDragAndDropInfo->aDropSel.nStartPara, "But not before? ");
+                DBG_ASSERT(mpDragAndDropInfo->aBeginDragSel.nStartPara <= 
mpDragAndDropInfo->aDropSel.nStartPara, "But not before? ");
                 aNewSel.nStartPara = aNewSel.nStartPara - nParaDiff;
                 aNewSel.nEndPara = aNewSel.nEndPara - nParaDiff;
                 // To correct the character?
-                if ( pDragAndDropInfo->aBeginDragSel.nEndPara == 
pDragAndDropInfo->aDropSel.nStartPara )
+                if (mpDragAndDropInfo->aBeginDragSel.nEndPara == 
mpDragAndDropInfo->aDropSel.nStartPara )
                 {
                     sal_uInt16 nLessChars;
-                    if ( pDragAndDropInfo->aBeginDragSel.nStartPara == 
pDragAndDropInfo->aBeginDragSel.nEndPara )
-                        nLessChars = pDragAndDropInfo->aBeginDragSel.nEndPos - 
pDragAndDropInfo->aBeginDragSel.nStartPos;
+                    if (mpDragAndDropInfo->aBeginDragSel.nStartPara == 
mpDragAndDropInfo->aBeginDragSel.nEndPara )
+                        nLessChars = mpDragAndDropInfo->aBeginDragSel.nEndPos 
- mpDragAndDropInfo->aBeginDragSel.nStartPos;
                     else
-                        nLessChars = pDragAndDropInfo->aBeginDragSel.nEndPos;
+                        nLessChars = mpDragAndDropInfo->aBeginDragSel.nEndPos;
                     aNewSel.nStartPos = aNewSel.nStartPos - nLessChars;
                     if ( aNewSel.nStartPara == aNewSel.nEndPara )
                         aNewSel.nEndPos = aNewSel.nEndPos - nLessChars;
@@ -2401,12 +2401,12 @@ void ImpEditView::dragDropEnd( const 
css::datatransfer::dnd::DragSourceDropEvent
         }
     }
 
-    if ( pDragAndDropInfo->bUndoAction )
+    if (mpDragAndDropInfo->bUndoAction)
         getImpEditEngine().UndoActionEnd();
 
     HideDDCursor();
     ShowCursor( DoAutoScroll(), true );
-    pDragAndDropInfo.reset();
+    mpDragAndDropInfo.reset();
     getEditEngine().GetEndDropHdl().Call(GetEditViewPtr());
 }
 
@@ -2414,9 +2414,9 @@ void ImpEditView::drop( const 
css::datatransfer::dnd::DropTargetDropEvent& rDTDE
 {
     SolarMutexGuard aVclGuard;
 
-    DBG_ASSERT( pDragAndDropInfo, "Drop - No Drag&Drop info?!" );
+    DBG_ASSERT(mpDragAndDropInfo, "Drop - No Drag&Drop info?!");
 
-    if ( !(pDragAndDropInfo && pDragAndDropInfo->bDragAccepted) )
+    if (!(mpDragAndDropInfo && mpDragAndDropInfo->bDragAccepted))
         return;
 
     getEditEngine().GetBeginDropHdl().Call(GetEditViewPtr());
@@ -2424,16 +2424,16 @@ void ImpEditView::drop( const 
css::datatransfer::dnd::DropTargetDropEvent& rDTDE
 
     HideDDCursor();
 
-    if ( pDragAndDropInfo->bStarterOfDD )
+    if (mpDragAndDropInfo->bStarterOfDD)
     {
         getImpEditEngine().UndoActionStart( EDITUNDO_DRAGANDDROP );
-        pDragAndDropInfo->bUndoAction = true;
+        mpDragAndDropInfo->bUndoAction = true;
     }
 
-    if ( pDragAndDropInfo->bOutlinerMode )
+    if (mpDragAndDropInfo->bOutlinerMode)
     {
         bChanges = true;
-        GetEditViewPtr()->MoveParagraphs( Range( 
pDragAndDropInfo->aBeginDragSel.nStartPara, 
pDragAndDropInfo->aBeginDragSel.nEndPara ), pDragAndDropInfo->nOutlinerDropDest 
);
+        
GetEditViewPtr()->MoveParagraphs(Range(mpDragAndDropInfo->aBeginDragSel.nStartPara,
 mpDragAndDropInfo->aBeginDragSel.nEndPara ), 
mpDragAndDropInfo->nOutlinerDropDest);
     }
     else
     {
@@ -2443,7 +2443,7 @@ void ImpEditView::drop( const 
css::datatransfer::dnd::DropTargetDropEvent& rDTDE
             bChanges = true;
             // remove Selection ...
             DrawSelectionXOR();
-            EditPaM aPaM( pDragAndDropInfo->aDropDest );
+            EditPaM aPaM(mpDragAndDropInfo->aDropDest);
 
             PasteOrDropInfos aPasteOrDropInfos;
             aPasteOrDropInfos.nStartPara = 
getEditEngine().GetEditDoc().GetPos( aPaM.GetNode() );
@@ -2457,14 +2457,14 @@ void ImpEditView::drop( const 
css::datatransfer::dnd::DropTargetDropEvent& rDTDE
 
             SetEditSelection( aNewSel );
             
getImpEditEngine().FormatAndLayout(getImpEditEngine().GetActiveView());
-            if ( pDragAndDropInfo->bStarterOfDD )
+            if (mpDragAndDropInfo->bStarterOfDD)
             {
                 // Only set if the same engine!
-                pDragAndDropInfo->aDropSel.nStartPara = 
getEditEngine().GetEditDoc().GetPos( aPaM.GetNode() );
-                pDragAndDropInfo->aDropSel.nStartPos = aPaM.GetIndex();
-                pDragAndDropInfo->aDropSel.nEndPara = 
getEditEngine().GetEditDoc().GetPos( aNewSel.Max().GetNode() );
-                pDragAndDropInfo->aDropSel.nEndPos = aNewSel.Max().GetIndex();
-                pDragAndDropInfo->bDroppedInMe = true;
+                mpDragAndDropInfo->aDropSel.nStartPara = 
getEditEngine().GetEditDoc().GetPos( aPaM.GetNode() );
+                mpDragAndDropInfo->aDropSel.nStartPos = aPaM.GetIndex();
+                mpDragAndDropInfo->aDropSel.nEndPara = 
getEditEngine().GetEditDoc().GetPos( aNewSel.Max().GetNode() );
+                mpDragAndDropInfo->aDropSel.nEndPos = aNewSel.Max().GetIndex();
+                mpDragAndDropInfo->bDroppedInMe = true;
             }
         }
     }
@@ -2474,9 +2474,9 @@ void ImpEditView::drop( const 
css::datatransfer::dnd::DropTargetDropEvent& rDTDE
         rDTDE.Context->acceptDrop( rDTDE.DropAction );
     }
 
-    if ( !pDragAndDropInfo->bStarterOfDD )
+    if (!mpDragAndDropInfo->bStarterOfDD)
     {
-        pDragAndDropInfo.reset();
+        mpDragAndDropInfo.reset();
     }
 
     rDTDE.Context->dropComplete( bChanges );
@@ -2486,10 +2486,10 @@ void ImpEditView::dragEnter( const 
css::datatransfer::dnd::DropTargetDragEnterEv
 {
     SolarMutexGuard aVclGuard;
 
-    if ( !pDragAndDropInfo )
-        pDragAndDropInfo.reset(new DragAndDropInfo());
+    if (!mpDragAndDropInfo)
+        mpDragAndDropInfo.reset(new DragAndDropInfo());
 
-    pDragAndDropInfo->bHasValidData = false;
+    mpDragAndDropInfo->bHasValidData = false;
 
     // Check for supported format...
     // Only check for text, will also be there if bin or rtf
@@ -2501,7 +2501,7 @@ void ImpEditView::dragEnter( const 
css::datatransfer::dnd::DropTargetDragEnterEv
     {
         if( TransferableDataHelper::IsEqual( pFlavors[n], aTextFlavor ) )
         {
-            pDragAndDropInfo->bHasValidData = true;
+            mpDragAndDropInfo->bHasValidData = true;
             break;
         }
     }
@@ -2515,9 +2515,9 @@ void ImpEditView::dragExit( const 
css::datatransfer::dnd::DropTargetEvent& )
 
     HideDDCursor();
 
-    if ( pDragAndDropInfo && !pDragAndDropInfo->bStarterOfDD )
+    if (mpDragAndDropInfo && !mpDragAndDropInfo->bStarterOfDD)
     {
-        pDragAndDropInfo.reset();
+        mpDragAndDropInfo.reset();
     }
 }
 
@@ -2532,9 +2532,9 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
 
     bool bAccept = false;
 
-    if ( GetOutputArea().Contains( aMousePos ) && !bReadOnly )
+    if (GetOutputArea().Contains( aMousePos ) && !mbReadOnly)
     {
-        if ( pDragAndDropInfo && pDragAndDropInfo->bHasValidData )
+        if (mpDragAndDropInfo && mpDragAndDropInfo->bHasValidData)
         {
             bAccept = true;
 
@@ -2544,14 +2544,14 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
                 tools::Long nScrollX = 0;
                 tools::Long nScrollY = 0;
                 // Check if in the sensitive area
-                if ( ( (aMousePos.X()-pDragAndDropInfo->nSensibleRange) < 
GetOutputArea().Left() ) && ( ( aMousePos.X() + 
pDragAndDropInfo->nSensibleRange ) > GetOutputArea().Left() ) )
+                if ( ( (aMousePos.X() - mpDragAndDropInfo->nSensibleRange) < 
GetOutputArea().Left() ) && ( ( aMousePos.X() + 
mpDragAndDropInfo->nSensibleRange ) > GetOutputArea().Left() ) )
                         nScrollX = GetOutputArea().GetWidth() / SCRLRANGE;
-                else if ( ( (aMousePos.X()+pDragAndDropInfo->nSensibleRange) > 
GetOutputArea().Right() ) && ( ( aMousePos.X() - 
pDragAndDropInfo->nSensibleRange ) < GetOutputArea().Right() ) )
+                else if ( ( (aMousePos.X() + 
mpDragAndDropInfo->nSensibleRange) > GetOutputArea().Right() ) && ( ( 
aMousePos.X() - mpDragAndDropInfo->nSensibleRange ) < GetOutputArea().Right() ) 
)
                         nScrollX = -( GetOutputArea().GetWidth() / SCRLRANGE );
 
-                if ( ( (aMousePos.Y()-pDragAndDropInfo->nSensibleRange) < 
GetOutputArea().Top() ) && ( ( aMousePos.Y() + pDragAndDropInfo->nSensibleRange 
) > GetOutputArea().Top() ) )
+                if ( ( (aMousePos.Y() - mpDragAndDropInfo->nSensibleRange) < 
GetOutputArea().Top() ) && ( ( aMousePos.Y() + 
mpDragAndDropInfo->nSensibleRange ) > GetOutputArea().Top() ) )
                         nScrollY = GetOutputArea().GetHeight() / SCRLRANGE;
-                else if ( ( (aMousePos.Y()+pDragAndDropInfo->nSensibleRange) > 
GetOutputArea().Bottom() ) && ( ( aMousePos.Y() - 
pDragAndDropInfo->nSensibleRange ) < GetOutputArea().Bottom() ) )
+                else if ( ( (aMousePos.Y() + 
mpDragAndDropInfo->nSensibleRange) > GetOutputArea().Bottom() ) && ( ( 
aMousePos.Y() - mpDragAndDropInfo->nSensibleRange ) < GetOutputArea().Bottom() 
) )
                         nScrollY = -( GetOutputArea().GetHeight() / SCRLRANGE 
);
 
                 if ( nScrollX || nScrollY )
@@ -2563,8 +2563,8 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
 
             Point aDocPos( GetDocPos( aMousePos ) );
             EditPaM aPaM = getEditEngine().GetPaM( aDocPos );
-            pDragAndDropInfo->aDropDest = aPaM;
-            if ( pDragAndDropInfo->bOutlinerMode )
+            mpDragAndDropInfo->aDropDest = aPaM;
+            if (mpDragAndDropInfo->bOutlinerMode)
             {
                 sal_Int32 nPara = getEditEngine().GetEditDoc().GetPos( 
aPaM.GetNode() );
                 ParaPortion* pPPortion = 
getEditEngine().GetParaPortions().SafeGetObject( nPara );
@@ -2574,15 +2574,15 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
                     tools::Long nRel = aDocPos.Y() - nDestParaStartY;
                     if ( nRel < ( pPPortion->GetHeight() / 2 ) )
                     {
-                        pDragAndDropInfo->nOutlinerDropDest = nPara;
+                        mpDragAndDropInfo->nOutlinerDropDest = nPara;
                     }
                     else
                     {
-                        pDragAndDropInfo->nOutlinerDropDest = nPara+1;
+                        mpDragAndDropInfo->nOutlinerDropDest = nPara+1;
                     }
 
-                    if( ( pDragAndDropInfo->nOutlinerDropDest >= 
pDragAndDropInfo->aBeginDragSel.nStartPara ) &&
-                            ( pDragAndDropInfo->nOutlinerDropDest <= 
(pDragAndDropInfo->aBeginDragSel.nEndPara+1) ) )
+                    if ((mpDragAndDropInfo->nOutlinerDropDest >= 
mpDragAndDropInfo->aBeginDragSel.nStartPara) &&
+                            (mpDragAndDropInfo->nOutlinerDropDest <= 
(mpDragAndDropInfo->aBeginDragSel.nEndPara + 1)))
                     {
                         bAccept = false;
                     }
@@ -2603,12 +2603,12 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
             if ( bAccept )
             {
                 tools::Rectangle aEditCursor;
-                if ( pDragAndDropInfo->bOutlinerMode )
+                if (mpDragAndDropInfo->bOutlinerMode)
                 {
                     tools::Long nDDYPos(0);
-                    if ( pDragAndDropInfo->nOutlinerDropDest < 
getEditEngine().GetEditDoc().Count() )
+                    if (mpDragAndDropInfo->nOutlinerDropDest < 
getEditEngine().GetEditDoc().Count())
                     {
-                        ParaPortion* pPPortion = 
getEditEngine().GetParaPortions().SafeGetObject( 
pDragAndDropInfo->nOutlinerDropDest );
+                        ParaPortion* pPPortion = 
getEditEngine().GetParaPortions().SafeGetObject(mpDragAndDropInfo->nOutlinerDropDest);
                         if (pPPortion)
                             nDDYPos = 
getEditEngine().GetParaPortions().GetYOffset( pPPortion );
                     }
@@ -2646,18 +2646,18 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
                     aEditCursor = getImpEditEngine().PaMtoEditCursor( aPaM );
                     Point aTopLeft( GetWindowPos( aEditCursor.TopLeft() ) );
                     aEditCursor.SetPos( aTopLeft );
-                    aEditCursor.SetRight( aEditCursor.Left() + 
pDragAndDropInfo->nCursorWidth );
+                    aEditCursor.SetRight(aEditCursor.Left() + 
mpDragAndDropInfo->nCursorWidth);
                     aEditCursor = rOutDev.LogicToPixel( aEditCursor );
                     aEditCursor = rOutDev.PixelToLogic( aEditCursor );
                 }
 
-                bool bCursorChanged = !pDragAndDropInfo->bVisCursor || ( 
pDragAndDropInfo->aCurCursor != aEditCursor );
+                bool bCursorChanged = !mpDragAndDropInfo->bVisCursor || 
(mpDragAndDropInfo->aCurCursor != aEditCursor);
                 if ( bCursorChanged )
                 {
                     HideDDCursor();
                     ShowDDCursor(aEditCursor );
                 }
-                pDragAndDropInfo->bDragAccepted = true;
+                mpDragAndDropInfo->bDragAccepted = true;
                 rDTDE.Context->acceptDrag( rDTDE.DropAction );
             }
         }
@@ -2666,15 +2666,15 @@ void ImpEditView::dragOver(const 
css::datatransfer::dnd::DropTargetDragEvent& rD
     if ( !bAccept )
     {
         HideDDCursor();
-        if (pDragAndDropInfo)
-            pDragAndDropInfo->bDragAccepted = false;
+        if (mpDragAndDropInfo)
+            mpDragAndDropInfo->bDragAccepted = false;
         rDTDE.Context->rejectDrag();
     }
 }
 
 void ImpEditView::AddDragAndDropListeners()
 {
-    if (bActiveDragAndDropListener)
+    if (mbActiveDragAndDropListener)
         return;
 
     uno::Reference<datatransfer::dnd::XDropTarget> xDropTarget;
@@ -2700,12 +2700,12 @@ void ImpEditView::AddDragAndDropListeners()
     xDropTarget->setActive(true);
     
xDropTarget->setDefaultActions(datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE);
 
-    bActiveDragAndDropListener = true;
+    mbActiveDragAndDropListener = true;
 }
 
 void ImpEditView::RemoveDragAndDropListeners()
 {
-    if (!bActiveDragAndDropListener)
+    if (!mbActiveDragAndDropListener)
         return;
 
     uno::Reference<datatransfer::dnd::XDropTarget> xDropTarget;
@@ -2733,7 +2733,7 @@ void ImpEditView::RemoveDragAndDropListeners()
         mxDnDListener.clear();
     }
 
-    bActiveDragAndDropListener = false;
+    mbActiveDragAndDropListener = false;
 }
 
 void ImpEditView::InitLOKSpecialPositioning(MapUnit eUnit,
diff --git a/editeng/source/editeng/impedit.hxx 
b/editeng/source/editeng/impedit.hxx
index 9a011e90e53c..293f1634b9f4 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -263,38 +263,37 @@ class ImpEditView : public 
vcl::unohelper::DragAndDropClient
     using vcl::unohelper::DragAndDropClient::dragOver;
 
 private:
-    EditView*                 pEditView;
-    std::unique_ptr<vcl::Cursor, o3tl::default_delete<vcl::Cursor>>  pCursor;
-    std::optional<Color>      mxBackgroundColor;
+    EditView* mpEditView;
+    std::unique_ptr<vcl::Cursor, o3tl::default_delete<vcl::Cursor>> mpCursor;
+    std::optional<Color> mxBackgroundColor;
     /// Containing view shell, if any.
-    OutlinerViewShell*        mpViewShell;
+    OutlinerViewShell* mpViewShell;
     /// Another shell, just listening to our state, if any.
-    OutlinerViewShell*        mpOtherShell;
+    OutlinerViewShell* mpOtherShell;
     EditEngine* mpEditEngine;
-    VclPtr<vcl::Window>       pOutWin;
-    EditView::OutWindowSet    aOutWindowSet;
-    std::optional<PointerStyle>  mxPointer;
-    std::unique_ptr<DragAndDropInfo>  pDragAndDropInfo;
-
-    css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > 
mxDnDListener;
-
-
-    tools::Long                nInvMore;
-    EVControlBits       nControl;
-    sal_uInt32          nTravelXPos;
-    GetCursorFlags      nExtraCursorFlags;
-    sal_uInt16          nCursorBidiLevel;
-    sal_uInt16          nScrollDiffX;
-    bool                bReadOnly;
-    bool                bClickedInSelection;
-    bool                bActiveDragAndDropListener;
-
-    Point               aAnchorPoint;
-    tools::Rectangle           aOutArea;
-    Point               aVisDocStartPos;
-    EESelectionMode     eSelectionMode;
-    EditSelection       aEditSelection;
-    EEAnchorMode        eAnchorMode;
+    VclPtr<vcl::Window> mpOutputWindow;
+    EditView::OutWindowSet maOutWindowSet;
+    std::optional<PointerStyle> mxPointer;
+    std::unique_ptr<DragAndDropInfo> mpDragAndDropInfo;
+
+    css::uno::Reference<css::datatransfer::dnd::XDragSourceListener> 
mxDnDListener;
+
+    tools::Long mnInvalidateMore;
+    EVControlBits mnControl;
+    sal_uInt32 mnTravelXPos;
+    GetCursorFlags mnExtraCursorFlags;
+    sal_uInt16 mnCursorBidiLevel;
+    sal_uInt16 mnScrollDiffX;
+    bool mbReadOnly;
+    bool mbClickedInSelection;
+    bool mbActiveDragAndDropListener;
+
+    Point maAnchorPoint;
+    tools::Rectangle maOutputArea;
+    Point maVisDocStartPos;
+    EESelectionMode meSelectionMode;
+    EditSelection maEditSelection;
+    EEAnchorMode meAnchorMode;
 
     /// mechanism to change from the classic refresh mode that simply
     // invalidates the area where text was changed. When set, the invalidate
@@ -347,20 +346,20 @@ protected:
     tools::Rectangle ImplGetEditCursor(EditPaM& aPaM, GetCursorFlags 
nShowCursorFlags, sal_Int32& nTextPortionStart, ParaPortion const& 
rParaPortion) const;
 
 public:
-                    ImpEditView( EditView* pView, EditEngine* pEng, 
vcl::Window* pWindow );
-                    virtual ~ImpEditView() override;
+    ImpEditView(EditView* pView, EditEngine* pEditEngine, vcl::Window* 
pWindow);
+    virtual ~ImpEditView() override;
 
-    EditView*       GetEditViewPtr() { return pEditView; }
+    EditView* GetEditViewPtr() { return mpEditView; }
 
     EditEngine& getEditEngine() const { return *mpEditEngine; }
     ImpEditEngine& getImpEditEngine() const { return 
getEditEngine().getImpl(); }
 
 
-    sal_uInt16      GetScrollDiffX() const          { return nScrollDiffX; }
-    void            SetScrollDiffX( sal_uInt16 n )  { nScrollDiffX = n; }
+    sal_uInt16 GetScrollDiffX() const { return mnScrollDiffX; }
+    void SetScrollDiffX(sal_uInt16 n) { mnScrollDiffX = n; }
 
-    sal_uInt16      GetCursorBidiLevel() const      { return nCursorBidiLevel; 
}
-    void            SetCursorBidiLevel( sal_uInt16 n ) { nCursorBidiLevel = n; 
}
+    sal_uInt16 GetCursorBidiLevel() const { return mnCursorBidiLevel; }
+    void SetCursorBidiLevel(sal_uInt16 n) { mnCursorBidiLevel = n; }
 
     Point           GetDocPos( const Point& rWindowPos ) const;
     Point           GetWindowPos( const Point& rDocPos ) const;
@@ -368,7 +367,7 @@ public:
 
     void                SetOutputArea( const tools::Rectangle& rRect );
     void                ResetOutputArea( const tools::Rectangle& rRect );
-    const tools::Rectangle&    GetOutputArea() const   { return aOutArea; }
+    const tools::Rectangle& GetOutputArea() const { return maOutputArea; }
 
     bool            IsVertical() const;
     bool            IsTopToBottom() const;
@@ -384,20 +383,29 @@ public:
     void            CutCopy( css::uno::Reference< 
css::datatransfer::clipboard::XClipboard > const & rxClipboard, bool bCut );
     void            Paste( css::uno::Reference< 
css::datatransfer::clipboard::XClipboard > const & rxClipboard, bool 
bUseSpecial = false, SotClipboardFormatId format = SotClipboardFormatId::NONE);
 
-    void            SetVisDocStartPos( const Point& rPos ) { aVisDocStartPos = 
rPos; }
+    void SetVisDocStartPos(const Point& rPos) { maVisDocStartPos = rPos; }
 
-    tools::Long            GetVisDocLeft() const { return aVisDocStartPos.X(); 
}
-    tools::Long            GetVisDocTop() const { return aVisDocStartPos.Y(); }
-    tools::Long            GetVisDocRight() const { return aVisDocStartPos.X() 
+ ( !IsVertical() ? aOutArea.GetWidth() : aOutArea.GetHeight() ); }
-    tools::Long            GetVisDocBottom() const { return 
aVisDocStartPos.Y() + ( !IsVertical() ? aOutArea.GetHeight() : 
aOutArea.GetWidth() ); }
+    tools::Long GetVisDocLeft() const { return maVisDocStartPos.X(); }
+    tools::Long GetVisDocTop() const { return maVisDocStartPos.Y(); }
+    tools::Long GetVisDocRight() const
+    {
+        return maVisDocStartPos.X() + ( !IsVertical() ? 
maOutputArea.GetWidth() : maOutputArea.GetHeight() );
+    }
+    tools::Long GetVisDocBottom() const
+    {
+        return maVisDocStartPos.Y() + ( !IsVertical() ? 
maOutputArea.GetHeight() : maOutputArea.GetWidth() );
+    }
     tools::Rectangle       GetVisDocArea() const;
 
-    const EditSelection&  GetEditSelection() const { return aEditSelection; }
-    void            SetEditSelection( const EditSelection& rEditSelection );
-    bool            HasSelection() const { return aEditSelection.HasRange(); }
+    const EditSelection&  GetEditSelection() const { return maEditSelection; }
+    void SetEditSelection(const EditSelection& rEditSelection);
+    bool HasSelection() const { return maEditSelection.HasRange(); }
 
     void SelectionChanged();
-    void            DrawSelectionXOR() { DrawSelectionXOR( aEditSelection ); }
+    void DrawSelectionXOR()
+    {
+        DrawSelectionXOR(maEditSelection);
+    }
     void            DrawSelectionXOR( EditSelection, vcl::Region* pRegion = 
nullptr, OutputDevice* pTargetDevice = nullptr );
     void GetSelectionRectangles(EditSelection aTmpSel, 
std::vector<tools::Rectangle>& rLogicRects);
 
@@ -405,7 +413,7 @@ public:
 
     OutputDevice&   GetOutputDevice() const;
     weld::Widget*   GetPopupParent(tools::Rectangle& rRect) const;
-    vcl::Window*    GetWindow() const           { return pOutWin; }
+    vcl::Window* GetWindow() const { return mpOutputWindow; }
 
     void            SetSelectionMode( EESelectionMode eMode );
 
@@ -431,9 +439,9 @@ public:
 
     vcl::Cursor* GetCursor()
     {
-        if ( !pCursor )
-            pCursor.reset( new vcl::Cursor );
-        return pCursor.get();
+        if (!mpCursor)
+            mpCursor.reset(new vcl::Cursor);
+        return mpCursor.get();
     }
 
     void            AddDragAndDropListeners();
@@ -452,7 +460,7 @@ public:
     bool            IsSelectionInSinglePara() const;
 
     void            SetAnchorMode( EEAnchorMode eMode );
-    EEAnchorMode    GetAnchorMode() const           { return eAnchorMode; }
+    EEAnchorMode GetAnchorMode() const { return meAnchorMode; }
     void            CalcAnchorPoint();
     void            RecalcOutputArea();
 
@@ -461,17 +469,17 @@ public:
     void            ShowCursor( bool bGotoCursor, bool bForceVisCursor );
     Pair            Scroll( tools::Long ndX, tools::Long ndY, ScrollRangeCheck 
nRangeCheck = ScrollRangeCheck::NoNegative );
 
-    void        SetInsertMode( bool bInsert );
-    bool        IsInsertMode() const            { return !( nControl & 
EVControlBits::OVERWRITE ); }
+    void SetInsertMode( bool bInsert );
+    bool IsInsertMode() const { return !(mnControl & 
EVControlBits::OVERWRITE); }
 
-    bool        IsPasteEnabled() const          { return bool( nControl & 
EVControlBits::ENABLEPASTE ); }
+    bool IsPasteEnabled() const { return bool(mnControl & 
EVControlBits::ENABLEPASTE); }
 
-    bool        DoSingleLinePaste() const       { return bool( nControl & 
EVControlBits::SINGLELINEPASTE ); }
-    bool        DoAutoScroll() const            { return bool( nControl & 
EVControlBits::AUTOSCROLL ); }
-    bool        DoAutoSize() const              { return bool( nControl & 
EVControlBits::AUTOSIZE ); }
-    bool        DoAutoWidth() const             { return bool( nControl & 
EVControlBits::AUTOSIZEX); }
-    bool        DoAutoHeight() const            { return bool( nControl & 
EVControlBits::AUTOSIZEY); }
-    bool        DoInvalidateMore() const        { return bool( nControl & 
EVControlBits::INVONEMORE ); }
+    bool DoSingleLinePaste() const { return bool(mnControl & 
EVControlBits::SINGLELINEPASTE); }
+    bool DoAutoScroll() const { return bool(mnControl & 
EVControlBits::AUTOSCROLL); }
+    bool DoAutoSize() const { return bool(mnControl & 
EVControlBits::AUTOSIZE); }
+    bool DoAutoWidth() const { return bool(mnControl & 
EVControlBits::AUTOSIZEX); }
+    bool DoAutoHeight() const { return bool(mnControl & 
EVControlBits::AUTOSIZEY); }
+    bool DoInvalidateMore() const { return bool(mnControl & 
EVControlBits::INVONEMORE ); }
 
     void        SetBackgroundColor( const Color& rColor );
     const Color& GetBackgroundColor() const;
@@ -489,8 +497,14 @@ public:
     void            DeleteSelected();
 
     //  If possible invalidate more than OutputArea, for the DrawingEngine 
text frame
-    void            SetInvalidateMore( sal_uInt16 nPixel ) { nInvMore = 
nPixel; }
-    sal_uInt16      GetInvalidateMore() const { return 
static_cast<sal_uInt16>(nInvMore); }
+    void SetInvalidateMore(sal_uInt16 nPixel)
+    {
+        mnInvalidateMore = nPixel;
+    }
+    sal_uInt16 GetInvalidateMore() const
+    {
+        return sal_uInt16(mnInvalidateMore);
+    }
 
     void InitLOKSpecialPositioning(MapUnit eUnit, const tools::Rectangle& 
rOutputArea,
                                    const Point& rVisDocStartPos);
diff --git a/editeng/source/editeng/impedit2.cxx 
b/editeng/source/editeng/impedit2.cxx
index 46a209f831fa..78225e9fe6ec 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -989,7 +989,7 @@ EditPaM ImpEditEngine::CursorVisualStartEnd( EditView const 
* mpEditView, const
     const EditLine& rLine = pParaPortion->GetLines()[nLine];
     bool bEmptyLine = rLine.GetStart() == rLine.GetEnd();
 
-    mpEditView->getImpl().nExtraCursorFlags = GetCursorFlags::NONE;
+    mpEditView->getImpl().mnExtraCursorFlags = GetCursorFlags::NONE;
 
     if ( !bEmptyLine )
     {
@@ -1044,7 +1044,7 @@ EditPaM ImpEditEngine::CursorVisualLeftRight( EditView 
const * pEditView, const
     const EditLine& rLine = pParaPortion->GetLines()[nLine];
     bool bEmptyLine = rLine.GetStart() == rLine.GetEnd();
 
-    pEditView->getImpl().nExtraCursorFlags = GetCursorFlags::NONE;
+    pEditView->getImpl().mnExtraCursorFlags = GetCursorFlags::NONE;
 
     bool bParaRTL = IsRightToLeft( nPara );
 
@@ -1272,13 +1272,13 @@ EditPaM ImpEditEngine::CursorUp( const EditPaM& rPaM, 
EditView const * pView )
     const EditLine& rLine = pPPortion->GetLines()[nLine];
 
     tools::Long nX;
-    if ( pView->getImpl().nTravelXPos == TRAVEL_X_DONTKNOW )
+    if ( pView->getImpl().mnTravelXPos == TRAVEL_X_DONTKNOW )
     {
         nX = GetXPos(*pPPortion, rLine, rPaM.GetIndex());
-        pView->getImpl().nTravelXPos = nX + mnOnePixelInRef;
+        pView->getImpl().mnTravelXPos = nX + mnOnePixelInRef;
     }
     else
-        nX = pView->getImpl().nTravelXPos;
+        nX = pView->getImpl().mnTravelXPos;
 
     EditPaM aNewPaM( rPaM );
     if ( nLine )    // same paragraph
@@ -1315,14 +1315,14 @@ EditPaM ImpEditEngine::CursorDown( const EditPaM& rPaM, 
EditView const * pView )
     sal_Int32 nLine = pPPortion->GetLineNumber( rPaM.GetIndex() );
 
     tools::Long nX;
-    if ( pView->getImpl().nTravelXPos == TRAVEL_X_DONTKNOW )
+    if ( pView->getImpl().mnTravelXPos == TRAVEL_X_DONTKNOW )
     {
         const EditLine& rLine = pPPortion->GetLines()[nLine];
         nX = GetXPos(*pPPortion, rLine, rPaM.GetIndex());
-        pView->getImpl().nTravelXPos = nX + mnOnePixelInRef;
+        pView->getImpl().mnTravelXPos = nX + mnOnePixelInRef;
     }
     else
-        nX = pView->getImpl().nTravelXPos;
+        nX = pView->getImpl().mnTravelXPos;
 
     EditPaM aNewPaM( rPaM );
     if ( nLine < pPPortion->GetLines().Count()-1 )
commit 290ad80ad225ba8570fa792fd1c8dbe7a7d107f0
Author:     Tomaž Vajngerl <[email protected]>
AuthorDate: Sun Jan 21 17:48:27 2024 +0900
Commit:     Tomaž Vajngerl <[email protected]>
CommitDate: Thu Jan 25 11:02:05 2024 +0100

    editeng: in EditView, access ImpEditView as a reference
    
    EditView access to ImpEditView can be done as a reference as the
    ImpEditView instance is created on EditView construction and is
    always valid as long as EditView is alive.
    
    Also change all access to ImpEditView instance to use the
    getImpl() method insteady of direct access.
    
    Change-Id: If64f8f8494c3a4f52f860ea8dee798edd51b6c6b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162528
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <[email protected]>

diff --git a/editeng/source/editeng/editeng.cxx 
b/editeng/source/editeng/editeng.cxx
index d4bcfe337c86..61b979abd320 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -309,11 +309,11 @@ void EditEngine::InsertView(EditView* pEditView, size_t 
nIndex)
     rViews.insert(rViews.begin()+nIndex, pEditView);
 
     EditSelection aStartSel = pImpEditEngine->GetEditDoc().GetStartPaM();
-    pEditView->pImpEditView->SetEditSelection( aStartSel );
+    pEditView->getImpl().SetEditSelection( aStartSel );
     if ( !pImpEditEngine->GetActiveView() )
         pImpEditEngine->SetActiveView( pEditView );
 
-    pEditView->pImpEditView->AddDragAndDropListeners();
+    pEditView->getImpl().AddDragAndDropListeners();
 }
 
 EditView* EditEngine::RemoveView( EditView* pView )
@@ -334,7 +334,7 @@ EditView* EditEngine::RemoveView( EditView* pView )
             pImpEditEngine->SetActiveView( nullptr );
             pImpEditEngine->GetSelEngine().SetCurView( nullptr );
         }
-        pView->pImpEditView->RemoveDragAndDropListeners();
+        pView->getImpl().RemoveDragAndDropListeners();
 
     }
     return pRemoved;
@@ -401,11 +401,10 @@ void EditEngine::SetPaperSize( const Size& rNewSize )
     for (EditView* pView : pImpEditEngine->maEditViews)
     {
         if ( bAutoPageSize )
-            pView->pImpEditView->RecalcOutputArea();
-        else if ( pView->pImpEditView->DoAutoSize() )
+            pView->getImpl().RecalcOutputArea();
+        else if (pView->getImpl().DoAutoSize())
         {
-            pView->pImpEditView->ResetOutputArea( tools::Rectangle(
-                pView->pImpEditView->GetOutputArea().TopLeft(), aNewSize ) );
+            
pView->getImpl().ResetOutputArea(tools::Rectangle(pView->getImpl().GetOutputArea().TopLeft(),
 aNewSize));
         }
     }
 
@@ -1009,7 +1008,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
     GetCursorFlags nNewCursorFlags = GetCursorFlags::NONE;
     bool bSetCursorFlags = true;
 
-    EditSelection aCurSel( pEditView->pImpEditView->GetEditSelection() );
+    EditSelection aCurSel( pEditView->getImpl().GetEditSelection() );
     DBG_ASSERT( !aCurSel.IsInvalid(), "Blinde Selection in 
EditEngine::PostKeyEvent" );
 
     OUString aAutoText( pImpEditEngine->GetAutoCompleteText() );
@@ -1127,7 +1126,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
 
                     if ( aCurSel.HasRange() ) {
                         Reference<css::datatransfer::clipboard::XClipboard> 
aSelection(GetSystemPrimarySelection());
-                        pEditView->pImpEditView->CutCopy( aSelection, false );
+                        pEditView->getImpl().CutCopy( aSelection, false );
                     }
 
                     bMoved = true;
@@ -1210,9 +1209,9 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
                         break;
                     }
 
-                    pEditView->pImpEditView->DrawSelectionXOR();
+                    pEditView->getImpl().DrawSelectionXOR();
                     pImpEditEngine->UndoActionStart( EDITUNDO_DELETE );
-                    aCurSel = pImpEditEngine->DeleteLeftOrRight( aCurSel, 
nDel, nMode );
+                    aCurSel = getImpl().DeleteLeftOrRight( aCurSel, nDel, 
nMode );
                     pImpEditEngine->UndoActionEnd();
                     bModified = true;
                     bAllowIdle = false;
@@ -1245,7 +1244,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
             {
                 if ( !bReadOnly )
                 {
-                    pEditView->pImpEditView->DrawSelectionXOR();
+                    pEditView->getImpl().DrawSelectionXOR();
                     if ( !rKeyEvent.GetKeyCode().IsMod1() && 
!rKeyEvent.GetKeyCode().IsMod2() )
                     {
                         pImpEditEngine->UndoActionStart( EDITUNDO_INSERT );
@@ -1300,7 +1299,7 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
                 if ( !bReadOnly && IsSimpleCharInput( rKeyEvent ) )
                 {
                     sal_Unicode nCharCode = rKeyEvent.GetCharCode();
-                    pEditView->pImpEditView->DrawSelectionXOR();
+                    pEditView->getImpl().DrawSelectionXOR();
                     // Autocorrection?
                     if ( ( pImpEditEngine->GetStatus().DoAutoCorrect() ) &&
                         ( SvxAutoCorrect::IsAutoCorrectChar( nCharCode ) ||
@@ -1374,8 +1373,8 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
                                 {
                                     pImpEditEngine->SetAutoCompleteText( 
aComplete, false );
                                     Point aPos = 
pImpEditEngine->PaMtoEditCursor( aCurSel.Max() ).TopLeft();
-                                    aPos = 
pEditView->pImpEditView->GetWindowPos( aPos );
-                                    aPos = 
pEditView->pImpEditView->GetWindow()->LogicToPixel( aPos );
+                                    aPos = pEditView->getImpl().GetWindowPos( 
aPos );
+                                    aPos = 
pEditView->getImpl().GetWindow()->LogicToPixel( aPos );
                                     aPos = 
pEditView->GetWindow()->OutputToScreenPixel( aPos );
                                     aPos.AdjustY( -3 );
                                     Help::ShowQuickHelp( 
pEditView->GetWindow(), tools::Rectangle( aPos, Size( 1, 1 ) ), aComplete, 
QuickHelpFlags::Bottom|QuickHelpFlags::Left );
@@ -1391,28 +1390,28 @@ bool EditEngine::PostKeyEvent( const KeyEvent& 
rKeyEvent, EditView* pEditView, v
         }
     }
 
-    pEditView->pImpEditView->SetEditSelection( aCurSel );
+    pEditView->getImpl().SetEditSelection( aCurSel );
     if (comphelper::LibreOfficeKit::isActive())
     {
-        pEditView->pImpEditView->DrawSelectionXOR();
+        pEditView->getImpl().DrawSelectionXOR();
     }
     pImpEditEngine->UpdateSelections();
 
     if ( ( !IsEffectivelyVertical() && ( nCode != KEY_UP ) && ( nCode != 
KEY_DOWN ) ) ||
          ( IsEffectivelyVertical() && ( nCode != KEY_LEFT ) && ( nCode != 
KEY_RIGHT ) ))
     {
-        pEditView->pImpEditView->nTravelXPos = TRAVEL_X_DONTKNOW;
+        pEditView->getImpl().nTravelXPos = TRAVEL_X_DONTKNOW;
     }
 
     if ( /* ( nCode != KEY_HOME ) && ( nCode != KEY_END ) && */
         ( !IsEffectivelyVertical() && ( nCode != KEY_LEFT ) && ( nCode != 
KEY_RIGHT ) ) ||
          ( IsEffectivelyVertical() && ( nCode != KEY_UP ) && ( nCode != 
KEY_DOWN ) ))
     {
-        pEditView->pImpEditView->SetCursorBidiLevel( CURSOR_BIDILEVEL_DONTKNOW 
);
+        pEditView->getImpl().SetCursorBidiLevel( CURSOR_BIDILEVEL_DONTKNOW );
     }
 
     if ( bSetCursorFlags )
-        pEditView->pImpEditView->nExtraCursorFlags = nNewCursorFlags;
+        pEditView->getImpl().nExtraCursorFlags = nNewCursorFlags;
 
     if ( bModified )
     {
@@ -1426,8 +1425,8 @@ bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, 
EditView* pEditView, v
     }
     else if ( bMoved )
     {
-        bool bGotoCursor = pEditView->pImpEditView->DoAutoScroll();
-        pEditView->pImpEditView->ShowCursor( bGotoCursor, true );
+        bool bGotoCursor = pEditView->getImpl().DoAutoScroll();
+        pEditView->getImpl().ShowCursor( bGotoCursor, true );
         pImpEditEngine->CallStatusHdl();
     }
 
@@ -2555,7 +2554,7 @@ void EditEngine::ParagraphHeightChanged( sal_Int32 nPara )
     }
 
     for (EditView* pView : pImpEditEngine->maEditViews)
-        pView->pImpEditView->ScrollStateChange();
+        pView->getImpl().ScrollStateChange();
 }
 
 OUString EditEngine::GetUndoComment( sal_uInt16 nId ) const
diff --git a/editeng/source/editeng/editsel.cxx 
b/editeng/source/editeng/editsel.cxx
index 3aeed7a6e357..4bdfff88155b 100644
--- a/editeng/source/editeng/editsel.cxx
+++ b/editeng/source/editeng/editsel.cxx
@@ -31,7 +31,7 @@ EditSelFunctionSet::EditSelFunctionSet()
 void EditSelFunctionSet::CreateAnchor()
 {
     if ( pCurView )
-        pCurView->pImpEditView->CreateAnchor();
+        pCurView->getImpl().CreateAnchor();
 }
 
 void EditSelFunctionSet::DestroyAnchor()
@@ -42,13 +42,13 @@ void EditSelFunctionSet::DestroyAnchor()
 void EditSelFunctionSet::SetCursorAtPoint( const Point& rPointPixel, bool )
 {
     if ( pCurView )
-        pCurView->pImpEditView->SetCursorAtPoint( rPointPixel );
+        pCurView->getImpl().SetCursorAtPoint( rPointPixel );
 }
 
 bool EditSelFunctionSet::IsSelectionAtPoint( const Point& rPointPixel )
 {
     if ( pCurView )
-        return pCurView->pImpEditView->IsSelectionAtPoint( rPointPixel );
+        return pCurView->getImpl().IsSelectionAtPoint( rPointPixel );
 
     return false;
 }
@@ -69,7 +69,7 @@ void EditSelFunctionSet::BeginDrag()
 void EditSelFunctionSet::DeselectAll()
 {
     if ( pCurView )
-        pCurView->pImpEditView->DeselectAll();
+        pCurView->getImpl().DeselectAll();
 }
 
 
diff --git a/editeng/source/editeng/editundo.cxx 
b/editeng/source/editeng/editundo.cxx
index b13ff7109791..7ff299e7efbd 100644
--- a/editeng/source/editeng/editundo.cxx
+++ b/editeng/source/editeng/editundo.cxx
@@ -32,7 +32,7 @@ static void lcl_DoSetSelection( EditView const * pView, 
sal_uInt16 nPara )
     EditPaM aPaM = pView->getImpEditEngine().CreateEditPaM(aEPaM);
     aPaM.SetIndex( aPaM.GetNode()->Len() );
     EditSelection aSel( aPaM, aPaM );
-    pView->GetImpEditView()->SetEditSelection( aSel );
+    pView->getImpl().SetEditSelection( aSel );
 }
 
 EditUndoManager::EditUndoManager(sal_uInt16 nMaxUndoActionCount )
@@ -64,18 +64,18 @@ bool EditUndoManager::Undo()
         }
     }
 
-    mpEditEngine->GetActiveView()->GetImpEditView()->DrawSelectionXOR(); // 
Remove the old selection
+    mpEditEngine->GetActiveView()->getImpl().DrawSelectionXOR(); // Remove the 
old selection
 
     mpEditEngine->SetUndoMode( true );
     bool bDone = SfxUndoManager::Undo();
     mpEditEngine->SetUndoMode( false );
 
-    EditSelection aNewSel( 
mpEditEngine->GetActiveView()->GetImpEditView()->GetEditSelection() );
+    EditSelection aNewSel( 
mpEditEngine->GetActiveView()->getImpl().GetEditSelection() );
     DBG_ASSERT( !aNewSel.IsInvalid(), "Invalid selection after Undo () ");
     DBG_ASSERT( !aNewSel.DbgIsBuggy( mpEditEngine->GetEditDoc() ), "Broken 
selection afte Undo () ");
 
     aNewSel.Min() = aNewSel.Max();
-    mpEditEngine->GetActiveView()->GetImpEditView()->SetEditSelection( aNewSel 
);
+    mpEditEngine->GetActiveView()->getImpl().SetEditSelection( aNewSel );
     if (mpEditEngine->IsUpdateLayout())
         mpEditEngine->FormatAndLayout( mpEditEngine->GetActiveView(), true );
 
@@ -100,18 +100,18 @@ bool EditUndoManager::Redo()
         }
     }
 
-    mpEditEngine->GetActiveView()->GetImpEditView()->DrawSelectionXOR(); // 
Remove the old selection
+    mpEditEngine->GetActiveView()->getImpl().DrawSelectionXOR(); // Remove the 
old selection
 
     mpEditEngine->SetUndoMode( true );
     bool bDone = SfxUndoManager::Redo();
     mpEditEngine->SetUndoMode( false );
 
-    EditSelection aNewSel( 
mpEditEngine->GetActiveView()->GetImpEditView()->GetEditSelection() );
+    EditSelection aNewSel( 
mpEditEngine->GetActiveView()->getImpl().GetEditSelection() );
     DBG_ASSERT( !aNewSel.IsInvalid(), "Invalid selection after Undo () ");
     DBG_ASSERT( !aNewSel.DbgIsBuggy( mpEditEngine->GetEditDoc() ), "Broken 
selection afte Undo () ");
 
     aNewSel.Min() = aNewSel.Max();
-    mpEditEngine->GetActiveView()->GetImpEditView()->SetEditSelection( aNewSel 
);
+    mpEditEngine->GetActiveView()->getImpl().SetEditSelection( aNewSel );
     if (mpEditEngine->IsUpdateLayout())
         mpEditEngine->FormatAndLayout( mpEditEngine->GetActiveView() );
 
@@ -122,7 +122,7 @@ EditUndo::EditUndo(sal_uInt16 nI, EditEngine* pEE) :
     nId(nI), mnViewShellId(-1), mpEditEngine(pEE)
 {
     const EditView* pEditView = mpEditEngine ? mpEditEngine->GetActiveView() : 
nullptr;
-    const OutlinerViewShell* pViewShell = pEditView ? 
pEditView->GetImpEditView()->GetViewShell() : nullptr;
+    const OutlinerViewShell* pViewShell = pEditView ? 
pEditView->getImpl().GetViewShell() : nullptr;
     if (pViewShell)
         mnViewShellId = pViewShell->GetViewShellId();
 }
@@ -173,7 +173,7 @@ void EditUndoDelContent::Undo()
     ContentNode* pNode = mpContentNode.get();
     GetEditEngine()->InsertContent(std::move(mpContentNode), nNode);
     EditSelection aSel(EditPaM(pNode, 0), EditPaM(pNode, pNode->Len()));
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection(aSel);
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection(aSel);
 }
 
 void EditUndoDelContent::Redo()
@@ -208,7 +208,7 @@ void EditUndoDelContent::Redo()
 
     EditPaM aPaM(pCheckNode, pCheckNode->Len());
 
-    pEE->GetActiveView()->GetImpEditView()->SetEditSelection( EditSelection( 
aPaM, aPaM ) );
+    pEE->GetActiveView()->getImpl().SetEditSelection( EditSelection( aPaM, 
aPaM ) );
 }
 
 EditUndoConnectParas::EditUndoConnectParas(
@@ -270,7 +270,7 @@ void EditUndoConnectParas::Undo()
             GetEditEngine()->SetStyleSheet( nNode+1, 
static_cast<SfxStyleSheet*>(GetEditEngine()->GetStyleSheetPool()->Find( 
aRightStyleName, eRightStyleFamily )) );
     }
 
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection( 
EditSelection( aPaM, aPaM ) );
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection( 
EditSelection( aPaM, aPaM ) );
 }
 
 void EditUndoConnectParas::Redo()
@@ -278,7 +278,7 @@ void EditUndoConnectParas::Redo()
     DBG_ASSERT( GetEditEngine()->GetActiveView(), "Undo/Redo: Np Active View!" 
);
     EditPaM aPaM = GetEditEngine()->ConnectContents( nNode, bBackward );
 
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection( 
EditSelection( aPaM, aPaM ) );
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection( 
EditSelection( aPaM, aPaM ) );
 }
 
 EditUndoSplitPara::EditUndoSplitPara(
@@ -292,14 +292,14 @@ void EditUndoSplitPara::Undo()
 {
     DBG_ASSERT( GetEditEngine()->GetActiveView(), "Undo/Redo: No Active View!" 
);
     EditPaM aPaM = GetEditEngine()->ConnectContents(nNode, false);
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection( 
EditSelection( aPaM, aPaM ) );
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection( 
EditSelection( aPaM, aPaM ) );
 }
 
 void EditUndoSplitPara::Redo()
 {
     DBG_ASSERT( GetEditEngine()->GetActiveView(), "Undo/Redo: No Active View!" 
);
     EditPaM aPaM = GetEditEngine()->SplitContent(nNode, nSepPos);
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection( 
EditSelection( aPaM, aPaM ) );
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection( 
EditSelection( aPaM, aPaM ) );
 }
 
 EditUndoInsertChars::EditUndoInsertChars(
@@ -315,7 +315,7 @@ void EditUndoInsertChars::Undo()
     EditSelection aSel( aPaM, aPaM );
     aSel.Max().SetIndex( aSel.Max().GetIndex() + aText.getLength() );
     EditPaM aNewPaM( GetEditEngine()->DeleteSelection(aSel) );
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection( 
EditSelection( aNewPaM, aNewPaM ) );
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection( 
EditSelection( aNewPaM, aNewPaM ) );
 }
 
 void EditUndoInsertChars::Redo()
@@ -325,7 +325,7 @@ void EditUndoInsertChars::Redo()
     GetEditEngine()->InsertText(EditSelection(aPaM, aPaM), aText);
     EditPaM aNewPaM( aPaM );
     aNewPaM.SetIndex( aNewPaM.GetIndex() + aText.getLength() );
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection( 
EditSelection( aPaM, aNewPaM ) );
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection( 
EditSelection( aPaM, aNewPaM ) );
 }
 
 bool EditUndoInsertChars::Merge( SfxUndoAction* pNextAction )
@@ -357,7 +357,7 @@ void EditUndoRemoveChars::Undo()
     EditSelection aSel( aPaM, aPaM );
     GetEditEngine()->InsertText(aSel, aText);
     aSel.Max().SetIndex( aSel.Max().GetIndex() + aText.getLength() );
-    GetEditEngine()->GetActiveView()->GetImpEditView()->SetEditSelection(aSel);
+    GetEditEngine()->GetActiveView()->getImpl().SetEditSelection(aSel);
 }
 
 void EditUndoRemoveChars::Redo()
@@ -367,7 +367,7 @@ void EditUndoRemoveChars::Redo()
     EditSelection aSel( aPaM, aPaM );
     aSel.Max().SetIndex( aSel.Max().GetIndex() + aText.getLength() );
     EditPaM aNewPaM = GetEditEngine()->DeleteSelection(aSel);
-e 
... etc. - the rest is truncated

Reply via email to