desktop/source/lib/init.cxx | 4 +++- sfx2/source/control/unoctitm.cxx | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-)
New commits: commit 3d2b18294495a83b2b60764ee84595d6df74c6c5 Author: Mihai Varga <mihai.va...@collabora.com> Date: Thu Oct 29 16:28:37 2015 +0200 LOK: font/back color feedback This is used to know the current font/back color Change-Id: Ic524fcb5c26e1c15ec9c50b2879465152ac8ee34 diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 525ea43..2217992 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -575,7 +575,9 @@ static void doc_iniUnoCommands () OUString(".uno:DecrementIndent"), OUString(".uno:CharFontName"), OUString(".uno:FontHeight"), - OUString(".uno:StyleApply") + OUString(".uno:StyleApply"), + OUString(".uno:FontColor"), + OUString(".uno:BackColor") }; util::URL aCommandURL; diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index bb5d672..843e93d 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1100,6 +1100,13 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe aEvent.State >>= aTemplate; aBuffer.append(aTemplate.StyleName); } + else if (aEvent.FeatureURL.Path == "FontColor" || + aEvent.FeatureURL.Path == "BackColor") + { + long nColor; + aEvent.State >>= nColor; + aBuffer.append(nColor); + } else { return; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits