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

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

325 const Reference< chart2::data::XLabeledDataSequence > & xLabeledSeq )
326{
327 OUString aResult;
328 if( xLabeledSeq.is())
329 {
330 Reference< chart2::data::XDataSequence > xSeq( xLabeledSeq->getLabel());
331 if( xSeq.is() )
332 aResult = lcl_getDataSequenceLabel( xSeq );
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

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

325 const Reference< chart2::data::XLabeledDataSequence > & xLabeledSeq )
326{
327 OUString aResult;
328 if( xLabeledSeq.is())
329 {
330 Reference< chart2::data::XDataSequence > xSeq( xLabeledSeq->getLabel());
331 if( xSeq.is() )
332 aResult = lcl_getDataSequenceLabel( xSeq );
333 if( !xSeq.is() || !aResult.getLength() )
333 if( !xSeq.is() || aResult.isEmpty() )
334 {
335 // no label set or label content is empty -> use auto-generated one
336 Reference< chart2::data::XDataSequence > xValueSeq( xLabeledSeq->getValues() );
337 if( xValueSeq.is() )
338 {
339 Sequence< OUString > aLabels( xValueSeq->generateLabel(
340 chart2::data::LabelOrigin_SHORT_SIDE ) );
341 // no labels returned is interpreted as: auto-generation not

--- 573 unchanged lines hidden ---
334 {
335 // no label set or label content is empty -> use auto-generated one
336 Reference< chart2::data::XDataSequence > xValueSeq( xLabeledSeq->getValues() );
337 if( xValueSeq.is() )
338 {
339 Sequence< OUString > aLabels( xValueSeq->generateLabel(
340 chart2::data::LabelOrigin_SHORT_SIDE ) );
341 // no labels returned is interpreted as: auto-generation not

--- 573 unchanged lines hidden ---