fdo#80020 Fix regression for style sheet inheritance

The inheritance relationship of styles in Draw was lost when writing files.

Change-Id: I81588a031bf4c649338fad9b7342fbbe11df9aef
Reviewed-on: https://gerrit.libreoffice.org/10309
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 61cf536f0400284a5ff85d1a84c9dee72ead3fbf)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 980b3fc921b6c22634ea63cd7aa264b520da0ce4)
Reviewed-on: https://gerrit.libreoffice.org/10319
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>