Lines 108-113
import org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument;
Link Here
|
108 |
return getLayouts().values().toArray(new XSLFSlideLayout[_layouts.size()]); |
108 |
return getLayouts().values().toArray(new XSLFSlideLayout[_layouts.size()]); |
109 |
} |
109 |
} |
110 |
|
110 |
|
|
|
111 |
/** |
112 |
* Get the slide layout by type. |
113 |
* |
114 |
* @param type The layout type. Cannot be null. |
115 |
* |
116 |
* @return the layout found or null on failure |
117 |
*/ |
111 |
public XSLFSlideLayout getLayout(SlideLayout type){ |
118 |
public XSLFSlideLayout getLayout(SlideLayout type){ |
112 |
for(XSLFSlideLayout layout : getLayouts().values()){ |
119 |
for(XSLFSlideLayout layout : getLayouts().values()){ |
113 |
if(layout.getType() == type) { |
120 |
if(layout.getType() == type) { |
Lines 117-122
import org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument;
Link Here
|
117 |
return null; |
124 |
return null; |
118 |
} |
125 |
} |
119 |
|
126 |
|
|
|
127 |
/** |
128 |
* Get the slide layout by name. |
129 |
* |
130 |
* @param name The layout name (case-insensitive). Cannot be null. |
131 |
* |
132 |
* @return the layout found or null on failure |
133 |
*/ |
134 |
public XSLFSlideLayout getLayout(String name) |
135 |
{ |
136 |
return getLayouts().get(name.toLowerCase()); |
137 |
} |
138 |
|
139 |
|
120 |
@Override |
140 |
@Override |
121 |
public XSLFTheme getTheme(){ |
141 |
public XSLFTheme getTheme(){ |
122 |
if(_theme == null){ |
142 |
if(_theme == null){ |
123 |
- |
|
|