• Miklos Vajna's avatar
    svx lok: fix handling of text edit drawing when view/page changes · 5f65ca15
    Miklos Vajna yazdı
    This is a follow-up to commit 9d91d371
    (svx lok: draw text edits in all views, 2016-07-26). Two corner-cases
    are now handled:
    
    1) When the SfxViewShell is created after begin text edit and
    2) When the other draw view is already created, but at the time begin
    text edit happens, the other draw view shows a different page.
    
    And the opposite of these: switching away from a page were we observe a
    text edit done in an other view or destroying a view that observes a
    text edit.
    
    When the complete view goes away, then SdrObjEditView::HideSdrPage() is
    not called, so also try to destroy the outliner view of the text edit
    from SdrObjEditView::DeleteWindowFromPaintView(). The GetSfxViewShell()
    call in SdrObjEditView::ShowSdrPage() is important, because we let the
    other draw view create the outliner view, but the outliner view should
    invoke our view shell, not the view shell of the other draw view.
    
    Also improve the SdTiledRenderingTest::testCursorViews() testcase, so
    that it asserts it managed to begin text edit and use a test document
    that still has a single slide and shape, but the shape is not
    auto-sized; otherwise invalidations happen even if outliner views are
    not created in all draw views, so the test would pass even without the
    fixes.
    
    Change-Id: I2c3bb27826c6887115366db818599fc8adabc5a5
    Reviewed-on: https://gerrit.libreoffice.org/27583Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    Tested-by: 's avatarJenkins <ci@libreoffice.org>
    5f65ca15
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa Loading commit data...
res Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig Loading commit data...
util Loading commit data...
workben Loading commit data...
xml Loading commit data...
xsl Loading commit data...
AllLangResTarget_sd.mk Loading commit data...
CppunitTest_sd_export_ooxml1.mk Loading commit data...
CppunitTest_sd_export_ooxml2.mk Loading commit data...
CppunitTest_sd_export_tests.mk Loading commit data...
CppunitTest_sd_filters_test.mk Loading commit data...
CppunitTest_sd_html_export_tests.mk Loading commit data...
CppunitTest_sd_import_tests.mk Loading commit data...
CppunitTest_sd_misc_tests.mk Loading commit data...
CppunitTest_sd_svg_export_tests.mk Loading commit data...
CppunitTest_sd_tiledrendering.mk Loading commit data...
CppunitTest_sd_uimpress.mk Loading commit data...
JunitTest_sd_unoapi.mk Loading commit data...
Library_sd.mk Loading commit data...
Library_sdd.mk Loading commit data...
Library_sdfilt.mk Loading commit data...
Library_sdui.mk Loading commit data...
Makefile Loading commit data...
Module_sd.mk Loading commit data...
Package_opengl.mk Loading commit data...
Package_web.mk Loading commit data...
Package_xml.mk Loading commit data...
README Loading commit data...
README_REMOTE Loading commit data...
UIConfig_sdraw.mk Loading commit data...
UIConfig_simpress.mk Loading commit data...