update dev300-m58
[ooovba.git] / sw / source / ui / inc / glosbib.hxx
blob20b1a9981f6bc84d460c8ef864b9a2b899d1eb81
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: glosbib.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
31 #ifndef _GLOSBIB_HXX
32 #define _GLOSBIB_HXX
34 #ifndef _EDIT_HXX //autogen
35 #include <vcl/edit.hxx>
36 #endif
37 #include <svx/stddlg.hxx>
39 #ifndef _LSTBOX_HXX //autogen
40 #include <vcl/lstbox.hxx>
41 #endif
42 #include <svtools/svtabbx.hxx>
44 #ifndef _BUTTON_HXX //autogen
45 #include <vcl/button.hxx>
46 #endif
47 #include <vcl/fixed.hxx>
49 class SwGlossaryHdl;
50 class SvStrings;
52 class FEdit : public Edit
54 public:
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
65 String sPath;
66 String sGroupName;
67 String sGroupTitle;
69 class SwGlossaryGroupTLB : public SvTabListBox
71 public:
72 SwGlossaryGroupTLB(Window* pParent, const ResId& rResId) :
73 SvTabListBox(pParent, rResId) {}
75 virtual void RequestHelp( const HelpEvent& rHEvt );
78 class SwGlossaryGroupDlg : public SvxStandardDialog
81 FEdit aNameED;
82 ListBox aPathLB;
83 SwGlossaryGroupTLB aGroupTLB;
85 OKButton aOkPB;
86 CancelButton aCancelPB;
87 HelpButton aHelpPB;
88 PushButton aNewPB;
89 PushButton aDelPB;
90 PushButton aRenamePB;
91 FixedText aBibFT;
92 FixedText aPathFT;
93 FixedText aSelectFT;
95 SvStrings* pRemovedArr;
96 SvStrings* pInsertedArr;
97 SvStrings* pRenamedArr;
99 SwGlossaryHdl *pGlosHdl;
101 String sCreatedGroup;
103 BOOL IsDeleteAllowed(const String &rGroup);
105 protected:
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* );
113 public:
114 SwGlossaryGroupDlg(Window * pParent,
115 const SvStrings* pPathArr,
116 SwGlossaryHdl *pGlosHdl);
117 ~SwGlossaryGroupDlg();
119 const String& GetCreatedGroupName() const {return sCreatedGroup;}
123 #endif