You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Jebarlin Robertson <je...@gmail.com> on 2011/11/24 13:11:41 UTC
Need Help to identify the default text style properties of a slide in PPT
Hi,
I am trying to get the text style properties of a slide. I am able to get,
If the style properties are present in the slide (within the shape element
(pPr, rPr)). If the styles are not present in the slide.xml, which one I
need to consider as the default style property?.
SlideMaster.xml has txStyles element, and again it has three types of
style inside that (titleStyle, bodyStyle and otherStyle).
How to get the proper default style from these three style types for the
particular slide's shape.
Since I am not able get the proper information from the ECS 367 Open Office
File format specification document, can anybody help me to get the solution
for the above question?
Thanks in Advance
Thanks and Regards,
Jebarlin Robertson.R
Re: Need Help to identify the default text style properties of a
slide in PPT
Posted by Jebarlin Robertson <je...@gmail.com>.
Thank you Yegor for the valuable response.
Now I was confused with the flow for default style. now I confirmed that.
and I will go through XSLFTextParagraph and XSLFTextRun classes for more
detail..
Thank you once again....
Regards,
Jebarlin.R
On Fri, Nov 25, 2011 at 4:33 PM, Yegor Kozlov <ye...@dinom.ru> wrote:
> The best advise I can give you is to study the XSLF code. Go wit ha
> debugger and see how XSLF walks the pptx document and fetches
> properties.
>
> The style inheritance rules are pretty complex and depend on the type of
> text.
>
> For a plain text box (not a placeholder) the rule is to first lookup
> in the shape element and then go to presentation.xml and read from the
> /p:presentation/p:defaultTextStyle element.
>
> For a placeholder shape the rule is to lookup in the shape, then in
> the slide layout, then in the slide master and if not found, take from
> either titleStyle or bodyStyle or otherStyle.
> titleStyle is for titles, otherStyle is for footers, date and page
> number placeholders. Other types inherit from bodyStyle
>
> Yegor
>
> On Thu, Nov 24, 2011 at 4:11 PM, Jebarlin Robertson
> <je...@gmail.com> wrote:
> > Hi,
> >
> > I am trying to get the text style properties of a slide. I am able to
> get,
> > If the style properties are present in the slide (within the shape
> element
> > (pPr, rPr)). If the styles are not present in the slide.xml, which one I
> > need to consider as the default style property?.
> >
> > SlideMaster.xml has txStyles element, and again it has three types of
> > style inside that (titleStyle, bodyStyle and otherStyle).
> > How to get the proper default style from these three style types for the
> > particular slide's shape.
> >
> > Since I am not able get the proper information from the ECS 367 Open
> Office
> > File format specification document, can anybody help me to get the
> solution
> > for the above question?
> >
> > Thanks in Advance
> >
> > Thanks and Regards,
> > Jebarlin Robertson.R
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>
Re: Need Help to identify the default text style properties of a
slide in PPT
Posted by Yegor Kozlov <ye...@dinom.ru>.
The best advise I can give you is to study the XSLF code. Go wit ha
debugger and see how XSLF walks the pptx document and fetches
properties.
The style inheritance rules are pretty complex and depend on the type of text.
For a plain text box (not a placeholder) the rule is to first lookup
in the shape element and then go to presentation.xml and read from the
/p:presentation/p:defaultTextStyle element.
For a placeholder shape the rule is to lookup in the shape, then in
the slide layout, then in the slide master and if not found, take from
either titleStyle or bodyStyle or otherStyle.
titleStyle is for titles, otherStyle is for footers, date and page
number placeholders. Other types inherit from bodyStyle
Yegor
On Thu, Nov 24, 2011 at 4:11 PM, Jebarlin Robertson
<je...@gmail.com> wrote:
> Hi,
>
> I am trying to get the text style properties of a slide. I am able to get,
> If the style properties are present in the slide (within the shape element
> (pPr, rPr)). If the styles are not present in the slide.xml, which one I
> need to consider as the default style property?.
>
> SlideMaster.xml has txStyles element, and again it has three types of
> style inside that (titleStyle, bodyStyle and otherStyle).
> How to get the proper default style from these three style types for the
> particular slide's shape.
>
> Since I am not able get the proper information from the ECS 367 Open Office
> File format specification document, can anybody help me to get the solution
> for the above question?
>
> Thanks in Advance
>
> Thanks and Regards,
> Jebarlin Robertson.R
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org