LayoutImageMgr.dumpToZip (z, fullExport, exportLog)
loop over all images and dump the metadata into an xml-encoded export format

  • Parameter Object:
    Zip object to add the image to
  • Parameter Object:
    Boolean true for full export (including any parent layout image)
  • Parameter Object:
    java.util.Hashtable (optional)
  • Returns
    Object java.util.Hashtable
Sourcecode in LayoutImageMgr/objectFunctions.js:
1:   function dumpToZip(z, fullExport, exportLog) {
2:      // create the export log
3:      if (!exportLog)
4:         var exportLog = new java.util.Hashtable(20);
5:      
6:      for (var i=0;i<this.size();i++) {
7:         var img = this.get(i);
8:         if (exportLog.containsKey(img.alias))
9:            continue;
10:        var buf = new java.lang.String(Xml.writeToString(img.dumpToZip(z))).getBytes();
11:        z.addData(buf, "imagedata/" + img.alias + ".xml");
12:        exportLog.put(img.alias, true);
13:     }
14:     if (fullExport && this._parent.parent)
15:        this._parent.parent.images.dumpToZip(z, fullExport, exportLog);
16:     return exportLog;
17:  }