diff options
author | Daniel Rentz <dr@openoffice.org> | 2010-05-03 15:03:12 +0200 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2010-05-03 15:03:12 +0200 |
commit | 9ab3e6e31798adb32145948f64c4c41363be6ec8 (patch) | |
tree | dccba62af88383e884a1a48d716fbea9e1f6501e /oox/source/vml/vmlformatting.cxx | |
parent | 9205bc69fc5458c5090e8c1e97aed8bde9e776a1 (diff) |
dr76: #i104719# import VML fill bitmaps
Diffstat (limited to 'oox/source/vml/vmlformatting.cxx')
-rw-r--r-- | oox/source/vml/vmlformatting.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx index be3f3dd19e8c..4c3fd1d2be98 100644 --- a/oox/source/vml/vmlformatting.cxx +++ b/oox/source/vml/vmlformatting.cxx @@ -468,6 +468,7 @@ void FillModel::assignUsed( const FillModel& rSource ) moFocus.assignIfUsed( rSource.moFocus ); moFocusPos.assignIfUsed( rSource.moFocusPos ); moFocusSize.assignIfUsed( rSource.moFocusSize ); + moBitmapPath.assignIfUsed( rSource.moBitmapPath ); moRotate.assignIfUsed( rSource.moRotate ); } @@ -558,6 +559,23 @@ void FillModel::pushToPropMap( PropertyMap& rPropMap, const FilterBase& rFilter } break; + case XML_pattern: + case XML_tile: + case XML_frame: + { + if( moBitmapPath.has() && moBitmapPath.get().getLength() > 0 ) + { + aFillProps.maBlipProps.mxGraphic = rFilter.importEmbeddedGraphic( moBitmapPath.get() ); + if( aFillProps.maBlipProps.mxGraphic.is() ) + { + aFillProps.moFillType = XML_blipFill; + aFillProps.maBlipProps.moBitmapMode = (nFillType == XML_frame) ? XML_stretch : XML_tile; + break; // do not break if bitmap is missing, but run to XML_solid instead + } + } + } + // run-through to XML_solid in case of missing bitmap path intended! + case XML_solid: default: { |