Kaydet (Commit) d7676d40 authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Andras Timar

LOK: get state change feedback for more uno commands

I've also ordered them alphabetically so we can read them easier.

Change-Id: Ia332f1662a91de4a4068f0056a3d969fe978a744
üst abb4ef4e
......@@ -669,23 +669,27 @@ static void doc_iniUnoCommands ()
{
OUString sUnoCommands[] =
{
OUString(".uno:BackColor"),
OUString(".uno:Bold"),
OUString(".uno:Italic"),
OUString(".uno:Underline"),
OUString(".uno:Strikeout"),
OUString(".uno:CenterPara"),
OUString(".uno:CharFontName"),
OUString(".uno:DecrementIndent"),
OUString(".uno:DefaultBullet"),
OUString(".uno:DefaultNumbering"),
OUString(".uno:FontColor"),
OUString(".uno:FontHeight"),
OUString(".uno:IncrementIndent"),
OUString(".uno:Italic"),
OUString(".uno:JustifyPara"),
OUString(".uno:OutlineFont"),
OUString(".uno:LeftPara"),
OUString(".uno:CenterPara"),
OUString(".uno:RightPara"),
OUString(".uno:JustifyPara"),
OUString(".uno:IncrementIndent"),
OUString(".uno:DecrementIndent"),
OUString(".uno:CharFontName"),
OUString(".uno:FontHeight"),
OUString(".uno:Shadowed"),
OUString(".uno:SubScript"),
OUString(".uno:SuperScript"),
OUString(".uno:Strikeout"),
OUString(".uno:StyleApply"),
OUString(".uno:FontColor"),
OUString(".uno:BackColor")
OUString(".uno:Underline")
};
util::URL aCommandURL;
......
......@@ -1067,15 +1067,19 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
aBuffer.append("=");
if (aEvent.FeatureURL.Path == "Bold" ||
aEvent.FeatureURL.Path == "Italic" ||
aEvent.FeatureURL.Path == "Underline" ||
aEvent.FeatureURL.Path == "Strikeout" ||
aEvent.FeatureURL.Path == "CenterPara" ||
aEvent.FeatureURL.Path == "DefaultBullet" ||
aEvent.FeatureURL.Path == "DefaultNumbering" ||
aEvent.FeatureURL.Path == "Italic" ||
aEvent.FeatureURL.Path == "JustifyPara" ||
aEvent.FeatureURL.Path == "LeftPara" ||
aEvent.FeatureURL.Path == "CenterPara" ||
aEvent.FeatureURL.Path == "OutlineFont" ||
aEvent.FeatureURL.Path == "RightPara" ||
aEvent.FeatureURL.Path == "JustifyPara")
aEvent.FeatureURL.Path == "Shadowed" ||
aEvent.FeatureURL.Path == "SubScript" ||
aEvent.FeatureURL.Path == "SuperScript" ||
aEvent.FeatureURL.Path == "Strikeout" ||
aEvent.FeatureURL.Path == "Underline")
{
bool bTemp = false;
aEvent.State >>= bTemp;
......
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