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


Hi,

Today I noticed that the docx import ignores the '<w:textAlignment
w:val="top"/>' paragraph property, and given that I miss it for the RTF
import as well, I'm trying to figure out how to implement that.

Here is what I found so far:

- writerfilter: The ooxml tokenizer maps that property to NS_sprm::LN_PWAlignFont.

- writerfilter: The domain mapper ignores that (see
  writerfilter/source/dmapper/DomainMapper.cxx). That could be fixed by
  adding something like:

  rContext->Insert(PROP_PARA_VERT_ALIGNMENT, true, uno::makeAny( nIntValue ));

- writerfilter: PROP_PARA_VERT_ALIGNMENT would be added to PropertyIds.hxx

- writerfilter: PropertyIds.cxx would map that to ParaVertAlignment.

- sw: ParaVertAlignment is declared in source/core/unocore/unoprnms.cxx

- < missing steps, do you have any code pointers? >

- somewhere it would end up in an SvxParaVertAlignItem, it already has
  the necessary TOP constant (see
  editeng/inc/editeng/paravertalignitem.hxx).

Thanks!

Attachment: pgpbIBJoyfxeY.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.