Hi Giacomo,

> the text it contains is not the text I expect it to contain
If you would provide your expected text + the file, that would lift the 
mysterious curtain ... :)

> Is there an official definition of what a XSLFTextRun is? 
The official POI statement is in the code ... just look at the hierarchy of 
XSLFTextRun +
XSLFTextParagraph constructor. When I've refactored the code a while ago, I've 
tried to
unify HSLF and XSLF usage, therefore the underlying xml structures aren't always
identical to the usermodel classes. I also wouldn't rule out, that eventually I 
need to
add further classes to handle CTText* classes differently.

> I am working under the assumption that a XSLFTextRun is a String of chars
> which share the same set of formatting properties and doesn't contain any
> newlines.
XSLFLineBreak extends XSLFTextRun ... so your assumption is partly wrong.


> I found a StackOverflow post where someone was replying that XSLFTextRun are
> somewhat decided by the office suite that generated the pptx/docx/xslx
The underlying CT* classes are from the drawingml schema, which is used also by 
XSSF/XWPF,
but XSLFTextRun is specific to XSLF - the counterpart would be XSSFTextRun.
Those classes are currently independently developed - which is a pity, but one 
could argue,
that XSSF is more stable than XSLF.

So back to your original problem:

> I'd like to be able to apply the formatting ... of the placeholder to the 
> actual text
> that will replace it.
There are several indirections of the formatting (directly on the XSLFTextRun, 
inherited by the
slidelayout or the slidemaster, or inherited by the theme) - the easiest would 
be, if you create
an example file with Powerpoint and then check where your modifications are 
located
(... in the xmls in the .pptx/.zip)

Sorry to be so unspecific, but your description was also a bit vague ...

Andi



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to