fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / inscodlg.hxx
blob65ea1d9d5f6f1cea1bd9b973acb2a3eaa35622cb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_INSCODLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_INSCODLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
26 #include "global.hxx"
28 #include "scui_def.hxx"
30 class ScInsertContentsDlg : public ModalDialog
32 public:
33 ScInsertContentsDlg( vcl::Window* pParent,
34 InsertDeleteFlags nCheckDefaults = IDF_NONE,
35 const OUString* pStrTitle = NULL );
36 virtual ~ScInsertContentsDlg();
37 virtual void dispose() SAL_OVERRIDE;
39 InsertDeleteFlags GetInsContentsCmdBits() const;
40 sal_uInt16 GetFormulaCmdBits() const;
41 bool IsSkipEmptyCells() const;
42 bool IsTranspose() const;
43 bool IsLink() const;
44 InsCellCmd GetMoveMode();
46 void SetOtherDoc( bool bSet );
47 void SetFillMode( bool bSet );
48 void SetChangeTrack( bool bSet );
49 void SetCellShiftDisabled( int nDisable );
51 private:
52 VclPtr<CheckBox> mpBtnInsAll;
53 VclPtr<CheckBox> mpBtnInsStrings;
54 VclPtr<CheckBox> mpBtnInsNumbers;
55 VclPtr<CheckBox> mpBtnInsDateTime;
56 VclPtr<CheckBox> mpBtnInsFormulas;
57 VclPtr<CheckBox> mpBtnInsNotes;
58 VclPtr<CheckBox> mpBtnInsAttrs;
59 VclPtr<CheckBox> mpBtnInsObjects;
61 VclPtr<CheckBox> mpBtnSkipEmptyCells;
62 VclPtr<CheckBox> mpBtnTranspose;
63 VclPtr<CheckBox> mpBtnLink;
65 VclPtr<RadioButton> mpRbNoOp;
66 VclPtr<RadioButton> mpRbAdd;
67 VclPtr<RadioButton> mpRbSub;
68 VclPtr<RadioButton> mpRbMul;
69 VclPtr<RadioButton> mpRbDiv;
71 VclPtr<RadioButton> mpRbMoveNone;
72 VclPtr<RadioButton> mpRbMoveDown;
73 VclPtr<RadioButton> mpRbMoveRight;
75 VclPtr<PushButton> mpBtnShortCutPasteValuesOnly;
76 VclPtr<PushButton> mpBtnShortCutPasteValuesFormats;
77 VclPtr<PushButton> mpBtnShortCutPasteTranspose;
79 bool bOtherDoc;
80 bool bFillMode;
81 bool bChangeTrack;
82 bool bMoveDownDisabled;
83 bool bMoveRightDisabled;
84 bool bUsedShortCut;
86 InsertDeleteFlags nShortCutInsContentsCmdBits;
87 sal_uInt16 nShortCutFormulaCmdBits;
88 bool bShortCutSkipEmptyCells;
89 bool bShortCutTranspose;
90 bool bShortCutIsLink;
91 InsCellCmd nShortCutMoveMode;
93 static bool bPreviousAllCheck;
94 static InsertDeleteFlags nPreviousChecks;
95 static sal_uInt16 nPreviousChecks2;
96 static sal_uInt16 nPreviousFormulaChecks;
97 static sal_uInt16 nPreviousMoveMode; // enum InsCellCmd
99 void DisableChecks( bool bInsAllChecked = true );
100 void TestModes();
102 // Handler
103 DECL_LINK( InsAllHdl, void* );
104 DECL_LINK( LinkBtnHdl, void* );
105 DECL_LINK( ShortCutHdl, PushButton* );
108 #endif // INCLUDED_SC_SOURCE_UI_INC_INSCODLG_HXX
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */