DiagramWrapper.cxx (cde9e8dc) | DiagramWrapper.cxx (9ec58d04) |
---|---|
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 --- 652 unchanged lines hidden (view full) --- 661 662 Reference< lang::XMultiServiceFactory > xChartTypeManager( xChartDoc->getChartTypeManager(), uno::UNO_QUERY ); 663 DiagramHelper::tTemplateWithServiceName aTemplateAndService = 664 DiagramHelper::getTemplateForDiagram( xDiagram, xChartTypeManager ); 665 666 aRet = lcl_getDiagramType( aTemplateAndService.second ); 667 } 668 | 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 --- 652 unchanged lines hidden (view full) --- 661 662 Reference< lang::XMultiServiceFactory > xChartTypeManager( xChartDoc->getChartTypeManager(), uno::UNO_QUERY ); 663 DiagramHelper::tTemplateWithServiceName aTemplateAndService = 664 DiagramHelper::getTemplateForDiagram( xDiagram, xChartTypeManager ); 665 666 aRet = lcl_getDiagramType( aTemplateAndService.second ); 667 } 668 |
669 if( !aRet.getLength()) | 669 if( aRet.isEmpty() ) |
670 { 671 // none of the standard templates matched 672 // use first chart type 673 Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) ); 674 if( xChartType.is() ) 675 { 676 aRet = xChartType->getChartType(); | 670 { 671 // none of the standard templates matched 672 // use first chart type 673 Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) ); 674 if( xChartType.is() ) 675 { 676 aRet = xChartType->getChartType(); |
677 if( aRet.getLength() ) | 677 if( !aRet.isEmpty() ) |
678 aRet = lcl_getOldChartTypeName( aRet ); 679 } | 678 aRet = lcl_getOldChartTypeName( aRet ); 679 } |
680 if( !aRet.getLength()) | 680 if( aRet.isEmpty() ) |
681 aRet = C2U( "com.sun.star.chart.BarDiagram" ); 682 } 683 684 return aRet; 685} 686 687Reference< 688 beans::XPropertySet > SAL_CALL DiagramWrapper::getDataRowProperties( sal_Int32 nRow ) --- 1461 unchanged lines hidden --- | 681 aRet = C2U( "com.sun.star.chart.BarDiagram" ); 682 } 683 684 return aRet; 685} 686 687Reference< 688 beans::XPropertySet > SAL_CALL DiagramWrapper::getDataRowProperties( sal_Int32 nRow ) --- 1461 unchanged lines hidden --- |