From d5bdb4a84e741bb60f1cc9557b7a2eb590ba8a44 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Sat, 8 Jun 2019 23:27:56 +0300 Subject: Auto redaction dialog 4th iteration * Add the Save & SaveHdl handlers * Add stubs for Load & LoadHdl handlers Change-Id: I5f58213c86e99f8bfc9075e04eedbb5cb546d9ad Reviewed-on: https://gerrit.libreoffice.org/73724 Tested-by: Jenkins Reviewed-by: Muhammet Kara --- sfx2/inc/autoredactdialog.hxx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'sfx2/inc/autoredactdialog.hxx') diff --git a/sfx2/inc/autoredactdialog.hxx b/sfx2/inc/autoredactdialog.hxx index 267427c90b21..99c956246d69 100644 --- a/sfx2/inc/autoredactdialog.hxx +++ b/sfx2/inc/autoredactdialog.hxx @@ -89,10 +89,22 @@ public: //void connect_row_activated(const Link& rLink) { m_xControl->connect_row_activated(rLink); } }; +namespace sfx2 +{ +class FileDialogHelper; +} + +enum class StartFileDialogType +{ + Open, + SaveAs +}; + class SFX2_DLLPUBLIC SfxAutoRedactDialog : public SfxDialogController { SfxObjectShellLock m_xDocShell; std::vector> m_aTableTargets; + std::unique_ptr m_pFileDlg; std::unique_ptr m_xRedactionTargetsLabel; std::unique_ptr m_xTargetsBox; @@ -102,12 +114,17 @@ class SFX2_DLLPUBLIC SfxAutoRedactDialog : public SfxDialogController std::unique_ptr m_xEditBtn; std::unique_ptr m_xDeleteBtn; - /*DECL_LINK(LoadHdl, weld::Button&, void); - DECL_LINK(SaveHdl, weld::Button&, void);*/ + DECL_LINK(Load, weld::Button&, void); + DECL_LINK(Save, weld::Button&, void); DECL_LINK(AddHdl, weld::Button&, void); DECL_LINK(EditHdl, weld::Button&, void); DECL_LINK(DeleteHdl, weld::Button&, void); + DECL_LINK(LoadHdl, sfx2::FileDialogHelper*, void); + DECL_LINK(SaveHdl, sfx2::FileDialogHelper*, void); + + void StartFileDialog(StartFileDialogType nType, const OUString& rTitle); + public: SfxAutoRedactDialog(weld::Window* pParent); virtual ~SfxAutoRedactDialog() override; -- cgit