tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / gototabdlg.hxx
blob1bbd5ed9761e29ddc920e8df4c4b0c8e420d245f
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 */
11 #pragma once
13 #include <vcl/weld.hxx>
15 class ScGoToTabDlg : public weld::GenericDialogController
17 private:
18 std::vector<OUString> maCacheSheetsNames;
20 std::unique_ptr<weld::Frame> m_xFrameMask;
21 std::unique_ptr<weld::Entry> m_xEnNameMask;
22 std::unique_ptr<weld::Frame> m_xFrameSheets;
23 std::unique_ptr<weld::TreeView> m_xLb;
25 DECL_LINK(DblClkHdl, weld::TreeView&, bool);
26 DECL_LINK(FindNameHdl, weld::Entry&, void);
28 public:
29 ScGoToTabDlg(weld::Window* pParent);
30 virtual ~ScGoToTabDlg() override;
32 /** Sets dialog title, label texts and help IDs. */
33 void SetDescription(const OUString& rTitle, const OUString& rEntryLabel,
34 const OUString& rListLabel, const OUString& rDlgHelpId,
35 const OUString& rEnHelpId, const OUString& rLbHelpId);
37 /** Inserts a string into the weld::TreeView. */
38 void Insert(const OUString& rString, bool bSelected);
40 OUString GetSelectedEntry() const;
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */