• Michael Stahl's avatar
    fix missing BaseURL when loading embedded objects · 9cd4cf72
    Michael Stahl yazdı
    When the object is edited in the UI, the m_xClient is set to a
    SfxInPlaceClient and the DocumentBaseURL is retrieved from it.  But if
    the object is not edited, it will be loaded during export via the API
    and without a m_xClient; in this case the DocumentBaseURL must have been
    set previously to be available during import.
    
    There appears to be no way to get the URL of the document via the API
    while it is being imported; SfxBaseModel's m_sURL is unfortunately only
    initialized from SfxObjectShell::FinishedLoading().
    
    During ODF import, the SvXMLEmbeddedObjectHelper creates the
    embedded object, so let's make it pass in the parent's BaseURL.
    
    The "DefaultParentBaseURL" parameter already exists but was unused
    previously.
    
    (cherry picked from commit b0fc09da)
    (cherry picked from commit 4118f8f4)
    
    sw: loading embedded ODF objects requires unordf component
    
    (cherry picked from commit b3b7982f)
    
    Change-Id: I3d1ed29b3a2c0e77ec606a1d09f7bc07e7860733
    Reviewed-on: https://gerrit.libreoffice.org/20761Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    (cherry picked from commit fe4c7f20)
    9cd4cf72
Adı
Son kayıt (commit)
Son güncelleme
..
doc Loading commit data...
inc Loading commit data...
qa Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
AllLangResTarget_sfx2.mk Loading commit data...
CppunitTest_sfx2_metadatable.mk Loading commit data...
JunitTest_sfx2_complex.mk Loading commit data...
JunitTest_sfx2_unoapi.mk Loading commit data...
Library_qstart_gtk.mk Loading commit data...
Library_sfx.mk Loading commit data...
Makefile Loading commit data...
Module_sfx2.mk Loading commit data...
README Loading commit data...
UIConfig_sfx.mk Loading commit data...