diff options
author | Björn Milcke <bm@openoffice.org> | 2001-04-10 11:37:57 +0000 |
---|---|---|
committer | Björn Milcke <bm@openoffice.org> | 2001-04-10 11:37:57 +0000 |
commit | f92362a38bf5c66261de3c8dfe34cd1b44c417c1 (patch) | |
tree | e5f8bbe2d5b83f28d8d1a4724f0867284830219b /xmloff/source/chart/SchXMLTableContext.cxx | |
parent | 6dd42bd32ff62e790d3433116dffda0e1b8f0dac (diff) |
#85929# too much comitted
Diffstat (limited to 'xmloff/source/chart/SchXMLTableContext.cxx')
-rw-r--r-- | xmloff/source/chart/SchXMLTableContext.cxx | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx index 515e589e27..f282e35ad1 100644 --- a/xmloff/source/chart/SchXMLTableContext.cxx +++ b/xmloff/source/chart/SchXMLTableContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: SchXMLTableContext.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: bm $ $Date: 2001-04-10 12:27:25 $ + * last change: $Author: bm $ $Date: 2001-04-10 12:37:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -109,12 +109,10 @@ using namespace com::sun::star; SchXMLTableContext::SchXMLTableContext( SchXMLImportHelper& rImpHelper, SvXMLImport& rImport, const rtl::OUString& rLName, - SchXMLTable& aTable, - ::rtl::OUString& rTableName ) : + SchXMLTable& aTable ) : SvXMLImportContext( rImport, XML_NAMESPACE_TABLE, rLName ), mrImportHelper( rImpHelper ), - mrTable( aTable ), - mrTableName( rTableName ) + mrTable( aTable ) { mrTable.nColumnIndex = -1; mrTable.nMaxColumnIndex = -1; @@ -126,26 +124,6 @@ SchXMLTableContext::~SchXMLTableContext() { } -void SchXMLTableContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList ) -{ - // get number-columns-repeated attribute - sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0; - - for( sal_Int16 i = 0; i < nAttrCount; i++ ) - { - rtl::OUString sAttrName = xAttrList->getNameByIndex( i ); - rtl::OUString aLocalName; - USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName ); - - if( nPrefix == XML_NAMESPACE_TABLE && - aLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sXML_name ))) - { - mrTableName = xAttrList->getValueByIndex( i ); - break; // we only need this attribute - } - } -} - SvXMLImportContext *SchXMLTableContext::CreateChildContext( USHORT nPrefix, const rtl::OUString& rLocalName, |