[Libreoffice-commits] core.git: desktop/source sfx2/source
Henry Castro
hcastro at collabora.com
Sat May 28 03:20:49 UTC 2016
desktop/source/lib/init.cxx | 3 ++-
sfx2/source/control/unoctitm.cxx | 6 ++++++
2 files changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 05ba8e567bd4fca2bef9bcf7a43d4c3d6c0cc5ad
Author: Henry Castro <hcastro at collabora.com>
Date: Fri May 27 16:38:47 2016 -0400
lok: add uno command AssignLayout
Change-Id: I959d1a57945a3b5aa3f2c273c4b885ed5f628f6e
Reviewed-on: https://gerrit.libreoffice.org/25569
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Henry Castro <hcastro at collabora.com>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 2ea994d..ccb27c1 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -780,7 +780,8 @@ static void doc_iniUnoCommands ()
OUString(".uno:EntireRow"),
OUString(".uno:EntireColumn"),
OUString(".uno:EntireCell"),
- OUString(".uno:MergeCells")
+ OUString(".uno:MergeCells"),
+ OUString(".uno:AssignLayout")
};
util::URL aCommandURL;
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index a2eaff9..7c1fefe 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1013,6 +1013,12 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
{
aBuffer.append(OUString::boolean(aEvent.IsEnabled));
}
+ else if (aEvent.FeatureURL.Path == "AssignLayout")
+ {
+ sal_Int32 nLayout = 0;
+ aEvent.State >>= nLayout;
+ aBuffer.append(nLayout);
+ }
else
{
return;
More information about the Libreoffice-commits
mailing list