Update ooo320-m1
[ooovba.git] / sw / source / ui / table / splittbl.cxx
blobb12d5011b69c5968849629492a6540aae311b10c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: splittbl.cxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sw.hxx"
34 #ifdef SW_DLLIMPLEMENTATION
35 #undef SW_DLLIMPLEMENTATION
36 #endif
39 #include <wrtsh.hxx>
40 #include <splittbl.hxx>
41 #include <splittbl.hrc>
42 #include <table.hrc>
43 #include <tblenum.hxx>
44 /*-----------------17.03.98 10:56-------------------
46 --------------------------------------------------*/
47 SwSplitTblDlg::SwSplitTblDlg( Window *pParent, SwWrtShell &rSh ) :
48 SvxStandardDialog(pParent, SW_RES(DLG_SPLIT_TABLE)),
49 aOKPB( this, SW_RES(PB_OK )),
50 aCancelPB( this, SW_RES(PB_CANCEL )),
51 aHelpPB( this, SW_RES(PB_HELP )),
52 aSplitFL( this, SW_RES(FL_SPLIT )),
53 aCntntCopyRB( this, SW_RES(RB_CNTNT )),
54 aBoxAttrCopyWithParaRB( this, SW_RES(RB_BOX_PARA )),
55 aBoxAttrCopyNoParaRB( this, SW_RES(RB_BOX_NOPARA)),
56 aBorderCopyRB( this, SW_RES(RB_BORDER )),
57 rShell(rSh),
58 m_nSplit( HEADLINE_CNTNTCOPY )
60 FreeResource();
61 aCntntCopyRB.Check();
64 /*-----------------17.03.98 10:56-------------------
66 --------------------------------------------------*/
67 void SwSplitTblDlg::Apply()
69 m_nSplit = HEADLINE_CNTNTCOPY;
70 if(aBoxAttrCopyWithParaRB.IsChecked())
71 m_nSplit = HEADLINE_BOXATRCOLLCOPY;
72 if(aBoxAttrCopyNoParaRB.IsChecked())
73 m_nSplit = HEADLINE_BOXATTRCOPY;
74 else if(aBorderCopyRB.IsChecked())
75 m_nSplit = HEADLINE_BORDERCOPY;
77 rShell.SplitTable( m_nSplit );