diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2002-01-09 11:57:21 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2002-01-09 11:57:21 +0000 |
commit | 1010b03ff7979687338c9665eac1ac72fa799b6b (patch) | |
tree | 9b6d06f431402535a9b7d39e0ec83e7bb2a2c87a /xmloff/source/text/XMLSectionExport.cxx | |
parent | f0ea21e3f16e0fe02e2de507a869e8b141055650 (diff) |
#96249# new user-index-source attribute (index-name) added
Diffstat (limited to 'xmloff/source/text/XMLSectionExport.cxx')
-rw-r--r-- | xmloff/source/text/XMLSectionExport.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx index 5e294dbea9d3..68d52adcd69a 100644 --- a/xmloff/source/text/XMLSectionExport.cxx +++ b/xmloff/source/text/XMLSectionExport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLSectionExport.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: dvo $ $Date: 2001-09-24 13:40:55 $ + * last change: $Author: dvo $ $Date: 2002-01-09 12:57:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -263,6 +263,7 @@ XMLSectionExport::XMLSectionExport( sProtectionKey(RTL_CONSTASCII_USTRINGPARAM("ProtectionKey")), sSortAlgorithm(RTL_CONSTASCII_USTRINGPARAM("SortAlgorithm")), sLocale(RTL_CONSTASCII_USTRINGPARAM("Locale")), + sUserIndexName(RTL_CONSTASCII_USTRINGPARAM("UserIndexName")), sEmpty() { } @@ -865,6 +866,12 @@ void XMLSectionExport::ExportUserIndexStart( ExportBoolean(rPropertySet, sCreateFromLevelParagraphStyles, XML_USE_INDEX_SOURCE_STYLES, sal_False); + Any aAny = rPropertySet->getPropertyValue( sUserIndexName ); + OUString sIndexName; + aAny >>= sIndexName; + GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_INDEX_NAME, + sIndexName); + ExportBaseIndexSource(TEXT_SECTION_TYPE_USER, rPropertySet); } |