[HSLF] Indentation level identification

2006-08-17 Thread Tales Paiva Nogueira
Hi, I need to identify the indentation level of a text in a TextBox. For this I created a method in the RichTextRun class as follows: public int getTextOffset(){ return getParaTextPropVal(text.offset); } Assuming that the property name that holds this

Re: [HSLF] Indentation level identification

2006-08-17 Thread Yegor Kozlov
Hi, TPN Is there any other way to identify the indentation level for a given TPN RichTextRun? Unfortunately you can't retrieve the indentation level for a RichTextRun. It's not supported by the current code. Indentation level is stored as a 2-byte paragraph property in the style record.

Re[2]: [HSLF] Indentation level identification

2006-08-17 Thread Yegor Kozlov
Nick, In StyleTextPropAtom.setParentTextSize when we read paragraph properties we ignore the 2-byte value before the paragraph properties: // Fetch the 2 byte value that is safe to ignore as 0 short paraIgn = LittleEndian.getShort(rawContents,pos); pos += 2; In fact it stores the