Summary of the invention
The embodiment of the present invention is designed to provide the processing method and system that object is inserted into a kind of document, so that handy
Family can be realized by simple operations to the editor for being inserted into object in document.
In order to achieve the above objectives, the embodiment of the invention discloses the processing method for being inserted into object in a kind of document, it is applied to
In mobile terminal, which comprises
User is received to the first operational order of the first insertion object in document;
Extract the first insertion object in document;
Judge whether the first insertion object is expandable mark language XML format, if it is, inserting to described first
Enter object to be parsed, determine the corresponding application program of the first insertion object, the first insertion object is converted into institute
State the data for the format that the corresponding application program of the first insertion object is supported;
Start the corresponding application program of the first insertion object, by the corresponding application program branch of the first insertion object
The data for the format held be sent to in the application program that is started.
Optionally, it sends the data for the format that the corresponding application program of the first insertion object is supported to and is started
Application program in after, further includes:
It is corresponding using journey to obtain the first insertion object that the corresponding application program of the first insertion object generates
The data for the format that sequence is supported;
The data that obtained described first is inserted into the format that the corresponding application program of object is supported are converted into XML format
Data;
Using the XML format data as in insertion object insertion document.
Optionally, described that the first insertion object is parsed, determine the corresponding application of the first insertion object
The first insertion object is converted to the data for the format that the corresponding application program of the first insertion object is supported by program,
Include:
The data header for parsing the first insertion object determines the corresponding application program of the first insertion object;
The remaining data part for parsing the first insertion object determines the data structure rule of the first insertion object
Then;
According to determining data structure rule, the data in the first insertion object are reorganized, it is raw
At the data for the format that the corresponding application program of the first insertion object is supported.
Optionally, the first insertion object pair for obtaining the corresponding application program of the first insertion object and generating
The data for the format that the application program answered is supported, comprising:
Obtain that the corresponding application program of the first insertion object is transmitted before being turned off, is generated by the application program
Described first is inserted into the data for the format that the corresponding application program of object is supported.
Optionally, the data for obtained described first being inserted into the format that the corresponding application program of object is supported turn
It is changed to XML format data, comprising:
The data for being inserted into the format that the corresponding application program of object is supported for obtained described first, in a manner of key-value pair
It is compressed into the data flow of XML format, and data header is added.
It is inserted into the processing system of object in a kind of document, is applied in mobile terminal, the system comprises: command reception list
Member, object extracting unit, format judging unit, the first resolution unit and data transmission unit,
Described instruction receiving unit, for receiving user to the first operational order of the first insertion object in document;
The object extracting unit, for extracting the first insertion object in document;
The format judging unit, for judging whether the first insertion object is expandable mark language XML format,
If it is, triggering first resolution unit;
First resolution unit determines the first insertion object for parsing to the first insertion object
The first insertion object is converted to the lattice that the corresponding application program of the first insertion object is supported by corresponding application program
The data of formula;
The data transmission unit is inserted for starting the corresponding application program of the first insertion object by described first
Enter the format that the corresponding application program of object is supported data be sent to in the application program that is started.
Optionally, further includes: data acquiring unit, the second resolution unit and object are inserted into unit,
The data acquiring unit, in the data transmission unit that the first insertion object is corresponding using journey
The data for the format that sequence is supported be sent to in the application program that is started after, obtain the corresponding application of the first insertion object
The data for the format that the corresponding application program of the first insertion object of Program Generating is supported;
Second resolution unit, for being inserted into the lattice that the corresponding application program of object is supported for obtained described first
The data of formula are converted to XML format data;
The object is inserted into unit, for using the XML format data as in insertion object insertion document.
Optionally, first resolution unit includes: that the first parsing subunit, the second parsing subunit and conversion are single
Member,
First parsing subunit determines that described first inserts for parsing the data header of the first insertion object
Enter the corresponding application program of object;
Second parsing subunit determines described for parsing the remaining data part of the first insertion object
The data structure rule of one insertion object;
The conversion subunit, for being inserted into object to described first according to determining data structure rule
Data are reorganized, and the data for the format that the corresponding application program of the first insertion object is supported are generated.
Optionally, the data acquiring unit, is specifically used for: being inserted into object for described first in the data transmission unit
The data for the format that corresponding application program is supported be sent to in the application program that is started after, obtain first insertion pair
As the corresponding application of the first insertion object that corresponding application program is transmitted before being turned off, is generated by the application program
The data for the format that program is supported.
Optionally, second resolution unit is specifically used for being inserted into the corresponding application of object for obtained described first
The data for the format that program is supported, are compressed into the data flow of XML format, and data header is added in a manner of key-value pair.
It is inserted into the processing method and system of object in a kind of document provided in an embodiment of the present invention, inserting for document can be extracted
Enter object and when being inserted into object is XML format, object will be inserted into and be converted to what the corresponding application program of the insertion object was supported
Then the data of format start the application program, the data after format transformation are sent to the application program.Such as: it is being inserted into
When object is the table of XML format, insertion object is converted into table format namely XLS format.In this way, table procedure can
To open the data of the table format to carry out the operation such as editing.The present invention can make user simple by a document
Operation can be realized to the editor for being inserted into object in document, and user's use feeling is good.
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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, being inserted into the processing method of object in a kind of document provided in an embodiment of the present invention, it is applied to mobile whole
In end, this method may include:
S100, user is received to the first operational order of the first insertion object in document;
Wherein, first operational order can be double-click instruction, single key command, frame choosing instruction or right button instruction etc..
S200, described first extracted in document are inserted into object;
Wherein, the first insertion object can be with are as follows: table, chart, picture, voice or video.
S300, judge whether the first insertion object is expandable mark language XML format, if it is, executing
S400;
Wherein, extensible markup language (XML, eXtensible Markup Language) is that a kind of simple data are deposited
Language is stored up, describes data using a series of simple labels, and these labels can be established with convenient mode, although expansible
Markup language the space occupied occupies more spaces than binary data, but extensible markup language is extremely simple is easy to slap
It holds and uses.XML is designed to transmit and carry data information, performance or display data is not used to, so the focus of XML purposes
It is that it illustrates that data are, and carries data information.XML is widely used for the shape as interaction data between cross-platform
Formula can complete final form by different Green Formula means (XSLT, CSS etc.) mainly for the content of data
Expression (generates corresponding HTML, PDF or other file formats).
Wherein, when the first insertion object is for expandable mark language XML format, prompt letter can be exported
Breath, prompting user first to be inserted into object can not edit, or prompt user first is inserted into object and can not open.
S400, the first insertion object is parsed, determines the corresponding application program of the first insertion object, it will
The first insertion object is converted to the data for the format that the corresponding application program of the first insertion object is supported;
The specific implementation procedure of S400 can be with are as follows:
The data header of parsing the first insertion object determines the corresponding application program of the first insertion object;
The remaining data part of parsing the first insertion object, determines the data structure rule of the first insertion object;
According to determining data structure rule, the data in the first insertion object are reorganized, generate described the
The data for the format that the corresponding application program of one insertion object is supported.
S500, the corresponding application program of starting the first insertion object, by the corresponding application of the first insertion object
The data for the format that program is supported be sent to in the application program that is started.
Such as: when the first insertion object is table, chart, application program corresponding with the first insertion object is table journey
Sequence.
By being sent to the data for the format that the data of application program are supported for the application program, user can pass through
The application program edits insertion object, such as: modifying data, save as individual files etc..
It is inserted into the processing method of object in a kind of document provided in an embodiment of the present invention, the insertion object of document can be extracted
And when being inserted into object is XML format, insertion object is converted into the format that the corresponding application program of the insertion object is supported
Then data start the application program, the data after format transformation are sent to the application program.Such as: be in insertion object
When the table of XML format, insertion object is converted into table format namely XLS format.In this way, table procedure can be opened
The data of the table format are to carry out the operation such as editing.The present invention can make user by simple operations in a document i.e.
It can be achieved to the editor for being inserted into object in document, user's use feeling is good.
It is understood that after user edits insertion object, it may be necessary to by the former insertion object in document
It is updated to edited insertion object, at this point it is possible to which edited insertion object is inserted into document.
As shown in Fig. 2, the processing method of object is inserted into another kind document provided in an embodiment of the present invention, after S500,
Can also include:
S600, it obtains first insertion that the corresponding application program of the first insertion object generates object is corresponding and answer
With the data for the format that program is supported;
Wherein, S600 may include:
Obtain that the corresponding application program of the first insertion object is transmitted before being turned off, is generated by the application program
Described first is inserted into the data for the format that the corresponding application program of object is supported.
In this way, the present invention is obtained with the data that user edits after the close button of user's click application program, with
Update the insertion object of document.
S700, the data that obtained described first is inserted into the format that the corresponding application program of object is supported are converted to
XML format data;
S700 can be specifically included: the format for being inserted into the corresponding application program support of object for obtained described first
Data, are compressed into the data flow of XML format in a manner of key-value pair, and data header is added.
S800, it is inserted into the XML format data as insertion object in document.
Preferably, S800 may include: using the XML format data as in insertion object insertion document and described in replacement
First insertion object.
Corresponding with above method embodiment, the present invention also provides the processing systems that object is inserted into a kind of document.
As shown in figure 3, being inserted into the processing system of object in a kind of document provided in an embodiment of the present invention, it is applied to mobile whole
In end, which may include: instruction receiving unit 100, object extracting unit 200, the parsing of format judging unit 300, first
Unit 400 and data transmission unit 500,
Described instruction receiving unit 100, for receiving user to the first operational order of the first insertion object in document;
Wherein, first operational order can be double-click instruction, single key command, frame choosing instruction or right button instruction etc..
The object extracting unit 200, for extracting the first insertion object in document;
Wherein, the first insertion object can be with are as follows: table, chart, picture, voice or video.
The format judging unit 300, for judging whether the first insertion object is expandable mark language XML lattice
Formula, if it is, triggering first resolution unit 400;
Wherein, extensible markup language (XML, eXtensible Markup Language) is that a kind of simple data are deposited
Language is stored up, describes data using a series of simple labels, and these labels can be established with convenient mode, although expansible
Markup language the space occupied occupies more spaces than binary data, but extensible markup language is extremely simple is easy to slap
It holds and uses.XML is designed to transmit and carry data information, performance or display data is not used to, so the focus of XML purposes
It is that it illustrates that data are, and carries data information.XML is widely used for the shape as interaction data between cross-platform
Formula can complete final form by different Green Formula means (XSLT, CSS etc.) mainly for the content of data
Expression (generates corresponding HTML, PDF or other file formats).
Wherein, when the first insertion object is for expandable mark language XML format, prompt letter can be exported
Breath, prompting user first to be inserted into object can not edit, or prompt user first is inserted into object and can not open.
First resolution unit 400 determines first insertion pair for parsing to the first insertion object
As corresponding application program, the first insertion object is converted to what the corresponding application program of the first insertion object was supported
The data of format;
Wherein, the first resolution unit 400 may include: that the first parsing subunit, the second parsing subunit and conversion are single
Member,
First parsing subunit determines first insertion pair for parsing the data header of the first insertion object
As corresponding application program;
Second parsing subunit determines the first insertion pair for parsing the remaining data part of the first insertion object
The data structure rule of elephant;
The conversion subunit, for being carried out to the data in the first insertion object according to determining data structure rule
It reorganizes, generates the data for the format that the corresponding application program of the first insertion object is supported.
The data transmission unit 500, for starting the corresponding application program of the first insertion object, by described first
The data for the format that the corresponding application program of insertion object is supported be sent to in the application program that is started.
Such as: when the first insertion object is table, chart, application program corresponding with the first insertion object is table journey
Sequence.
By being sent to the data for the format that the data of application program are supported for the application program, user can pass through
The application program edits insertion object, such as: modifying data, save as individual files etc..
It is inserted into the processing system of object in a kind of document provided in an embodiment of the present invention, the insertion object of document can be extracted
And when being inserted into object is XML format, insertion object is converted into the format that the corresponding application program of the insertion object is supported
Then data start the application program, the data after format transformation are sent to the application program.Such as: be in insertion object
When the table of XML format, insertion object is converted into table format namely XLS format.In this way, table procedure can be opened
The data of the table format are to carry out the operation such as editing.The present invention can make user by simple operations in a document i.e.
It can be achieved to the editor for being inserted into object in document, user's use feeling is good.
It is understood that after user edits insertion object, it may be necessary to by the former insertion object in document
It is updated to edited insertion object, at this point it is possible to which edited insertion object is inserted into document.
As shown in figure 4, being inserted into the processing system of object in another kind document provided in an embodiment of the present invention, can also wrap
It includes: data acquiring unit 600, the second resolution unit 700 and object insertion unit 800,
The data acquiring unit 600, in the data transmission unit 500 that the first insertion object is corresponding
The data for the format that application program is supported be sent to in the application program that is started after, it is corresponding to obtain the first insertion object
The data of format supported of the corresponding application program of the first insertion object that generates of application program;
Wherein, the data acquiring unit 600, can be specifically used for: being used for will be described in the data transmission unit 500
The data for the format that the first corresponding application program of insertion object is supported be sent to in the application program that is started after, obtain institute
State first insertion pair that the corresponding application program of the first insertion object is transmitted before being turned off, is generated by the application program
As the data for the format that corresponding application program is supported.
In this way, the present invention is obtained with the data that user edits after the close button of user's click application program, with
Update the insertion object of document.
Second resolution unit 700 is supported for being inserted into the corresponding application program of object for obtained described first
The data of format be converted to XML format data;
Wherein, the second resolution unit 700 can be specifically used for being inserted into the corresponding application of object for obtained described first
The data for the format that program is supported, are compressed into the data flow of XML format, and data header is added in a manner of key-value pair.
The object is inserted into unit 800, for using the XML format data as in insertion object insertion document.
Preferably, object is inserted into unit 800, can be specifically used for using the XML format data as insertion object insertion
In document and replace the first insertion object.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.