• Tomaž Vajngerl's avatar
    Function to load graphic swapped out (loaded on demand) · 7b355669
    Tomaž Vajngerl yazdı
    When a document is loaded it takes a lot of time and memory to
    load the graphic that are in the documet, so avoid that and just
    store the compressed graphic into a temporary file (handeled by
    GfxLink) and load when we really need to show the graphic.
    
    GraphicObject cached some attributes from Graphic, but this
    attributes now aren't available immediately so this attributes
    are removed form GraphicObject and now delegate to the Graphic
    itself. GetSizeBytes attribute however was removed as it is
    only used in some tests.
    
    GfxLink initial values were moved to the constructor and are
    not set in the header file anymore (as it is the recommended
    way to do it).
    
    The SdImportTest::testDocumentLayout failed as it looks like the
    dump sometimes didn't include the width and height of the null
    bitmap (which is set to 32x32) of the FillBitmap in some
    situations, but then in other situations it did include this
    attributes. With this change the width and height are always
    included for the FillBitmap which looks like it is more correct.
    
    Change-Id: Ia1218f93b1735402b7828404f65660e2d4acf32f
    Reviewed-on: https://gerrit.libreoffice.org/53016Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    7b355669
salctype.hxx 1.8 KB