AxisHelper.cxx (cde9e8dc) | AxisHelper.cxx (940681c7) |
---|---|
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 --- 145 unchanged lines hidden (view full) --- 154 sal_Int32 nDimensionIndex = 1; 155 AxisHelper::getIndicesForAxis( xAxis, xCorrespondingCoordinateSystem, nDimensionIndex, nAxisIndex ); 156 Reference< chart2::XChartDocument > xChartDoc( xNumberFormatsSupplier, uno::UNO_QUERY ); 157 158 Reference< beans::XPropertySet > xProp( xAxis, uno::UNO_QUERY ); 159 if( xProp.is() && !( xProp->getPropertyValue( C2U( "NumberFormat" ) ) >>= nNumberFormatKey ) ) 160 { 161 bool bFormatSet = false; | 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 --- 145 unchanged lines hidden (view full) --- 154 sal_Int32 nDimensionIndex = 1; 155 AxisHelper::getIndicesForAxis( xAxis, xCorrespondingCoordinateSystem, nDimensionIndex, nAxisIndex ); 156 Reference< chart2::XChartDocument > xChartDoc( xNumberFormatsSupplier, uno::UNO_QUERY ); 157 158 Reference< beans::XPropertySet > xProp( xAxis, uno::UNO_QUERY ); 159 if( xProp.is() && !( xProp->getPropertyValue( C2U( "NumberFormat" ) ) >>= nNumberFormatKey ) ) 160 { 161 bool bFormatSet = false; |
162 //check wether we have a percent scale -> use percent format | 162 //check whether we have a percent scale -> use percent format |
163 if( xNumberFormatsSupplier.is() ) 164 { 165 ScaleData aData = AxisHelper::getDateCheckedScale( xAxis, Reference< frame::XModel >( xNumberFormatsSupplier, uno::UNO_QUERY ) ); 166 if( aData.AxisType==AxisType::PERCENT ) 167 { 168 sal_Int32 nPercentFormat = DiagramHelper::getPercentNumberFormat( xNumberFormatsSupplier ); 169 if( nPercentFormat != -1 ) 170 { --- 998 unchanged lines hidden --- | 163 if( xNumberFormatsSupplier.is() ) 164 { 165 ScaleData aData = AxisHelper::getDateCheckedScale( xAxis, Reference< frame::XModel >( xNumberFormatsSupplier, uno::UNO_QUERY ) ); 166 if( aData.AxisType==AxisType::PERCENT ) 167 { 168 sal_Int32 nPercentFormat = DiagramHelper::getPercentNumberFormat( xNumberFormatsSupplier ); 169 if( nPercentFormat != -1 ) 170 { --- 998 unchanged lines hidden --- |