incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steele, Raymond" <>
Subject RE: EXTERNAL: Re: Set font per column or table in sheardsheet documents
Date Fri, 18 Jan 2013 17:35:00 GMT

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

From: Svante Schubert []
Sent: Friday, January 18, 2013 2:37 AM
Cc:;; 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

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

When in doubt the family name is mentioned in the spec
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:

>From a column at:

As you see from the references above, there is no Font style (i.e. fo:style-name<>)
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
Similar like OOXML border styles given at the table itself have to be mapped to every cell
in ODF.

Best regards,

On 17.01.2013 17:11, Steele, Raymond wrote:

Can anyone offer advice on this?


From: Steele, Raymond

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

To: '<>'; '<>';

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.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message