CN107992378B - A kind of document handling method and mobile terminal - Google Patents
A kind of document handling method and mobile terminal Download PDFInfo
- Publication number
- CN107992378B CN107992378B CN201711036215.9A CN201711036215A CN107992378B CN 107992378 B CN107992378 B CN 107992378B CN 201711036215 A CN201711036215 A CN 201711036215A CN 107992378 B CN107992378 B CN 107992378B
- Authority
- CN
- China
- Prior art keywords
- file
- algorithm
- file destination
- reduction
- destination
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1737—Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of document handling methods, which comprises at least once edit operation of the detection to file generates file destination according to the edit operation;Generate the corresponding algorithm file of each edit operation;Establish the corresponding relationship of the file destination Yu the algorithm file;When receiving the instruction of the reduction to the file destination, the file destination is restored according to the algorithm file.File destination is restored according to algorithm file when needing also original, can satisfy the demand for being reduced to original document to edited file.In addition, file process scheme provided in an embodiment of the present invention can reduce the utilization rate that data storage capacity promotes mobile terminal memory space compared to storage original document without storing original document, storage algorithm file.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of document handling method and mobile terminal.
Background technique
With the fast development of mobile terminal soft hardware performance, user using mobile terminal shooting image and is carried out image
The phenomenon that secondary operation, is increasingly common.It is right when being edited at present for user to image using mobile terminal and software
There are two types of processing modes for original image before editor Yu, the first is storage original image, and second is deletion original image.
For the first processing mode, it is continuously increased along with the quantity of editor's image, the original image of storage will occupy mobile terminal
A large amount of memory spaces, reduce the utilization rate of memory space;Second of processing mode, therefore will not due to deleting original image
The memory space of mobile terminal is occupied, but this kind of mode can not go back original image and be unable to satisfy the need that user checks original image
It asks.
Summary of the invention
The embodiment of the present invention provides a kind of document handling method and mobile terminal, with solve it is of the existing technology can not be right
The problem of edited file is restored.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows: a kind of document handling method, comprising: detection pair
The edit operation at least once of file generates file destination according to the edit operation;It is corresponding to generate each edit operation
Algorithm file;Establish the corresponding relationship of the file destination Yu the algorithm file;The file destination is gone back when receiving
When original instruction, the file destination is restored according to the algorithm file.
In a first aspect, the mobile terminal includes: detection module the embodiment of the invention also provides a kind of mobile terminal,
For detecting the edit operation at least once to file, file destination is generated according to the edit operation;Generation module, for giving birth to
At the corresponding algorithm file of each edit operation;Relationship establishes module, for establishing the file destination and algorithm text
The corresponding relationship of part;Recovery module, for when receive the reduction to the file destination instruction when, according to the algorithm file
The file destination is restored.
Second aspect the embodiment of the invention provides a kind of mobile terminal, including processor, memory and is stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
Now the step of document handling method as mentioned.
The third aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage
Computer program is stored on medium, and the step of the document handling method is realized when the computer program is executed by processor
Suddenly.
In embodiments of the present invention, by detecting the edit operation at least once to file, mesh is generated according to edit operation
File is marked, the corresponding algorithm file of edit operation is generated, establishes the corresponding relationship of file destination Yu algorithm file, when needing to restore
File destination is restored according to algorithm file when file, can satisfy and original document is reduced to edited file
Demand.In addition, file process scheme provided in an embodiment of the present invention is without storing original document, storage algorithm file compared to
Storage original document can reduce the utilization rate that data storage capacity promotes mobile terminal memory space.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of document handling method of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of document handling method of the embodiment of the present invention two;
Fig. 3 is the schematic diagram of interface display in the embodiment of the present invention two;
Fig. 4 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention three;
Fig. 5 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention four;
Fig. 6 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention five.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of document handling method of the embodiment of the present invention one is shown.
Step 101: at least once edit operation of the detection to file generates file destination according to edit operation.
When user, which opens file, to edit, edit operation at least once, mobile terminal successively can be executed to file
Editor then is carried out to file according to edit operation and finally obtains file destination.Such as: user first cuts a certain image, then
Filter is increased to the image after cutting, then the target image generated is the image cut after filter.
It should be noted that the file in the embodiment of the present invention can be image or video.The embodiment of the present invention is to text
The type of part is not specifically limited.
Step 102: generating the corresponding algorithm file of edit operation.
For each edit operation that user executes file, mobile terminal by the edit operation generating algorithm and can be protected
It deposits, until editor terminates.
Step 103: establishing the corresponding relationship of file destination Yu algorithm file.
When user terminates the edit operation to file, the file destination and algorithm file that can first obtain editor
Carry out corresponding storage;Then unique identification code is added for file destination, also adds consistent identification code simultaneously for algorithm file,
To complete the foundation of file destination Yu each algorithm file corresponding relationship.
Step 104: when receiving the reduction instruction to file destination, the file destination being carried out according to algorithm file
Reduction.
When user needs to restore target image, user can click a key stop push-button, restore according to a key
Button generates reduction instruction, and determines the corresponding algorithm file of file destination, executes algorithm file, realizes also to file destination
Original is reduced to original document.
In embodiments of the present invention, by detecting the edit operation at least once to file, mesh is generated according to edit operation
File is marked, the corresponding algorithm file of edit operation is generated, establishes the corresponding relationship of file destination Yu algorithm file, when needing to restore
File destination is restored according to algorithm file when file, can satisfy and original document is reduced to edited file
Demand.In addition, file process scheme provided in an embodiment of the present invention is without storing original document, storage algorithm file compared to
Storage original document can reduce the utilization rate that data storage capacity promotes mobile terminal memory space.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of document handling method of the embodiment of the present invention two is shown.
Step 201: at least once edit operation of the detection to file generates file destination according to edit operation.
When user, which opens file, to edit, edit operation at least once, mobile terminal successively can be executed to file
Editor then is carried out to file according to each edit operation and finally obtains file destination.Such as: user first cuts a certain image,
Filter is increased to the image after cutting again, then the target image generated is the image cut after filter.
It should be noted that the file in the embodiment of the present invention can be image or video.The embodiment of the present invention is to text
The type of part is not specifically limited.Subsequent step is specifically described so that file is image as an example in the embodiment of the present invention.
Step 202: generating the corresponding algorithm file of edit operation.
User opens a certain image and executes first step edit operation, and mobile terminal detects the first step editor behaviour to image
When making, text formatting is written into image algorithm used in this edit operation of user or realizes the corresponding format of algorithmic language
In file, save to the arbitrary region of mobile terminal;Or it inverts to the image algorithm that user this edit operation uses
Or it after other deformations, stores in a text format into mobile terminal.
Step 203: determining the chronological order of each edit operation.
Determine the corresponding chronological order of each edit operation, such as: user to image increase filter after to increase filter
Image afterwards is cut, then editor's sequence of above-mentioned two step is first to increase filter to cut again.
Step 204: the algorithm file of each edit operation being ranked up according to chronological order.
It should be noted that can also be stored in the way of queue when being stored to algorithm file, in queue
The execution sequence of algorithm file is first in first out.
It, can be in order to volume when being restored convenient for subsequent user to image by algorithm file ordering and storing
Target image after volume is restored, and target image can be reduced to original image by guarantee.
Step 205: establishing the corresponding relationship of file destination Yu each algorithm file.
When user terminates the edit operation to file, the file destination and algorithm file that can first obtain editor
Carry out corresponding storage;Then unique identification code is added for file destination, also adds consistent identification code simultaneously for algorithm file,
To complete the foundation of file destination Yu each algorithm file corresponding relationship.
It should be noted that those skilled in the art can according to actual needs be configured identification code, identification code
It can be random number, the embodiment of the present invention is not specifically limited the type of identification code.
Step 206: reception checks instruction to file destination.
Check that instruction can be the click commands to file destination thumbnail, or to the length of file destination thumbnail
By instruction etc..
Step 207: displaying target file and file destination correspond to each level stop push-button in display interface.
When user needs to check edited image, in display interface other than showing the image, on display circle
Each level stop push-button is also shown in face, as shown in figure 3, showing a key stop push-button, button below the display interface in figure
One, button two, wherein button one and the instruction of button two are reduced to the corresponding button of a certain level, and key stop push-button instruction is also
It originally was the button of original image.
Step 208: receiving user to the clicking operation of stop push-button, generate the reduction to file destination according to clicking operation
Instruction.
Step 209: when receiving the reduction instruction to file destination, determining that reduction instructs corresponding reduction level.
When user needs to restore target image, according to the button that user selects, determine that reduction instruction is corresponding
Restore level, such as: user clicks a key stop push-button, which is edited three times, it is determined that reduction level
For first layer.
Step 210: when receiving the reduction instruction to file destination, determining the type of algorithm file.
Wherein, the type of algorithm file includes sequential algorithm, Reverse Algorithm and deformation algorithm.
Step 211: when the type of algorithm file is sequential algorithm, algorithm file instruction inversion algorithm being obtained into backward and is calculated
Method restores file destination according to Reverse Algorithm.
When the type of algorithm file is Reverse Algorithm, the algorithm according to the instruction of algorithm file goes back file destination
It is former;
When the type of algorithm file is deformation algorithm, the algorithm of algorithm instruction is deformed;By deformed algorithm
It inverts to obtain Reverse Algorithm, file destination is restored according to Reverse Algorithm.
When being restored to file destination, a kind of preferably scheme are as follows:
If file destination corresponds to polyalgorithm file, when receiving the reduction instruction to file destination, determine that reduction refers to
Enable corresponding reduction level.From the corresponding each algorithm file of file destination, determine that the corresponding target of each level to be restored is calculated
Method file.According to preset hierarchic sequence, the corresponding target algorithm file of each level to be restored is called, file destination is carried out
Reduction.
It should be noted that preset hierarchic sequence can be according to the algorithm file that step 203 to step 204 is established
It is configured.
The specific embodiment of the embodiment of the present invention are as follows: if file destination is to obtain after carrying out four editors to original document
It arrives, when receiving the key stop push-button that user clicks, then according to operation generation reduction instruction, wherein reduction instruction is indicated mesh
Mark file be reduced to the first level, from the corresponding each algorithm file of file destination, determine the corresponding algorithm file of the 4th level,
The corresponding algorithm file of third level and the corresponding algorithm file of the second level.
Up to having restored the second level from the 4th level, the corresponding target algorithm text of each level of reduction is successively called
Part first carries out the corresponding target algorithm file of the 4th level, then execute the corresponding target algorithm file of third level, finally holds
The corresponding target algorithm file of the second level of row, then file needed for reduction obtains user
Such as: addition filter has successively been carried out to certain image, carries out mill skin and cutting.A key then is carried out to target image
When being reduced to original image, then the corresponding target algorithm file of cutting is first called and executed, recall and execute mill skin and is corresponding
Target algorithm file finally calls and executes the corresponding target algorithm file of addition filter, target image is reduced to original graph
Picture.
In embodiments of the present invention, by detecting the edit operation at least once to file, mesh is generated according to edit operation
File is marked, the corresponding algorithm file of edit operation is generated, establishes the corresponding relationship of file destination Yu algorithm file, when needing to restore
File destination is restored according to algorithm file when file, can satisfy and original document is reduced to edited file
Demand.In addition, file process scheme provided in an embodiment of the present invention is without storing original document, storage algorithm file compared to
Storage original document can reduce the utilization rate that data storage capacity promotes mobile terminal memory space.In addition, user can foundation
File destination is reduced to original document by demand, or is restored to the arbitrary process that user edits, and promotes the usage experience of user.
Embodiment three
Referring to Fig. 4, a kind of structural block diagram of mobile terminal of the embodiment of the present invention three is shown.
Mobile terminal provided in an embodiment of the present invention includes: detection module 301, for detecting the volume at least once to file
Operation is collected, generates file destination according to the edit operation;Generation module 302, for generating the corresponding calculation of the edit operation
Method file;Relationship establishes module 303, for establishing the corresponding relationship of the file destination Yu the algorithm file, recovery module
304, for when receive the reduction to the file destination instruction when, according to each algorithm file to the file destination into
Row reduction.
In embodiments of the present invention, by detecting the edit operation at least once to file, mesh is generated according to edit operation
File is marked, the corresponding algorithm file of edit operation is generated, establishes the corresponding relationship of file destination Yu algorithm file, when needing to restore
File destination is restored according to algorithm file when file, can satisfy and original document is reduced to edited file
Demand.In addition, file process scheme provided in an embodiment of the present invention is without storing original document, storage algorithm file compared to
Storage original document can reduce the utilization rate that data storage capacity promotes mobile terminal memory space.
Example IV
Referring to Fig. 5, a kind of structural block diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes: detection module 401, for detecting the volume at least once to file
Operation is collected, generates file destination according to the edit operation;Generation module 402, for generating the corresponding calculation of the edit operation
Method file;Relationship establishes module 403, for establishing the corresponding relationship of the file destination Yu the algorithm file;Recovery module
404, when receiving the instruction of the reduction to the file destination, the file destination is gone back according to the algorithm file
It is former.
Preferably, the type of the algorithm file includes sequential algorithm, Reverse Algorithm and deformation algorithm, the reduction mould
Block 404 includes: the first determining submodule 4041, for determining the calculation when the reduction for receiving the file destination instructs
The type of method file;First reduction submodule 4042, for when the type of the algorithm file be sequential algorithm when, by the calculation
French part instruction inversion algorithm obtains Reverse Algorithm;The file destination is restored according to the Reverse Algorithm;Second also
Atom module 4043, for the algorithm when the type of the algorithm file is Reverse Algorithm, according to algorithm file instruction
The file destination is restored;Third restores submodule 4044, is deformation algorithm for the type when the algorithm file
When, the algorithm of algorithm instruction is deformed;Deformed inversion algorithm is obtained into Reverse Algorithm, is calculated according to the backward
Method restores the file destination.
Preferably, the recovery module 404 further include: second determines submodule 4045, for establishing mould in the relationship
Block is established after the corresponding relationship of the file destination and each algorithm file, if the file destination corresponds to polyalgorithm text
Part determines that the reduction instructs corresponding reduction level when receiving the instruction of the reduction to the file destination;Third determines
Submodule 4046, for determining the corresponding target of each level to be restored from the corresponding each algorithm file of the file destination
Algorithm file;4th reduction submodule 4047, for calling the corresponding mesh of each level to be restored according to preset hierarchic sequence
Algorithm file is marked, the file destination is restored.
Preferably, the mobile terminal comprises determining that module 405, for the relationship establish module 403 establish it is described
Before the corresponding relationship of file destination and the algorithm file, the chronological order of each edit operation is determined;Sort mould
Block 406, for being ranked up according to algorithm file of the chronological order to each edit operation.
Preferably, the mobile terminal further include: receiving module 407, for determining that submodule 4045 is worked as described second
When receiving the instruction of the reduction to the file destination, before determining that the reduction instructs corresponding reduction level, receive to institute
That states file destination checks instruction;Display module 408, for showing the file destination and the target in display interface
File corresponds to each level stop push-button;Clicking operation receiving module 409, for receiving user to the clicking operation of stop push-button,
The reduction to the file destination is generated according to the clicking operation to instruct.
Mobile terminal provided in an embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 1 to Fig. 2 and realize
Each process, to avoid repeating, which is not described herein again.
In embodiments of the present invention, by detecting the multiple edit operation to file, target is generated according to each edit operation
File generates the corresponding algorithm file of each edit operation, establishes the corresponding relationship of file destination Yu each algorithm file, when needs are gone back
File destination is restored according to algorithm file when original, can satisfy and original text is reduced to edited file
The demand of part.In addition, file process scheme provided in an embodiment of the present invention is compared without storing original document, storage algorithm file
The utilization rate that data storage capacity promotes mobile terminal memory space can be reduced in storage original document.In addition, user can be according to
File destination is reduced to original document according to demand, or is restored to the arbitrary process that user edits, promote user uses body
It tests.
Embodiment five
Fig. 6 is a kind of hardware structural diagram of mobile terminal of each embodiment of the present invention,
The mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510, is used for: at least once edit operation of the detection to file generates target according to the edit operation
File;Generate the corresponding algorithm file of each edit operation;Establish file destination pass corresponding with the algorithm file
System;When receiving the instruction of the reduction to the file destination, the file destination is restored according to the algorithm file.
In embodiments of the present invention, by detecting the edit operation at least once to file, mesh is generated according to edit operation
File is marked, the corresponding algorithm file of edit operation is generated, establishes the corresponding relationship of file destination Yu algorithm file, when needing to restore
File destination is restored according to algorithm file when file, can satisfy and original document is reduced to edited file
Demand.In addition, file process scheme provided in an embodiment of the present invention is without storing original document, storage algorithm file compared to
Storage original document can reduce the utilization rate that data storage capacity promotes mobile terminal memory space.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the still image or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching
The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 6, touch panel 5071 and display
Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510
Each process of the above-mentioned document handling method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned document handling method embodiment, and energy when being executed by processor
Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (10)
1. a kind of document handling method, which is characterized in that the described method includes:
The edit operation at least once to file is detected, generates file destination according to the edit operation;
Generate the corresponding algorithm file of each edit operation;
Establish the corresponding relationship of the file destination Yu the algorithm file;
When receiving the instruction of the reduction to the file destination, the file destination is gone back according to the algorithm file
It is former;
Wherein, described to receive the instruction of the reduction to the file destination if the file destination corresponds to polyalgorithm file
When, the step of reduction according to the algorithm file to the file destination, comprising:
When receiving the instruction of the reduction to the file destination, determine that the reduction instructs corresponding reduction level;
From the corresponding each algorithm file of the file destination, the corresponding target algorithm file of each level to be restored is determined;
According to preset hierarchic sequence, call the corresponding target algorithm file of each level to be restored, to the file destination into
Row reduction.
2. the method according to claim 1, wherein the type of the algorithm file includes sequential algorithm, backward
Algorithm and deformation algorithm, it is described when receiving the instruction of the reduction to the file destination, according to the algorithm file to institute
File destination is stated to be restored, comprising:
When receiving the instruction of the reduction to the file destination, the type of the algorithm file is determined;
When the type of the algorithm file is sequential algorithm, algorithm file instruction inversion algorithm is obtained into Reverse Algorithm;
The file destination is restored according to the Reverse Algorithm;
When the type of the algorithm file is Reverse Algorithm, the algorithm according to algorithm file instruction is to the file destination
It is restored;
When the type of the algorithm file is deformation algorithm, the algorithm of algorithm instruction is deformed;It will be deformed
Inversion algorithm obtains Reverse Algorithm, restores according to the Reverse Algorithm to the file destination.
3. the method according to claim 1, wherein generating the corresponding algorithm text of each edit operation described
After the step of part, before described the step of establishing corresponding relationship of the file destination with each algorithm file, the side
Method further include:
Determine the chronological order of each edit operation;
It is ranked up according to algorithm file of the chronological order to each edit operation.
4. the method according to claim 1, wherein referring in described ought receive to the reduction of the file destination
When enabling, before determining the step of reduction instructs corresponding reduction level, the method also includes:
Reception checks instruction to the file destination;
Show that the file destination and the file destination correspond to each level stop push-button in display interface;
User is received to the clicking operation of stop push-button, the reduction of the file destination is referred to according to clicking operation generation
It enables.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Detection module generates file destination according to the edit operation for detecting the edit operation at least once to file;
Generation module, for generating the corresponding algorithm file of each edit operation;
Relationship establishes module, for establishing the corresponding relationship of the file destination Yu the algorithm file;
Recovery module, for when receive the reduction to the file destination instruction when, according to the algorithm file to the mesh
Mark file is restored;
Wherein, the recovery module includes:
Second determines submodule, if corresponding to polyalgorithm file for the file destination, when receiving to the file destination
Reduction instruction when, determine the corresponding reduction level of reduction instruction;
Third determines submodule, for determining each level pair to be restored from the corresponding each algorithm file of the file destination
The target algorithm file answered;
4th reduction submodule, for calling the corresponding target algorithm text of each level to be restored according to preset hierarchic sequence
Part restores the file destination.
6. mobile terminal according to claim 5, which is characterized in that the type of the algorithm file include sequential algorithm,
Reverse Algorithm and deformation algorithm, the recovery module include:
First determines submodule, for determining the class of the algorithm file when the reduction for receiving the file destination instructs
Type;
First reduction submodule, for when the type of the algorithm file is sequential algorithm, the algorithm file being indicated to calculate
Method inverts to obtain Reverse Algorithm;The file destination is restored according to the Reverse Algorithm;
Second reduction submodule, for being indicated according to the algorithm file when the type of the algorithm file is Reverse Algorithm
Algorithm the file destination is restored;
Third restores submodule, the algorithm for indicating the algorithm when the type of the algorithm file is deformation algorithm
It is deformed;Deformed inversion algorithm is obtained into Reverse Algorithm, the file destination is gone back according to the Reverse Algorithm
It is former.
7. mobile terminal according to claim 5, which is characterized in that the mobile terminal includes:
Determining module, for the relationship establish module establish the file destination and the algorithm file corresponding relationship it
Before, determine the chronological order of each edit operation;
Sorting module, for being ranked up according to algorithm file of the chronological order to each edit operation.
8. mobile terminal according to claim 5, which is characterized in that the mobile terminal further include:
Receiving module, for determining that submodule when receiving the instruction of the reduction to the file destination, determines described second
Before the reduction instructs corresponding reduction level, reception checks instruction to the file destination;
Display module is pressed for showing that the file destination and the file destination correspond to each level reduction in display interface
Button;
Clicking operation receiving module, for receiving user to the clicking operation of stop push-button, according to clicking operation generation pair
The reduction of the file destination instructs.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4
The step of described in any item document handling methods.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence, the computer program realize document handling method according to any one of claims 1 to 4 when being executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711036215.9A CN107992378B (en) | 2017-10-30 | 2017-10-30 | A kind of document handling method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711036215.9A CN107992378B (en) | 2017-10-30 | 2017-10-30 | A kind of document handling method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107992378A CN107992378A (en) | 2018-05-04 |
CN107992378B true CN107992378B (en) | 2019-07-26 |
Family
ID=62031130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711036215.9A Active CN107992378B (en) | 2017-10-30 | 2017-10-30 | A kind of document handling method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107992378B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109460706B (en) * | 2018-09-30 | 2021-03-23 | 北京七鑫易维信息技术有限公司 | Eyeball tracking information processing method and device applied to terminal |
CN109460714B (en) * | 2018-10-17 | 2021-05-04 | 北京七鑫易维信息技术有限公司 | Method, system and device for identifying object |
CN110209332A (en) * | 2019-05-31 | 2019-09-06 | 维沃移动通信有限公司 | A kind of information processing method and terminal device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0932108A2 (en) * | 1998-01-22 | 1999-07-28 | Adobe Systems Incorporated | Maintaining document state history |
CN1578352A (en) * | 2003-06-30 | 2005-02-09 | 日本电气株式会社 | Mobile terminal and key operation method capable of restoring operation environment |
CN103473796A (en) * | 2013-09-04 | 2013-12-25 | 清华大学 | Method for acquiring image editing history |
CN103703437A (en) * | 2012-03-06 | 2014-04-02 | 苹果公司 | Application for viewing images |
-
2017
- 2017-10-30 CN CN201711036215.9A patent/CN107992378B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0932108A2 (en) * | 1998-01-22 | 1999-07-28 | Adobe Systems Incorporated | Maintaining document state history |
CN1578352A (en) * | 2003-06-30 | 2005-02-09 | 日本电气株式会社 | Mobile terminal and key operation method capable of restoring operation environment |
CN103703437A (en) * | 2012-03-06 | 2014-04-02 | 苹果公司 | Application for viewing images |
CN103473796A (en) * | 2013-09-04 | 2013-12-25 | 清华大学 | Method for acquiring image editing history |
Also Published As
Publication number | Publication date |
---|---|
CN107992378A (en) | 2018-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762954A (en) | A kind of object sharing method and mobile terminal | |
CN107734179A (en) | A kind of message prompt method, mobile terminal | |
CN109814968A (en) | A kind of data inputting method, terminal device and computer readable storage medium | |
CN108111678B (en) | A kind of information cuing method and mobile terminal | |
CN108334265B (en) | A kind of document handling method and mobile terminal | |
CN109582475A (en) | A kind of sharing method and terminal | |
CN108762863A (en) | A kind of notification message methods of exhibiting, device and mobile terminal | |
CN110109593A (en) | A kind of screenshotss method and terminal device | |
CN109871164A (en) | A kind of message method and terminal device | |
CN110196667A (en) | A kind of processing method and terminal of notification message | |
CN110007835A (en) | A kind of method for managing object and mobile terminal | |
CN108898555A (en) | A kind of image processing method and terminal device | |
CN109085968A (en) | A kind of screenshotss method and terminal device | |
CN108681483A (en) | A kind of task processing method and device | |
CN109522278A (en) | A kind of file memory method and terminal device | |
CN108304477A (en) | A kind of document handling method and device | |
CN108763540A (en) | A kind of file browsing method and terminal | |
CN107992378B (en) | A kind of document handling method and mobile terminal | |
CN110096203A (en) | A kind of screenshot method and mobile terminal | |
CN109981442A (en) | Method for sending information and terminal device | |
CN110442279A (en) | A kind of message method and mobile terminal | |
CN109669656A (en) | A kind of information display method and terminal device | |
CN108536349A (en) | A kind of icon management method and mobile terminal | |
CN110007821A (en) | A kind of operating method and terminal device | |
CN109976844A (en) | A kind of message display method and mobile terminal |
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 |