11#undef SC_DLLIMPLEMENTATION
16 : GenericDialogController(pParent,
"modules/scalc/ui/gotosheetdialog.ui",
"GoToSheetDialog")
17 , m_xFrameMask(m_xBuilder->weld_frame(
"frame-mask"))
18 , m_xEnNameMask(m_xBuilder->weld_entry(
"entry-mask"))
19 , m_xFrameSheets(m_xBuilder->weld_frame(
"frame-sheets"))
20 , m_xLb(m_xBuilder->weld_tree_view(
"treeview"))
22 m_xLb->set_selection_mode(SelectionMode::Single);
23 m_xLb->set_size_request(-1,
m_xLb->get_height_rows(10));
31 const OUString& rListLabel,
const OUString& rDlgHelpId,
32 const OUString& rEnHelpId,
const OUString& rLbHelpId)
39 m_xLb->set_help_id(rLbHelpId);
45 m_xLb->append_text(rString);
60 const OUString aMask = m_xEnNameMask->get_text();
64 for (
const OUString& s : maCacheSheetsNames)
66 m_xLb->append_text(s);
71 for (
const OUString& s : maCacheSheetsNames)
73 if (s.indexOf(aMask) >= 0)
75 m_xLb->append_text(s);
Reference< XExecutableDialog > m_xDialog
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.
ScGoToTabDlg(weld::Window *pParent)
std::unique_ptr< weld::Frame > m_xFrameSheets
void Insert(const OUString &rString, bool bSelected)
Inserts a string into the weld::TreeView.
std::unique_ptr< weld::Entry > m_xEnNameMask
std::vector< OUString > maCacheSheetsNames
std::unique_ptr< weld::Frame > m_xFrameMask
std::unique_ptr< weld::TreeView > m_xLb
virtual ~ScGoToTabDlg() override
OUString GetSelectedEntry() const
std::shared_ptr< weld::Dialog > m_xDialog
IMPL_LINK_NOARG(ScGoToTabDlg, DblClkHdl, weld::TreeView &, bool)
#define LINK(Instance, Class, Member)