if ( m_nObjectState == com.sun.star.embed.EmbedStates.LOADED )
changeState( com.sun.star.embed.EmbedStates.RUNNING );
byte[] aData = m_aEditorFrame.getReplacementImage();
VisualRepresentation aVisRep = new VisualRepresentation();
aVisRep.Data = aData;
aVisRep.Flavor = new com.sun.star.datatransfer.DataFlavor( "image/png", "png", new com.sun.star.uno.Type( byte[].class ) );
return aVisRep;
}