String undoString) {
IPageService pageService = presentationDocument.getPageService();
int steps = 0;
for (int i = 0; i <= pageService.getPageCount(); i++) {
IPresentationPage page = null;
try {
page = pageService.getPresentationPage(i);
} catch (PresentationException e) {
continue;
}
IDrawPage drawPage = page.getDrawPage();
for (IShape shape : drawPage.getShapes()) {
XNamed xNamed = (XNamed) UnoRuntime.queryInterface(
XNamed.class, shape.getXShape());
String name = xNamed.getName();
if (!integrationID.equals(name))