@Override protected void onDocumentRead() { try { try { _pageContents = PageContentsDocument.Factory.parse(getPackagePart().getInputStream()).getPageContents(); } catch (XmlException | IOException e) { throw new POIXMLException(e); } for (POIXMLDocumentPart part: getRelations()) { if (!(part instanceof XDGFMasterContents)) continue; //throw new POIXMLException("Unexpected page relation: " + part); XDGFMaster master = ((XDGFMasterContents)part).getMaster(); _masters.put(master.getID(), master); } super.onDocumentRead(); for (XDGFShape shape: _shapes.values()) { if (shape.isTopmost()) shape.setupMaster(this, null); } } catch (POIXMLException e) { throw XDGFException.wrap(this, e); } }
@Override protected void onDocumentRead() { try { try { _pageContents = MasterContentsDocument.Factory.parse(getPackagePart().getInputStream()).getMasterContents(); } catch (XmlException | IOException e) { throw new POIXMLException(e); } super.onDocumentRead(); } catch (POIXMLException e) { throw XDGFException.wrap(this, e); } }
.getTopLevelShapes(); _masterShape = (master == null) ? null : master.getShapeById(obj.getMasterShape()); if (_masterShape == null) { throw XDGFException.error(
public XDGFMaster(MasterType master, XDGFMasterContents content, XDGFDocument document) { _master = master; _content = content; content.setMaster(this); if (master.isSetPageSheet()) _pageSheet = new XDGFPageSheet(master.getPageSheet(), document); }
contents.onDocumentRead();
public XDGFMaster(MasterType master, XDGFMasterContents content, XDGFDocument document) { _master = master; _content = content; content.setMaster(this); if (master.isSetPageSheet()) _pageSheet = new XDGFPageSheet(master.getPageSheet(), document); }
.getTopLevelShapes(); _masterShape = (master == null) ? null : master.getShapeById(obj.getMasterShape()); if (_masterShape == null) { throw XDGFException.error(
@Override protected void onDocumentRead() { try { try { _pageContents = MasterContentsDocument.Factory.parse(getPackagePart().getInputStream()).getMasterContents(); } catch (XmlException | IOException e) { throw new POIXMLException(e); } super.onDocumentRead(); } catch (POIXMLException e) { throw XDGFException.wrap(this, e); } }
@Override protected void onDocumentRead() { try { try { _pageContents = PageContentsDocument.Factory.parse(getPackagePart().getInputStream()).getPageContents(); } catch (XmlException | IOException e) { throw new POIXMLException(e); } for (POIXMLDocumentPart part: getRelations()) { if (!(part instanceof XDGFMasterContents)) continue; //throw new POIXMLException("Unexpected page relation: " + part); XDGFMaster master = ((XDGFMasterContents)part).getMaster(); _masters.put(master.getID(), master); } super.onDocumentRead(); for (XDGFShape shape: _shapes.values()) { if (shape.isTopmost()) shape.setupMaster(this, null); } } catch (POIXMLException e) { throw XDGFException.wrap(this, e); } }