1*38d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*38d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*38d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*38d50f7bSAndrew Rist * distributed with this work for additional information 6*38d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*38d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*38d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 9*38d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 10*38d50f7bSAndrew Rist * 11*38d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*38d50f7bSAndrew Rist * 13*38d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*38d50f7bSAndrew Rist * software distributed under the License is distributed on an 15*38d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*38d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 17*38d50f7bSAndrew Rist * specific language governing permissions and limitations 18*38d50f7bSAndrew Rist * under the License. 19*38d50f7bSAndrew Rist * 20*38d50f7bSAndrew Rist *************************************************************/ 21*38d50f7bSAndrew Rist 22*38d50f7bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SC_INSCODLG_HXX 25cdf0e10cSrcweir #define SC_INSCODLG_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <vcl/dialog.hxx> 28cdf0e10cSrcweir #include <vcl/button.hxx> 29cdf0e10cSrcweir #include <vcl/fixed.hxx> 30cdf0e10cSrcweir #include "global.hxx" 31cdf0e10cSrcweir 32cdf0e10cSrcweir //------------------------------------------------------------------------ 33cdf0e10cSrcweir //CHINA001 #define INS_CONT_NOEMPTY 0x0100 34cdf0e10cSrcweir //CHINA001 #define INS_CONT_TRANS 0x0200 35cdf0e10cSrcweir //CHINA001 #define INS_CONT_LINK 0x0400 36cdf0e10cSrcweir //CHINA001 37cdf0e10cSrcweir //CHINA001 #define SC_CELL_SHIFT_DISABLE_DOWN 0x01 38cdf0e10cSrcweir //CHINA001 #define SC_CELL_SHIFT_DISABLE_RIGHT 0x02 39cdf0e10cSrcweir #include "scui_def.hxx" 40cdf0e10cSrcweir 41cdf0e10cSrcweir class ScInsertContentsDlg : public ModalDialog 42cdf0e10cSrcweir { 43cdf0e10cSrcweir public: 44cdf0e10cSrcweir ScInsertContentsDlg( Window* pParent, 45cdf0e10cSrcweir sal_uInt16 nCheckDefaults = 0, 46cdf0e10cSrcweir const String* pStrTitle = NULL ); 47cdf0e10cSrcweir ~ScInsertContentsDlg(); 48cdf0e10cSrcweir 49cdf0e10cSrcweir sal_uInt16 GetInsContentsCmdBits() const; 50cdf0e10cSrcweir sal_uInt16 GetFormulaCmdBits() const; IsSkipEmptyCells() const51cdf0e10cSrcweir sal_Bool IsSkipEmptyCells() const {return aBtnSkipEmptyCells.IsChecked();} IsTranspose() const52cdf0e10cSrcweir sal_Bool IsTranspose() const {return aBtnTranspose.IsChecked();} IsLink() const53cdf0e10cSrcweir sal_Bool IsLink() const {return aBtnLink.IsChecked();} 54cdf0e10cSrcweir InsCellCmd GetMoveMode(); 55cdf0e10cSrcweir 56cdf0e10cSrcweir void SetOtherDoc( sal_Bool bSet ); 57cdf0e10cSrcweir void SetFillMode( sal_Bool bSet ); 58cdf0e10cSrcweir void SetChangeTrack( sal_Bool bSet ); 59cdf0e10cSrcweir void SetCellShiftDisabled( int nDisable ); 60cdf0e10cSrcweir 61cdf0e10cSrcweir private: 62cdf0e10cSrcweir FixedLine aFlFrame; 63cdf0e10cSrcweir CheckBox aBtnInsAll; 64cdf0e10cSrcweir CheckBox aBtnInsStrings; 65cdf0e10cSrcweir CheckBox aBtnInsNumbers; 66cdf0e10cSrcweir CheckBox aBtnInsDateTime; 67cdf0e10cSrcweir CheckBox aBtnInsFormulas; 68cdf0e10cSrcweir CheckBox aBtnInsNotes; 69cdf0e10cSrcweir CheckBox aBtnInsAttrs; 70cdf0e10cSrcweir CheckBox aBtnInsObjects; 71cdf0e10cSrcweir 72cdf0e10cSrcweir FixedLine aFlSep1; 73cdf0e10cSrcweir FixedLine aFlOptions; 74cdf0e10cSrcweir CheckBox aBtnSkipEmptyCells; 75cdf0e10cSrcweir CheckBox aBtnTranspose; 76cdf0e10cSrcweir CheckBox aBtnLink; 77cdf0e10cSrcweir 78cdf0e10cSrcweir FixedLine aFlOperation; 79cdf0e10cSrcweir RadioButton aRbNoOp; 80cdf0e10cSrcweir RadioButton aRbAdd; 81cdf0e10cSrcweir RadioButton aRbSub; 82cdf0e10cSrcweir RadioButton aRbMul; 83cdf0e10cSrcweir RadioButton aRbDiv; 84cdf0e10cSrcweir 85cdf0e10cSrcweir FixedLine aFlSep2; 86cdf0e10cSrcweir FixedLine aFlMove; 87cdf0e10cSrcweir RadioButton aRbMoveNone; 88cdf0e10cSrcweir RadioButton aRbMoveDown; 89cdf0e10cSrcweir RadioButton aRbMoveRight; 90cdf0e10cSrcweir 91cdf0e10cSrcweir OKButton aBtnOk; 92cdf0e10cSrcweir CancelButton aBtnCancel; 93cdf0e10cSrcweir HelpButton aBtnHelp; 94cdf0e10cSrcweir 95cdf0e10cSrcweir sal_Bool bOtherDoc; 96cdf0e10cSrcweir sal_Bool bFillMode; 97cdf0e10cSrcweir sal_Bool bChangeTrack; 98cdf0e10cSrcweir sal_Bool bMoveDownDisabled; 99cdf0e10cSrcweir sal_Bool bMoveRightDisabled; 100cdf0e10cSrcweir 101cdf0e10cSrcweir static sal_Bool bPreviousAllCheck; 102cdf0e10cSrcweir static sal_uInt16 nPreviousChecks; 103cdf0e10cSrcweir static sal_uInt16 nPreviousChecks2; 104cdf0e10cSrcweir static sal_uInt16 nPreviousFormulaChecks; 105cdf0e10cSrcweir static sal_uInt16 nPreviousMoveMode; // enum InsCellCmd 106cdf0e10cSrcweir 107cdf0e10cSrcweir void DisableChecks( sal_Bool bInsAllChecked = sal_True ); 108cdf0e10cSrcweir void TestModes(); 109cdf0e10cSrcweir 110cdf0e10cSrcweir // Handler 111cdf0e10cSrcweir DECL_LINK( InsAllHdl, void* ); 112cdf0e10cSrcweir DECL_LINK( LinkBtnHdl, void* ); 113cdf0e10cSrcweir }; 114cdf0e10cSrcweir 115cdf0e10cSrcweir 116cdf0e10cSrcweir #endif // SC_INSCODLG_HXX 117cdf0e10cSrcweir 118cdf0e10cSrcweir 119