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 .
22 #include <vcl/weld.hxx>
25 #include "scui_def.hxx"
27 class ScInsertContentsDlg
: public weld::GenericDialogController
30 ScInsertContentsDlg( weld::Window
* pParent
,
31 const OUString
* pStrTitle
);
32 virtual ~ScInsertContentsDlg() override
;
34 InsertDeleteFlags
GetInsContentsCmdBits() const;
35 ScPasteFunc
GetFormulaCmdBits() const;
37 bool IsSkipEmptyCells() const;
38 bool IsTranspose() const;
40 InsCellCmd
GetMoveMode() const;
42 void SetOtherDoc( bool bSet
);
43 void SetFillMode( bool bSet
);
44 void SetChangeTrack( bool bSet
);
45 void SetCellShiftDisabled( CellShiftDisabledFlags nDisable
);
46 void storeFlagsInRegistry();
52 bool bMoveDownDisabled
;
53 bool bMoveRightDisabled
;
54 void SetInsContentsCmdBits(const InsertDeleteFlags eFlags
);
55 void SetFormulaCmdBits(const ScPasteFunc eFlags
);
56 void SetCellCmdFlags(const InsCellCmd eFlags
);
57 void SetContentsFlags(const InsertContentsFlags eFlags
);
59 std::unique_ptr
<weld::CheckButton
> mxBtnInsAll
;
60 std::unique_ptr
<weld::CheckButton
> mxBtnInsStrings
;
61 std::unique_ptr
<weld::CheckButton
> mxBtnInsNumbers
;
62 std::unique_ptr
<weld::CheckButton
> mxBtnInsDateTime
;
63 std::unique_ptr
<weld::CheckButton
> mxBtnInsFormulas
;
64 std::unique_ptr
<weld::CheckButton
> mxBtnInsNotes
;
65 std::unique_ptr
<weld::CheckButton
> mxBtnInsAttrs
;
66 std::unique_ptr
<weld::CheckButton
> mxBtnInsObjects
;
68 std::unique_ptr
<weld::CheckButton
> mxBtnSkipEmptyCells
;
69 std::unique_ptr
<weld::CheckButton
> mxBtnTranspose
;
70 std::unique_ptr
<weld::CheckButton
> mxBtnLink
;
72 std::unique_ptr
<weld::RadioButton
> mxRbNoOp
;
73 std::unique_ptr
<weld::RadioButton
> mxRbAdd
;
74 std::unique_ptr
<weld::RadioButton
> mxRbSub
;
75 std::unique_ptr
<weld::RadioButton
> mxRbMul
;
76 std::unique_ptr
<weld::RadioButton
> mxRbDiv
;
78 std::unique_ptr
<weld::RadioButton
> mxRbMoveNone
;
79 std::unique_ptr
<weld::RadioButton
> mxRbMoveDown
;
80 std::unique_ptr
<weld::RadioButton
> mxRbMoveRight
;
82 std::unique_ptr
<weld::Button
> mxBtnShortCutPasteValuesOnly
;
83 std::unique_ptr
<weld::Button
> mxBtnShortCutPasteValuesFormats
;
84 std::unique_ptr
<weld::Button
> mxBtnShortCutPasteTranspose
;
85 std::unique_ptr
<weld::Button
> mxBtnShortCutPasteFormats
;
86 std::unique_ptr
<weld::Button
> mxOKBtn
;
88 std::unique_ptr
<weld::CheckButton
> mxImmediately
;
90 static InsertDeleteFlags nPreviousChecks
;
91 static InsertContentsFlags nPreviousChecks2
;
92 static ScPasteFunc nPreviousFormulaChecks
;
93 static InsCellCmd nPreviousMoveMode
;
95 void DisableChecks( bool bInsAllChecked
);
99 DECL_LINK( InsAllHdl
, weld::Toggleable
&, void );
100 DECL_LINK( LinkBtnHdl
, weld::Toggleable
&, void );
101 DECL_LINK( ShortCutHdl
, weld::Button
&, void );
102 DECL_LINK( ClickHdl
, weld::Button
&, void );
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */