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 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_scui.hxx" 26 27 #undef SC_DLLIMPLEMENTATION 28 29 30 31 //------------------------------------------------------------------ 32 33 #include "groupdlg.hxx" 34 #include "scresid.hxx" 35 #include "miscdlgs.hrc" 36 37 38 //================================================================== 39 40 ScGroupDlg::ScGroupDlg( Window* pParent, 41 sal_uInt16 nResId, 42 sal_Bool bUngroup, 43 sal_Bool bRows ) : 44 ModalDialog ( pParent, ScResId( nResId ) ), 45 // 46 aFlFrame ( this, ScResId( FL_FRAME ) ), 47 aBtnRows ( this, ScResId( BTN_GROUP_ROWS ) ), 48 aBtnCols ( this, ScResId( BTN_GROUP_COLS ) ), 49 aBtnOk ( this, ScResId( BTN_OK ) ), 50 aBtnCancel ( this, ScResId( BTN_CANCEL ) ), 51 aBtnHelp ( this, ScResId( BTN_HELP ) ) 52 { 53 aFlFrame.SetText( String( ScResId(bUngroup ? STR_UNGROUP : STR_GROUP) ) ); 54 55 if ( bRows ) 56 aBtnRows.Check(); 57 else 58 aBtnCols.Check(); 59 60 //------------- 61 FreeResource(); 62 aBtnRows.GrabFocus(); 63 } 64 65 //------------------------------------------------------------------------ 66 67 sal_Bool ScGroupDlg::GetColsChecked() const 68 { 69 return aBtnCols.IsChecked(); 70 } 71 72 //------------------------------------------------------------------------ 73 74 __EXPORT ScGroupDlg::~ScGroupDlg() 75 { 76 } 77 78 79 80