LibreOffice Module sc (master)  1
inscodlg.hxx
Go to the documentation of this file.
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 INCLUDED_SC_SOURCE_UI_INC_INSCODLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_INSCODLG_HXX
22 
23 #include <vcl/weld.hxx>
24 #include <global.hxx>
25 
26 #include "scui_def.hxx"
27 
29 {
30 public:
32  const OUString* pStrTitle );
33  virtual ~ScInsertContentsDlg() override;
34 
37 
38  bool IsSkipEmptyCells() const;
39  bool IsTranspose() const;
40  bool IsLink() const;
41  InsCellCmd GetMoveMode() const;
42 
43  void SetOtherDoc( bool bSet );
44  void SetFillMode( bool bSet );
45  void SetChangeTrack( bool bSet );
47 
48 private:
49  bool bOtherDoc;
50  bool bFillMode;
54  void SetInsContentsCmdBits(const InsertDeleteFlags eFlags);
55  void SetFormulaCmdBits(const ScPasteFunc eFlags);
56  void SetCellCmdFlags(const InsCellCmd eFlags);
57  void SetContentsFlags(const InsertContentsFlags eFlags);
58 
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;
67 
68  std::unique_ptr<weld::CheckButton> mxBtnSkipEmptyCells;
69  std::unique_ptr<weld::CheckButton> mxBtnTranspose;
70  std::unique_ptr<weld::CheckButton> mxBtnLink;
71 
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;
77 
78  std::unique_ptr<weld::RadioButton> mxRbMoveNone;
79  std::unique_ptr<weld::RadioButton> mxRbMoveDown;
80  std::unique_ptr<weld::RadioButton> mxRbMoveRight;
81 
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 
87  std::unique_ptr<weld::CheckButton> mxImmediately;
88 
89  static bool bPreviousAllCheck;
94 
95  void DisableChecks( bool bInsAllChecked );
96  void TestModes();
97 
98  // Handler
99  DECL_LINK( InsAllHdl, weld::ToggleButton&, void );
100  DECL_LINK( LinkBtnHdl, weld::ToggleButton&, void );
101  DECL_LINK( ShortCutHdl, weld::Button&, void );
102 };
103 
104 #endif // INCLUDED_SC_SOURCE_UI_INC_INSCODLG_HXX
105 
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static ScPasteFunc nPreviousFormulaChecks
Definition: inscodlg.hxx:92
InsertDeleteFlags GetInsContentsCmdBits() const
Definition: inscodlg.cxx:80
InsertContentsFlags
Definition: scui_def.hxx:32
std::unique_ptr< weld::CheckButton > mxBtnTranspose
Definition: inscodlg.hxx:69
std::unique_ptr< weld::CheckButton > mxBtnLink
Definition: inscodlg.hxx:70
void SetChangeTrack(bool bSet)
Definition: inscodlg.cxx:266
ScInsertContentsDlg(weld::Window *pParent, const OUString *pStrTitle)
Definition: inscodlg.cxx:29
void SetCellShiftDisabled(CellShiftDisabledFlags nDisable)
Definition: inscodlg.cxx:277
static InsCellCmd nPreviousMoveMode
Definition: inscodlg.hxx:93
std::unique_ptr< weld::Button > mxBtnShortCutPasteValuesFormats
Definition: inscodlg.hxx:83
bool IsSkipEmptyCells() const
Definition: inscodlg.cxx:160
DECL_LINK(InsAllHdl, weld::ToggleButton &, void)
std::unique_ptr< weld::CheckButton > mxBtnSkipEmptyCells
Definition: inscodlg.hxx:68
static InsertContentsFlags nPreviousChecks2
Definition: inscodlg.hxx:91
bool IsTranspose() const
Definition: inscodlg.cxx:165
InsCellCmd GetMoveMode() const
Definition: inscodlg.cxx:150
ScPasteFunc
Definition: global.hxx:191
void SetFillMode(bool bSet)
Definition: inscodlg.cxx:255
bool IsLink() const
Definition: inscodlg.cxx:170
void SetOtherDoc(bool bSet)
Definition: inscodlg.cxx:244
ScPasteFunc GetFormulaCmdBits() const
Definition: inscodlg.cxx:354
std::unique_ptr< weld::RadioButton > mxRbMul
Definition: inscodlg.hxx:75
std::unique_ptr< weld::CheckButton > mxBtnInsAttrs
Definition: inscodlg.hxx:65
InsertDeleteFlags
Definition: global.hxx:160
std::unique_ptr< weld::RadioButton > mxRbMoveNone
Definition: inscodlg.hxx:78
std::unique_ptr< weld::RadioButton > mxRbMoveDown
Definition: inscodlg.hxx:79
void SetInsContentsCmdBits(const InsertDeleteFlags eFlags)
Definition: inscodlg.cxx:104
std::unique_ptr< weld::CheckButton > mxBtnInsObjects
Definition: inscodlg.hxx:66
std::unique_ptr< weld::RadioButton > mxRbAdd
Definition: inscodlg.hxx:73
std::unique_ptr< weld::CheckButton > mxBtnInsDateTime
Definition: inscodlg.hxx:62
std::unique_ptr< weld::RadioButton > mxRbSub
Definition: inscodlg.hxx:74
std::unique_ptr< weld::Button > mxBtnShortCutPasteValuesOnly
Definition: inscodlg.hxx:82
static InsertDeleteFlags nPreviousChecks
Definition: inscodlg.hxx:90
void SetFormulaCmdBits(const ScPasteFunc eFlags)
Definition: inscodlg.cxx:117
void SetContentsFlags(const InsertContentsFlags eFlags)
Definition: inscodlg.cxx:143
std::unique_ptr< weld::CheckButton > mxImmediately
Definition: inscodlg.hxx:87
InsCellCmd
Definition: global.hxx:301
std::unique_ptr< weld::CheckButton > mxBtnInsNumbers
Definition: inscodlg.hxx:61
std::unique_ptr< weld::CheckButton > mxBtnInsNotes
Definition: inscodlg.hxx:64
std::unique_ptr< weld::CheckButton > mxBtnInsFormulas
Definition: inscodlg.hxx:63
std::unique_ptr< weld::Button > mxBtnShortCutPasteFormats
Definition: inscodlg.hxx:85
std::unique_ptr< weld::CheckButton > mxBtnInsStrings
Definition: inscodlg.hxx:60
std::unique_ptr< weld::CheckButton > mxBtnInsAll
Definition: inscodlg.hxx:59
std::unique_ptr< weld::RadioButton > mxRbDiv
Definition: inscodlg.hxx:76
std::unique_ptr< weld::RadioButton > mxRbMoveRight
Definition: inscodlg.hxx:80
std::unique_ptr< weld::Button > mxBtnShortCutPasteTranspose
Definition: inscodlg.hxx:84
virtual ~ScInsertContentsDlg() override
Definition: inscodlg.cxx:333
void DisableChecks(bool bInsAllChecked)
Definition: inscodlg.cxx:175
void SetCellCmdFlags(const InsCellCmd eFlags)
Definition: inscodlg.cxx:129
static bool bPreviousAllCheck
Definition: inscodlg.hxx:89
std::unique_ptr< weld::RadioButton > mxRbNoOp
Definition: inscodlg.hxx:72
CellShiftDisabledFlags
Definition: scui_def.hxx:42