Hello, > Here is step 2 in the plan to create a docx export filter. > > It contains code to load styles into a decently generic style manager. The > main use of this version will be as a much faster alternative to > KoOdfStylesReader that forces you to reparse the XML of all styles that you > want to access. This code loads the style content into more easily accessed > data structures. The current version only supports the Text, Paragraph, and > Graphic families because that's what we need in the docx filter. > > I also have a half-finished patch of Karbon that makes it load, store and > save graphics styles which it currently discards in all odg files. However > that turned out to be more difficult than expected because the text based > style manager in libs/kotext doesn't allow anybody to save any styles > outside itself so I'm postponing that into a separate patch. This way we > can start using these styles when doing the docx export. > > As a side note, I have also included a new innovative XML stream reader > which I will port the odf traverser to.
I'm a bit unhappy that this was put into libs while for now only the docx export filter is going to use it. Unfortunately the review was not open very long so I could raise my voice before it was committed. I think this should be move to the docx filter for now as now it gives a toatally wrong impression in the libs. Also I'm not sure it will be easily be useable for how we handle styles currently in the applications. If we have it integrated and well tested in more then one component then I think would be the right time to put it into libs. Thorsten. _______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel