/** * Constructs a SlideMaster from the MainMaster record, * */ public SlideMaster(MainMaster record, int sheetNo) { super(record, sheetNo); _runs = findTextRuns(getPPDrawing()); for (int i = 0; i < _runs.length; i++) _runs[i].setSheet(this); }
/** * Constructs a TitleMaster * */ public TitleMaster(org.apache.poi.hslf.record.Slide record, int sheetNo) { super(record, sheetNo); _runs = findTextRuns(getPPDrawing()); for (int i = 0; i < _runs.length; i++) _runs[i].setSheet(this); }
public void setSheet(Sheet sheet) { _sheet = sheet; // Initialize _txtrun object. // (We can't do it in the constructor because the sheet // is not assigned then, it's only built once we have // all the records) TextRun tx = getTextRun(); if (tx != null) { // Supply the sheet to our child RichTextRuns tx.setSheet(_sheet); RichTextRun[] rt = tx.getRichTextRuns(); for (int i = 0; i < rt.length; i++) { rt[i].supplySlideShow(_sheet.getSlideShow()); } } }
/** * Constructs a Notes Sheet from the given Notes record. * Initialises TextRuns, to provide easier access to the text * * @param notes the Notes record to read from */ public Notes (org.apache.poi.hslf.record.Notes notes) { super(notes, notes.getNotesAtom().getSlideID()); // Now, build up TextRuns from pairs of TextHeaderAtom and // one of TextBytesAtom or TextCharsAtom, found inside // EscherTextboxWrapper's in the PPDrawing _runs = findTextRuns(getPPDrawing()); // Set the sheet on each TextRun for (int i = 0; i < _runs.length; i++) _runs[i].setSheet(this); }
TextBox txt = new TextBox(_group); txt.getTextRun().supplySlideShow(_group.getSheet().getSlideShow()); txt.getTextRun().setSheet(_group.getSheet()); txt.setText(s);