1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cuitbxform.cxx,v $
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_svx.hxx"
34 #ifdef SVX_DLLIMPLEMENTATION
35 #undef SVX_DLLIMPLEMENTATION
38 #include <string> // HACK: prevent conflict between STLPORT and Workshop headers
39 #include <tools/ref.hxx>
40 #include <tools/shl.hxx>
41 #include <svtools/intitem.hxx>
42 #include <svtools/eitem.hxx>
43 #include <svtools/stritem.hxx>
44 #include <sfx2/dispatch.hxx>
45 #include <vcl/toolbox.hxx>
46 #include <vcl/fixed.hxx>
47 #include "fmitems.hxx"
48 #include <vcl/sound.hxx>
49 #include <svx/dialmgr.hxx>
50 #ifndef _SVX_DIALOGS_HRC
51 #include <svx/dialogs.hrc>
55 #include "tbxdraw.hxx"
57 #include "cuitbxform.hxx"
58 #ifndef _SVX_FMRESIDS_HRC
59 #include "fmresids.hrc"
61 #include "fmitems.hxx"
62 #ifndef _SVX_FMHELP_HRC
65 #include <sfx2/viewfrm.hxx>
66 #include <sfx2/viewsh.hxx>
67 //========================================================================
68 // class FmInputRecordNoDialog
69 //========================================================================
71 FmInputRecordNoDialog::FmInputRecordNoDialog(Window
* pParent
)
72 :ModalDialog( pParent
, SVX_RES(RID_SVX_DLG_INPUTRECORDNO
))
73 ,m_aLabel(this, SVX_RES(1))
74 ,m_aRecordNo(this, SVX_RES(1))
75 ,m_aOk(this, SVX_RES(1))
76 ,m_aCancel(this, SVX_RES(1))
78 m_aRecordNo
.SetMin(1);
79 m_aRecordNo
.SetMax(0x7FFFFFFF);
80 m_aRecordNo
.SetStrictFormat(TRUE
);
81 m_aRecordNo
.SetDecimalDigits(0);