Search in sources :

Example 1 with CTColorMapping

use of org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping in project poi by apache.

the class XSLFSlideMaster method getTheme.

@Override
public XSLFTheme getTheme() {
    if (_theme == null) {
        for (POIXMLDocumentPart p : getRelations()) {
            if (p instanceof XSLFTheme) {
                _theme = (XSLFTheme) p;
                CTColorMapping cmap = _slide.getClrMap();
                if (cmap != null) {
                    _theme.initColorMap(cmap);
                }
                break;
            }
        }
    }
    return _theme;
}
Also used : POIXMLDocumentPart(org.apache.poi.POIXMLDocumentPart) CTColorMapping(org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)

Example 2 with CTColorMapping

use of org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping in project poi by apache.

the class XSLFNotesMaster method getTheme.

@Override
public XSLFTheme getTheme() {
    if (_theme == null) {
        for (POIXMLDocumentPart p : getRelations()) {
            if (p instanceof XSLFTheme) {
                _theme = (XSLFTheme) p;
                CTColorMapping cmap = _slide.getClrMap();
                if (cmap != null) {
                    _theme.initColorMap(cmap);
                }
                break;
            }
        }
    }
    return _theme;
}
Also used : POIXMLDocumentPart(org.apache.poi.POIXMLDocumentPart) CTColorMapping(org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)

Aggregations

POIXMLDocumentPart (org.apache.poi.POIXMLDocumentPart)2 CTColorMapping (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)2