1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
28 //------------------------------------------------------------------------
29 #include "scui_def.hxx"
31 class ScInsertContentsDlg
: public ModalDialog
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
);
54 CheckBox aBtnInsStrings
;
55 CheckBox aBtnInsNumbers
;
56 CheckBox aBtnInsDateTime
;
57 CheckBox aBtnInsFormulas
;
58 CheckBox aBtnInsNotes
;
59 CheckBox aBtnInsAttrs
;
60 CheckBox aBtnInsObjects
;
64 CheckBox aBtnSkipEmptyCells
;
65 CheckBox aBtnTranspose
;
68 FixedLine aFlOperation
;
77 RadioButton aRbMoveNone
;
78 RadioButton aRbMoveDown
;
79 RadioButton aRbMoveRight
;
82 CancelButton aBtnCancel
;
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
);
101 DECL_LINK( InsAllHdl
, void* );
102 DECL_LINK( LinkBtnHdl
, void* );
106 #endif // SC_INSCODLG_HXX
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */