diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2017-01-09 17:30:14 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-01-30 22:30:24 +0000 |
commit | 8d999b118e553a47a34639c7fda138b609b7aac9 (patch) | |
tree | 9b8e1044e92cd89b0a65dbc70e8449d1e8b849b9 /sw/source | |
parent | Convert RID_MENU_APP_PREVIEW to xml (diff) | |
download | core-8d999b118e553a47a34639c7fda138b609b7aac9.tar.gz core-8d999b118e553a47a34639c7fda138b609b7aac9.zip |
tdf#102132 Add contextual edit region uno command.
Change-Id: I2b95457ba2f074a13059c9f5ce87589f925d3eda
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/33455
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/dialog/regionsw.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/dialog/regionsw.cxx b/sw/source/uibase/dialog/regionsw.cxx index 7bd9780ef9c3..9c0a3de1e61b 100644 --- a/sw/source/uibase/dialog/regionsw.cxx +++ b/sw/source/uibase/dialog/regionsw.cxx @@ -214,6 +214,7 @@ void SwBaseShell::EditRegionDialog(SfxRequest& rReq) switch ( nSlot ) { case FN_EDIT_REGION: + case FN_EDIT_CURRENT_REGION: { vcl::Window* pParentWin = &GetView().GetViewFrame()->GetWindow(); { diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 66cc701c4951..13d1587e2fa1 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -1395,6 +1395,11 @@ void SwBaseShell::GetState( SfxItemSet &rSet ) rSet.DisableItem(nWhich); break; + case FN_EDIT_CURRENT_REGION: + if( !rSh.GetCurrSection() ) + rSet.DisableItem(nWhich); + break; + case FN_INSERT_REGION: if( rSh.CursorInsideInputField() || rSh.IsSelFrameMode() |