df-libreoffice:private/mst/sw_redlinehide_4a

Last commit made on 2018-12-07
Get this branch:
git clone -b private/mst/sw_redlinehide_4a https://git.launchpad.net/df-libreoffice
Members of The Document Foundation can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
private/mst/sw_redlinehide_4a
Repository:
lp:df-libreoffice

Recent commits

6ca6856... by Michael Stahl <email address hidden>

HACK: ODF import: always hide redlines

Change-Id: I275c6738943ee0d74ccacea69af1c1f4c9ede1df

a67261d... by Michael Stahl <email address hidden>

sw_redlinehide: make layout based Show/Hide mode the default

remove ExperimentalMode checks

Change-Id: Ie098eda0840bbd3231696cae43cc572ad61379fc

799cd4c... by Michael Stahl <email address hidden>

sw_redlinehide_4a: MoveDeletedPrevFrames() should only move

... frames from a layout with hidden redlines.

Change-Id: I8f5d5bbbc5bfd49a8a52579a1c34157b9c5c4515

690b8f1... by Michael Stahl <email address hidden>

sw_redlinehide_4a: fix infinite loop in SwAttrIter::Seek()

It's actually possible for Seek to be invoked with a position that is
neither 0 nor >= the current position:

lcl_CalcOptRepaint(), called from SwTextFormatter::FormatLine(), will
move backwards via some funny heuristic and call GetCharRect(), which
then seeks.

Change-Id: If061a768b9a0155d9a95b190c44e7048312f4ba3

17fb419... by Michael Stahl <email address hidden>

sw_redlinehide_4a: fix asserts caused by invalid index in SwUpdateAttr

There is no reason for SwpHints::TryInsertHint() to add 1 to the end
index of an empty hint, which results in an invalid index when the end
of the hint is at the end of the node.

The only user of the indexes in SwUpdateAttr is
SwTextFrame::SwClientNotify() and it already extends a 0 range to 1.

Change-Id: I7355bac931cd8dd390f96d04546d73273f364cda

71f90c9... by Michael Stahl <email address hidden>

sw_redlinehide_4a: stop toggling ShowDelete in SwAutoFormat

Change-Id: Ib6495d4248faa679d5a55642ac51baf419708287

e9be771... by Michael Stahl <email address hidden>

sw_redlinehide_4a: TextFrameIndex goes live

Change-Id: Ie59c09bdc57505e16022c43791d5e65cc233d5b9

7c6ce9a... by Michael Stahl <email address hidden>

sw_redlinehide_4a: SwEditShell::AutoCorrect() etc.

The hope is that the AutoCorrect never deletes nodes, hence never
deletes SwTextFrames, hence we can pass in the SwTextFrame::GetText()
result and it will be updated via the SwTextFrame::SwClientNotify()
on editing operations.

Change-Id: Ib644d0373963119b9f7fe6767b028fd89724feb3

475cbcc... by Michael Stahl <email address hidden>

sw_redlinehide_4a: SwAutoFormat::AutoCorrect()

Change-Id: I0ab7665f8635d6716fce996408db1e2bedf54d0c

dbfe996... by Michael Stahl <email address hidden>

sw_redlinehide_4a: SwAutoCorrDoc iterates frames, not nodes

Adapt this in a similar way, with a DeleteSel() that skips over
delete redlines.

The Replace functions fortunately only have callers that replace 1
character currently, but there is another ReplaceRange() call that
needs a litte more complicated handling.

Change-Id: Idd5c80e96c0f355d3dc965b2f70376258d23e1a3