diff options
-rw-r--r-- | desktop/source/lib/init.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 8f12ee2b8d00..8e3b88ed1187 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 f6658be9378f..bd9fd16bcfed 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; |