if (!document.getDocumentType().equals(IDocument.IMPRESS))
return null;
IPresentationDocument presentationDocument = (IPresentationDocument) document;
IPageService pageService = presentationDocument.getPageService();
List<IArtefactPosition> positions = new ArrayList<IArtefactPosition>();
for (int i = 0; i <= pageService.getPageCount(); i++) {
try {
IPresentationPage page = pageService.getPresentationPage(i);
IDrawPage drawPage = page.getDrawPage();
for (IShape shape : drawPage.getShapes()) {
if (!shape.getType().equals(IShape.TEXT_SHAPE))
continue;
ITextShape textShape = (ITextShape) shape;