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 #pragma once
21 
22 #include <vcl/weld.hxx>
23 #include <global.hxx>
24 
25 #include "scui_def.hxx"
26 
28 {
29 public:
31  const OUString* pStrTitle );
32  virtual ~ScInsertContentsDlg() override;
33 
36 
37  bool IsSkipEmptyCells() const;
38  bool IsTranspose() const;
39  bool IsLink() const;
40  InsCellCmd GetMoveMode() const;
41 
42  void SetOtherDoc( bool bSet );
43  void SetFillMode( bool bSet );
44  void SetChangeTrack( bool bSet );
46 
47 private:
48  bool bOtherDoc;
49  bool bFillMode;
53  void SetInsContentsCmdBits(const InsertDeleteFlags eFlags);
54  void SetFormulaCmdBits(const ScPasteFunc eFlags);
55  void SetCellCmdFlags(const InsCellCmd eFlags);
56  void SetContentsFlags(const InsertContentsFlags eFlags);
57 
58  std::unique_ptr<weld::CheckButton> mxBtnInsAll;
59  std::unique_ptr<weld::CheckButton> mxBtnInsStrings;
60  std::unique_ptr<weld::CheckButton> mxBtnInsNumbers;
61  std::unique_ptr<weld::CheckButton> mxBtnInsDateTime;
62  std::unique_ptr<weld::CheckButton> mxBtnInsFormulas;
63  std::unique_ptr<weld::CheckButton> mxBtnInsNotes;
64  std::unique_ptr<weld::CheckButton> mxBtnInsAttrs;
65  std::unique_ptr<weld::CheckButton> mxBtnInsObjects;
66 
67  std::unique_ptr<weld::CheckButton> mxBtnSkipEmptyCells;
68  std::unique_ptr<weld::CheckButton> mxBtnTranspose;
69  std::unique_ptr<weld::CheckButton> mxBtnLink;
70 
71  std::unique_ptr<weld::RadioButton> mxRbNoOp;
72  std::unique_ptr<weld::RadioButton> mxRbAdd;
73  std::unique_ptr<weld::RadioButton> mxRbSub;
74  std::unique_ptr<weld::RadioButton> mxRbMul;
75  std::unique_ptr<weld::RadioButton> mxRbDiv;
76 
77  std::unique_ptr<weld::RadioButton> mxRbMoveNone;
78  std::unique_ptr<weld::RadioButton> mxRbMoveDown;
79  std::unique_ptr<weld::RadioButton> mxRbMoveRight;
80 
81  std::unique_ptr<weld::Button> mxBtnShortCutPasteValuesOnly;
82  std::unique_ptr<weld::Button> mxBtnShortCutPasteValuesFormats;
83  std::unique_ptr<weld::Button> mxBtnShortCutPasteTranspose;
84  std::unique_ptr<weld::Button> mxBtnShortCutPasteFormats;
85 
86  std::unique_ptr<weld::CheckButton> mxImmediately;
87 
92 
93  void DisableChecks( bool bInsAllChecked );
94  void TestModes();
95 
96  // Handler
97  DECL_LINK( InsAllHdl, weld::Toggleable&, void );
98  DECL_LINK( LinkBtnHdl, weld::Toggleable&, void );
99  DECL_LINK( ShortCutHdl, weld::Button&, void );
100 };
101 
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static ScPasteFunc nPreviousFormulaChecks
Definition: inscodlg.hxx:90
InsertDeleteFlags GetInsContentsCmdBits() const
Definition: inscodlg.cxx:79
InsertContentsFlags
Definition: scui_def.hxx:31
std::unique_ptr< weld::CheckButton > mxBtnTranspose
Definition: inscodlg.hxx:68
std::unique_ptr< weld::CheckButton > mxBtnLink
Definition: inscodlg.hxx:69
void SetChangeTrack(bool bSet)
Definition: inscodlg.cxx:265
ScInsertContentsDlg(weld::Window *pParent, const OUString *pStrTitle)
Definition: inscodlg.cxx:29
void SetCellShiftDisabled(CellShiftDisabledFlags nDisable)
Definition: inscodlg.cxx:276
static InsCellCmd nPreviousMoveMode
Definition: inscodlg.hxx:91
std::unique_ptr< weld::Button > mxBtnShortCutPasteValuesFormats
Definition: inscodlg.hxx:82
bool IsSkipEmptyCells() const
Definition: inscodlg.cxx:159
DECL_LINK(InsAllHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > mxBtnSkipEmptyCells
Definition: inscodlg.hxx:67
static InsertContentsFlags nPreviousChecks2
Definition: inscodlg.hxx:89
bool IsTranspose() const
Definition: inscodlg.cxx:164
InsCellCmd GetMoveMode() const
Definition: inscodlg.cxx:149
ScPasteFunc
Definition: global.hxx:189
void SetFillMode(bool bSet)
Definition: inscodlg.cxx:254
bool IsLink() const
Definition: inscodlg.cxx:169
void SetOtherDoc(bool bSet)
Definition: inscodlg.cxx:243
ScPasteFunc GetFormulaCmdBits() const
Definition: inscodlg.cxx:353
std::unique_ptr< weld::RadioButton > mxRbMul
Definition: inscodlg.hxx:74
std::unique_ptr< weld::CheckButton > mxBtnInsAttrs
Definition: inscodlg.hxx:64
InsertDeleteFlags
Definition: global.hxx:158
std::unique_ptr< weld::RadioButton > mxRbMoveNone
Definition: inscodlg.hxx:77
std::unique_ptr< weld::RadioButton > mxRbMoveDown
Definition: inscodlg.hxx:78
void SetInsContentsCmdBits(const InsertDeleteFlags eFlags)
Definition: inscodlg.cxx:103
std::unique_ptr< weld::CheckButton > mxBtnInsObjects
Definition: inscodlg.hxx:65
std::unique_ptr< weld::RadioButton > mxRbAdd
Definition: inscodlg.hxx:72
std::unique_ptr< weld::CheckButton > mxBtnInsDateTime
Definition: inscodlg.hxx:61
std::unique_ptr< weld::RadioButton > mxRbSub
Definition: inscodlg.hxx:73
std::unique_ptr< weld::Button > mxBtnShortCutPasteValuesOnly
Definition: inscodlg.hxx:81
static InsertDeleteFlags nPreviousChecks
Definition: inscodlg.hxx:88
void SetFormulaCmdBits(const ScPasteFunc eFlags)
Definition: inscodlg.cxx:116
void SetContentsFlags(const InsertContentsFlags eFlags)
Definition: inscodlg.cxx:142
std::unique_ptr< weld::CheckButton > mxImmediately
Definition: inscodlg.hxx:86
InsCellCmd
Definition: global.hxx:299
std::unique_ptr< weld::CheckButton > mxBtnInsNumbers
Definition: inscodlg.hxx:60
std::unique_ptr< weld::CheckButton > mxBtnInsNotes
Definition: inscodlg.hxx:63
std::unique_ptr< weld::CheckButton > mxBtnInsFormulas
Definition: inscodlg.hxx:62
std::unique_ptr< weld::Button > mxBtnShortCutPasteFormats
Definition: inscodlg.hxx:84
std::unique_ptr< weld::CheckButton > mxBtnInsStrings
Definition: inscodlg.hxx:59
std::unique_ptr< weld::CheckButton > mxBtnInsAll
Definition: inscodlg.hxx:58
std::unique_ptr< weld::RadioButton > mxRbDiv
Definition: inscodlg.hxx:75
std::unique_ptr< weld::RadioButton > mxRbMoveRight
Definition: inscodlg.hxx:79
std::unique_ptr< weld::Button > mxBtnShortCutPasteTranspose
Definition: inscodlg.hxx:83
virtual ~ScInsertContentsDlg() override
Definition: inscodlg.cxx:332
void DisableChecks(bool bInsAllChecked)
Definition: inscodlg.cxx:174
void SetCellCmdFlags(const InsCellCmd eFlags)
Definition: inscodlg.cxx:128
std::unique_ptr< weld::RadioButton > mxRbNoOp
Definition: inscodlg.hxx:71
CellShiftDisabledFlags
Definition: scui_def.hxx:41