System and method for providing a context sensitive undo function
First Claim
1. A method comprising:
- applying a first change within a document;
determining a context of the first change within the document;
storing first data related to the first change in a first stack corresponding to a first context in response to determining that the first change is associated with the first context;
applying a second change within the document, the second change occurring after the first change;
determining a context of the second change within the document, wherein the context of the second change is a different type of context than the context of the first change;
storing second data relating to the second change in a second stack corresponding to a second context that is different than the first context in response to determining that the second change is associated with the second context;
determining a current context type based on a hierarchy of criteria, wherein the hierarchy of criteria comprises a first priority criterion being an active selection of the current context and a second priority criterion being an insertion point of the current context;
receiving an instruction to undo a change associated with the current context type;
determining that the instruction to undo is associated with the first context; and
performing an undo function to undo the first change based on the first data without affecting the second change in response to determining that the undo instruction is associated with the first context.
2 Assignments
0 Petitions
Accused Products
Abstract
A context sensitive undo feature undoes a first change in a document without affecting other changes made by other contexts. A first change is applied within a document. A context of the first change is determined. First data related to the first change is stored in a first stack in response to determining that the first change is associated with a first context. A second change is applied within the document, the second change occurring after the first change. A context of the second change is determined. Second data relating to the second change, associated with a second context, is stored in a second stack. An instruction to undo the first change is received, and an undo function to undo the first change based on the first data is performed without affecting the second change in response to determining that the undo instruction is associated with the first context.
108 Citations
17 Claims
-
1. A method comprising:
-
applying a first change within a document; determining a context of the first change within the document; storing first data related to the first change in a first stack corresponding to a first context in response to determining that the first change is associated with the first context; applying a second change within the document, the second change occurring after the first change; determining a context of the second change within the document, wherein the context of the second change is a different type of context than the context of the first change; storing second data relating to the second change in a second stack corresponding to a second context that is different than the first context in response to determining that the second change is associated with the second context; determining a current context type based on a hierarchy of criteria, wherein the hierarchy of criteria comprises a first priority criterion being an active selection of the current context and a second priority criterion being an insertion point of the current context; receiving an instruction to undo a change associated with the current context type; determining that the instruction to undo is associated with the first context; and performing an undo function to undo the first change based on the first data without affecting the second change in response to determining that the undo instruction is associated with the first context. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer readable medium having program instructions stored thereon, the instructions capable of execution by a processor and defining the steps of:
-
applying a first change within a document; determining a context of the first change within the document; storing first data related to the first change in a first stack corresponding to a first context in response to determining that the first change is associated with the first context; applying a second change within the document, the second change occurring after the first change; determining a context of the second change within the document, wherein the context of the second change is a different type of context than the context of the first change; storing second data relating to the second change in a second stack corresponding to a second context that is different than the first context in response to determining that the second change is associated with the second context; determining a current context type based on a hierarchy of criteria, wherein the hierarchy of criteria comprises a first priority criterion being an active selection of the current context and a second priority criterion being an insertion point of the current context; receiving an instruction to undo a change associated with the current context type; determining that the instruction to undo is associated with the first context; and performing an undo function to undo the first change based on the first data without affecting the second change in response to determining that the undo instruction is associated with the first context. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. An apparatus comprising:
-
a processor; and a memory to store computer program instructions, the computer program instructions when executed on the processor cause the processor to perform operations comprising; applying a first change within a document; determining a context of the first change within the document; storing first data related to the first change in a first stack corresponding to a first context in response to determining that the first change is associated with the first context; applying a second change within the document, the second change occurring after the first change; determining a context of the second change within the document, wherein the context of the second change is a different type of context than the context of the first change; storing second data relating to the second change in a second stack corresponding to a second context that is different than the first context in response to determining that the second change is associated with the second context; determining a current context type based on a hierarchy of criteria, wherein the hierarchy of criteria comprises a first priority criterion being an active selection of the current context and a second priority criterion being an insertion point of the current context; receiving an instruction to undo a change associated with the current context type; determining that the instruction to undo is associated with the first context; and performing an undo function to undo the first change based on the first data without affecting the second change in response to determining that the undo instruction is associated with the first context.
-
Specification