How to apply style to a Table via LibreOffice API?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody,

 

I have defined a new table style in my template and I would like programmatically to apply this new style when a table is added on a generated document.

 

I found this code example for applying style to a paragraph

 

XTextRange xTextRange = doc.getText().getStart();

XPropertySet props = UnoRuntime.queryInterface(XPropertySet.class, xTextRange);

props.setProperty("ParaStyleName", "NewParagraphStyle");

 

But I do not have idea how to do for table case.

 

Best regards,

 

Yupanqui

 

 

_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux