summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-20 13:05:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-23 12:33:44 +0200
commitc0af8057188c0e95831f9e6d1ef96a424da6f9b2 (patch)
tree6509c67d0cfcc42e3b107004167f2efcccda43cd /sw/source/ui/inc
parent27e26fc4286f66ab1bf4c807d86b8f3254c5c68b (diff)
weld SfxPrintOptionsDialog
and SwMMResultPrintDialog Change-Id: Icded6a26a3a151293bea0c9173334cf634283e89 Reviewed-on: https://gerrit.libreoffice.org/53299 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/inc')
-rw-r--r--sw/source/ui/inc/mmresultdialogs.hxx38
1 files changed, 17 insertions, 21 deletions
diff --git a/sw/source/ui/inc/mmresultdialogs.hxx b/sw/source/ui/inc/mmresultdialogs.hxx
index 01e89826372c..a63a6653c418 100644
--- a/sw/source/ui/inc/mmresultdialogs.hxx
+++ b/sw/source/ui/inc/mmresultdialogs.hxx
@@ -25,6 +25,7 @@
#include <vcl/field.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/prgsbar.hxx>
+#include <vcl/weld.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/basedlgs.hxx>
#include <svtools/simptabl.hxx>
@@ -68,35 +69,30 @@ public:
};
/// Dialog implementing the printing of the result document.
-class SwMMResultPrintDialog : public SfxModalDialog
+class SwMMResultPrintDialog : public weld::GenericDialogController
{
- VclPtr<FixedText> m_pPrinterFT;
- VclPtr<ListBox> m_pPrinterLB;
- VclPtr<PushButton> m_pPrinterSettingsPB;
-
- VclPtr<RadioButton> m_pPrintAllRB;
-
- VclPtr<RadioButton> m_pFromRB;
- VclPtr<NumericField> m_pFromNF;
- VclPtr<FixedText> m_pToFT;
- VclPtr<NumericField> m_pToNF;
-
- VclPtr<Button> m_pOKButton;
-
VclPtr<Printer> m_pTempPrinter;
- DECL_LINK(PrinterChangeHdl_Impl, ListBox&,void );
- DECL_LINK(PrintHdl_Impl, Button*, void);
- DECL_LINK(PrinterSetupHdl_Impl, Button*, void );
- DECL_LINK(DocumentSelectionHdl_Impl, Button*, void);
+ std::unique_ptr<weld::Label> m_xPrinterFT;
+ std::unique_ptr<weld::ComboBoxText> m_xPrinterLB;
+ std::unique_ptr<weld::Button> m_xPrinterSettingsPB;
+ std::unique_ptr<weld::RadioButton> m_xPrintAllRB;
+ std::unique_ptr<weld::RadioButton> m_xFromRB;
+ std::unique_ptr<weld::SpinButton> m_xFromNF;
+ std::unique_ptr<weld::Label> m_xToFT;
+ std::unique_ptr<weld::SpinButton> m_xToNF;
+ std::unique_ptr<weld::Button> m_xOKButton;
+
+ DECL_LINK(PrinterChangeHdl_Impl, weld::ComboBoxText&, void );
+ DECL_LINK(PrintHdl_Impl, weld::Button&, void);
+ DECL_LINK(PrinterSetupHdl_Impl, weld::Button&, void );
+ DECL_LINK(DocumentSelectionHdl_Impl, weld::ToggleButton&, void);
void FillInPrinterSettings();
public:
- SwMMResultPrintDialog();
+ SwMMResultPrintDialog(weld::Window* pParent);
virtual ~SwMMResultPrintDialog() override;
-
- virtual void dispose() override;
};
/// Dialog implementing the sending as email of the result document.