Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Christina Roßmanith wrote:
To get a better understanding:
  What is the intent of internal-style-ref?
  Which items should get identical values? Are identical values
allowed at all?
  Are empty values allowed? (Probably not because in that case the
text doesn't show up)

Hi Christina,

look at writeStyle() - this internal-style-ref attribute is a hack
to make this two-pass writing possible. I mentioned that on Saturday
- ODF wants all styles written before any shapes, so we traverse the
svg DOM tree, and generate the various graphic styles that we need
(later referenced by the actual shapes - ODF has this concept of
styling everything, i.e. a bunch of things can _only_ be set via
styles, not directly on the shape).

To later be able to reference the right style, when we write the
shapes (those get numeric references, like svggraphicstyle12), the
sequentially-numbered style references get stored at the shape - via
this internal-style-ref attribute.

Identical internal-style-ref means identical maCurrState, and yes,
this is permitted. Empty ones are a bug, I suspect.

Below you find two very small svg examples together with the result
of dumpTree() (cf. svgreader.cxx) and a short description whether
the text is displayed correctly.

Sorry, didn't look closer yet - possibly writeStyle() goes wrong,
there are a few special-case handlers for XML_TEXT?

HTH,

-- Thorsten

Attachment: pgpmuO6ihox2p.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.