impress206: #i115898# take into account new presentation shapes(cherry picked from commit c8c648474da56e2ecdbdcc11c269366716fe88c9)
This commit is contained in:
committed by
Thorsten Behrens
parent
2a8043bab8
commit
977fa1655c
@@ -286,7 +286,9 @@ ShapeSharedPtr ShapeImporter::createShape(
|
||||
rtl::OUString const& shapeType ) const
|
||||
{
|
||||
if( shapeType.equalsAsciiL(
|
||||
RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.MediaShape") ))
|
||||
RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.MediaShape") ) ||
|
||||
shapeType.equalsAsciiL(
|
||||
RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.MediaShape") ) )
|
||||
{
|
||||
// Media shape (video etc.). This is a special object
|
||||
return createMediaShape(xCurrShape,
|
||||
@@ -338,7 +340,9 @@ ShapeSharedPtr ShapeImporter::createShape(
|
||||
mrContext );
|
||||
}
|
||||
else if( shapeType.equalsAsciiL(
|
||||
RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OLE2Shape") ))
|
||||
RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OLE2Shape") ) ||
|
||||
shapeType.equalsAsciiL(
|
||||
RTL_CONSTASCII_STRINGPARAM("com.sun.star.presentation.OLE2Shape") ) )
|
||||
{
|
||||
// #i46224# Mark OLE shapes as foreign content - scan them for
|
||||
// unsupported actions, and fallback to bitmap, if necessary
|
||||
@@ -350,7 +354,10 @@ ShapeSharedPtr ShapeImporter::createShape(
|
||||
}
|
||||
else if( shapeType.equalsAsciiL(
|
||||
RTL_CONSTASCII_STRINGPARAM(
|
||||
"com.sun.star.drawing.GraphicObjectShape") ))
|
||||
"com.sun.star.drawing.GraphicObjectShape") ) ||
|
||||
shapeType.equalsAsciiL(
|
||||
RTL_CONSTASCII_STRINGPARAM(
|
||||
"com.sun.star.presentation.GraphicObjectShape") ) )
|
||||
{
|
||||
GraphicObject aGraphicObject;
|
||||
|
||||
|
Reference in New Issue
Block a user