Hi In HSLF we only have initial support for rich text runs. You can read style attributes only if they are explicitly set.
If style is not set explicitly it is taken from a special container TxMasterStyleAtom which is not implemented yet. I think I know how to handle master character styles. This is in my TODO list. Paragraph styles are more tricky. PPT inserts a special symbols in the text like 0x0B to mark the beginning of each paragraph. There is a ruler record which defines indentation of each level but I didn't decode it yet. MSDN says "Special parsing code is needed to parse content of this atom" so I have to guess and it takes time. Regards, Yegor KR> Hi, KR> I'm using the HSLF, and I noticed the following problems: KR> 1. If I have a slide, In which I just printed some lines in the KR> default styling (I didn't manually set the size or font of the KR> characters), then I get -1 and null when using KR> "richTextRun.getFontSize()" and "richTextRun.getFontName()" . KR> When creating the presentation - if I press "enter" in order to start a KR> new line (with a bullet) and press tab and write (in this case the font KR> size is getting smaller by default), I still get no difference in the KR> fonts sizes. KR> It looks like this: KR> * First line - real size 32 (shows size -1 or the last font size KR> I set) KR> * Second line - real size 32 (shows size -1 or the last font KR> size I set) KR> o Third line - real size 24 (shows size -1 or the last font size KR> I set) KR> Is this a bug or can I get this information in another way? KR> 2. I can't see in any way that text begins with one tab right. Is KR> there a way to get this information? KR> Please help me with the above problems. KR> Thanks, KR> Karajo. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
