WrappedStatisticProperties.cxx (cde9e8dc) WrappedStatisticProperties.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

--- 131 unchanged lines hidden (view full) ---

140 }
141 return xResult;
142}
143
144void lcl_ConvertRangeFromXML(
145 ::rtl::OUString & rInOutRange,
146 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
147{
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

--- 131 unchanged lines hidden (view full) ---

140 }
141 return xResult;
142}
143
144void lcl_ConvertRangeFromXML(
145 ::rtl::OUString & rInOutRange,
146 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
147{
148 if( rInOutRange.getLength())
148 if( !rInOutRange.isEmpty() )
149 {
150 uno::Reference< chart2::data::XRangeXMLConversion > xConverter(
151 lcl_getDataProviderFromContact( spChart2ModelContact ), uno::UNO_QUERY );
152 if( xConverter.is())
153 {
154 ::rtl::OUString aResult = xConverter->convertRangeFromXML( rInOutRange );
155 rInOutRange = aResult;
156 }
157 }
158}
159
160void lcl_ConvertRangeToXML(
161 ::rtl::OUString & rInOutRange,
162 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
163{
149 {
150 uno::Reference< chart2::data::XRangeXMLConversion > xConverter(
151 lcl_getDataProviderFromContact( spChart2ModelContact ), uno::UNO_QUERY );
152 if( xConverter.is())
153 {
154 ::rtl::OUString aResult = xConverter->convertRangeFromXML( rInOutRange );
155 rInOutRange = aResult;
156 }
157 }
158}
159
160void lcl_ConvertRangeToXML(
161 ::rtl::OUString & rInOutRange,
162 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
163{
164 if( rInOutRange.getLength())
164 if( !rInOutRange.isEmpty() )
165 {
166 uno::Reference< chart2::data::XRangeXMLConversion > xConverter(
167 lcl_getDataProviderFromContact( spChart2ModelContact ), uno::UNO_QUERY );
168 if( xConverter.is())
169 {
170 ::rtl::OUString aResult = xConverter->convertRangeToXML( rInOutRange );
171 rInOutRange = aResult;
172 }

--- 975 unchanged lines hidden ---
165 {
166 uno::Reference< chart2::data::XRangeXMLConversion > xConverter(
167 lcl_getDataProviderFromContact( spChart2ModelContact ), uno::UNO_QUERY );
168 if( xConverter.is())
169 {
170 ::rtl::OUString aResult = xConverter->convertRangeToXML( rInOutRange );
171 rInOutRange = aResult;
172 }

--- 975 unchanged lines hidden ---