summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-07-26 07:15:26 +0000
committerRüdiger Timm <rt@openoffice.org>2007-07-26 07:15:26 +0000
commite3cbb21ed39fa21a82e1941538a355acaa7a2f88 (patch)
tree62dab7a0459fb29790152130cb57d15ac2bd09e1 /xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx
parent60bab7f4ad7835a0cd796b4278890d050415496c (diff)
INTEGRATION: CWS swqbf101 (1.9.12); FILE MERGED
2007/07/11 07:49:17 ama 1.9.12.1: Fix #i76279#: Remove unused style names
Diffstat (limited to 'xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx
index afcdae4ba7e2..7db4397774cd 100644
--- a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx
+++ b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: XMLIndexAlphabeticalSourceContext.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 15:56:01 $
+ * last change: $Author: rt $ $Date: 2007-07-26 08:15:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -165,8 +165,14 @@ void XMLIndexAlphabeticalSourceContext::ProcessAttribute(
switch (eParam)
{
case XML_TOK_INDEXSOURCE_MAIN_ENTRY_STYLE:
- sMainEntryStyleName = rValue;
- bMainEntryStyleNameOK = sal_True;
+ {
+ sMainEntryStyleName = rValue;
+ OUString sDisplayStyleName = GetImport().GetStyleDisplayName(
+ XML_STYLE_FAMILY_TEXT_TEXT, sMainEntryStyleName );
+ const Reference < ::com::sun::star::container::XNameContainer >&
+ rStyles = GetImport().GetTextImport()->GetTextStyles();
+ bMainEntryStyleNameOK = rStyles.is() && rStyles->hasByName( sDisplayStyleName );
+ }
break;
case XML_TOK_INDEXSOURCE_IGNORE_CASE: