/** * 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; } }
((TextCharsAtom)children[j-1]).getText().length() : ((TextBytesAtom)children[j-1]).getText().length();
text = tca.getText();
text = tca.getText();
for(int k=0; k<slwtChildren.length; k++) { if(slwtChildren[k] instanceof TextCharsAtom) { lastTextLen = ((TextCharsAtom)slwtChildren[k]).getText().length();
for(int k=0; k<slwtChildren.length; k++) { if(slwtChildren[k] instanceof TextCharsAtom) { lastTextLen = ((TextCharsAtom)slwtChildren[k]).getText().length();
String text = HSLFTextParagraph.toExternalString(tca.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());