Insertion method and system based on powerpoint application object
An application object and insertion system technology, applied in special data processing applications, multi-programming devices, instruments, etc., can solve problems such as poor user experience, poor practicability, and inability to restore, and achieve simple use, strong practicability, The effect of improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0087] Please refer to figure 2 , Embodiment one of the present invention is: a kind of insertion method based on PowerPoint application object, comprises the steps:
[0088] S1: Create a PowerPoint operation management class, which is the management object of the insert operation.
[0089] S2: Create at least two insertion threads; multiple insertion threads can be created sequentially through the function CreateThread.
[0090] S3: Create a trigger event corresponding to the at least two threads; the trigger event can be created through a function CreateEvent.
[0091] S4: Create an application object corresponding to the at least two insertion threads one by one, and the application objects corresponding to the first and last and adjacent insertion threads are inconsistent; the application object is a class of PowerPoint, including a plurality of PowerPoint related functions Furthermore, the application object is created through the COM interface; the thread corresponds ...
Embodiment 2
[0104] Please refer to image 3 , this embodiment is a further expansion of step S8 in Embodiment 1, including the following steps:
[0105] S81: Create an insertion variable that records the total number of insertion operations, and initialize the value of the insertion variable to zero.
[0106] S82: Sort the inserting threads and their corresponding triggering events respectively starting from zero.
[0107] S83: Calculate the remainder of dividing the value of the insertion variable by the total number of insertion threads according to the value of the insertion variable and the total number of insertion threads.
[0108] S84: According to the remainder, wake up one trigger event corresponding to the number from at least two trigger events.
[0109] S85: Add one to the value of the inserted variable.
[0110] For example, if the total number of insertion threads is 3, the numbers of the three insertion threads are 0, 1, and 2 in sequence, and the numbers of the correspo...
Embodiment 3
[0113] Please refer to Figure 5 , the present embodiment is an insertion system based on a PowerPoint application object corresponding to the above-mentioned embodiments, including:
[0114] The first creation module 1 is used to create at least two insertion threads;
[0115] The second creation module 2 is configured to create a trigger event corresponding to the at least two threads one-to-one;
[0116] The third creation module 3 is configured to create application objects corresponding to the at least two insertion threads one-to-one, and the application objects corresponding to the first, last, and adjacent insertion threads are inconsistent;
[0117] The first judging module 4 is used to judge whether an insertion operation is detected, and obtain a first judging result;
[0118] The adding module 5 is used to enter the critical section if the first judgment result is yes, and add the insertion instruction corresponding to the insertion operation to the insertion lis...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


