diff options
Diffstat (limited to 'sfx2/source/doc/objserv.cxx')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 8df1c3e0fecf..feb8952f4c23 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -125,6 +125,8 @@ #include <svx/unoshape.hxx> #include <com/sun/star/util/Color.hpp> +#include <sfx2/autoredactdialog.hxx> + using namespace ::com::sun::star; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; @@ -542,6 +544,22 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) return; } + case SID_AUTOREDACTDOC: + { + //TODO: Implement + SfxAutoRedactDialog aDlg(pDialogParent); + sal_uInt16 nResult = aDlg.run(); + + if (nResult != RET_OK || !aDlg.hasTargets()) + { + //Do nothing + return; + } + + // else continue with normal redaction + [[fallthrough]]; + } + case SID_REDACTDOC: { css::uno::Reference<css::frame::XModel> xModel = GetModel(); @@ -1232,6 +1250,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) case SID_EXPORTDOCASEPUB: case SID_DIRECTEXPORTDOCASEPUB: case SID_REDACTDOC: + case SID_AUTOREDACTDOC: { break; } |