mirror of https://github.com/apache/poi.git
add getOfficeArtSpContainer() method to OfficeDrawing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1aa9ddb230
commit
ebe0c65b9a
|
@ -16,6 +16,8 @@
|
|||
==================================================================== */
|
||||
package org.apache.poi.hwpf.usermodel;
|
||||
|
||||
import org.apache.poi.ddf.EscherContainerRecord;
|
||||
|
||||
/**
|
||||
* User-friendly interface to office drawing objects.
|
||||
* <p>
|
||||
|
@ -130,6 +132,15 @@ public interface OfficeDrawing
|
|||
*/
|
||||
public HorizontalRelativeElement getHorizontalRelative();
|
||||
|
||||
/**
|
||||
* Returns escher record that represent shape container (record type is
|
||||
* <tt>0xF004</tt>). Returned record has a child with record type
|
||||
* <tt>0xF00A</tt> and value of shape id equals to {@link #getShapeId()}.
|
||||
*
|
||||
* @return Returns office art shape container or <tt>null</tt> if not found
|
||||
*/
|
||||
public EscherContainerRecord getOfficeArtSpContainer();
|
||||
|
||||
/**
|
||||
* Returns picture data if this shape has (single?) associated picture data
|
||||
*/
|
||||
|
|
|
@ -167,6 +167,11 @@ public class OfficeDrawingsImpl implements OfficeDrawings
|
|||
return HorizontalRelativeElement.TEXT;
|
||||
}
|
||||
|
||||
public EscherContainerRecord getOfficeArtSpContainer()
|
||||
{
|
||||
return getEscherShapeRecordContainer( getShapeId() );
|
||||
}
|
||||
|
||||
public byte[] getPictureData()
|
||||
{
|
||||
EscherContainerRecord shapeDescription = getEscherShapeRecordContainer( getShapeId() );
|
||||
|
|
Loading…
Reference in New Issue