desktop/source/lib/init.cxx | 1 + sfx2/source/control/unoctitm.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0966c344b48991820dddce4e47f01752e82e195b Author: Jan Holesovsky <[email protected]> Date: Fri Feb 5 12:20:11 2016 +0100 lok: Notify also about the states of .uno:CharBackgroundExt. .uno:CharBackgroundExt is supplementary to .uno:BackColor. When .uno:BackColor is set, Writer turns into a 'watercan' mode, where the user directly marks parts of the text with the wanted background color. .uno:CharBackgroundExt then controls this watercan mode - dispatching it toggles the watercan mode on/off, and also the StateChanged events reflect the on/off mode accordingly. Change-Id: I6472eb39129d1b1517fba14bad584cbd125e826a diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 74df353..92caf5c 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -684,6 +684,7 @@ static void doc_iniUnoCommands () OUString(".uno:Bold"), OUString(".uno:CenterPara"), OUString(".uno:CharBackColor"), + OUString(".uno:CharBackgroundExt"), OUString(".uno:CharFontName"), OUString(".uno:Color"), OUString(".uno:DecrementIndent"), diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 9fa0887..e1671b8 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1095,6 +1095,7 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe if (aEvent.FeatureURL.Path == "Bold" || aEvent.FeatureURL.Path == "CenterPara" || + aEvent.FeatureURL.Path == "CharBackgroundExt" || aEvent.FeatureURL.Path == "DefaultBullet" || aEvent.FeatureURL.Path == "DefaultNumbering" || aEvent.FeatureURL.Path == "Italic" || @@ -1112,7 +1113,6 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe bool bTemp = false; aEvent.State >>= bTemp; aBuffer.append(bTemp); - } else if (aEvent.FeatureURL.Path == "CharFontName") { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
