1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_sw.hxx" 26 27 #ifdef SW_DLLIMPLEMENTATION 28 #undef SW_DLLIMPLEMENTATION 29 #endif 30 31 32 #include "swtypes.hxx" 33 #include "hintids.hxx" 34 35 #include "dialog.hrc" 36 #include "abstract.hxx" 37 #include "abstract.hrc" 38 39 40 /*-----------------22.02.97 15.32------------------- 41 42 --------------------------------------------------*/ 43 44 SwInsertAbstractDlg::SwInsertAbstractDlg( Window* pParent ) : 45 SfxModalDialog(pParent, SW_RES(DLG_INSERT_ABSTRACT)), 46 aFL (this, SW_RES(FL_1 )), 47 aLevelFT(this, SW_RES(FT_LEVEL )), 48 aLevelNF(this, SW_RES(NF_LEVEL )), 49 aParaFT (this, SW_RES(FT_PARA )), 50 aParaNF (this, SW_RES(NF_PARA )), 51 aDescFT (this, SW_RES(FT_DESC )), 52 aOkPB (this, SW_RES(PB_OK )), 53 aCancelPB (this, SW_RES(PB_CANCEL )), 54 aHelpPB (this, SW_RES(PB_HELP )) 55 { 56 FreeResource(); 57 } 58 59 /*-----------------22.02.97 15.32------------------- 60 61 --------------------------------------------------*/ 62 63 SwInsertAbstractDlg::~SwInsertAbstractDlg() 64 { 65 } 66 67 /*-----------------22.02.97 15.34------------------- 68 69 --------------------------------------------------*/ 70 71 sal_uInt8 SwInsertAbstractDlg::GetLevel() const 72 { 73 return static_cast< sal_uInt8 >(aLevelNF.GetValue() - 1); 74 } 75 /*-----------------22.02.97 15.34------------------- 76 77 --------------------------------------------------*/ 78 79 sal_uInt8 SwInsertAbstractDlg::GetPara() const 80 { 81 return (sal_uInt8) aParaNF.GetValue(); 82 } 83 84 85 86 87 88 89