xref: /trunk/main/sc/source/ui/miscdlgs/groupdlg.cxx (revision ffd38472365e95f6a578737bc9a5eb0fac624a86)
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 
28 
29 
30 //------------------------------------------------------------------
31 
32 #include "groupdlg.hxx"
33 #include "scresid.hxx"
34 #include "miscdlgs.hrc"
35 
36 
37 //==================================================================
38 
39 ScGroupDlg::ScGroupDlg( Window* pParent,
40                         sal_uInt16  nResId,
41                         sal_Bool    bUngroup,
42                         sal_Bool    bRows ) :
43     ModalDialog     ( pParent, ScResId( nResId ) ),
44     //
45     aFlFrame        ( this, ScResId( FL_FRAME ) ),
46     aBtnRows        ( this, ScResId( BTN_GROUP_ROWS ) ),
47     aBtnCols        ( this, ScResId( BTN_GROUP_COLS ) ),
48     aBtnOk          ( this, ScResId( BTN_OK ) ),
49     aBtnCancel      ( this, ScResId( BTN_CANCEL ) ),
50     aBtnHelp        ( this, ScResId( BTN_HELP ) )
51 {
52     aFlFrame.SetText( String( ScResId(bUngroup ? STR_UNGROUP : STR_GROUP) ) );
53 
54     if ( bRows )
55         aBtnRows.Check();
56     else
57         aBtnCols.Check();
58 
59     //-------------
60     FreeResource();
61     aBtnRows.GrabFocus();
62 }
63 
64 //------------------------------------------------------------------------
65 
66 sal_Bool ScGroupDlg::GetColsChecked() const
67 {
68     return aBtnCols.IsChecked();
69 }
70 
71 //------------------------------------------------------------------------
72 
73 __EXPORT ScGroupDlg::~ScGroupDlg()
74 {
75 }
76