summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx3
-rw-r--r--sfx2/source/control/unoctitm.cxx6
2 files changed, 8 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 2ea994dabfe6..ccb27c1bd398 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 a2eaff9ebde0..7c1fefeae1cb 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;