Files
loongoffice/sw/source/core/edit
Jim Raykowski 6b09276d15 Outline folding experimental feature rehack
* Changes the way the outline content visibility button is shown to
similiar how the table un-float button is shown.

* Toggle function is replaced by an invalidate function that makes
outline content visible or not visible only if needed.

* Removes the left and right arrow keys restrictions of cursor movement
in and out of an outline node paragraph having outline content
visibility attribute set false (folded outline content). These were
prevented due to causing an assert in txtfrm.cxx
SwTextFrame::MapModelToView but seems to do no harm here if allowed.

* Makes a selection read-only if it spans an outline node that has
folded content and disallows actions that would cause loss of folded
content.

* Adds RestoreSavePos when Move fails in SwCursor::LeftRight to fix a
bug that occurs in documents with outline content folded at the end of
the document. When the cursor is at the end of the visible document and
right arrow key is pressed Move fails after moving the cursor to the
end of the document model, which doesn't have a node frame and causes
wierd numbers to be displayed in the statusbar page number count. Left
arrow, when in this state causes a crash without the added
RestoreSavePos.

* Addresses tdf#141390 concerning position of view when feature is
turned off and on.

Change-Id: I0430f73643201aa08ffc347c1597b44b1de290e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114255
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2021-05-14 06:14:35 +02:00
..
2021-05-12 14:35:47 +02:00
2021-03-13 17:26:20 +01:00