You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Fabian Ehls <eh...@googlemail.com> on 2012/02/15 13:30:21 UTC

detecting capitalized XWPFRun

Hello,

I want to know whether a XWPFRun is set to all caps. Since
XWPFRun only offers isitalic, isBold and isStrike i tried this:

for (XWPFRun run : paragraph.getRuns()) {
             ctr = run.getCTR();
             ctrpr = ctr.getRPr();

             if (ctrpr != null) {
                 System.out.println(ctrpr.isSetCaps());
             }
}

But it always returns false. Is this feature even implemented?
Or am i doing something wrong here?

Greetings,

Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: detecting capitalized XWPFRun

Posted by Nick Burch <ni...@alfresco.com>.
On Wed, 15 Feb 2012, Fabian Ehls wrote:
> I want to know whether a XWPFRun is set to all caps. Since
> XWPFRun only offers isitalic, isBold and isStrike i tried this:

What does Word actually set in the file if it makes it all caps? Does it 
set the caps flag on the Pr xml, or does it do something else?

(Once you know what word is setting, then you can find it)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org