CN112784544B - Method and device for canceling document content preservation and electronic equipment - Google Patents
Method and device for canceling document content preservation and electronic equipment Download PDFInfo
- Publication number
- CN112784544B CN112784544B CN202010512162.9A CN202010512162A CN112784544B CN 112784544 B CN112784544 B CN 112784544B CN 202010512162 A CN202010512162 A CN 202010512162A CN 112784544 B CN112784544 B CN 112784544B
- Authority
- CN
- China
- Prior art keywords
- document
- document content
- edited
- blank
- writing
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 90
- 238000004321 preservation Methods 0.000 title claims abstract description 34
- 230000008569 process Effects 0.000 claims abstract description 47
- 238000004891 communication Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 10
- 230000009471 action Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/174—Form filling; Merging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention provides a method, a device and electronic equipment for canceling document content preservation, which comprise the following steps: when a save operation for the edited document content is received, a blank document is created at a preset storage position, and in the process of writing the edited document content into the blank document, if the save operation for the edited document content is received, the writing of the edited document content into the blank document is stopped, the blank document of which the writing of the edited document content is stopped is deleted, and an original document corresponding to the edited document content is reserved.
Description
Technical Field
The present invention relates to the field of document processing technologies, and in particular, to a method and an apparatus for canceling document content saving, and an electronic device.
Background
With the rapid development of computer technology, computer applications have advanced into various aspects of production and life. In modern social life, computers are a requisite tool for users to work, wherein application software of electronic document editing class is often used in offices by users.
Editing and saving operations for electronic documents are often involved in the daily use of electronic documents. Editing operations on electronic documents, in addition to adding new data in the electronic document, often require modifying or deleting the original data of the electronic document. The electronic document may be saved when editing of the electronic document is completed or other things the user needs to handle. When the user clicks the save button, the program saves the edited document content to the source document.
The inventors have found that in the process of implementing the present invention, at least the following problems exist in the prior art:
in the prior art, after clicking the save button, when the user realizes that some data to be saved is edited, in order to avoid that the data to be saved is covered by the edited document content, the save of the edited document content may need to be canceled, however, in the prior art, no technical means for canceling the save exists, so that the problem of losing the original document due to the fact that the user mispoints the save button exists.
Disclosure of Invention
The embodiment of the invention aims to provide a method for canceling document content preservation, so as to avoid the problem of original document loss caused by a user mispointing a preservation button. The specific technical scheme is as follows:
The embodiment of the invention provides a method for canceling document content preservation, which comprises the following steps:
when a save operation for edited document content is received, creating a blank document at a preset storage location;
In the process of writing the edited document content into the blank document, if a cancel save operation for the edited document content is received, stopping writing the edited document content into the blank document;
And deleting the blank document, and retaining the original document corresponding to the edited document content.
Further, when a save operation for edited document content is received, creating a blank document at a preset storage location, including:
when a saving operation for edited document content is received, acquiring a storage catalog of an original document corresponding to the edited document content;
And creating a blank document under the storage directory.
Further, in the process of writing the edited document content into the blank document, if a cancel save operation for the edited document content is received, stopping writing the edited document content into the blank document, including:
and in the process of writing the edited document content into the blank document, stopping writing the edited document content into the blank document if a triggering operation for the displayed cancel save button is received.
Further, the method further comprises:
and displaying a cancel save button in the process of writing the edited document content into the blank document.
Further, the method further comprises:
and in the process of writing the edited document content into the blank document, if the cancel save operation for the edited document content is not received, writing the edited document content into the blank document, obtaining the edited document, and then using the edited document to replace the original document corresponding to the edited document content.
The embodiment of the invention also provides a device for canceling document content preservation, which comprises:
The creating module is used for creating a blank document at a preset storage position when a save operation for edited document content is received;
The writing control module is used for stopping writing the edited document content into the blank document if a cancel save operation for the edited document content is received in the process of writing the edited document content into the blank document;
and the deleting module is used for deleting the blank document and reserving an original document corresponding to the edited document content.
Further, the creation module is specifically configured to, when receiving a save operation for edited document content, obtain a storage directory of an original document corresponding to the edited document content, and create a blank document under the storage directory.
Further, the writing control module is specifically configured to stop writing the edited document content into the blank document if a trigger operation for the displayed cancel save button is received in the process of writing the edited document content into the blank document.
Further, the writing control module is further configured to display a cancel save button in a process of writing the edited document content into the blank document.
Further, the device further comprises:
and the replacing module is used for replacing the original document corresponding to the edited document content by using the edited document after writing the edited document content into the blank document and obtaining the edited document if the canceling and saving operation for the edited document content is not received in the process of writing the edited document content into the blank document.
The embodiment of the invention also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface, and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
And the processor is used for realizing any method for canceling document content preservation when executing the program stored in the memory.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs any of the above-described steps of a method of canceling document content preservation.
The embodiments of the present invention also provide a computer program product comprising instructions that, when executed on a computer, cause the computer to perform any of the methods of canceling document content preservation described above.
According to the method, the device and the electronic equipment for canceling document content preservation, in the scheme, when a preservation operation for edited document content is received, a blank document is created at a preset storage position, and in the process of writing the edited document content into the blank document, if the preservation operation for edited document content is received, writing of the edited document content into the blank document is stopped, the blank document of which writing of the edited document content is stopped is deleted, an original document corresponding to the edited document content is reserved, and in the process of saving the edited document content, the original document corresponding to the edited document content can be reserved by canceling the preservation, so that the problem of original document loss caused by a user error point preservation button is avoided.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flow chart of a method for canceling document content preservation provided by one embodiment of the present invention;
FIG. 2 is a flow chart of a method for canceling document content retention provided by another embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for canceling document content preservation according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to provide an implementation scheme for avoiding the problem of original document loss caused by a user mispointing a save button, an embodiment of the application provides a method, a device and electronic equipment for canceling document content saving, and the embodiment of the application is described below with reference to the accompanying drawings of the specification. And embodiments of the application and features of the embodiments may be combined with each other without conflict.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In one embodiment of the present invention, there is provided a method of canceling document content saving, as shown in fig. 1, the method comprising the steps of:
s101: when a save operation for edited document content is received, a blank document is created at a preset storage location.
In this step, when a save operation for edited document content is received, a blank document may be created at a preset storage location, in one embodiment, in order to facilitate the user to save the edited document content, a save button may be created at the editing interface, when a trigger operation for the save button is received by the user, the user starts to save the current edited document content, in one embodiment, according to a man-machine interaction manner of different devices, the trigger operation for the save button by the user may be different, and, for example, on a desktop computer or a notebook computer, the user may click the save button through an external mouse, and on a mobile terminal, the user may click the save button through a touch manner.
To ensure the data integrity of the original document corresponding to the edited document content, a blank document may be created at a preset storage location, where the preset storage location may be determined by a person skilled in the art according to actual requirements.
It will be understood by those skilled in the art that after the creation of the blank document is completed, the edited document content may be written into the blank document, and due to the limitation of the machine reading and writing speed, it takes a certain writing time period to write the edited document content into the blank document, and step S102 may be performed in the writing time period to write the edited document content into the blank document.
Since the data size of the edited document content is too small in the actual writing process, the writing time length is too small, so that a user cannot operate the writing process in the writing time length, in one embodiment, the writing time length of the edited document content with the data size smaller than a certain threshold value can be delayed, and the method of limiting the machine reading and writing speed or intermittently writing the edited document content can be realized by way of example.
S102: in the process of writing the edited document content into the blank document, if a cancel save operation for the edited document content is received, stopping writing the edited document content into the blank document.
In this step, in the process of writing the edited document content into the blank document, if a cancel save operation for the edited document content is received, writing of the edited document content into the blank document may be stopped.
In one embodiment, the cancel save operation may be triggered by a pre-agreed user action, for example, for a mobile smart device, the pre-agreed user action may be a double click action of a finger of the user, or may be a long press action of the finger, for a desktop computer or a notebook computer, the pre-agreed user action may be a double click action of a mouse, and for an exemplary process of writing edited document content into a blank document, the writing of edited document content into the blank document is stopped when the double click action of the user is detected.
S103: and deleting the blank document, and reserving an original document corresponding to the edited document content.
In this step, after stopping writing the edited document content into the blank document, the blank document may be deleted, and the original document corresponding to the edited document content may also be retained.
According to the method for canceling document content preservation provided by the embodiment of the invention, when the preservation operation for the edited document content is received, a blank document is created at the preset storage position, and in the process of writing the edited document content into the blank document, if the preservation operation for the edited document content is received, writing of the edited document content into the blank document is stopped, the blank document of which writing of the edited document content is stopped is deleted, and an original document corresponding to the edited document content is reserved.
In another embodiment of the present invention, there is also provided a method for canceling document content saving, as shown in fig. 2, the method comprising the steps of:
s201: when a save operation for the edited document content is received, a storage directory of the original document corresponding to the edited document content is acquired.
In this step, when a save operation for the edited document content is received, a storage directory of an original document corresponding to the edited document content may be obtained, where the storage directory of the original document corresponding to the edited document content may have been stored in a specified data table in advance.
S202: a blank document is created under the storage directory.
In this step, after determining the storage directory of the original document corresponding to the edited document content in step S201, a blank document may be created under the storage directory, and it should be noted that, at this time, the name of the blank document and the name of the original document may be different, and a specific identification suffix may be added on the basis of the document name of the original document, for example.
S203: in the process of writing the edited document content into the blank document, whether a cancel save operation is received or not is monitored.
In this step, during writing the edited document content into the blank document, it may be monitored whether a cancel save operation is received, if it is monitored that a cancel save operation is received, step S204 is performed, and if it is not monitored that a cancel save operation is received, step S206 is performed, where the cancel save operation may be a trigger operation for the displayed cancel save button in one embodiment.
S204: in the process of writing the edited document content into the blank document, if the triggering operation of the displayed cancel save button is received, stopping writing the edited document content into the blank document.
In this step, the displayed cancel save button may be created and displayed during the process of writing the edited document content into a blank document, or may be displayed in a document page at all times.
In one embodiment, in writing the edited document content to the blank document, if a trigger operation for the presented cancel save button is received, writing the edited document content to the blank document may be stopped. The triggering operation for the displayed cancel save button can be a click operation of a user through a mouse, or a click operation of the user through a finger on a touch screen.
S205: and deleting the blank document, and reserving an original document corresponding to the edited document content.
In this step, the method may be specifically performed in the manner described in step S103, and will not be described in detail here.
S206: in the process of writing the edited document content into the blank document, if the cancel save operation for the edited document content is not received, writing the edited document content into the blank document, obtaining the edited document, and then replacing the original document corresponding to the edited document content by using the edited document.
In this step, in the process of writing the edited document content into the blank document, if the cancel save operation for the edited document content is not received, the edited document content may be written into the blank document, and after the edited document is obtained, the edited document may be used to replace the original document corresponding to the edited document content.
In one embodiment, if the edited document and the original document are not in the same directory, after the edited document content is written into the blank document, the original document corresponding to the edited document content may be deleted, the document name of the edited document is modified to the document name of the original document corresponding to the edited document content, and the edited document with the modified document name is moved to the storage position of the deleted original document, so that the whole replacement process is completed.
In one embodiment, if the edited document and the original document are in the same directory, after the edited document content is written into the blank document, the original document corresponding to the edited document content may be deleted, and the document name of the edited document may be modified to the document name of the original document corresponding to the edited document content, so that the whole replacement process may be completed.
According to the method for canceling document content preservation provided by the embodiment of the invention, when the preservation operation for the edited document content is received, the storage catalog of the original document corresponding to the edited document content is obtained, the blank document is created under the storage catalog, and in the process of writing the edited document content into the blank document, if the triggering operation for the displayed cancel preservation button is received, the writing of the edited document content into the blank document is stopped, the blank document is deleted, the original document corresponding to the edited document content is preserved, and because the original document corresponding to the edited document content can be preserved by canceling the preservation in the process of preserving the edited document content, the problem of original document loss caused by a user error point preservation button is avoided.
Based on the same inventive concept, according to the method for canceling document content saving provided by the embodiment of the present invention, the embodiment of the present invention further provides an apparatus for canceling document content saving, as shown in fig. 3, where the apparatus includes:
a creation module 301 for creating a blank document at a preset storage location when a save operation for edited document content is received;
The writing control module 302 is configured to stop writing the edited document content into the blank document if a cancel save operation for the edited document content is received during writing the edited document content into the blank document;
And the deleting module 303 is used for deleting the blank document and reserving the original document corresponding to the edited document content.
Further, the creating module is specifically configured to, when receiving a save operation for the edited document content, obtain a storage directory of the original document corresponding to the edited document content, and create a blank document under the storage directory.
Further, the writing control module is specifically configured to stop writing the edited document content into the blank document when receiving a trigger operation for the displayed cancel save button in the process of writing the edited document content into the blank document.
Further, the writing control module is further configured to display a cancel save button in a process of writing the edited document content into the blank document.
Further, the apparatus further comprises:
And the replacing module is used for writing the edited document content into the blank document if the canceling storage operation for the edited document content is not received in the process of writing the edited document content into the blank document, and replacing the original document corresponding to the edited document content by using the edited document after the edited document is obtained.
According to the device for canceling document content preservation, when the preservation operation for the edited document content is received, the storage catalog of the original document corresponding to the edited document content is obtained, the blank document is created under the storage catalog, and in the process of writing the edited document content into the blank document, if the triggering operation for the displayed cancel preservation button is received, writing of the edited document content into the blank document is stopped, the blank document is deleted, the original document corresponding to the edited document content is reserved, and because the original document corresponding to the edited document content can be reserved by canceling the preservation in the process of preserving the edited document content, the problem that the original document is lost due to the fact that a user mispoints a preservation button is avoided.
The embodiment of the invention also provides an electronic device, as shown in fig. 4, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404,
A memory 403 for storing a computer program;
The processor 401, when executing the program stored in the memory 403, implements the following steps:
when a save operation for edited document content is received, creating a blank document at a preset storage location;
In the process of writing the edited document content into the blank document, if a cancel save operation for the edited document content is received, stopping writing the edited document content into the blank document;
And deleting the blank document, and retaining the original document corresponding to the edited document content.
According to the electronic equipment provided by the embodiment of the invention, when the storage operation for the edited document content is received, the storage catalog of the original document corresponding to the edited document content is obtained, the blank document is created under the storage catalog, and in the process of writing the edited document content into the blank document, if the triggering operation for the displayed cancel storage button is received, the writing of the edited document content into the blank document is stopped, the blank document is deleted, the original document corresponding to the edited document content is reserved, and because the original document corresponding to the edited document content can be reserved by canceling the storage in the process of storing the edited document content, the problem of original document loss caused by the error point storage button of a user is avoided.
It should be noted that, other embodiments of the method for canceling document content saving implemented by the electronic device are the same as the filtering method mentioned in the foregoing method embodiment, and are not repeated here.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the methods of canceling document content preservation described above.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the methods of canceling document content preservation of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for an apparatus, an electronic device, a computer readable storage medium, a computer program product, a description is relatively simple, as it is substantially similar to the method embodiments, as relevant see also part of the description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (11)
1. A method of canceling document content preservation, comprising:
when a save operation for edited document content is received, creating a blank document at a preset storage location;
In the process of writing the edited document content into the blank document, if a cancel save operation for the edited document content is received, stopping writing the edited document content into the blank document;
Deleting the blank document and reserving an original document corresponding to the edited document content;
in the process of writing the edited document content into the blank document, when the data volume of the edited document content is smaller than a preset threshold value, delaying the writing time length of the edited document content with the data volume smaller than the preset threshold value; and stopping writing the edited document content into the blank document when a cancel save operation for the edited document content is received.
2. The method of claim 1, wherein creating a blank document at a preset storage location when a save operation for edited document content is received, comprises:
when a saving operation for edited document content is received, acquiring a storage catalog of an original document corresponding to the edited document content;
And creating a blank document under the storage directory.
3. The method according to claim 1, wherein the stopping writing the edited document content to the blank document if a cancel save operation for the edited document content is received during writing the edited document content to the blank document comprises:
and in the process of writing the edited document content into the blank document, stopping writing the edited document content into the blank document if a triggering operation for the displayed cancel save button is received.
4. A method according to claim 3, characterized in that the method further comprises:
and displaying a cancel save button in the process of writing the edited document content into the blank document.
5. The method according to claim 1, wherein the method further comprises:
and in the process of writing the edited document content into the blank document, if the cancel save operation for the edited document content is not received, writing the edited document content into the blank document, obtaining the edited document, and then using the edited document to replace the original document corresponding to the edited document content.
6. An apparatus for canceling document content preservation, comprising:
The creating module is used for creating a blank document at a preset storage position when a save operation for edited document content is received;
The writing control module is used for stopping writing the edited document content into the blank document if a cancel save operation for the edited document content is received in the process of writing the edited document content into the blank document;
The deleting module is used for deleting the blank document and reserving an original document corresponding to the edited document content;
The writing control module is further configured to delay a writing time length of the edited document content, in which the data amount of the edited document content is smaller than a preset threshold value, when the data amount of the edited document content is smaller than the preset threshold value in the process of writing the edited document content into the blank document; and stopping writing the edited document content into the blank document when a cancel save operation for the edited document content is received.
7. The apparatus according to claim 6, wherein the creating module is specifically configured to, when a save operation for edited document content is received, acquire a storage directory of an original document corresponding to the edited document content, and create a blank document under the storage directory.
8. The apparatus of claim 6, wherein the writing control module is specifically configured to stop writing the edited document content into the blank document when a trigger operation for the presented cancel save button is received during writing the edited document content into the blank document.
9. The apparatus of claim 8, wherein the write control module is further configured to present a cancel save button during writing the edited document content to the blank document.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the replacing module is used for replacing the original document corresponding to the edited document content by using the edited document after writing the edited document content into the blank document and obtaining the edited document if the canceling and saving operation for the edited document content is not received in the process of writing the edited document content into the blank document.
11. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
A processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010512162.9A CN112784544B (en) | 2020-06-08 | 2020-06-08 | Method and device for canceling document content preservation and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010512162.9A CN112784544B (en) | 2020-06-08 | 2020-06-08 | Method and device for canceling document content preservation and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112784544A CN112784544A (en) | 2021-05-11 |
CN112784544B true CN112784544B (en) | 2024-09-06 |
Family
ID=75750073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010512162.9A Active CN112784544B (en) | 2020-06-08 | 2020-06-08 | Method and device for canceling document content preservation and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112784544B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106164908A (en) * | 2014-04-02 | 2016-11-23 | 微软技术许可有限责任公司 | Modern document storing and sync status |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4103282B2 (en) * | 2000-01-11 | 2008-06-18 | カシオ計算機株式会社 | File storage management device and storage medium |
US8196029B1 (en) * | 2000-06-21 | 2012-06-05 | Microsoft Corporation | System and method for enabling simultaneous multi-user electronic document editing |
US8707209B2 (en) * | 2004-04-29 | 2014-04-22 | Microsoft Corporation | Save preview representation of files being created |
US8205150B2 (en) * | 2007-01-22 | 2012-06-19 | Cfph, Llc | Document changes |
US10943059B2 (en) * | 2018-06-27 | 2021-03-09 | Microsoft Technology Licensing, Llc | Document editing models and management |
CN110110301B (en) * | 2019-05-09 | 2023-08-01 | 成都终身成长科技有限公司 | File editing method, device, system, client, server and storage medium |
-
2020
- 2020-06-08 CN CN202010512162.9A patent/CN112784544B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106164908A (en) * | 2014-04-02 | 2016-11-23 | 微软技术许可有限责任公司 | Modern document storing and sync status |
Also Published As
Publication number | Publication date |
---|---|
CN112784544A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10699061B2 (en) | Application page quick access | |
CN107480114B (en) | Extended activation of related documents | |
CN109144392B (en) | Method and device for processing gesture conflict and electronic equipment | |
CN105068726B (en) | Information processing method and terminal | |
US20170199889A1 (en) | Method and device for identifying junk picture files | |
CN111414727B (en) | Editing method and device for PDF document header footer and electronic equipment | |
WO2019134542A1 (en) | Mobile terminal click event recognition method and apparatus | |
US20140136578A1 (en) | Techniques to manage virtual files | |
CN112784544B (en) | Method and device for canceling document content preservation and electronic equipment | |
CN110989893A (en) | Click operation response method and device and electronic equipment | |
US9747205B2 (en) | Method for processing data and electronic device | |
CN109710128B (en) | Shortcut key display method and device | |
CN113986134B (en) | Method for storing data, method and device for reading data | |
CN115544981A (en) | Document processing method, document processing device, electronic device, storage medium, and program product | |
CN111459411B (en) | Data migration method, device, equipment and storage medium | |
CN110688070B (en) | Management method and device for solid state disk data table, storage medium and electronic equipment | |
CN108647197B (en) | Information processing method, device and storage medium | |
CN111191427A (en) | PDF document annotation method and device and electronic equipment | |
CN112541327A (en) | Data reading method and device, electronic equipment and storage medium | |
CN111199144A (en) | Document content altering method and device, electronic equipment and readable storage medium | |
CN111897661A (en) | Method and device for copying cell contents in spreadsheet and electronic equipment | |
CN110889066A (en) | Method and device for opening webpage in client software and electronic equipment | |
CN112784564B (en) | Document generation method and device | |
CN111291267B (en) | APP user behavior analysis method and device | |
CN112783381B (en) | Slide processing method and device and electronic equipment |
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 |