summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx4
-rw-r--r--sfx2/source/control/unoctitm.cxx7
2 files changed, 10 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 525ea435ae2b..2217992947a7 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 bb5d6720029f..843e93d4feae 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;