Search in sources :

Example 1 with SlideLayoutType

use of org.apache.poi.hslf.record.SlideAtomLayout.SlideLayoutType in project poi by apache.

the class HSLFSlide method getDisplayPlaceholder.

@Override
public boolean getDisplayPlaceholder(Placeholder placeholder) {
    HeadersFooters hf = getHeadersFooters();
    SlideLayoutType slt = getSlideRecord().getSlideAtom().getSSlideLayoutAtom().getGeometryType();
    boolean isTitle = (slt == SlideLayoutType.TITLE_SLIDE || slt == SlideLayoutType.TITLE_ONLY || slt == SlideLayoutType.MASTER_TITLE);
    if (hf != null) {
        switch(placeholder) {
            case DATETIME:
                return hf.isDateTimeVisible() && !isTitle;
            case SLIDE_NUMBER:
                return hf.isSlideNumberVisible() && !isTitle;
            case HEADER:
                return hf.isHeaderVisible() && !isTitle;
            case FOOTER:
                return hf.isFooterVisible() && !isTitle;
            default:
                break;
        }
    }
    return false;
}
Also used : HeadersFooters(org.apache.poi.hslf.model.HeadersFooters) SlideLayoutType(org.apache.poi.hslf.record.SlideAtomLayout.SlideLayoutType)

Aggregations

HeadersFooters (org.apache.poi.hslf.model.HeadersFooters)1 SlideLayoutType (org.apache.poi.hslf.record.SlideAtomLayout.SlideLayoutType)1