diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-02 09:55:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-02 09:58:53 +0000 |
commit | 7297ec19950c48f498d22bd88c1d3fccbe7d77ea (patch) | |
tree | 1e41a07701e9035d78c8706fb7b4595de75b12a6 /xmloff | |
parent | callcatcher: some unused code (diff) | |
download | core-7297ec19950c48f498d22bd88c1d3fccbe7d77ea.tar.gz core-7297ec19950c48f498d22bd88c1d3fccbe7d77ea.zip |
update list post SvUShorts removal
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/xmlnume.hxx | 5 | ||||
-rw-r--r-- | xmloff/source/style/xmlnume.cxx | 42 |
2 files changed, 0 insertions, 47 deletions
diff --git a/xmloff/inc/xmloff/xmlnume.hxx b/xmloff/inc/xmloff/xmlnume.hxx index 473bec6d5dec..7edda8ca02ae 100644 --- a/xmloff/inc/xmloff/xmlnume.hxx +++ b/xmloff/inc/xmloff/xmlnume.hxx @@ -98,11 +98,6 @@ public: const ::rtl::OUString& rName, const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > & xNumRule ); - - static sal_Bool GetOutlineStyles( XMLStringVector& rStyleNames, - const ::com::sun::star::uno::Reference< - ::com::sun::star::frame::XModel > & rModel ); - }; #endif // _XMLOFF_XMLNUME_HXX 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: */ |