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
This commit is contained in:
Rüdiger Timm 2007-07-26 07:15:26 +00:00
parent 60bab7f4ad
commit e3cbb21ed3

View file

@ -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: