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{
29public:
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 );
47
48private:
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 std::unique_ptr<weld::Button> mxOKBtn;
87
88 std::unique_ptr<weld::CheckButton> mxImmediately;
89
94
95 void DisableChecks( bool bInsAllChecked );
96 void TestModes();
97
98 // Handler
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 );
103};
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > mxBtnInsNotes
Definition: inscodlg.hxx:64
void SetCellShiftDisabled(CellShiftDisabledFlags nDisable)
Definition: inscodlg.cxx:401
static InsertDeleteFlags nPreviousChecks
Definition: inscodlg.hxx:90
DECL_LINK(ClickHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > mxRbDiv
Definition: inscodlg.hxx:76
void DisableChecks(bool bInsAllChecked)
Definition: inscodlg.cxx:299
ScInsertContentsDlg(weld::Window *pParent, const OUString *pStrTitle)
Definition: inscodlg.cxx:76
void SetInsContentsCmdBits(const InsertDeleteFlags eFlags)
Definition: inscodlg.cxx:228
static ScPasteFunc nPreviousFormulaChecks
Definition: inscodlg.hxx:92
std::unique_ptr< weld::CheckButton > mxBtnInsAll
Definition: inscodlg.hxx:59
bool IsLink() const
Definition: inscodlg.cxx:294
std::unique_ptr< weld::CheckButton > mxBtnLink
Definition: inscodlg.hxx:70
std::unique_ptr< weld::Button > mxBtnShortCutPasteTranspose
Definition: inscodlg.hxx:84
std::unique_ptr< weld::RadioButton > mxRbMul
Definition: inscodlg.hxx:75
std::unique_ptr< weld::CheckButton > mxBtnInsDateTime
Definition: inscodlg.hxx:62
InsCellCmd GetMoveMode() const
Definition: inscodlg.cxx:274
std::unique_ptr< weld::CheckButton > mxBtnInsNumbers
Definition: inscodlg.hxx:61
DECL_LINK(LinkBtnHdl, weld::Toggleable &, void)
void SetFormulaCmdBits(const ScPasteFunc eFlags)
Definition: inscodlg.cxx:241
virtual ~ScInsertContentsDlg() override
Definition: inscodlg.cxx:468
std::unique_ptr< weld::Button > mxBtnShortCutPasteFormats
Definition: inscodlg.hxx:85
InsertDeleteFlags GetInsContentsCmdBits() const
Definition: inscodlg.cxx:204
std::unique_ptr< weld::Button > mxBtnShortCutPasteValuesFormats
Definition: inscodlg.hxx:83
std::unique_ptr< weld::RadioButton > mxRbMoveRight
Definition: inscodlg.hxx:80
std::unique_ptr< weld::Button > mxBtnShortCutPasteValuesOnly
Definition: inscodlg.hxx:82
std::unique_ptr< weld::CheckButton > mxImmediately
Definition: inscodlg.hxx:88
DECL_LINK(InsAllHdl, weld::Toggleable &, void)
static InsCellCmd nPreviousMoveMode
Definition: inscodlg.hxx:93
void SetCellCmdFlags(const InsCellCmd eFlags)
Definition: inscodlg.cxx:253
bool IsSkipEmptyCells() const
Definition: inscodlg.cxx:284
void SetChangeTrack(bool bSet)
Definition: inscodlg.cxx:390
std::unique_ptr< weld::Button > mxOKBtn
Definition: inscodlg.hxx:86
std::unique_ptr< weld::RadioButton > mxRbAdd
Definition: inscodlg.hxx:73
std::unique_ptr< weld::RadioButton > mxRbMoveDown
Definition: inscodlg.hxx:79
std::unique_ptr< weld::RadioButton > mxRbMoveNone
Definition: inscodlg.hxx:78
std::unique_ptr< weld::RadioButton > mxRbNoOp
Definition: inscodlg.hxx:72
static InsertContentsFlags nPreviousChecks2
Definition: inscodlg.hxx:91
ScPasteFunc GetFormulaCmdBits() const
Definition: inscodlg.cxx:489
void SetContentsFlags(const InsertContentsFlags eFlags)
Definition: inscodlg.cxx:267
std::unique_ptr< weld::RadioButton > mxRbSub
Definition: inscodlg.hxx:74
bool IsTranspose() const
Definition: inscodlg.cxx:289
void SetFillMode(bool bSet)
Definition: inscodlg.cxx:379
void SetOtherDoc(bool bSet)
Definition: inscodlg.cxx:368
std::unique_ptr< weld::CheckButton > mxBtnTranspose
Definition: inscodlg.hxx:69
std::unique_ptr< weld::CheckButton > mxBtnInsFormulas
Definition: inscodlg.hxx:63
std::unique_ptr< weld::CheckButton > mxBtnSkipEmptyCells
Definition: inscodlg.hxx:68
DECL_LINK(ShortCutHdl, weld::Button &, void)
void storeFlagsInRegistry()
Definition: inscodlg.cxx:33
std::unique_ptr< weld::CheckButton > mxBtnInsStrings
Definition: inscodlg.hxx:60
std::unique_ptr< weld::CheckButton > mxBtnInsObjects
Definition: inscodlg.hxx:66
std::unique_ptr< weld::CheckButton > mxBtnInsAttrs
Definition: inscodlg.hxx:65
ScPasteFunc
Definition: global.hxx:179
InsCellCmd
Definition: global.hxx:288
InsertDeleteFlags
Definition: global.hxx:148
InsertContentsFlags
Definition: scui_def.hxx:31
CellShiftDisabledFlags
Definition: scui_def.hxx:41