nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / glosbib.hxx
bloba012381ce25d22219570fc804923d290b11888c2
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 INCLUDED_SW_SOURCE_UIBASE_INC_GLOSBIB_HXX
21 #define INCLUDED_SW_SOURCE_UIBASE_INC_GLOSBIB_HXX
23 #include <sfx2/basedlgs.hxx>
24 #include <rtl/ustring.hxx>
25 #include <vcl/weld.hxx>
27 #include <vector>
29 class SwGlossaryHdl;
31 struct GlosBibUserData
33 OUString sPath;
34 OUString sGroupName;
35 OUString sGroupTitle;
38 class SwGlossaryGroupDlg final : public SfxDialogController
40 std::vector<OUString> m_RemovedArr;
41 std::vector<OUString> m_InsertedArr;
42 std::vector<OUString> m_RenamedArr;
44 weld::Window* m_pParent;
45 SwGlossaryHdl* pGlosHdl;
47 OUString sCreatedGroup;
49 std::unique_ptr<weld::Entry> m_xNameED;
50 std::unique_ptr<weld::ComboBox> m_xPathLB;
51 std::unique_ptr<weld::TreeView> m_xGroupTLB;
53 std::unique_ptr<weld::Button> m_xNewPB;
54 std::unique_ptr<weld::Button> m_xDelPB;
55 std::unique_ptr<weld::Button> m_xRenamePB;
57 bool IsDeleteAllowed(const OUString& rGroup);
59 void Apply();
60 DECL_LINK(SelectHdl, weld::TreeView&, void);
61 DECL_LINK(NewHdl, weld::Button&, void);
62 DECL_LINK(DeleteHdl, weld::Button&, void);
63 DECL_LINK(ModifyHdl, weld::Entry&, void);
64 DECL_LINK(ModifyListBoxHdl, weld::ComboBox&, void);
65 DECL_LINK(RenameHdl, weld::Button&, void);
66 DECL_STATIC_LINK(SwGlossaryGroupDlg, EditInsertTextHdl, OUString&, bool);
67 DECL_LINK(EntrySizeAllocHdl, const Size&, void);
69 public:
70 SwGlossaryGroupDlg(weld::Window* pParent, std::vector<OUString> const& rPathArr,
71 SwGlossaryHdl* pGlosHdl);
72 virtual short run() override;
73 virtual ~SwGlossaryGroupDlg() override;
75 const OUString& GetCreatedGroupName() const { return sCreatedGroup; }
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */