Kaydet (Commit) 8e368522 authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Mihai Varga

LOK: font/back color feedback

This is used to know the current font/back color

Change-Id: Ic524fcb5c26e1c15ec9c50b2879465152ac8ee34
üst c5465b86
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment