tp_RangeChooser.cxx (cde9e8dc) | tp_RangeChooser.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 --- 270 unchanged lines hidden (view full) --- 279 280bool RangeChooserTabPage::isValid() 281{ 282 ::rtl::OUString aRange( m_aED_Range.GetText()); 283 sal_Bool bFirstCellAsLabel = ( m_aCB_FirstColumnAsLabel.IsChecked() && !m_aRB_Columns.IsChecked() ) 284 || ( m_aCB_FirstRowAsLabel.IsChecked() && !m_aRB_Rows.IsChecked() ); 285 sal_Bool bHasCategories = ( m_aCB_FirstColumnAsLabel.IsChecked() && m_aRB_Columns.IsChecked() ) 286 || ( m_aCB_FirstRowAsLabel.IsChecked() && m_aRB_Rows.IsChecked() ); | 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 --- 270 unchanged lines hidden (view full) --- 279 280bool RangeChooserTabPage::isValid() 281{ 282 ::rtl::OUString aRange( m_aED_Range.GetText()); 283 sal_Bool bFirstCellAsLabel = ( m_aCB_FirstColumnAsLabel.IsChecked() && !m_aRB_Columns.IsChecked() ) 284 || ( m_aCB_FirstRowAsLabel.IsChecked() && !m_aRB_Rows.IsChecked() ); 285 sal_Bool bHasCategories = ( m_aCB_FirstColumnAsLabel.IsChecked() && m_aRB_Columns.IsChecked() ) 286 || ( m_aCB_FirstRowAsLabel.IsChecked() && m_aRB_Rows.IsChecked() ); |
287 bool bIsValid = ( aRange.getLength() == 0 ) || | 287 bool bIsValid = aRange.isEmpty() || |
288 m_rDialogModel.getRangeSelectionHelper()->verifyArguments( 289 DataSourceHelper::createArguments( 290 aRange, Sequence< sal_Int32 >(), m_aRB_Columns.IsChecked(), bFirstCellAsLabel, bHasCategories )); 291 292 if( bIsValid ) 293 { 294 m_aED_Range.SetControlForeground(); 295 m_aED_Range.SetControlBackground(); --- 115 unchanged lines hidden --- | 288 m_rDialogModel.getRangeSelectionHelper()->verifyArguments( 289 DataSourceHelper::createArguments( 290 aRange, Sequence< sal_Int32 >(), m_aRB_Columns.IsChecked(), bFirstCellAsLabel, bHasCategories )); 291 292 if( bIsValid ) 293 { 294 m_aED_Range.SetControlForeground(); 295 m_aED_Range.SetControlBackground(); --- 115 unchanged lines hidden --- |