Kaydet (Commit) 0a8eefb5 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Szymon Kłos

lok: Fix status of InsertPage, DeletePage and DuplicatePage.

Status true / false means checked, status enabled / disabled means the
visibility (enablement) of the uno command.

Change-Id: Ib2671984f59ffd5e6f1823a65ea42b33bdfe67d6
Reviewed-on: https://gerrit.libreoffice.org/73384Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
Tested-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst af2d9149
......@@ -1078,6 +1078,9 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
aEvent.FeatureURL.Path == "InsertColumnsBefore" ||
aEvent.FeatureURL.Path == "InsertColumnsAfter" ||
aEvent.FeatureURL.Path == "InsertSymbol" ||
aEvent.FeatureURL.Path == "InsertPage" ||
aEvent.FeatureURL.Path == "DeletePage" ||
aEvent.FeatureURL.Path == "DuplicatePage" ||
aEvent.FeatureURL.Path == "DeleteRows" ||
aEvent.FeatureURL.Path == "DeleteColumns" ||
aEvent.FeatureURL.Path == "DeleteTable" ||
......@@ -1102,12 +1105,6 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
{
aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled"));
}
else if (aEvent.FeatureURL.Path == "InsertPage" ||
aEvent.FeatureURL.Path == "DeletePage" ||
aEvent.FeatureURL.Path == "DuplicatePage")
{
aBuffer.append(OUString::boolean(aEvent.IsEnabled));
}
else if (aEvent.FeatureURL.Path == "AssignLayout" ||
aEvent.FeatureURL.Path == "StatusSelectionMode" ||
aEvent.FeatureURL.Path == "Signature" ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment