Kaydet (Commit) 5c7ab825 authored tarafından Pranav Kant's avatar Pranav Kant

lok: Subcribe to more uno commands for state change

Change-Id: Id2870b176de4163fbe01e4ac380b4981d3187d90
üst f1ea2290
...@@ -763,7 +763,24 @@ static void doc_iniUnoCommands () ...@@ -763,7 +763,24 @@ static void doc_iniUnoCommands ()
OUString(".uno:Redo"), OUString(".uno:Redo"),
OUString(".uno:InsertPage"), OUString(".uno:InsertPage"),
OUString(".uno:DeletePage"), OUString(".uno:DeletePage"),
OUString(".uno:DuplicatePage") OUString(".uno:DuplicatePage"),
OUString(".uno:Cut"),
OUString(".uno:Copy"),
OUString(".uno:Paste"),
OUString(".uno:SelectAll"),
OUString(".uno:InsertAnnotation"),
OUString(".uno:InsertRowsBefore"),
OUString(".uno:InsertRowsAfter"),
OUString(".uno:InsertColumnsBefore"),
OUString(".uno:InsertColumnsAfter"),
OUString(".uno:DeleteRows"),
OUString(".uno:DeleteColumns"),
OUString(".uno:DeleteTable"),
OUString(".uno:SelectTable"),
OUString(".uno:EntireRow"),
OUString(".uno:EntireColumn"),
OUString(".uno:EntireCell"),
OUString(".uno:MergeCells")
}; };
util::URL aCommandURL; util::URL aCommandURL;
......
...@@ -986,7 +986,24 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe ...@@ -986,7 +986,24 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
aBuffer.append(nColor); aBuffer.append(nColor);
} }
else if (aEvent.FeatureURL.Path == "Undo" || else if (aEvent.FeatureURL.Path == "Undo" ||
aEvent.FeatureURL.Path == "Redo") aEvent.FeatureURL.Path == "Redo" ||
aEvent.FeatureURL.Path == "Cut" ||
aEvent.FeatureURL.Path == "Copy" ||
aEvent.FeatureURL.Path == "Paste" ||
aEvent.FeatureURL.Path == "SelectAll" ||
aEvent.FeatureURL.Path == "InsertAnnotation" ||
aEvent.FeatureURL.Path == "InsertRowsBefore" ||
aEvent.FeatureURL.Path == "InsertRowsAfter" ||
aEvent.FeatureURL.Path == "InsertColumnsBefore" ||
aEvent.FeatureURL.Path == "InsertColumnsAfter" ||
aEvent.FeatureURL.Path == "DeleteRows" ||
aEvent.FeatureURL.Path == "DeleteColumns" ||
aEvent.FeatureURL.Path == "DeleteTable" ||
aEvent.FeatureURL.Path == "SelectTable" ||
aEvent.FeatureURL.Path == "EntireRow" ||
aEvent.FeatureURL.Path == "EntireColumn" ||
aEvent.FeatureURL.Path == "EntireCell" ||
aEvent.FeatureURL.Path == "MergeCells")
{ {
aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled")); aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled"));
} }
......
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