diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-27 16:42:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-27 16:52:11 +0000 |
commit | 02d4eb7438a83982b2602ea1d83d5accb1fe11f6 (patch) | |
tree | 05772d55231d2f8fe51bb474829ca121a2d7bd73 /include/svtools | |
parent | 6aefcb6a6f90896754f3432e5ae41403998b7ab0 (diff) |
convert query delete dialog to .ui
Change-Id: I0ab09c2c54bba4a287ef0f7cc812596958373e15
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/fileview.hxx | 29 | ||||
-rw-r--r-- | include/svtools/svtools.hrc | 2 |
2 files changed, 12 insertions, 19 deletions
diff --git a/include/svtools/fileview.hxx b/include/svtools/fileview.hxx index fd2ccfeffe19..8b9081675df0 100644 --- a/include/svtools/fileview.hxx +++ b/include/svtools/fileview.hxx @@ -25,8 +25,9 @@ #include <vcl/ctrl.hxx> #include <vcl/image.hxx> #include <vcl/fixed.hxx> -#include <vcl/button.hxx> #include <vcl/dialog.hxx> +#include <vcl/button.hxx> +#include <vcl/layout.hxx> #include <rtl/ustring.hxx> // class SvtFileView ----------------------------------------------------- @@ -216,24 +217,19 @@ namespace svtools { enum QueryDeleteResult_Impl { - QUERYDELETE_YES = 0, - QUERYDELETE_NO, - QUERYDELETE_ALL, - QUERYDELETE_CANCEL + QUERYDELETE_CANCEL = RET_CANCEL, + QUERYDELETE_YES = RET_YES, + QUERYDELETE_NO = RET_NO, + QUERYDELETE_ALL = -1 }; -class SVT_DLLPUBLIC QueryDeleteDlg_Impl : public ModalDialog +class SVT_DLLPUBLIC QueryDeleteDlg_Impl : public MessageDialog { - FixedText _aEntryLabel; - FixedText _aEntry; - FixedText _aQueryMsg; - - PushButton _aYesButton; - PushButton _aAllButton; - PushButton _aNoButton; - CancelButton _aCancelButton; + PushButton* m_pYesButton; + PushButton* m_pAllButton; + PushButton* m_pNoButton; - QueryDeleteResult_Impl _eResult; + QueryDeleteResult_Impl m_eResult; private: @@ -244,8 +240,7 @@ public: QueryDeleteDlg_Impl( Window* pParent, const OUString& rName ); - void EnableAllButton() { _aAllButton.Enable( sal_True ); } - QueryDeleteResult_Impl GetResult() const { return _eResult; } + void EnableAllButton() { m_pAllButton->Enable(true); } }; } diff --git a/include/svtools/svtools.hrc b/include/svtools/svtools.hrc index 301d2f7b955f..e11c5aea9a8f 100644 --- a/include/svtools/svtools.hrc +++ b/include/svtools/svtools.hrc @@ -27,8 +27,6 @@ //............................................................................. // various unsorted stuff -#define DLG_SVT_QUERYDELETE (RID_SVTOOLS_START+6) - #define STR_SVT_AUTOMATIC_COLOR (RID_SVTOOLS_START+16) #define STR_SVT_FILEVIEW_COLUMN_TITLE (RID_SVTOOLS_START + 20) |