diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-04-25 12:16:52 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-04-25 12:17:13 +0200 |
commit | 5f32957bc31a4676f2321c5a9a9e6945490861e4 (patch) | |
tree | 77bb86295ef7beec7865fd816be0d94503331e4f /writerfilter | |
parent | avoid code duplication by introducing RTFDocumentImpl::singleChar (diff) | |
download | core-5f32957bc31a4676f2321c5a9a9e6945490861e4.tar.gz core-5f32957bc31a4676f2321c5a9a9e6945490861e4.zip |
use PropNameSupplier in SectionPropertyMap::PrepareHeaderFooterProperties()
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/PropertyMap.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx index 72b92b3924b2..42cac7dab0d0 100644 --- a/writerfilter/source/dmapper/PropertyMap.cxx +++ b/writerfilter/source/dmapper/PropertyMap.cxx @@ -783,11 +783,12 @@ void SectionPropertyMap::PrepareHeaderFooterProperties( bool bFirstPage ) sal_Int32 nHeaderHeight = 0, nFooterHeight = 0; if (bFirstPage) { + PropertyNameSupplier& rPropNameSupplier = PropertyNameSupplier::GetPropertyNameSupplier(); // make sure the height of the header/footer is added to the top/bottom margin if necessary if (m_aFollowPageStyle.is() && !HasHeader(true) && HasHeader(false)) - m_aFollowPageStyle->getPropertyValue("HeaderHeight") >>= nHeaderHeight; + m_aFollowPageStyle->getPropertyValue(rPropNameSupplier.GetName(PROP_HEADER_HEIGHT)) >>= nHeaderHeight; if (m_aFollowPageStyle.is() && !HasFooter(true) && HasFooter(false)) - m_aFollowPageStyle->getPropertyValue("FooterHeight") >>= nFooterHeight; + m_aFollowPageStyle->getPropertyValue(rPropNameSupplier.GetName(PROP_FOOTER_HEIGHT)) >>= nFooterHeight; } operator[]( PropertyDefinition( PROP_TOP_MARGIN, false )) = uno::makeAny( m_nTopMargin + nHeaderHeight ); operator[]( PropertyDefinition( PROP_BOTTOM_MARGIN, false )) = uno::makeAny( m_nBottomMargin + nFooterHeight ); |