System and method for issuing a message to a program
First Claim
1. A computer-readable storage medium encoded with instructions for issuing a notification from a first program to a second program, the instructions comprising:
- a notification issuer configured as part of the first program to issue an event notification in response to determining that an event occurred, the event being associated with action performed by the first program on an Extensible Markup Language (XML) document, irrespective of a type of the action, wherein the event notification comprises a data structure, the data structure comprising;
an identifier field indicating that the data structure represents an occurrence of the action performed on the XML document by the first program,a first parameter field identifying a current selection within the XML document,a second parameter field identifying a first XML node associated with the event and contained within an XML namespace not native to the first program, wherein the first XML node corresponds to a first associated node within which the current selection existed when performance of the action began,a third parameter field identifying a second XML node associated with the event, wherein the second XML node corresponds to a second associated node within which the current selection will exist after the action has been performed, anda fourth parameter field identifying a type of the event that occurred, wherein the type of the event is selected from one of a plurality of event types; and
a single event handler, associated with the second program, configured to receive the event notification irrespective of which of a plurality of actions caused the event notification to be sent, wherein the first parameter, the second parameter, the third parameter, and the fourth parameter are included in the event notification received by the second program in response to a state change caused by at least one of the plurality of actions and used to provide supplemental functionality to the first program when the at least one of the plurality of actions occurs.
2 Assignments
0 Petitions
Accused Products
Abstract
Described is a mechanism for issuing an event notification message, from a first program to a second program, to indicate that an action occurred within the first program, where the event notification message includes a parameter that indicates that the action is one of a group of possible actions. More specifically, in an application configured to edit documents created with the eXtensible Markup Language XML, the occurrence of an XML-related action causes the event notification message to be issued. The XML-related action may be either an XML-related move action, an XML-related insert action, or an XML-related delete action. In this way, a single event notification message can be used to indicate the occurrence of three different types of actions while editing an XML document.
-
Citations
23 Claims
-
1. A computer-readable storage medium encoded with instructions for issuing a notification from a first program to a second program, the instructions comprising:
-
a notification issuer configured as part of the first program to issue an event notification in response to determining that an event occurred, the event being associated with action performed by the first program on an Extensible Markup Language (XML) document, irrespective of a type of the action, wherein the event notification comprises a data structure, the data structure comprising; an identifier field indicating that the data structure represents an occurrence of the action performed on the XML document by the first program, a first parameter field identifying a current selection within the XML document, a second parameter field identifying a first XML node associated with the event and contained within an XML namespace not native to the first program, wherein the first XML node corresponds to a first associated node within which the current selection existed when performance of the action began, a third parameter field identifying a second XML node associated with the event, wherein the second XML node corresponds to a second associated node within which the current selection will exist after the action has been performed, and a fourth parameter field identifying a type of the event that occurred, wherein the type of the event is selected from one of a plurality of event types; and a single event handler, associated with the second program, configured to receive the event notification irrespective of which of a plurality of actions caused the event notification to be sent, wherein the first parameter, the second parameter, the third parameter, and the fourth parameter are included in the event notification received by the second program in response to a state change caused by at least one of the plurality of actions and used to provide supplemental functionality to the first program when the at least one of the plurality of actions occurs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-readable storage medium having computer-executable components comprising:
-
a first program for editing a document that includes a plurality of Extensible Markup Language (XML) nodes, wherein at least a portion of the plurality of XML nodes include content; a notification issuer configured as part of the first program to issue a single event notification in response to determining that an event occurred, the event being associated with an action performed by the first program on a corresponding node containing an XML namespace not native to the first program, wherein the single event notification is irrespective of a type of the action and comprises a plurality of parameters, the plurality of parameters comprising; a first parameter identifying the first XML node associated with the XML-related action, a second parameter identifying a second XML node associated with the XML-related action, and a third parameter identifying one of a plurality of action types that corresponds to the XML-related action; and a second program configured to receive the single event notification and to handle the single event notification with an event handler, the event handler including computer-executable instructions for receiving the single event notification at the event handler regardless of which of a plurality of action types caused the single event notification to be issued and responding to each of the plurality of action types, wherein the second program uses the single event notification to provide supplemental functionality to the first program. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable storage medium which stores a set of instructions which when executed performs a method for issuing a message from a first program to a second program, the method executed by the set of instructions comprising:
-
issuing by a notification issuer configured as part of the first program, from the first program to the second program, an event notification in response to determining that an event associated with a single Extensible Markup Language (XML) related action occurred on a first XML node contained within an XML namespace not native to the first program related to the first program, the event notification being irrespective of a type of the action and having a plurality of parameters, the plurality of parameters comprising; a first parameter identifying the first XML node associated with the XML-related action, a second parameter identifying a second XML node associated with the XML-related action, and a third parameter identifying one of a plurality of action types that corresponds to the XML-related action;
wherein the second program uses the event notification to provide supplemental functionality to the first program; andreceiving the event notification comprising the plurality of parameters, by the second program from the first program, wherein the second program is configured to receive the event notification by a single event handler irrespective of which of the plurality of action types caused the event message to be sent and respond to the received event notification by providing supplemental functionality to the first program.
-
-
18. A method for issuing an event notification from a first program to a second program, the method comprising:
-
determining, in the first program, an occurrence of an action for editing a document, the document including Extensible Markup Language (XML) nodes contained in a plurality of XML namespaces; selecting a type of action from a plurality of action types, the selected type of action correlated to the determined action; in response to the occurred action, irrespective of the type of action, issuing an event notification, by a notification issuer configured as part of the first program, from the first program to a second program, the event notification including a first parameter field identifying a first XML node contained within one of the plurality of XML namespaces not native to the first program and associated with the action, a second parameter field identifying a second XML node associated with the action, and a third parameter field identifying the selected type of the action and used by the second program to provide supplemental functionality to the first program; and receiving, by the second program, the event notification, wherein the second program comprises a single event handler configured to receive the event notification irrespective of which of the plurality of action types caused the event notification to be issued. - View Dependent Claims (19, 20, 21, 22, 23)
-
Specification