bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / glosbib.hxx
blob65a1a08f5b360ce4f5d40f3b3f38bf79eb4ca06d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef _GLOSBIB_HXX
21 #define _GLOSBIB_HXX
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>
32 #include <vector>
34 class SwGlossaryHdl;
36 class FEdit : public Edit
38 public:
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
54 String sPath;
55 String sGroupName;
56 String sGroupTitle;
59 class SwGlossaryGroupTLB : public SvTabListBox
61 public:
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
77 FEdit* m_pNameED;
78 ListBox* m_pPathLB;
79 SwGlossaryGroupTLB* m_pGroupTLB;
81 PushButton* m_pNewPB;
82 PushButton* m_pDelPB;
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;
92 String sCreatedGroup;
94 sal_Bool IsDeleteAllowed(const String &rGroup);
96 protected:
97 virtual void Apply();
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 *);
104 public:
105 SwGlossaryGroupDlg(Window * pParent,
106 std::vector<String> const& rPathArr,
107 SwGlossaryHdl *pGlosHdl);
108 ~SwGlossaryGroupDlg();
110 const String& GetCreatedGroupName() const {return sCreatedGroup;}
113 #endif
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */