Thanks,

We did look into these, but wanted to make sure we were not missing something. 
Thanks again, for your help.

From: Svante Schubert [mailto:[email protected]]
Sent: Friday, January 18, 2013 2:37 AM
To: [email protected]
Cc: [email protected]; [email protected]; Steele, 
Raymond
Subject: EXTERNAL: Re: Set font per column or table in sheardsheet documents

The quick answer is, that the setting of a font is not possible at a column or 
table in ODF. But usability functionality might be added, at the Simple API, 
yet not existing.


In the following how someone can double check such a question:

In the definition of the ODF 1.2 XML, the RelaxNG grammar ODF 1.2 schema 
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng

The following constrained for styles from columns and tables are explained
<group>
    <attribute name="style:family">
        <value>table</value>
    </attribute>
    <optional>
        <ref name="style-table-properties"/>
    </optional>
</group>
<group>
    <attribute name="style:family">
        <value>table-column</value>
    </attribute>
    <optional>
        <ref name="style-table-column-properties"/>
    </optional>
</group>

When in doubt the family name is mentioned in the spec
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#a16_36Table_Styles
or open the XML file with an editor (I use JEdit with the Archive extension to 
open the XML from the ZIP, using XML Indent extension to indent the XML with a 
keyboard shortcut)

The possible style properties of a table can easily be seen at:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_table-properties

>From a column at:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_table-column-properties

As you see from the references above, there is no Font style (i.e. 
fo:style-name<http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-fo_font-style>)
 is possible to be set at table/column. Q.E.D. ;)

But someone could of course add some usability functionality to handle the font 
of the overall table.
Similar like OOXML border styles given at the table itself have to be mapped to 
every cell in ODF.

Best regards,
Svante







On 17.01.2013 17:11, Steele, Raymond wrote:

Can anyone offer advice on this?



Raymond



From: Steele, Raymond

Sent: Tuesday, January 15, 2013 8:53 AM

To: '[email protected]<mailto:[email protected]>'; 
'[email protected]<mailto:[email protected]>'; 
'[email protected]<mailto:[email protected]>'

Subject: Set font per column or table in sheardsheet documents



Wondering if there is a simple way to set the font across columns or tables 
using the Font class instead of cell by cell or the OdfStyle class. If not, 
what is the best way?



Also, there seems to be a dead link in the Javadoc  for each instance of 
OdfStyle. For instance, click on the OdfStyle link for the setDefaultCellStyle 
method on the following page.  
http://incubator.apache.org/odftoolkit/simple/document/javadoc/index.html..





Thanks,



Raymond





Reply via email to