Re: Problem with reading 'writing-mode' ODF attribute in Impress

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Regina,

On Thu, Aug 25, 2022 at 11:31:24AM +0200, Regina Henschel wrote:
> Has someone an idea, why the import for 'loext' does not work? Or can
> someone point me to the place, where this part of import happens? Or can
> someone explain to me the steps involved in importing a style? Any help is
> appreciated.

I think writing mode was originally in the style namespace, and I only
added a new enumeration value (btlr) that required writing it in the
loext namespace. Given that other writing directions are quite common, I
made sure that only btlr gets written to loext, other enumeration values
continue to use style:

https://github.com/libreoffice/core/blob/2241fda272f803ad1b91c1069c83523b1bd7bae0/xmloff/source/style/xmlexppr.cxx#L941-L942

The import side is easier, simply the property map has 2 entries and we
read all enum values from both namespaces.

Now my understanding is that editeng (i.e. shape text) only supports
lrtb ("horizontal") and tbrl ("vertical") writing modes (so it's
essentially a single "vertical" boolean), so which means for you that
"rotate to the right" would work for you, but "rotate to the left" only
works in Writer table cells and text frames, not in shape text's writing
mode.

Regards,

Miklos



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux