[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Sat Apr 14 07:52:09 PDT 2012


 writerfilter/source/dmapper/PropertyIds.cxx |    1 +
 writerfilter/source/dmapper/PropertyIds.hxx |    1 +
 writerfilter/source/dmapper/PropertyMap.cxx |    2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit fd1bef82a99de423005e1dfaf2935823a1fc74bd
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Sat Apr 14 16:52:36 2012 +0200

    dmapper: use PropNameSupplier in SectionPropertyMap::CloseSectionGroup()

diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx
index 64f562a..f1835c3 100644
--- a/writerfilter/source/dmapper/PropertyIds.cxx
+++ b/writerfilter/source/dmapper/PropertyIds.cxx
@@ -322,6 +322,7 @@ const rtl::OUString& PropertyNameSupplier::GetName( PropertyIds eId ) const
             case PROP_FRM_DIRECTION:        sName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FRMDirection")); break;
             case PROP_EMBEDDED_OBJECT           :    sName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("EmbeddedObject")); break;
             case PROP_IS_VISIBLE: sName = "IsVisible"; break;
+            case PROP_PAGE_STYLE_LAYOUT: sName = "PageStyleLayout"; break;
         }
         ::std::pair<PropertyNameMap_t::iterator,bool> aInsertIt =
                 m_pImpl->aNameMap.insert( PropertyNameMap_t::value_type( eId, sName ));
diff --git a/writerfilter/source/dmapper/PropertyIds.hxx b/writerfilter/source/dmapper/PropertyIds.hxx
index c6e5369..330c1d9 100644
--- a/writerfilter/source/dmapper/PropertyIds.hxx
+++ b/writerfilter/source/dmapper/PropertyIds.hxx
@@ -295,6 +295,7 @@ enum PropertyIds
 /*253*/ ,PROP_FRM_DIRECTION
         ,PROP_EMBEDDED_OBJECT
         ,PROP_PARA_CONTEXT_MARGIN
+        ,PROP_PAGE_STYLE_LAYOUT
     };
 struct PropertyNameSupplier_Impl;
 class PropertyNameSupplier
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index 3f6b18c..72b92b3 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -982,7 +982,7 @@ void SectionPropertyMap::CloseSectionGroup( DomainMapper_Impl& rDM_Impl )
                 else if (m_nBreakType == 4)
                     nPageStyleLayout = style::PageStyleLayout_RIGHT;
                 if (nPageStyleLayout)
-                    xFollowPageStyle->setPropertyValue("PageStyleLayout", uno::makeAny(nPageStyleLayout));
+                    xFollowPageStyle->setPropertyValue(rPropNameSupplier.GetName(PROP_PAGE_STYLE_LAYOUT), uno::makeAny(nPageStyleLayout));
                 if(m_bPageNoRestart || m_nPageNumber >= 0)
                 {
                     sal_Int16 nPageNumber = m_nPageNumber >= 0 ? static_cast< sal_Int16 >(m_nPageNumber) : 1;


More information about the Libreoffice-commits mailing list