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


Hi,

On Wed, May 16, 2018 at 10:35:08PM +0300, serdar tunc <serdarot5@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
StyleSheetTable::ApplyStyleSheets
if (sConvertedStyleName == "Text body")
    pEntry->pProperties->Insert(PROP_PARA_LINE_SPACING,
uno::makeAny(sal_uInt8(100)),true);

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.

Regards,

Miklos

Attachment: signature.asc
Description: Digital 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.