StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Set default text styling for fields. #177

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As suggested Henno in the 
http://code.google.com/p/xdocreport/issues/detail?id=176 it should be cool if 
we can set a default text styling for the whole fields of  the docx/odt report.

My idea is to set that with FieldsMetadata like this : 

-------------------------------------------------------
FieldsMetadata metadata = ...
metadata.setDefaultTextStyling(SyntaxKind.HTML);
-------------------------------------------------------

but manage too pattern like this 

-------------------------------------------------------
FieldsMetadata metadata = ...
metadata.setDefaultTextStyling(SyntaxKind.HTML, "htmlField*");
-------------------------------------------------------

Her ethe pattern used is "htmlField*" which means html text styling will be 
applyed only for field which starts with htmlField.

Original issue reported on code.google.com by angelo.z...@gmail.com on 27 Oct 2012 at 12:37