|
|
@@ -20,6 +20,8 @@ package org.apache.poi.hslf.record; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.function.Supplier; |
|
|
|
|
|
|
|
import org.apache.logging.log4j.LogManager; |
|
|
|
import org.apache.logging.log4j.Logger; |
|
|
|
import org.apache.poi.ddf.EscherRecord; |
|
|
|
import org.apache.poi.ddf.EscherRecordFactory; |
|
|
|
import org.apache.poi.ddf.EscherSerializationListener; |
|
|
@@ -32,6 +34,8 @@ import org.apache.poi.util.LittleEndian; |
|
|
|
* the slide layout as specified in the SlideAtom record. |
|
|
|
*/ |
|
|
|
public class EscherPlaceholder extends EscherRecord { |
|
|
|
private static final Logger LOG = LogManager.getLogger(EscherPlaceholder.class); |
|
|
|
|
|
|
|
public static final short RECORD_ID = RecordTypes.OEPlaceholderAtom.typeID; |
|
|
|
public static final String RECORD_DESCRIPTION = "msofbtClientTextboxPlaceholder"; |
|
|
|
|
|
|
@@ -59,7 +63,10 @@ public class EscherPlaceholder extends EscherRecord { |
|
|
|
size = data[offset+13]; |
|
|
|
unused = LittleEndian.getShort(data, offset+14); |
|
|
|
|
|
|
|
assert(bytesRemaining + 8 == 16); |
|
|
|
if (bytesRemaining + 8 != 16) { |
|
|
|
LOG.warn("Invalid header-data received, should have 8 bytes left, but had: " + bytesRemaining); |
|
|
|
} |
|
|
|
|
|
|
|
return bytesRemaining + 8; |
|
|
|
} |
|
|
|
|