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