You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Gregg Morris <gr...@gmail.com> on 2012/01/20 18:24:34 UTC
XWPFTableCell needs access to OOXML classes
Hello--
My project creates XWPFTable objects and inserts them into a document (a
docx file). In order to control the table cell vertical alignment, I need
to use the following classes:
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVerticalJc
org.openxmlformats.schemas.wordprocessingml.x2006.main.STShd
org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc
These are not defined in poi-ooxml-schemas-3.8-beta5.jar. I can make my
code work by swapping ooxml-schemas-1.1.jar for poi-ooxml-schemas.jar, but
that seems a bit like cheating. Can I add the required classes to
poi-ooxml-schemas? If so, how? It's not obvious to me from looking at the
code.
Thanks for any suggestions!
Gregg
Re: XWPFTableCell needs access to OOXML classes
Posted by Gregg Morris <gr...@gmail.com>.
OK, thanks. I spent some time with the build.xml file, trying the various
targets related to the ooxml files. It looks like I've successfully
generated a poi-ooxml-schemas.jar file with the additional classes I need.
Once I've got a little confidence that it's working, I'll submit a bug for
the missing classes, then submit a patch.
Gregg
On Mon, Jan 23, 2012 at 12:31 PM, Nick Burch <ni...@alfresco.com>wrote:
> On Mon, 23 Jan 2012, Gregg Morris wrote:
>
>> Thanks, I missed that. But the FAQ coverage is rather scant; is there a
>> more detailed description of the process and dependencies?
>>
>
> The best bet might be to look at the code that does it. Basically though,
> we run through the unit tests, and record all the xmlbeans classes that are
> used. Those that are used are included, on the grounds that they're
> commonly needed if the tests use them, and the rest excluded.
>
>
> Nick
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.**org<us...@poi.apache.org>
> For additional commands, e-mail: user-help@poi.apache.org
>
>
Re: XWPFTableCell needs access to OOXML classes
Posted by Nick Burch <ni...@alfresco.com>.
On Mon, 23 Jan 2012, Gregg Morris wrote:
> Thanks, I missed that. But the FAQ coverage is rather scant; is there a
> more detailed description of the process and dependencies?
The best bet might be to look at the code that does it. Basically though,
we run through the unit tests, and record all the xmlbeans classes that
are used. Those that are used are included, on the grounds that they're
commonly needed if the tests use them, and the rest excluded.
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: XWPFTableCell needs access to OOXML classes
Posted by Gregg Morris <gr...@gmail.com>.
Thanks, I missed that. But the FAQ coverage is rather scant; is there a
more detailed description of the process and dependencies?
Gregg
On Fri, Jan 20, 2012 at 9:31 AM, Nick Burch <ni...@alfresco.com> wrote:
> On Fri, 20 Jan 2012, Gregg Morris wrote:
>
>> These are not defined in poi-ooxml-schemas-3.8-beta5.**jar. I can make
>> my code work by swapping ooxml-schemas-1.1.jar for poi-ooxml-schemas.jar,
>> but that seems a bit like cheating. Can I add the required classes to
>> poi-ooxml-schemas? If so, how? It's not obvious to me from looking at the
>> code.
>>
>
> It's covered in the FAQ - http://poi.apache.org/faq.**html#faq-N10025<http://poi.apache.org/faq.html#faq-N10025>
>
> Nick
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.**org<us...@poi.apache.org>
> For additional commands, e-mail: user-help@poi.apache.org
>
>
Re: XWPFTableCell needs access to OOXML classes
Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 20 Jan 2012, Gregg Morris wrote:
> These are not defined in poi-ooxml-schemas-3.8-beta5.jar. I can make my
> code work by swapping ooxml-schemas-1.1.jar for poi-ooxml-schemas.jar,
> but that seems a bit like cheating. Can I add the required classes to
> poi-ooxml-schemas? If so, how? It's not obvious to me from looking at
> the code.
It's covered in the FAQ - http://poi.apache.org/faq.html#faq-N10025
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org