From 670130039c5b100acabe08bc2077980c5c63f82f Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Sat, 8 Jun 2019 16:37:04 +0300 Subject: Auto redaction dialog 3rd iteration * Add the Edit handler Change-Id: Id900d2aab6fa6795455012aaf2bcaf755ccca139 Reviewed-on: https://gerrit.libreoffice.org/73705 Tested-by: Jenkins Reviewed-by: Muhammet Kara --- sfx2/inc/autoredactdialog.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sfx2/inc/autoredactdialog.hxx') diff --git a/sfx2/inc/autoredactdialog.hxx b/sfx2/inc/autoredactdialog.hxx index 26b29bf10cf5..267427c90b21 100644 --- a/sfx2/inc/autoredactdialog.hxx +++ b/sfx2/inc/autoredactdialog.hxx @@ -82,6 +82,9 @@ public: void select(int nRow) { m_xControl->select(nRow); } OUString get_id(int nRow) const { return m_xControl->get_id(nRow); } + // Sync data on the targets box with the data on the target + void setRowData(const int& nRowIndex, const RedactionTarget* pTarget); + //void connect_changed(const Link& rLink) { m_xControl->connect_changed(rLink); } //void connect_row_activated(const Link& rLink) { m_xControl->connect_row_activated(rLink); } }; @@ -102,7 +105,7 @@ class SFX2_DLLPUBLIC SfxAutoRedactDialog : public SfxDialogController /*DECL_LINK(LoadHdl, weld::Button&, void); DECL_LINK(SaveHdl, weld::Button&, void);*/ DECL_LINK(AddHdl, weld::Button&, void); - //DECL_LINK(EditHdl, weld::Button&, void); + DECL_LINK(EditHdl, weld::Button&, void); DECL_LINK(DeleteHdl, weld::Button&, void); public: @@ -130,6 +133,9 @@ private: public: SfxAddTargetDialog(weld::Window* pWindow, const OUString& rName); + SfxAddTargetDialog(weld::Window* pWindow, const OUString& sName, + const RedactionTargetType& eTargetType, const OUString& sContent, + const bool& bCaseSensitive, const bool& bWholeWords); OUString getName() const { return m_xName->get_text(); } RedactionTargetType getType() const; -- cgit