Link Here
|
21 |
import java.io.IOException; |
21 |
import java.io.IOException; |
22 |
import java.io.InputStream; |
22 |
import java.io.InputStream; |
23 |
import java.util.HashSet; |
23 |
import java.util.HashSet; |
|
|
24 |
import java.util.List; |
25 |
import java.util.ArrayList; |
24 |
|
26 |
|
25 |
import org.apache.poi.POIOLE2TextExtractor; |
27 |
import org.apache.poi.POIOLE2TextExtractor; |
26 |
import org.apache.poi.hslf.HSLFSlideShow; |
28 |
import org.apache.poi.hslf.HSLFSlideShow; |
27 |
import org.apache.poi.hslf.model.Comment; |
29 |
import org.apache.poi.hslf.model.*; |
28 |
import org.apache.poi.hslf.model.HeadersFooters; |
|
|
29 |
import org.apache.poi.hslf.model.Notes; |
30 |
import org.apache.poi.hslf.model.Slide; |
31 |
import org.apache.poi.hslf.model.TextRun; |
32 |
import org.apache.poi.hslf.usermodel.SlideShow; |
30 |
import org.apache.poi.hslf.usermodel.SlideShow; |
33 |
import org.apache.poi.poifs.filesystem.DirectoryNode; |
31 |
import org.apache.poi.poifs.filesystem.DirectoryNode; |
34 |
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
32 |
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
Link Here
|
151 |
return getText(false,true); |
149 |
return getText(false,true); |
152 |
} |
150 |
} |
153 |
|
151 |
|
|
|
152 |
public List<OLEShape> getOLEShapes() { |
153 |
List<OLEShape> list = new ArrayList<OLEShape>(); |
154 |
|
155 |
for(int i=0; i<_slides.length; i++) { |
156 |
Slide slide = _slides[i]; |
157 |
|
158 |
Shape[] shapes = slide.getShapes(); |
159 |
for (int j = 0; j < shapes.length; j++) { |
160 |
if (shapes[j] instanceof OLEShape) { |
161 |
list.add((OLEShape) shapes[j]); |
162 |
} |
163 |
} |
164 |
} |
165 |
|
166 |
return list; |
167 |
} |
168 |
|
154 |
/** |
169 |
/** |
155 |
* Fetches text from the slideshow, be it slide text or note text. |
170 |
* Fetches text from the slideshow, be it slide text or note text. |
156 |
* Because the final block of text in a TextRun normally have their |
171 |
* Because the final block of text in a TextRun normally have their |