20#undef SC_DLLIMPLEMENTATION
48 std::u16string_view rExtendText, std::u16string_view rCurrentText)
49 : GenericDialogController(pParent,
"modules/scalc/ui/sortwarning.ui",
"SortWarning")
50 , m_xFtText(m_xBuilder->weld_label(
"sorttext"))
51 , m_xBtnExtSort(m_xBuilder->weld_button(
"extend"))
52 , m_xBtnCurSort(m_xBuilder->weld_button(
"current"))
54 OUString sTextName =
m_xFtText->get_label();
55 sTextName = sTextName.replaceFirst(
"%1", rExtendText);
56 sTextName = sTextName.replaceFirst(
"%2", rCurrentText);
69 if (&rBtn == m_xBtnExtSort.get())
73 else if(&rBtn == m_xBtnCurSort.get())
Reference< XExecutableDialog > m_xDialog
virtual ~ScSortDlg() override
ScSortDlg(weld::Window *pParent, const SfxItemSet *pArgSet)
std::unique_ptr< weld::Button > m_xBtnCurSort
std::unique_ptr< weld::Label > m_xFtText
std::unique_ptr< weld::Button > m_xBtnExtSort
virtual ~ScSortWarningDlg() override
ScSortWarningDlg(weld::Window *pParent, std::u16string_view rExtendText, std::u16string_view rCurrentText)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rArgSet)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *pArgSet)
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void SetWindowState(const OUString &sState)
OUString GetWindowState() const
#define LINK(Instance, Class, Member)
#define BTN_CURRENT_SELECTION
IMPL_LINK(ScSortWarningDlg, BtnHdl, weld::Button &, rBtn, void)