diff options
Diffstat (limited to 'oox/source/drawingml/shape.cxx')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 72a7920d26e4..a83fe4911698 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -105,6 +105,7 @@ Shape::Shape( const sal_Char* pServiceName, bool bDefaultHeight ) , mbHiddenMasterShape( false ) , mbLockedCanvas( false ) , mbWps( false ) +, mbTextBox( false ) , mbHasLinkedTxbx( false ) , maDiagramDoms( 0 ) { @@ -143,6 +144,7 @@ Shape::Shape( const ShapePtr& pSourceShape ) , mbHiddenMasterShape( pSourceShape->mbHiddenMasterShape ) , mbLockedCanvas( pSourceShape->mbLockedCanvas ) , mbWps( pSourceShape->mbWps ) +, mbTextBox( pSourceShape->mbTextBox ) , maLinkedTxbxAttr() , mbHasLinkedTxbx(false) , maDiagramDoms( pSourceShape->maDiagramDoms ) @@ -283,6 +285,11 @@ bool Shape::getWps() return mbWps; } +void Shape::setTextBox(bool bTextBox) +{ + mbTextBox = bTextBox; +} + void Shape::applyShapeReference( const Shape& rReferencedShape, bool bUseText ) { SAL_INFO("oox", OSL_THIS_FUNC << "apply shape reference: " << rReferencedShape.msId << " to shape id: " << msId); @@ -815,6 +822,11 @@ Reference< XShape > Shape::createAndInsert( aShapeProps.setProperty(PROP_ShadowFormat, uno::makeAny(aFormat)); } } + else if (mbTextBox) + { + //No such property yet + //aShapeProps.setProperty(PROP_TextBox, uno::makeAny(true)); + } PropertySet( xSet ).setProperties( aShapeProps ); if (mbLockedCanvas) |