1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: glosbib.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #ifndef _EDIT_HXX //autogen
35 #include <vcl/edit.hxx>
37 #include <svx/stddlg.hxx>
39 #ifndef _LSTBOX_HXX //autogen
40 #include <vcl/lstbox.hxx>
42 #include <svtools/svtabbx.hxx>
44 #ifndef _BUTTON_HXX //autogen
45 #include <vcl/button.hxx>
47 #include <vcl/fixed.hxx>
52 class FEdit
: public Edit
55 FEdit(Window
* pParent
, const ResId
& rResId
) :
56 Edit(pParent
, rResId
){}
58 virtual void KeyInput( const KeyEvent
& rKEvent
);
60 /* -----------------------------08.02.00 15:04--------------------------------
62 ---------------------------------------------------------------------------*/
63 struct GlosBibUserData
69 class SwGlossaryGroupTLB
: public SvTabListBox
72 SwGlossaryGroupTLB(Window
* pParent
, const ResId
& rResId
) :
73 SvTabListBox(pParent
, rResId
) {}
75 virtual void RequestHelp( const HelpEvent
& rHEvt
);
78 class SwGlossaryGroupDlg
: public SvxStandardDialog
83 SwGlossaryGroupTLB aGroupTLB
;
86 CancelButton aCancelPB
;
95 SvStrings
* pRemovedArr
;
96 SvStrings
* pInsertedArr
;
97 SvStrings
* pRenamedArr
;
99 SwGlossaryHdl
*pGlosHdl
;
101 String sCreatedGroup
;
103 BOOL
IsDeleteAllowed(const String
&rGroup
);
106 virtual void Apply();
107 DECL_LINK( SelectHdl
, SvTabListBox
* );
108 DECL_LINK( NewHdl
, Button
* );
109 DECL_LINK( DeleteHdl
, Button
* );
110 DECL_LINK( ModifyHdl
, Edit
* );
111 DECL_LINK( RenameHdl
, Button
* );
114 SwGlossaryGroupDlg(Window
* pParent
,
115 const SvStrings
* pPathArr
,
116 SwGlossaryHdl
*pGlosHdl
);
117 ~SwGlossaryGroupDlg();
119 const String
& GetCreatedGroupName() const {return sCreatedGroup
;}