sc lok: add toolbar item wrap text and merge cells

Change-Id: I266b7171ee0a8a324ee8f71680f76c132b5c5fbd
Reviewed-on: https://gerrit.libreoffice.org/26985
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro
2016-07-06 13:15:17 -04:00
parent 57440dfcbd
commit 880e013d7c
2 changed files with 6 additions and 2 deletions

View File

@@ -1009,7 +1009,9 @@ static void doc_iniUnoCommands ()
OUString(".uno:SelectionMode"),
OUString(".uno:PageStatus"),
OUString(".uno:LayoutStatus"),
OUString(".uno:Context")
OUString(".uno:Context"),
OUString(".uno:WrapText"),
OUString(".uno:ToggleMergeCells")
};
util::URL aCommandURL;

View File

@@ -1051,7 +1051,9 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
aBuffer.append(aString);
}
}
else if (aEvent.FeatureURL.Path == "InsertMode")
else if (aEvent.FeatureURL.Path == "InsertMode" ||
aEvent.FeatureURL.Path == "WrapText" ||
aEvent.FeatureURL.Path == "ToggleMergeCells")
{
sal_Bool aBool;