diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-04 17:00:50 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-04 17:35:01 +0200 |
commit | d4b96b45727314585d02394bb5a084393b647729 (patch) | |
tree | 512cd6358e282445467517e2480ec4c79100cc6f | |
parent | be575f31ede7aea4b09174a131cb3b7e36dfdd4d (diff) |
fdo#81993: Revert "Resolves: #i119464# Update default alignment ...
... value for docx [Sub]Title"
This reverts commit acc671ec74c874ffd22803bb2ee54a1f2c027155.
The commit is clearly unnecessary:
1) commit 3f9e7e72c53ecbe8ee1ab060f811cb41eadfc7e1
appears to be a better fix for alignment
2) commit b95d203bc17c83ec0fe5139f519d53ed1d842d3a
should have disabled the Center default in Writer already
Change-Id: Ib0cc60af037f12be0a1ab94ab32c743f7fca2b1d
-rw-r--r-- | writerfilter/source/dmapper/StyleSheetTable.cxx | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx index d7dc1fc48ca3..96e568640f4a 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.cxx +++ b/writerfilter/source/dmapper/StyleSheetTable.cxx @@ -1129,23 +1129,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable ) xState->setPropertyToDefault(rPropNameSupplier.GetName( PROP_CHAR_PROP_HEIGHT )); xState->setPropertyToDefault(rPropNameSupplier.GetName( PROP_CHAR_PROP_HEIGHT_ASIAN )); xState->setPropertyToDefault(rPropNameSupplier.GetName( PROP_CHAR_PROP_HEIGHT_COMPLEX)); - } - else if (sConvertedStyleName == "Title" || sConvertedStyleName == "Subtitle") - { - //set the default adjust for ParaStyle Title and Subtitle to left - try - { - uno::Reference< beans::XPropertySet > xProp( xStyle, uno::UNO_QUERY ); - if( xProp.is() ) - { - uno::Any aMSDefaultVal = uno::makeAny( (sal_Int16)style::ParagraphAdjust_LEFT ); - xProp->setPropertyValue( rPropNameSupplier.GetName( PROP_PARA_ADJUST), aMSDefaultVal ); - } - } - catch(...) - { - OSL_ENSURE( false, "Default ParaAdjust style property could not be set"); - } + } } |