desktop/source/lib/init.cxx | 4 +++- sfx2/source/control/unoctitm.cxx | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-)
New commits: commit 8e3685228d833233fc9a912a5e97df0e14597928 Author: Mihai Varga <[email protected]> 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 8f12ee2..8e3b88e 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -566,7 +566,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 f6658be..bd9fd16 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1097,6 +1097,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 [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
