1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
23 #include <vcl/edit.hxx>
24 #include <svx/stddlg.hxx>
26 #include <vcl/lstbox.hxx>
27 #include <svtools/svtabbx.hxx>
29 #include <vcl/button.hxx>
30 #include <vcl/fixed.hxx>
36 class FEdit
: public Edit
39 FEdit(Window
* pParent
, const ResId
& rResId
)
40 : Edit(pParent
, rResId
)
44 FEdit(Window
* pParent
)
45 : Edit(pParent
, WB_LEFT
|WB_VCENTER
|WB_BORDER
|WB_3DLOOK
)
49 virtual void KeyInput( const KeyEvent
& rKEvent
);
52 struct GlosBibUserData
59 class SwGlossaryGroupTLB
: public SvTabListBox
62 SwGlossaryGroupTLB(Window
* pParent
, const ResId
& rResId
)
63 : SvTabListBox(pParent
, rResId
)
67 SwGlossaryGroupTLB(Window
* pParent
)
68 : SvTabListBox(pParent
, WB_BORDER
|WB_HSCROLL
|WB_CLIPCHILDREN
|WB_SORT
)
72 virtual void RequestHelp( const HelpEvent
& rHEvt
);
75 class SwGlossaryGroupDlg
: public SvxStandardDialog
79 SwGlossaryGroupTLB
* m_pGroupTLB
;
83 PushButton
* m_pRenamePB
;
85 typedef std::vector
< OUString
> OUVector_t
;
86 OUVector_t m_RemovedArr
;
87 OUVector_t m_InsertedArr
;
88 OUVector_t m_RenamedArr
;
90 SwGlossaryHdl
*pGlosHdl
;
94 sal_Bool
IsDeleteAllowed(const String
&rGroup
);
98 DECL_LINK( SelectHdl
, SvTabListBox
* );
99 DECL_LINK(NewHdl
, void *);
100 DECL_LINK( DeleteHdl
, Button
* );
101 DECL_LINK(ModifyHdl
, void *);
102 DECL_LINK(RenameHdl
, void *);
105 SwGlossaryGroupDlg(Window
* pParent
,
106 std::vector
<String
> const& rPathArr
,
107 SwGlossaryHdl
*pGlosHdl
);
108 ~SwGlossaryGroupDlg();
110 const String
& GetCreatedGroupName() const {return sCreatedGroup
;}
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */