From 4d3f92aa18d3419f861986a610e618c8f09b6ae2 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Sun, 6 Aug 2017 00:26:35 +0200 Subject: editviewoverlay: EditViewSelection reorganized The Selection visualization in EditVierw is organized to use XOR for visualization, thus DrawSelection is used e.g. before and after changes to the Selection. Ensured athat all changers of selection have to use SetEditSelection by making return of GetEditSelection const. This allows to use a central and safe SelectionChanged which is needed for alternatives of Selection visualization. Change-Id: I994553f3be6b58fd595aa500922d8d1d8ddd36d4 --- include/editeng/editeng.hxx | 2 +- include/editeng/editview.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 54e92ffc6b10..55fe8dc174af 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -162,7 +162,7 @@ private: EditEngine& operator=( const EditEngine& ) = delete; EDITENG_DLLPRIVATE bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, vcl::Window const * pFrameWin ); - EDITENG_DLLPRIVATE void CursorMoved(ContentNode* pPrevNode); + EDITENG_DLLPRIVATE void CursorMoved(const ContentNode* pPrevNode); EDITENG_DLLPRIVATE void CheckIdleFormatter(); EDITENG_DLLPRIVATE bool IsIdleFormatterActive() const; EDITENG_DLLPRIVATE ParaPortion* FindParaPortion(ContentNode const * pNode); diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index ac6ffc5433d1..9bb09f8d2d8a 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -293,7 +293,7 @@ public: /// Allows adjusting the point or mark of the selection to a document coordinate. void SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool bClearMark); /// Trigger selection drawing callback in pOtherShell based on our shell's selection state. - void DrawSelection(OutlinerViewShell* pOtherShell); + void DrawSelectionXOR(OutlinerViewShell* pOtherShell); }; #endif // INCLUDED_EDITENG_EDITVIEW_HXX -- cgit