diff options
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 6 | ||||
-rw-r--r-- | xmloff/inc/xmlprop.hxx | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index ef177576c342..41bfa084aefb 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -878,7 +878,11 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes aPropertySet.setAnyProperty(PROP_VertOrientPosition, Any(aShapeRect.Y)); } } - + if (!maTypeModel.mbVisible) + { + aPropertySet.setAnyProperty(PROP_Visible, uno::Any(false)); + aPropertySet.setAnyProperty(PROP_Printable, uno::Any(false)); + } // custom shape geometry attributes std::vector<css::beans::PropertyValue> aPropVec; diff --git a/xmloff/inc/xmlprop.hxx b/xmloff/inc/xmlprop.hxx index 72ffd69323f4..5b2793f9b2b6 100644 --- a/xmloff/inc/xmlprop.hxx +++ b/xmloff/inc/xmlprop.hxx @@ -532,6 +532,7 @@ inline constexpr OUString PROP_PolynomialDegree = u"PolynomialDegree"_ustr; inline constexpr OUString PROP_PositionProtected = u"PositionProtected"_ustr; inline constexpr OUString PROP_PositiveError = u"PositiveError"_ustr; inline constexpr OUString PROP_Print = u"Print"_ustr; +inline constexpr OUString PROP_Printable = u"Printable"_ustr; inline constexpr OUString PROP_PrintAnnotations = u"PrintAnnotations"_ustr; inline constexpr OUString PROP_PrintCharts = u"PrintCharts"_ustr; inline constexpr OUString PROP_PrintDownFirst = u"PrintDownFirst"_ustr; |