summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlnume.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-02 09:55:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-02 09:58:53 +0000
commit7297ec19950c48f498d22bd88c1d3fccbe7d77ea (patch)
tree1e41a07701e9035d78c8706fb7b4595de75b12a6 /xmloff/source/style/xmlnume.cxx
parent40fbc430fdd9366cd0047724f831929378cdf679 (diff)
update list post SvUShorts removal
Diffstat (limited to 'xmloff/source/style/xmlnume.cxx')
-rw-r--r--xmloff/source/style/xmlnume.cxx42
1 files changed, 0 insertions, 42 deletions
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx
index 58145c4d1378..954587bcdea0 100644
--- a/xmloff/source/style/xmlnume.cxx
+++ b/xmloff/source/style/xmlnume.cxx
@@ -871,46 +871,4 @@ void SvxXMLNumRuleExport::exportStyles( sal_Bool bUsed,
}
}
-sal_Bool SvxXMLNumRuleExport::GetOutlineStyles( XMLStringVector& rStyleNames,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel > & rModel )
-{
- Reference< XChapterNumberingSupplier > xCNSupplier( rModel,
- UNO_QUERY );
- sal_Int32 nLevels = 0;
- Reference< XIndexReplace > xNumRule;
- if( xCNSupplier.is() )
- {
- xNumRule = xCNSupplier->getChapterNumberingRules();
- if( xNumRule.is() )
- nLevels = xNumRule->getCount();
- }
-
- rStyleNames.resize( nLevels );
- for( sal_Int32 i=0; i<nLevels; i++ )
- {
- uno::Any aEntry( xNumRule->getByIndex( i ) );
- uno::Sequence<beans::PropertyValue> aSeq;
- if( aEntry >>= aSeq )
- {
- const sal_Int32 nCount = aSeq.getLength();
- const beans::PropertyValue* pPropArray = aSeq.getConstArray();
- for( sal_Int32 j=0; j<nCount; j++ )
- {
- const beans::PropertyValue& rProp = pPropArray[j];
-
- if( rProp.Name.equalsAsciiL(
- XML_UNO_NAME_NRULE_HEADING_STYLE_NAME,
- sizeof(XML_UNO_NAME_NRULE_HEADING_STYLE_NAME)-1 ) )
- {
- rProp.Value >>= rStyleNames[i];
- break;
- }
- }
- }
- }
-
- return nLevels != 0;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */