FileDocCategorySizeDatePackage
TitleMaster.javaAPI DocApache Poi 3.0.12556Thu May 31 18:45:28 BST 2007org.apache.poi.hslf.model

TitleMaster

public class TitleMaster extends MasterSheet
Title masters define the design template for slides with a Title Slide layout.
author
Yegor Kozlov

Fields Summary
private TextRun[]
_runs
Constructors Summary
public TitleMaster(Slide record, int sheetNo)
Constructs a TitleMaster

        super(record, sheetNo);

        _runs = findTextRuns(getPPDrawing());
        for (int i = 0; i < _runs.length; i++) _runs[i].setSheet(this);
    
Methods Summary
public org.apache.poi.hslf.model.MasterSheetgetMasterSheet()
Returns the slide master for this title master.

        SlideMaster[] master = getSlideShow().getSlidesMasters();
        SlideAtom sa = ((org.apache.poi.hslf.record.Slide)getSheetContainer()).getSlideAtom();
        int masterId = sa.getMasterID();
        for (int i = 0; i < master.length; i++) {
            if (masterId == master[i]._getSheetNumber()) return master[i];
        }
        return null;
    
public org.apache.poi.hslf.model.textproperties.TextPropgetStyleAttribute(int txtype, int level, java.lang.String name, boolean isCharacter)
Delegate the call to the underlying slide master.

        MasterSheet master = getMasterSheet();
        return master == null ? null : master.getStyleAttribute(txtype, level, name, isCharacter);
    
public org.apache.poi.hslf.model.TextRun[]getTextRuns()
Returns an array of all the TextRuns found

        return _runs;