• Miklos Vajna's avatar
    sw: fix inconsistent bookmark behavior around at-char/as-char anchored frames · 1a75ee43
    Miklos Vajna yazdı
    We have a placeholder character in the sw doc model for as-char anchored
    frames, so it's possible to have a bookmark before/after the frame or a
    non-collapsed bookmark which covers the frame.
    
    The same is not true for at-char anchored frames, where the anchor
    points to a doc model position, but there is no placeholder character.
    If a bookmark is created covering the start and end of the anchor of the
    frame, internally we create a collapsed bookmark which has the same
    position as the anchor of the frame. When this doc model is handled by
    SwXParagraph::createEnumeration(), first the frame and then the bookmark
    is appended to the text portion enumeration, so your bookmark around the
    frame is turned into a collapsed bookmark after the frame. (The same
    happens when we roundtrip an ODT document representing this doc model.)
    
    Fix the problem by inserting collapsed bookmarks with affected anchor
    positions (same position is the anchor for an at-char frame) into the
    enumeration in two stages: first the start of them before frames and
    then the end of them + other bookmarks. This way UNO API users get their
    non-collapsed bookmarks around at-char anchored frames, similar to
    as-char ones.
    
    Change-Id: Ic1f173c85d3824afabb5b7ebf3a8594311eb9007
    Reviewed-on: https://gerrit.libreoffice.org/46889Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    Tested-by: 's avatarJenkins <ci@libreoffice.org>
    (cherry picked from commit 76a4305d)
    1a75ee43
Adı
Son kayıt (commit)
Son güncelleme
..
check_bookmarks.py Loading commit data...
check_change_color.py Loading commit data...
check_cross_references.py Loading commit data...
check_fields.py Loading commit data...
check_flies.py Loading commit data...
check_index.py Loading commit data...
check_indexed_property_values.py Loading commit data...
check_named_property_values.py Loading commit data...
check_styles.py Loading commit data...
check_table.py Loading commit data...
get_expression.py Loading commit data...
load_save_test.py Loading commit data...
set_expression.py Loading commit data...
text_portion_enumeration_test.py Loading commit data...
var_fields.py Loading commit data...