Initializing default paragraph properties in writerfilter
vmiklos at collabora.co.uk
Thu May 17 08:26:56 UTC 2018
On Wed, May 16, 2018 at 10:35:08PM +0300, serdar tunc <serdarot5 at gmail.com> wrote:
> I want to initialize default just for "Text body" in OOXML. I couldn't find
> anything in applyDefaults() function. I've tried to add this line in
> if (sConvertedStyleName == "Text body")
> I can change whole documents paragraph line spacing but not "Text Body".
> Can somebody help me about that?
I see a conflict here: on one hand you say you want to change the
default paragraph properties, but on the other hand your proof of
concept code changes a single style. Which one is your goal?
The ideal situation is that you only modify the document model (during
import) based on information from the input document, not based on some
external knowledge. Sometimes you can't avoid that, but it's good to
minimize such cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the LibreOffice