res_ErrorBar.cxx (cde9e8dc) | res_ErrorBar.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 --- 746 unchanged lines hidden (view full) --- 755 OSL_ASSERT( m_apRangeSelectionHelper.get()); 756 if( m_apRangeSelectionHelper.get()) 757 m_apRangeSelectionHelper->stopRangeListening( false ); 758} 759 760bool ErrorBarResources::isRangeFieldContentValid( Edit & rEdit ) 761{ 762 ::rtl::OUString aRange( rEdit.GetText()); | 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 --- 746 unchanged lines hidden (view full) --- 755 OSL_ASSERT( m_apRangeSelectionHelper.get()); 756 if( m_apRangeSelectionHelper.get()) 757 m_apRangeSelectionHelper->stopRangeListening( false ); 758} 759 760bool ErrorBarResources::isRangeFieldContentValid( Edit & rEdit ) 761{ 762 ::rtl::OUString aRange( rEdit.GetText()); |
763 bool bIsValid = ( aRange.getLength() == 0 ) || | 763 bool bIsValid = aRange.isEmpty() || |
764 ( m_apRangeSelectionHelper.get() && 765 m_apRangeSelectionHelper->verifyCellRange( aRange )); 766 767 if( bIsValid || !rEdit.IsEnabled()) 768 { 769 rEdit.SetControlForeground(); 770 rEdit.SetControlBackground(); 771 } --- 12 unchanged lines hidden --- | 764 ( m_apRangeSelectionHelper.get() && 765 m_apRangeSelectionHelper->verifyCellRange( aRange )); 766 767 if( bIsValid || !rEdit.IsEnabled()) 768 { 769 rEdit.SetControlForeground(); 770 rEdit.SetControlBackground(); 771 } --- 12 unchanged lines hidden --- |