vbacharts.cxx (b3f79822) | vbacharts.cxx (d311fc8b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 61 unchanged lines hidden (view full) --- 70 uno::Sequence< rtl::OUString > SheetNames = xSpreadsheets->getElementNames(); 71 sal_Int32 nLen = SheetNames.getLength(); 72 for (sal_Int32 i = 0; i < nLen; i++) 73 { 74 uno::Reference< table::XTableChartsSupplier > xTableChartsSupplier( xSpreadsheets->getByName(SheetNames[i]), uno::UNO_QUERY); 75 if ( xTableChartsSupplier.is() ) 76 { 77 uno::Reference< table::XTableCharts > xTableCharts = xTableChartsSupplier->getCharts(); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 61 unchanged lines hidden (view full) --- 70 uno::Sequence< rtl::OUString > SheetNames = xSpreadsheets->getElementNames(); 71 sal_Int32 nLen = SheetNames.getLength(); 72 for (sal_Int32 i = 0; i < nLen; i++) 73 { 74 uno::Reference< table::XTableChartsSupplier > xTableChartsSupplier( xSpreadsheets->getByName(SheetNames[i]), uno::UNO_QUERY); 75 if ( xTableChartsSupplier.is() ) 76 { 77 uno::Reference< table::XTableCharts > xTableCharts = xTableChartsSupplier->getCharts(); |
78 ncount =+ xTableCharts->getElementNames().getLength(); | 78 ncount += xTableCharts->getElementNames().getLength(); |
79 } 80 } 81 } 82 catch (uno::Exception& ) 83 { 84 throw script::BasicErrorException( rtl::OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, rtl::OUString() ); 85 } 86 return ncount; --- 30 unchanged lines hidden --- | 79 } 80 } 81 } 82 catch (uno::Exception& ) 83 { 84 throw script::BasicErrorException( rtl::OUString(), uno::Reference< uno::XInterface >(), SbERR_METHOD_FAILED, rtl::OUString() ); 85 } 86 return ncount; --- 30 unchanged lines hidden --- |