CN111382127B - Revocation processing method and terminal - Google Patents

Revocation processing method and terminal Download PDF

Info

Publication number
CN111382127B
CN111382127B CN202010088701.0A CN202010088701A CN111382127B CN 111382127 B CN111382127 B CN 111382127B CN 202010088701 A CN202010088701 A CN 202010088701A CN 111382127 B CN111382127 B CN 111382127B
Authority
CN
China
Prior art keywords
execution operation
execution
stored
operations
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010088701.0A
Other languages
Chinese (zh)
Other versions
CN111382127A (en
Inventor
刘德建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Netdragon Websoft Co Ltd
Original Assignee
Fujian Netdragon Websoft Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Netdragon Websoft Co Ltd filed Critical Fujian Netdragon Websoft Co Ltd
Priority to CN202010088701.0A priority Critical patent/CN111382127B/en
Publication of CN111382127A publication Critical patent/CN111382127A/en
Application granted granted Critical
Publication of CN111382127B publication Critical patent/CN111382127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a cancel processing method and a terminal, which are used for receiving an execution operation on a preset file, processing the preset file according to the execution operation, and storing the execution operation according to a time sequence to form an execution operation set; receiving an undo instruction for any one of the stored set of execution operations; judging whether the execution operation corresponding to the cancel instruction is related to the stored other execution operations, and if not, only canceling the execution operation; the method and the device do not need to sequentially cancel the execution operations executed after the execution operation to be cancelled in reverse order according to the execution sequence of the execution operations until the execution operation to be cancelled, can realize the unordered cancellation of a single execution operation without affecting other execution operations, and improve the convenience and the flexibility of file processing.

Description

Revocation processing method and terminal
Technical Field
The present invention relates to the field of file processing, and in particular, to a revocation processing method and a terminal.
Background
In the prior art, in order to facilitate the user to process the file, the user has a cancel function, such as office software of Microsoft: word, excel, powerpoint, etc., and the undo function of Photoshop. By means of the cancel function, the user can cancel the execution operation performed on the file and correct the execution operation which is not satisfied or the wrong execution operation in time.
However, if an existing undo function is to undo an execution operation, the execution operations performed after the execution operation are also to be undone together, that is, the previous execution operations can only be undone in reverse order according to the time sequence until the execution operation to be undone is reached. This causes great inconvenience to the user because in many cases, the user only needs to cancel one of the execution operations, and does not need to cancel other execution operations after the execution operation. For example, 15 words have been input into the word, and the 6 th word is found to be an unnecessary wrongly written word, and if the undo operation is to be performed, the 6 th word needs to be deleted after all the words input after the 6 th word are undone. Clearly this creates a number of inconvenient and inflexible places for the user's file handling.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method and the terminal for canceling the file processing can realize unordered canceling of a single execution operation without affecting other execution operations, and improve convenience and flexibility of file processing.
In order to solve the technical problems, the invention adopts a technical scheme that:
a method of revocation processing comprising the steps of:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, and storing the execution operation according to a time sequence to form an execution operation set;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored rest execution operations, and if not, canceling the execution operation only.
In order to solve the technical problems, the invention adopts another technical scheme that:
an undo processing terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, and storing the execution operation according to a time sequence to form an execution operation set;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored rest execution operations, and if not, canceling the execution operation only.
The invention has the beneficial effects that: when the cancelling instruction is received, judging whether the executing operation corresponding to the cancelling instruction is related to other executing operations, if not, only cancelling the executing operation corresponding to the cancelling instruction, and sequentially cancelling the executing operation executed after the executing operation to be cancelled until the executing operation to be cancelled according to the executing sequence of the executing operation in reverse order, so that the unordered cancelling of the single executing operation can be realized under the condition of not influencing other executing operations, and the convenience and the flexibility of file processing are improved.
Drawings
FIG. 1 is a flowchart illustrating steps of an undo processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a revocation processing terminal according to an embodiment of the present invention;
description of the reference numerals:
1. an undo processing terminal; 2. a memory; 3. a processor.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, an undo processing method includes the steps of:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, and storing the execution operation according to a time sequence to form an execution operation set;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored rest execution operations, and if not, canceling the execution operation only.
From the above description, the beneficial effects of the invention are as follows: when the cancelling instruction is received, judging whether the executing operation corresponding to the cancelling instruction is related to other executing operations, if not, only cancelling the executing operation corresponding to the cancelling instruction, and sequentially cancelling the executing operation executed after the executing operation to be cancelled until the executing operation to be cancelled according to the executing sequence of the executing operation in reverse order, so that the unordered cancelling of the single executing operation can be realized under the condition of not influencing other executing operations, and the convenience and the flexibility of file processing are improved.
Further, each stored execution operation has corresponding association data, and the association data comprises the execution operation associated with the association data;
the step S1 further includes:
determining whether the execution operation is associated with the stored execution operation, if so, storing the execution operation associated with the execution operation into associated data corresponding to the execution operation, and synchronously updating the associated data corresponding to the stored execution operation;
in the step S3, determining whether the execution operation corresponding to the undo instruction is associated with the stored remaining execution operations includes:
and judging whether the corresponding operation is associated with the stored operation with the execution time after the stored operation according to the associated data of the execution operation corresponding to the cancel instruction.
As is clear from the above description, by storing the association data corresponding to each execution operation and performing the association judgment only for the execution operation after the execution time of the execution operation corresponding to the cancel instruction when performing the association judgment, not only is the speed improved, but also the association judgment can be accurately made, and the accurate and reliable execution of the cancel instruction is ensured.
Further, the step S3 further includes:
if yes, determining the execution operation of which the execution time is behind and associated with the execution operation according to the associated data of the execution operation corresponding to the withdrawal instruction, and obtaining an associated operation set;
sequentially cancelling the execution operation in the associated operation set according to the reverse order of the execution time;
and after all the execution operations in the association operation set are cancelled, cancelling the execution operation corresponding to the cancelling instruction.
As can be seen from the above description, in the case that there is an associated execution operation in the execution operation corresponding to the undo instruction, the associated execution operation is only determined in the execution operation after the execution time of the execution operation corresponding to the undo instruction, so as to form an associated operation set, and after the execution operation in the associated operation set is sequentially undone according to the inverted order of the execution time, the execution operation corresponding to the undo instruction is undone, unlike the prior art, and the execution operation is sequentially undone from the last execution operation until the execution operation needs to be undone in the inverted order, so that smooth progress of the undo operation is ensured, unnecessary execution operations are avoided, and file processing efficiency is improved.
Further, the execution operation and undo instruction each include a unique identifier;
the unique identifier indicates different execution operation sending ends;
storing the execution operations in time sequence to form an execution operation set, wherein the execution operation set comprises:
constructing a corresponding buffer area according to the unique identifier contained in the execution operation, and storing the execution operation sent by the sending end corresponding to the unique identifier into the buffer area according to the time sequence to form an execution operation set corresponding to the unique identifier;
the determining whether the execution operation corresponding to the undo instruction is associated with the stored rest of execution operations includes:
and judging whether the execution operation corresponding to the cancel instruction is related to the rest of the execution operations stored in the execution operation set corresponding to the unique identifier.
As can be seen from the above description, for the case of a multi-person conference or a multi-person processing the same preset file together, corresponding buffer areas can be constructed for different execution operation sending ends, and the buffer areas store the execution operations sent by the corresponding execution operation sending ends according to time sequence, so as to form corresponding execution operation sets, so that the processing of the execution operations respectively executed by the different execution operation sending ends can be convenient, and the processing cannot be confused and cannot be influenced mutually.
Further, the execution operation in the execution operation set is still stored after the preset file is closed.
According to the description, after the preset file is closed, the execution operation in the execution operation set can still be saved, and after the user closes the preset file or turns off the mobile terminal, the preset file can be restarted, the execution operation of the last time can still be cancelled, so that the flexibility and convenience of file processing are further improved.
Referring to fig. 2, an undo processing terminal includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, and storing the execution operation according to a time sequence to form an execution operation set;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored rest execution operations, and if not, canceling the execution operation only.
From the above description, the beneficial effects of the invention are as follows: when the cancelling instruction is received, judging whether the executing operation corresponding to the cancelling instruction is related to other executing operations, if not, only cancelling the executing operation corresponding to the cancelling instruction, and sequentially cancelling the executing operation executed after the executing operation to be cancelled until the executing operation to be cancelled according to the executing sequence of the executing operation in reverse order, so that the unordered cancelling of the single executing operation can be realized under the condition of not influencing other executing operations, and the convenience and the flexibility of file processing are improved.
Further, each stored execution operation has corresponding association data, and the association data comprises the execution operation associated with the association data;
the step S1 further includes:
determining whether the execution operation is associated with the stored execution operation, if so, storing the execution operation associated with the execution operation into associated data corresponding to the execution operation, and synchronously updating the associated data corresponding to the stored execution operation;
in the step S3, determining whether the execution operation corresponding to the undo instruction is associated with the stored remaining execution operations includes:
and judging whether the corresponding operation is associated with the stored operation with the execution time after the stored operation according to the associated data of the execution operation corresponding to the cancel instruction.
As is clear from the above description, by storing the association data corresponding to each execution operation and performing the association judgment only for the execution operation after the execution time of the execution operation corresponding to the cancel instruction when performing the association judgment, not only is the speed improved, but also the association judgment can be accurately made, and the accurate and reliable execution of the cancel instruction is ensured.
Further, the step S3 further includes:
if yes, determining the execution operation of which the execution time is behind and associated with the execution operation according to the associated data of the execution operation corresponding to the withdrawal instruction, and obtaining an associated operation set;
sequentially cancelling the execution operation in the associated operation set according to the reverse order of the execution time;
and after all the execution operations in the association operation set are cancelled, cancelling the execution operation corresponding to the cancelling instruction.
As can be seen from the above description, in the case that there is an associated execution operation in the execution operation corresponding to the undo instruction, the associated execution operation is only determined in the execution operation after the execution time of the execution operation corresponding to the undo instruction, so as to form an associated operation set, and after the execution operation in the associated operation set is sequentially undone according to the inverted order of the execution time, the execution operation corresponding to the undo instruction is undone, unlike the prior art, and the execution operation is sequentially undone from the last execution operation until the execution operation needs to be undone in the inverted order, so that smooth progress of the undo operation is ensured, unnecessary execution operations are avoided, and file processing efficiency is improved.
Further, the execution operation and undo instruction each include a unique identifier;
the unique identifier indicates different execution operation sending ends;
storing the execution operations in time sequence to form an execution operation set, wherein the execution operation set comprises:
constructing a corresponding buffer area according to the unique identifier contained in the execution operation, and storing the execution operation sent by the sending end corresponding to the unique identifier into the buffer area according to the time sequence to form an execution operation set corresponding to the unique identifier;
the determining whether the execution operation corresponding to the undo instruction is associated with the stored rest of execution operations includes:
and judging whether the execution operation corresponding to the cancel instruction is related to the rest of the execution operations stored in the execution operation set corresponding to the unique identifier.
As can be seen from the above description, for the case of a multi-person conference or a multi-person processing the same preset file together, corresponding buffer areas can be constructed for different execution operation sending ends, and the buffer areas store the execution operations sent by the corresponding execution operation sending ends according to time sequence, so as to form corresponding execution operation sets, so that the processing of the execution operations respectively executed by the different execution operation sending ends can be convenient, and the processing cannot be confused and cannot be influenced mutually.
Further, the execution operation in the execution operation set is still stored after the preset file is closed.
According to the description, after the preset file is closed, the execution operation in the execution operation set can still be saved, and after the user closes the preset file or turns off the mobile terminal, the preset file can be restarted, the execution operation of the last time can still be cancelled, so that the flexibility and convenience of file processing are further improved.
Example 1
Referring to fig. 1, an undo processing method includes the steps of:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, and storing the execution operation according to a time sequence to form an execution operation set;
the preset files may be files of types doc, ppt, xls, docx, pptx, xlsx, psd, etc., and the execution operation thereof includes various editing processing operations such as text input, deletion, addition, text editing: thickening, changing color, changing size, changing font, adding layers, adding lines, etc., and the objects in the preset file subjected to editing processing can be texts, tables, pictures, etc.;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored other execution operations, and if not, only canceling the execution operation;
optionally, each stored execution operation has corresponding association data, where the association data includes the execution operation associated therewith;
the step S1 further comprises:
determining whether the execution operation is associated with the stored execution operation, if so, storing the execution operation associated with the execution operation into associated data corresponding to the execution operation, and synchronously updating the associated data corresponding to the stored execution operation;
in the step S3, determining whether the execution operation corresponding to the undo instruction is associated with the stored remaining execution operations includes:
judging whether the corresponding operation is associated with the stored operation with the execution time after the stored operation according to the associated data of the execution operation corresponding to the cancel instruction;
the step S3 further includes:
if yes, determining the execution operation of which the execution time is behind and associated with the execution operation according to the associated data of the execution operation corresponding to the withdrawal instruction, and obtaining an associated operation set;
sequentially cancelling the execution operation in the associated operation set according to the reverse order of the execution time;
after all the execution operations in the association operation set are cancelled, cancelling the execution operation corresponding to the cancelling instruction;
for example, in a word document, the following execution operations are sequentially performed: inputting 'Neisseria fifty strings one by one text, wherein the first string is a Ji Hua nian', and sequentially performing thickening treatment, tilting treatment and underlining treatment on the 'Neisseria fifty strings', and sequentially storing the following in the execution operation set according to the execution time sequence of the execution operation: an input operation of each character according to an input sequence, a thickening operation of the ' Neisseria ' and an inclination operation of the ' Neisseria ' and the ' Neisseria ' after the thickening operation, and an underlining operation of the ' Neisseria and the ' Neisseria ' after the thickening and the inclination operation;
when the corresponding execution operation is to be stored, judging whether the stored execution operation is associated with the execution operation or not, for example, when the word line is input, if the previously stored execution operation is input for each symbol in the ' jin's free end fifty strings, one ', the operation of inputting the word line is not associated with the previously stored input operations; if the thickening process is performed, each symbol input before is associated with the thickening process, each execution operation associated with the symbol is stored in the associated data, and the corresponding associated data is correspondingly updated in the stored execution operation, namely, the execution operation such as the input word "series" is performed, and the associated operation is synchronously updated in the associated data: coarsening treatment operation; similarly, after the tilt processing and the underline processing are performed, the execution operation of the word "se" is input, and the association operation is updated synchronously in the association data: a tilting process and an underlining process;
if the received withdrawal of the execution operation of the thickening process is the withdrawal, determining whether the withdrawal of the execution operation of the thickening process is associated with the stored execution operation set, and if the withdrawal of the execution operation of the thickening process is known to be absent, directly withdrawing the execution operation of the thickening process, wherein the text has no thickening effect;
and if the withdrawal of the execution operation of the input of the word "line" is received, it is determined from the associated data that the execution time is after and associated with the execution operation of the word "line" and that the thickening process, the tilting process, and the underlining process are performed, the word "line" is deleted after the underlining process, the tilting process, and the thickening process are sequentially withdrawn.
Example two
The present embodiment is different from the first embodiment in that:
the execution operation and undo instruction each include a unique identifier;
the unique identifier indicates different sending ends for executing the operation, specifically, the unique identifier can be used as the terminal identifier of the sending end for executing the operation by sending or if multiple persons process the same preset file through the same mobile terminal, the unique identifier can be respectively created as the own identifier;
storing the execution operations in time sequence to form an execution operation set, wherein the execution operation set comprises:
constructing a corresponding buffer area according to the unique identifier contained in the execution operation, and storing the execution operation sent by the sending end corresponding to the unique identifier into the buffer area according to the time sequence to form an execution operation set corresponding to the unique identifier;
the determining whether the execution operation corresponding to the undo instruction is associated with the stored rest of execution operations includes:
judging whether the execution operation corresponding to the cancel instruction is related to the rest of the execution operations stored in the execution operation set corresponding to the unique identifier;
for example, three users A, B, C conference together to discuss a photoshop file, and user a edits the background in the file, changes the background into red, and sets a fuzzy processing effect; user B has entered a number of words and has font settings, such as artistic settings, shaded for the words; user C draws a plurality of pictures, and adds the pictures to the photoshop file in sequence; user a edits the graph added by user C, such as adding shadows, etc.; the user C adds lines on the shaded graph;
if the user A, B, C is a teleconference, different users may be distinguished based on the terminal identity of the mobile terminal used respectively, such as with the MAC address of the mobile terminal; if the users A, B, C are face-to-face meetings, their own identities may be created by A, B, C each;
then, when receiving the execution operation of each user, storing the execution operation of each user into a corresponding buffer according to time sequence, for example, creating corresponding buffer A1, B1 and C1 for the user A, B, C respectively and forming corresponding execution operation sets A2, B2 and C2, wherein the buffer A1 correspondingly stores the execution operation of the user A according to time sequence, namely: changing the background into red, setting fuzzy processing and editing the added graph of the user C, wherein the buffer area B1 correspondingly stores the execution operation of the user B according to the time sequence, namely, word input, artistic word setting and shading, and the buffer area C1 correspondingly stores the execution operation of the user C according to the time sequence, namely, adding a plurality of graphs and adding lines on the shaded graph;
for the case that a plurality of user operations exist, the association data can further store association relations with the execution operations in other execution operation sets besides the association among the execution operations in the record book execution operation set, and when determining whether the associated execution operation exists, the association data is searched in the record book execution operation set and is also searched in other execution operation sets; when the associated data is updated, in addition to determining whether the execution operation which needs to update the associated data exists in the execution operation set, determining whether the execution operation which needs to update the associated data exists in other execution operation sets;
for example, when the user a adds a shadow to the graph added by the user C, the execution operation of updating the association of the association data corresponding to the operation of adding the graph in C2 is to add the shadow;
when the user C adds the line, the associated data corresponding to the operation of adding the graph is continuously updated, and the operation of adding the line is included;
if the operation of adding the graph is received, the operation of adding the shadow and the line of the associated data is sequentially acquired to form an associated operation set;
after the operations of adding lines and adding shadows are sequentially cancelled, the operation of cancelling the addition map is executed.
Implementation three
The difference between the present embodiment and the first or second embodiment is that the execution operation in the execution operation set is still saved after the preset file is closed;
for example, after a series of editing is performed on the word document or a series of operations are performed on the files in the photoshop, the corresponding. Docx file or the. Psd file is closed; the last execution operation on the docx file or the psd file still exists when the file is opened next time, and the last execution operation can be cancelled;
when the setting of the line spacing is carried out on the characters in the docx file, the computer is stored and closed after the setting is finished or is closed, when the computer is opened next time, the setting of the spacing is found to be not ideal, the original setting can be better, and then the setting of the spacing of the last time can be cancelled.
Example IV
Referring to fig. 2, a revocation processing terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements the steps of any of the first to third embodiments when executing the computer program.
In summary, according to the revocation processing method and the terminal provided by the invention, when the revocation instruction is received, whether the execution operation corresponding to the revocation instruction is related to other execution operations is judged, if the execution operation corresponding to the revocation instruction is not related to the execution operation, if the execution operation is not related to the execution operation, only the related operation set of the execution operation corresponding to the revocation instruction is required to be determined, all the execution operations to be revoked after the execution operation to be revoked are not required to be revoked in reverse order according to the execution sequence of the execution operation, the unordered revocation of the single execution operation can be realized under the condition that other execution operations are not influenced, the convenience and the flexibility of file processing are improved, meanwhile, the execution operations of different users can be categorized, the method and the terminal are suitable for multi-person conference scenes, the direct editing processes of different users are not interfered with each other, and the reliability of the file revocation processing is improved; and after the preset file processing is closed, the preset file is re-opened, the execution operation performed by the last opening is still reserved, and the cancel operation can be performed on the execution operation performed by the last opening, so that the user experience is further improved.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (2)

1. A method of revocation processing comprising the steps of:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, storing the execution operation according to a time sequence to form an execution operation set, wherein the execution operation comprises various editing processing operations, the preset file comprises texts, tables or pictures, the execution operation comprises text input, deletion, addition and text editing, and the text editing comprises: thickening, changing color, changing size, changing font, adding layers and adding lines;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored other execution operations, and if not, only canceling the execution operation;
the execution operation and undo instruction each include a unique identifier;
the unique identifier indicates different execution operation sending ends;
storing the execution operations in time sequence to form an execution operation set, wherein the execution operation set comprises:
constructing a corresponding buffer area according to the unique identifier contained in the execution operation, and storing the execution operation sent by the sending end corresponding to the unique identifier into the buffer area according to the time sequence to form an execution operation set corresponding to the unique identifier;
the determining whether the execution operation corresponding to the undo instruction is associated with the stored rest of execution operations includes:
judging whether the execution operation corresponding to the cancel instruction is related to the rest of the execution operations stored in the execution operation set corresponding to the unique identifier;
for the case of a plurality of user operations, the association data further stores association relations with the execution operations in other execution operation sets in addition to the association among the execution operations in the record book execution operation set, and when determining whether the associated execution operation exists, the association data is searched in the record book execution operation set and is also searched in other execution operation sets; when the associated data is updated, whether the associated data needs to be updated is determined in other execution operation sets besides determining whether the execution operation which needs to be updated exists in the execution operation set;
the execution operation in the execution operation set is still saved after the preset file is closed;
each stored execution operation has corresponding associated data, the associated data comprising the execution operation associated therewith;
the step S1 further includes:
determining whether the execution operation is associated with the stored execution operation, if so, storing the execution operation associated with the execution operation into associated data corresponding to the execution operation, and synchronously updating the associated data corresponding to the stored execution operation;
in the step S3, determining whether the execution operation corresponding to the undo instruction is associated with the stored remaining execution operations includes:
judging whether the corresponding operation is associated with the stored operation with the execution time after the stored operation according to the associated data of the execution operation corresponding to the cancel instruction;
the step S3 further includes:
if yes, determining the execution operation of which the execution time is behind and associated with the execution operation according to the associated data of the execution operation corresponding to the withdrawal instruction, and obtaining an associated operation set;
sequentially cancelling the execution operation in the associated operation set according to the reverse order of the execution time;
and after all the execution operations in the association operation set are cancelled, cancelling the execution operation corresponding to the cancelling instruction.
2. A revocation processing terminal comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the following steps when executing the computer program:
s1, receiving an execution operation on a preset file, processing the preset file according to the execution operation, storing the execution operation according to a time sequence to form an execution operation set, wherein the execution operation comprises various editing processing operations, the preset file comprises texts, tables or pictures, the execution operation comprises text input, deletion, addition and text editing, and the text editing comprises: thickening, changing color, changing size, changing font, adding layers and adding lines;
s2, receiving an undo instruction aiming at any one of the stored execution operation sets;
s3, judging whether the execution operation corresponding to the cancel instruction is related to the stored other execution operations, and if not, only canceling the execution operation;
the execution operation and undo instruction each include a unique identifier;
the unique identifier indicates different execution operation sending ends;
storing the execution operations in time sequence to form an execution operation set, wherein the execution operation set comprises:
constructing a corresponding buffer area according to the unique identifier contained in the execution operation, and storing the execution operation sent by the sending end corresponding to the unique identifier into the buffer area according to the time sequence to form an execution operation set corresponding to the unique identifier;
the determining whether the execution operation corresponding to the undo instruction is associated with the stored rest of execution operations includes:
judging whether the execution operation corresponding to the cancel instruction is related to the rest of the execution operations stored in the execution operation set corresponding to the unique identifier;
for the case of a plurality of user operations, the association data further stores association relations with the execution operations in other execution operation sets in addition to the association among the execution operations in the record book execution operation set, and when determining whether the associated execution operation exists, the association data is searched in the record book execution operation set and is also searched in other execution operation sets; when the associated data is updated, whether the associated data needs to be updated is determined in other execution operation sets besides determining whether the execution operation which needs to be updated exists in the execution operation set;
the execution operation in the execution operation set is still saved after the preset file is closed;
each stored execution operation has corresponding associated data, the associated data comprising the execution operation associated therewith;
the step S1 further includes:
determining whether the execution operation is associated with the stored execution operation, if so, storing the execution operation associated with the execution operation into associated data corresponding to the execution operation, and synchronously updating the associated data corresponding to the stored execution operation;
in the step S3, determining whether the execution operation corresponding to the undo instruction is associated with the stored remaining execution operations includes:
judging whether the corresponding operation is associated with the stored operation with the execution time after the stored operation according to the associated data of the execution operation corresponding to the cancel instruction;
the step S3 further includes:
if yes, determining the execution operation of which the execution time is behind and associated with the execution operation according to the associated data of the execution operation corresponding to the withdrawal instruction, and obtaining an associated operation set;
sequentially cancelling the execution operation in the associated operation set according to the reverse order of the execution time;
and after all the execution operations in the association operation set are cancelled, cancelling the execution operation corresponding to the cancelling instruction.
CN202010088701.0A 2020-02-12 2020-02-12 Revocation processing method and terminal Active CN111382127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010088701.0A CN111382127B (en) 2020-02-12 2020-02-12 Revocation processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010088701.0A CN111382127B (en) 2020-02-12 2020-02-12 Revocation processing method and terminal

Publications (2)

Publication Number Publication Date
CN111382127A CN111382127A (en) 2020-07-07
CN111382127B true CN111382127B (en) 2023-05-23

Family

ID=71219691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010088701.0A Active CN111382127B (en) 2020-02-12 2020-02-12 Revocation processing method and terminal

Country Status (1)

Country Link
CN (1) CN111382127B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598926A (en) * 2016-11-29 2017-04-26 青岛海信电器股份有限公司 Operation cancellation method and apparatus
CN106936979A (en) * 2015-12-30 2017-07-07 天津三星通信技术研究有限公司 The method and apparatus of destruction operation
CN109032752A (en) * 2017-06-12 2018-12-18 微软技术许可有限责任公司 Operation revocation based on cloud platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7386834B2 (en) * 2002-06-28 2008-06-10 Sun Microsystems, Inc. Undo/redo technique for token-oriented representation of program code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936979A (en) * 2015-12-30 2017-07-07 天津三星通信技术研究有限公司 The method and apparatus of destruction operation
CN106598926A (en) * 2016-11-29 2017-04-26 青岛海信电器股份有限公司 Operation cancellation method and apparatus
CN109032752A (en) * 2017-06-12 2018-12-18 微软技术许可有限责任公司 Operation revocation based on cloud platform

Also Published As

Publication number Publication date
CN111382127A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US10671799B2 (en) Generating digital document content from a digital image
US7392475B1 (en) Method and system for automatic insertion of context information into an application program module
US10331776B2 (en) System and method for convergent document collaboration
US10664650B2 (en) Slide tagging and filtering
US9977672B2 (en) Attributing authorship to segments of source code
US20040243415A1 (en) Architecture for a speech input method editor for handheld portable devices
US20120254730A1 (en) Techniques to create structured document templates using enhanced content controls
US9280264B2 (en) Multi-source, multi-destination data transfers
JPH0668720B2 (en) DEVICE, METHOD AND STRUCTURE FOR CONVERTING DOCUMENT WITH ONE STRUCTURE TO DOCUMENT WITH OTHER STRUCTURE
US10331761B2 (en) Method, computer readable storage medium and computer system for efficient agenda drafting, synchronization and display
CN102486769A (en) Document directory processing method and device
US20230237255A1 (en) Form generation method, apparatus, and device, and medium
CN109817210A (en) Voice writing method, device, terminal and storage medium
CN111046060A (en) Data retrieval method, device, equipment and medium based on elastic search
Kleppmann Moving elements in list CRDTs
CN111382127B (en) Revocation processing method and terminal
CN110852045B (en) Method and device for deleting document content, electronic equipment and storage medium
KR20220097619A (en) System of providing document-based chatting service and the document editting method applied thereto
JPH03105557A (en) Method for adding information to document
JPS6254346A (en) Automatic formation system for list of document file correcting points
Barrett Efficient Linux at the Command Line
WO2019243926A1 (en) Digital document management system
CN116795261A (en) Interaction method and device, electronic equipment and storage medium
CN112685369A (en) Processing method and device and electronic equipment
CN117938796A (en) Processing method, equipment and storage medium for link address in text message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant