Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef SC_INSCODLG_HXX
21 : #define SC_INSCODLG_HXX
22 :
23 : #include <vcl/dialog.hxx>
24 : #include <vcl/button.hxx>
25 : #include <vcl/fixed.hxx>
26 : #include "global.hxx"
27 :
28 :
29 : #include "scui_def.hxx"
30 :
31 : class ScInsertContentsDlg : public ModalDialog
32 : {
33 : public:
34 : ScInsertContentsDlg( Window* pParent,
35 : sal_uInt16 nCheckDefaults = 0,
36 : const OUString* pStrTitle = NULL );
37 : virtual ~ScInsertContentsDlg();
38 :
39 : sal_uInt16 GetInsContentsCmdBits() const;
40 : sal_uInt16 GetFormulaCmdBits() const;
41 0 : bool IsSkipEmptyCells() const {return mpBtnSkipEmptyCells->IsChecked();}
42 0 : bool IsTranspose() const {return mpBtnTranspose->IsChecked();}
43 0 : bool IsLink() const {return mpBtnLink->IsChecked();}
44 : InsCellCmd GetMoveMode();
45 :
46 : void SetOtherDoc( bool bSet );
47 : void SetFillMode( bool bSet );
48 : void SetChangeTrack( bool bSet );
49 : void SetCellShiftDisabled( int nDisable );
50 :
51 : private:
52 : CheckBox* mpBtnInsAll;
53 : CheckBox* mpBtnInsStrings;
54 : CheckBox* mpBtnInsNumbers;
55 : CheckBox* mpBtnInsDateTime;
56 : CheckBox* mpBtnInsFormulas;
57 : CheckBox* mpBtnInsNotes;
58 : CheckBox* mpBtnInsAttrs;
59 : CheckBox* mpBtnInsObjects;
60 :
61 : CheckBox* mpBtnSkipEmptyCells;
62 : CheckBox* mpBtnTranspose;
63 : CheckBox* mpBtnLink;
64 :
65 : RadioButton* mpRbNoOp;
66 : RadioButton* mpRbAdd;
67 : RadioButton* mpRbSub;
68 : RadioButton* mpRbMul;
69 : RadioButton* mpRbDiv;
70 :
71 : RadioButton* mpRbMoveNone;
72 : RadioButton* mpRbMoveDown;
73 : RadioButton* mpRbMoveRight;
74 :
75 : bool bOtherDoc;
76 : bool bFillMode;
77 : bool bChangeTrack;
78 : bool bMoveDownDisabled;
79 : bool bMoveRightDisabled;
80 :
81 : static bool bPreviousAllCheck;
82 : static sal_uInt16 nPreviousChecks;
83 : static sal_uInt16 nPreviousChecks2;
84 : static sal_uInt16 nPreviousFormulaChecks;
85 : static sal_uInt16 nPreviousMoveMode; // enum InsCellCmd
86 :
87 : void DisableChecks( bool bInsAllChecked = true );
88 : void TestModes();
89 :
90 : // Handler
91 : DECL_LINK( InsAllHdl, void* );
92 : DECL_LINK( LinkBtnHdl, void* );
93 : };
94 :
95 :
96 : #endif // SC_INSCODLG_HXX
97 :
98 :
99 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|