Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <dialmgr.hxx>
30 : : #include <svx/svxdlg.hxx>
31 : : #include <cuires.hrc>
32 : : #include "insrc.hxx"
33 : : #include "insrc.hrc"
34 : :
35 : 0 : bool SvxInsRowColDlg::isInsertBefore() const
36 : : {
37 : 0 : return !aAfterBtn.IsChecked();
38 : : }
39 : :
40 : 0 : sal_uInt16 SvxInsRowColDlg::getInsertCount() const
41 : : {
42 : 0 : return static_cast< sal_uInt16 >( aCountEdit.GetValue() );
43 : : }
44 : :
45 : 0 : SvxInsRowColDlg::SvxInsRowColDlg(Window* pParent, bool bCol, const rtl::OString& sHelpId )
46 [ # # ]: 0 : : ModalDialog( pParent, CUI_RES(DLG_INS_ROW_COL) ),
47 [ # # ]: 0 : aCount( this, CUI_RES( FT_COUNT ) ),
48 [ # # ]: 0 : aCountEdit( this, CUI_RES( ED_COUNT ) ),
49 [ # # ]: 0 : aInsFL( this, CUI_RES( FL_INS ) ),
50 [ # # ]: 0 : aBeforeBtn( this, CUI_RES( CB_POS_BEFORE ) ),
51 [ # # ]: 0 : aAfterBtn( this, CUI_RES( CB_POS_AFTER ) ),
52 [ # # ]: 0 : aPosFL( this, CUI_RES( FL_POS ) ),
53 [ # # ]: 0 : aRow(CUI_RESSTR(STR_ROW)),
54 [ # # ]: 0 : aCol(CUI_RESSTR(STR_COL)),
55 [ # # ]: 0 : aOKBtn( this, CUI_RES( BT_OK ) ),
56 [ # # ]: 0 : aCancelBtn( this, CUI_RES( BT_CANCEL ) ),
57 [ # # ]: 0 : aHelpBtn( this, CUI_RES( BT_HELP ) ),
58 [ # # ][ # # ]: 0 : bColumn( bCol )
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
59 : : {
60 [ # # ]: 0 : FreeResource();
61 [ # # ][ # # ]: 0 : SetText( bColumn ? aCol : aRow );
[ # # ][ # # ]
62 [ # # ]: 0 : SetHelpId( sHelpId );
63 : 0 : }
64 : :
65 : 0 : short SvxInsRowColDlg::Execute(void)
66 : : {
67 : 0 : return ModalDialog::Execute();
68 : : }
69 : :
70 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|