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 // MARKER(update_precomp.py): autogen include statement, do not remove 23 #include "precompiled_sw.hxx" 24 25 #ifdef SW_DLLIMPLEMENTATION 26 #undef SW_DLLIMPLEMENTATION 27 #endif 28 29 #include "swtypes.hxx" 30 31 #include "selglos.hxx" 32 33 #include "selglos.hrc" 34 #include "dochdl.hrc" 35 #include <vcl/msgbox.hxx> 36 37 // STATIC DATA ----------------------------------------------------------- 38 39 40 // CTOR / DTOR ----------------------------------------------------------- 41 42 SwSelGlossaryDlg::SwSelGlossaryDlg(Window * pParent, const String &rShortName) 43 : ModalDialog(pParent, SW_RES(DLG_SEL_GLOS)), 44 aGlosBox(this, SW_RES( LB_GLOS)), 45 aGlosFL(this, SW_RES( FL_GLOS)), 46 aOKBtn(this, SW_RES( BT_OK)), 47 aCancelBtn(this, SW_RES( BT_CANCEL)), 48 aHelpBtn(this, SW_RES(BT_HELP)) 49 { 50 String sText(aGlosFL.GetText()); 51 sText += rShortName; 52 aGlosFL.SetText(sText); 53 FreeResource(); 54 55 aGlosBox.SetDoubleClickHdl(LINK(this, SwSelGlossaryDlg, DoubleClickHdl)); 56 } 57 58 /*-----------------25.02.94 20:50------------------- 59 dtor überladen 60 --------------------------------------------------*/ 61 SwSelGlossaryDlg::~SwSelGlossaryDlg() {} 62 /* -----------------25.10.99 08:33------------------- 63 64 --------------------------------------------------*/ 65 IMPL_LINK(SwSelGlossaryDlg, DoubleClickHdl, ListBox*, /*pBox*/) 66 { 67 EndDialog(RET_OK); 68 return 0; 69 } 70 71 /* vim: set noet sw=4 ts=4: */ 72