diff options
author | Henry Castro <hcastro@collabora.com> | 2016-07-14 10:59:47 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2016-07-14 17:34:54 +0000 |
commit | 4dd0d77675dd13c9de7c9ac5dbc0cb6b8ca53865 (patch) | |
tree | 07481a1423fd671d4d9a2a68736de6a961b3bfa2 /sfx2 | |
parent | Avoid undefined behavior when converting (large) double to size_t (diff) | |
download | core-4dd0d77675dd13c9de7c9ac5dbc0cb6b8ca53865.tar.gz core-4dd0d77675dd13c9de7c9ac5dbc0cb6b8ca53865.zip |
sc lok: add more toolbar items
.uno:SortAscending
.uno:SortDescending
Change-Id: I3d307b43fb18ffce75b00a0b919b63320bf6db05
Reviewed-on: https://gerrit.libreoffice.org/27223
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 68b1ea999878..b7993300c8ca 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1017,14 +1017,17 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c } else if (aEvent.FeatureURL.Path == "InsertPage" || aEvent.FeatureURL.Path == "DeletePage" || - aEvent.FeatureURL.Path == "DuplicatePage") + aEvent.FeatureURL.Path == "DuplicatePage" || + aEvent.FeatureURL.Path == "SortAscending" || + aEvent.FeatureURL.Path == "SortDescending") { aBuffer.append(OUString::boolean(aEvent.IsEnabled)); } else if (aEvent.FeatureURL.Path == "AssignLayout" || aEvent.FeatureURL.Path == "StatusSelectionMode" || aEvent.FeatureURL.Path == "Signature" || - aEvent.FeatureURL.Path == "SelectionMode") + aEvent.FeatureURL.Path == "SelectionMode" || + aEvent.FeatureURL.Path == "StatusBarFunc") { sal_Int32 aInt32; @@ -1074,8 +1077,7 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c aBuffer.append(OUString::number(aPoint.X) + " / " + OUString::number(aPoint.Y)); } } - else if (aEvent.FeatureURL.Path == "StatusBarFunc" || - aEvent.FeatureURL.Path == "Size") + else if (aEvent.FeatureURL.Path == "Size") { css::awt::Size aSize; |