LibreOffice Module sc (master) 1
gototabdlg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 */
10
11#pragma once
12
13#include <vcl/weld.hxx>
14
16{
17private:
18 std::vector<OUString> maCacheSheetsNames;
19
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;
24
25 DECL_LINK(DblClkHdl, weld::TreeView&, bool);
26 DECL_LINK(FindNameHdl, weld::Entry&, void);
27
28public:
29 ScGoToTabDlg(weld::Window* pParent);
30 virtual ~ScGoToTabDlg() override;
31
33 void SetDescription(const OUString& rTitle, const OUString& rEntryLabel,
34 const OUString& rListLabel, const OUString& rDlgHelpId,
35 const OUString& rEnHelpId, const OUString& rLbHelpId);
36
38 void Insert(const OUString& rString, bool bSelected);
39
40 OUString GetSelectedEntry() const;
41};
42
43/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetDescription(const OUString &rTitle, const OUString &rEntryLabel, const OUString &rListLabel, const OUString &rDlgHelpId, const OUString &rEnHelpId, const OUString &rLbHelpId)
Sets dialog title, label texts and help IDs.
Definition: gototabdlg.cxx:30
ScGoToTabDlg(weld::Window *pParent)
Definition: gototabdlg.cxx:15
std::unique_ptr< weld::Frame > m_xFrameSheets
Definition: gototabdlg.hxx:22
void Insert(const OUString &rString, bool bSelected)
Inserts a string into the weld::TreeView.
Definition: gototabdlg.cxx:42
DECL_LINK(DblClkHdl, weld::TreeView &, bool)
std::unique_ptr< weld::Entry > m_xEnNameMask
Definition: gototabdlg.hxx:21
std::vector< OUString > maCacheSheetsNames
Definition: gototabdlg.hxx:18
std::unique_ptr< weld::Frame > m_xFrameMask
Definition: gototabdlg.hxx:20
std::unique_ptr< weld::TreeView > m_xLb
Definition: gototabdlg.hxx:23
DECL_LINK(FindNameHdl, weld::Entry &, void)
virtual ~ScGoToTabDlg() override
Definition: gototabdlg.cxx:28
OUString GetSelectedEntry() const
Definition: gototabdlg.cxx:50