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