Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / inscodlg.hxx
blob1270e3f93cb6808f9352369d1d8535bf0dbc870c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_INSCODLG_HXX
21 #define SC_INSCODLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
26 #include "global.hxx"
28 //------------------------------------------------------------------------
29 #include "scui_def.hxx"
31 class ScInsertContentsDlg : public ModalDialog
33 public:
34 ScInsertContentsDlg( Window* pParent,
35 sal_uInt16 nCheckDefaults = 0,
36 const OUString* pStrTitle = NULL );
37 ~ScInsertContentsDlg();
39 sal_uInt16 GetInsContentsCmdBits() const;
40 sal_uInt16 GetFormulaCmdBits() const;
41 sal_Bool IsSkipEmptyCells() const {return aBtnSkipEmptyCells.IsChecked();}
42 sal_Bool IsTranspose() const {return aBtnTranspose.IsChecked();}
43 sal_Bool IsLink() const {return aBtnLink.IsChecked();}
44 InsCellCmd GetMoveMode();
46 void SetOtherDoc( sal_Bool bSet );
47 void SetFillMode( sal_Bool bSet );
48 void SetChangeTrack( sal_Bool bSet );
49 void SetCellShiftDisabled( int nDisable );
51 private:
52 FixedLine aFlFrame;
53 CheckBox aBtnInsAll;
54 CheckBox aBtnInsStrings;
55 CheckBox aBtnInsNumbers;
56 CheckBox aBtnInsDateTime;
57 CheckBox aBtnInsFormulas;
58 CheckBox aBtnInsNotes;
59 CheckBox aBtnInsAttrs;
60 CheckBox aBtnInsObjects;
62 FixedLine aFlSep1;
63 FixedLine aFlOptions;
64 CheckBox aBtnSkipEmptyCells;
65 CheckBox aBtnTranspose;
66 CheckBox aBtnLink;
68 FixedLine aFlOperation;
69 RadioButton aRbNoOp;
70 RadioButton aRbAdd;
71 RadioButton aRbSub;
72 RadioButton aRbMul;
73 RadioButton aRbDiv;
75 FixedLine aFlSep2;
76 FixedLine aFlMove;
77 RadioButton aRbMoveNone;
78 RadioButton aRbMoveDown;
79 RadioButton aRbMoveRight;
81 OKButton aBtnOk;
82 CancelButton aBtnCancel;
83 HelpButton aBtnHelp;
85 sal_Bool bOtherDoc;
86 sal_Bool bFillMode;
87 sal_Bool bChangeTrack;
88 sal_Bool bMoveDownDisabled;
89 sal_Bool bMoveRightDisabled;
91 static sal_Bool bPreviousAllCheck;
92 static sal_uInt16 nPreviousChecks;
93 static sal_uInt16 nPreviousChecks2;
94 static sal_uInt16 nPreviousFormulaChecks;
95 static sal_uInt16 nPreviousMoveMode; // enum InsCellCmd
97 void DisableChecks( sal_Bool bInsAllChecked = sal_True );
98 void TestModes();
100 // Handler
101 DECL_LINK( InsAllHdl, void* );
102 DECL_LINK( LinkBtnHdl, void* );
106 #endif // SC_INSCODLG_HXX
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */