merge the formfield patch from ooo-build
[ooovba.git] / sc / source / ui / inc / delcodlg.hxx
blob19be51b1c10621857b1460dda977140259fc3863
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: delcodlg.hxx,v $
10 * $Revision: 1.4 $
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 #ifndef SC_DELCODLG_HXX
32 #define SC_DELCODLG_HXX
34 #include <vcl/dialog.hxx>
35 #include <vcl/fixed.hxx>
36 #include <vcl/imagebtn.hxx>
37 #include "global.hxx"
39 //------------------------------------------------------------------------
41 class ScDeleteContentsDlg : public ModalDialog
43 private:
44 FixedLine aFlFrame;
45 CheckBox aBtnDelAll;
46 CheckBox aBtnDelStrings;
47 CheckBox aBtnDelNumbers;
48 CheckBox aBtnDelDateTime;
49 CheckBox aBtnDelFormulas;
50 CheckBox aBtnDelNotes;
51 CheckBox aBtnDelAttrs;
52 CheckBox aBtnDelObjects;
53 OKButton aBtnOk;
54 CancelButton aBtnCancel;
55 HelpButton aBtnHelp;
57 BOOL bObjectsDisabled;
59 static BOOL bPreviousAllCheck;
60 static USHORT nPreviousChecks;
62 void DisableChecks( BOOL bDelAllChecked = TRUE );
63 DECL_LINK( DelAllHdl, void * );
65 public:
66 ScDeleteContentsDlg( Window* pParent,
67 USHORT nCheckDefaults = 0 );
68 ~ScDeleteContentsDlg();
69 void DisableObjects();
71 USHORT GetDelContentsCmdBits() const;
75 #endif // SC_DELCODLG_HXX