20#undef SC_DLLIMPLEMENTATION
25 : GenericDialogController(pParent,
"modules/scalc/ui/showsheetdialog.ui",
"ShowSheetDialog")
26 ,
m_xFrame(m_xBuilder->weld_frame(
"frame"))
27 , m_xLb(m_xBuilder->weld_tree_view(
"treeview"))
29 m_xLb->set_selection_mode(SelectionMode::Multiple);
30 m_xLb->set_size_request(-1,
m_xLb->get_height_rows(10));
37 const OUString& rDlgHelpId,
const OUString& sLbHelpId)
42 m_xLb->set_help_id(sLbHelpId);
47 m_xLb->append_text(rString);
54 auto aTmp =
m_xLb->get_selected_rows();
55 return std::vector<sal_Int32>(aTmp.begin(), aTmp.end());
css::uno::Reference< css::lang::XComponent > m_xFrame
Reference< XExecutableDialog > m_xDialog
void SetDescription(const OUString &rTitle, const OUString &rFixedText, const OUString &nDlgHelpId, const OUString &nLbHelpId)
Sets dialog title, fixed text for listbox and help IDs.
std::unique_ptr< weld::Frame > m_xFrame
void Insert(const OUString &rString, bool bSelected)
Inserts a string into the weld::TreeView.
virtual ~ScShowTabDlg() override
std::unique_ptr< weld::TreeView > m_xLb
OUString GetEntry(sal_Int32 nPos) const
ScShowTabDlg(weld::Window *pParent)
std::vector< sal_Int32 > GetSelectedRows() const
std::shared_ptr< weld::Dialog > m_xDialog
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(ScShowTabDlg, DblClkHdl, weld::TreeView &, bool)