/** * Returns the raw text content of the run. This hasn't had any * changes applied to it, and so is probably unlikely to print * out nicely. */ public String getRawText() { if(_isUnicode) { return _charAtom.getText(); } return _byteAtom.getText(); }
private void printEscherTextBox( EscherTextboxRecord tbRecord, int indent ) { String ind = tabs.substring(0, indent); ps.println(ind+"EscherTextboxRecord:"); EscherTextboxWrapper etw = new EscherTextboxWrapper(tbRecord); Record prevChild = null; for (Record child : etw.getChildRecords()) { if (child instanceof StyleTextPropAtom) { // need preceding Text[Chars|Bytes]Atom to initialize the data structure String text = null; if (prevChild instanceof TextCharsAtom) { text = ((TextCharsAtom)prevChild).getText(); } else if (prevChild instanceof TextBytesAtom) { text = ((TextBytesAtom)prevChild).getText(); } else { ps.println(ind+"Error! Couldn't find preceding TextAtom for style"); continue; } StyleTextPropAtom tsp = (StyleTextPropAtom)child; tsp.setParentTextSize(text.length()); } ps.println(ind+ child); prevChild = child; } }
((TextBytesAtom)children[j-1]).getText().length();
if(pptatoms[l] instanceof TextBytesAtom) { TextBytesAtom tba = (TextBytesAtom)pptatoms[l]; text = tba.getText();
if(slwtc[l] instanceof TextBytesAtom) { TextBytesAtom tba = (TextBytesAtom)slwtc[l]; text = tba.getText();
if(pptatoms[l] instanceof TextBytesAtom) { TextBytesAtom tba = (TextBytesAtom)pptatoms[l]; text = tba.getText();
if(slwtc[l] instanceof TextBytesAtom) { TextBytesAtom tba = (TextBytesAtom)slwtc[l]; text = tba.getText();
lastTextLen = ((TextBytesAtom)slwtChildren[k]).getText().length();
lastTextLen = ((TextBytesAtom)slwtChildren[k]).getText().length();
String text = HSLFTextParagraph.toExternalString(tba.getText(), -1); textV.add(text);
String rawText = (tchars != null) ? tchars.getText() : tbytes.getText(); StyleTextPropAtom styles = findStyleAtomPresent(header, rawText.length());
final String text = ((tba != null) ? tba.getText() : tca.getText());