Summary of the invention
The purpose of the embodiment of the present invention is in that to provide the processing method inserting object in a kind of document and system, so that user can be realized the editor inserting object in document by simple operations.
For reaching above-mentioned purpose, the embodiment of the invention discloses the processing method inserting object in a kind of document, be applied in mobile terminal, described method includes:
Receive user and first in document is inserted the first operational order of object;
Described first extracted in document inserts object;
Judge that described first inserts whether object is expandable mark language XML form, if, then insert object to described first to resolve, determine that described first inserts the application program that object is corresponding, insert object by described first and be converted to the described first data inserting the form that application program corresponding to object is supported;
Start described first and insert application program corresponding to object, insert described first the data of the form of application program support corresponding to object be sent to in the application program started.
Optionally, the data of the described first form inserting application program support corresponding to object are sent to the application program started in after, also include:
Obtain described first and insert the data that the form of application program support corresponding to object is inserted in described the first of application program generation corresponding to object;
The data of the obtain described first form inserting application program support corresponding to object are converted to XML format data;
Described XML format data are inserted in document as inserting object.
Optionally, described insert object to described first and resolve, it is determined that described first inserts application program corresponding to object, inserts object by described first and is converted to the described first data inserting the form that application program corresponding to object is supported, including:
Resolve the described first data header inserting object, it is determined that described first inserts the application program that object is corresponding;
Resolve the described first remaining data part inserting object, it is determined that described first inserts the data structure rule of object;
According to the described data structure rule determined, the described first data inserted in object are reorganized, generate the described first data inserting the form that application program corresponding to object is supported.
Optionally, described acquisition described first is inserted described the first of application program generation corresponding to object and is inserted the data of the form that application program corresponding to object is supported, including:
Obtain the described first data inserting the form that application program corresponding to described first insertion object that application program corresponding to object sends before being turned off, that generated is supported by this application program.
Optionally, the data of the described form inserting application program support corresponding to object by obtain described first are converted to XML format data, including:
By the obtain described first data inserting the form that application program corresponding to object is supported, it is compressed into the data stream of XML format in key-value pair mode, and adds data header.
Inserting the process system of object in a kind of document, be applied in mobile terminal, described system includes: instruction reception unit, object extracting unit, form judging unit, the first resolution unit and data transmission unit,
Described instruction reception unit, inserts the first operational order of object for receiving user to first in document;
Described object extracting unit, inserts object for extracting in document described first;
Described form judging unit, is used for judging that described first inserts whether object is expandable mark language XML form, if it is, trigger described first resolution unit;
Described first resolution unit, resolves for inserting object to described first, it is determined that described first inserts the application program that object is corresponding, inserts object by described first and is converted to the described first data inserting the form that application program corresponding to object is supported;
Described data transmission unit, inserts application program corresponding to object for starting described first, insert described first the data of the form of application program support corresponding to object be sent to in the application program started.
Optionally, also include: data acquiring unit, the second resolution unit and object insert unit,
Described data acquiring unit, for described data transmission unit the data of the described first form inserting application program support corresponding to object are sent to the application program started in after, it is thus achieved that the described first the described first data inserting the form that application program corresponding to object is supported inserting that application program corresponding to object generate;
Described second resolution unit, the data for inserting the form of application program support corresponding to object by obtain described first are converted to XML format data;
Described object inserts unit, for described XML format data being inserted in document as inserting object.
Optionally, described first resolution unit includes: first resolves subelement, the second parsing subelement and conversion subelement,
Described first resolves subelement, for resolving the described first data header inserting object, it is determined that described first inserts the application program that object is corresponding;
Described second resolves subelement, for resolving the described first remaining data part inserting object, it is determined that described first inserts the data structure rule of object;
Described conversion subelement, for according to the described data structure rule determined, the described first data inserted in object being reorganized, generates the described first data inserting the form that application program corresponding to object is supported.
Optionally, described data acquiring unit, specifically for: described data transmission unit the data of the described first form inserting application program support corresponding to object are sent to the application program started in after, it is thus achieved that described first inserts the described first data inserting the form that application program corresponding to object is supported that application program corresponding to object sends before being turned off, that generated by this application program.
Optionally, described second resolution unit, specifically for inserting the data of the form that application program corresponding to object is supported by obtain described first, it is compressed into the data stream of XML format in key-value pair mode, and adds data header.
A kind of document that the embodiment of the present invention provides inserts processing method and the system of object, the insertion object of document can be extracted and when inserting object and being XML format, the data that object is converted to the form of application program support corresponding to this insertion object will be inserted, then start this application program, the data after format transformation are sent to this application program.Such as: when inserting the form that object is XML format, insertion object is converted to table format namely XLS form.So, table procedure just can open the data of this table format thus carrying out the operations such as editor.The present invention can so that user can be realized the editor inserting object in document by simple operations in a document, and user's use sense is by good.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
As it is shown in figure 1, insert the processing method of object in a kind of document of embodiment of the present invention offer, being applied in mobile terminal, the method may include that
In document first is inserted the first operational order of object by S100, reception user;
Wherein, described first operational order can select instruction or right button instruction etc. for double-click instruction, single key command, frame.
S200, described first extracted in document insert object;
Wherein, described first insertion object can be: form, chart, picture, voice or video.
S300, judge described first insert object whether be expandable mark language XML form, if it is, perform S400;
Wherein, extensible markup language (XML, eXtensibleMarkupLanguage) it is a kind of simple data storage language, a series of simple labelling is used to describe data, and these labellings can be set up by convenient mode, although the space that extensible markup language takies to take more space than binary data, but extremely simple being prone to of extensible markup language is grasped and uses.XML design is used for transmitting and carrying data message, is not used to performance or display data, so the focus of XML purposes is it illustrates what data are, and carries data message.XML is widely used for as the form of interaction data between cross-platform, content mainly for data, final form can be completed by different Green Formula means (XSLT, CSS etc.) and express (generating corresponding HTML, PDF or other file format).
Wherein, when described first inserts to as if be not expandable mark language XML form, it is possible to output information, prompting user first inserts object and cannot be carried out editor, or prompting user first inserts object and cannot open.
S400, insert object to described first and resolve, it is determined that described first inserts application program corresponding to object, inserts object by described first and is converted to the described first data inserting the form that application program corresponding to object is supported;
The concrete execution process of S400 can be:
Resolve the data header of the first insertion object, it is determined that described first inserts the application program that object is corresponding;
Resolve the remaining data part of the first insertion object, it is determined that first inserts the data structure rule of object;
According to the data structure rule determined, the first data inserted in object are reorganized, generate the described first data inserting the form that application program corresponding to object is supported.
S500, start described first and insert application program corresponding to object, insert described first the data of the form of application program support corresponding to object be sent to in the application program started.
Such as: when the first insertion object is form, chart, the application program inserting object corresponding with first is table procedure.
Owing to being sent to the data that data are the form that this application program is supported of application program, therefore user can be edited inserting object by this application program, for instance: revise data, save as individual files etc..
A kind of document that the embodiment of the present invention provides inserts the processing method of object, the insertion object of document can be extracted and when inserting object and being XML format, the data that object is converted to the form of application program support corresponding to this insertion object will be inserted, then start this application program, the data after format transformation are sent to this application program.Such as: when inserting the form that object is XML format, insertion object is converted to table format namely XLS form.So, table procedure just can open the data of this table format thus carrying out the operations such as editor.The present invention can so that user can be realized the editor inserting object in document by simple operations in a document, and user's use sense is by good.
It is understood that after insertion object is edited by user, it may be necessary to the former insertion object in document is updated to the insertion object after editor, at this point it is possible to inserted in document by the insertion object after editor.
As in figure 2 it is shown, the another kind of document of embodiment of the present invention offer inserts the processing method of object, after S500, it is also possible to including:
S600, obtain the described first the described first data inserting the form that application program corresponding to object is supported inserting that application program corresponding to object generate;
Wherein, S600 may include that
Obtain the described first data inserting the form that application program corresponding to described first insertion object that application program corresponding to object sends before being turned off, that generated is supported by this application program.
So, after user clicks the X button of application program, the present invention is obtained with the data that user edits, to update the insertion object of document.
S700, the data of the described first form inserting application program support corresponding to object obtained are converted to XML format data;
S700 can specifically include: by the obtain described first data inserting the form that application program corresponding to object is supported, is compressed into the data stream of XML format in key-value pair mode, and adds data header.
S800, described XML format data are inserted in document as inserting object.
Preferably, S800 may include that and inserts in document and replace described first insertion object using described XML format data as inserting object.
Corresponding with said method embodiment, present invention also offers the process system inserting object in a kind of document.
As shown in Figure 3, a kind of document that the embodiment of the present invention provides inserts the process system of object, being applied in mobile terminal, this system may include that instruction reception unit 100, object extracting unit 200, form judging unit the 300, first resolution unit 400 and data transmission unit 500
Described instruction reception unit 100, inserts the first operational order of object for receiving user to first in document;
Wherein, described first operational order can select instruction or right button instruction etc. for double-click instruction, single key command, frame.
Described object extracting unit 200, inserts object for extracting in document described first;
Wherein, described first insertion object can be: form, chart, picture, voice or video.
Described form judging unit 300, is used for judging that described first inserts whether object is expandable mark language XML form, if it is, trigger described first resolution unit 400;
Wherein, extensible markup language (XML, eXtensibleMarkupLanguage) it is a kind of simple data storage language, a series of simple labelling is used to describe data, and these labellings can be set up by convenient mode, although the space that extensible markup language takies to take more space than binary data, but extremely simple being prone to of extensible markup language is grasped and uses.XML design is used for transmitting and carrying data message, is not used to performance or display data, so the focus of XML purposes is it illustrates what data are, and carries data message.XML is widely used for as the form of interaction data between cross-platform, content mainly for data, final form can be completed by different Green Formula means (XSLT, CSS etc.) and express (generating corresponding HTML, PDF or other file format).
Wherein, when described first inserts to as if be not expandable mark language XML form, it is possible to output information, prompting user first inserts object and cannot be carried out editor, or prompting user first inserts object and cannot open.
Described first resolution unit 400, resolves for inserting object to described first, it is determined that described first inserts the application program that object is corresponding, inserts object by described first and is converted to the described first data inserting the form that application program corresponding to object is supported;
Wherein, the first resolution unit 400 may include that the first parsing subelement, the second parsing subelement and conversion subelement,
Described first resolves subelement, for resolving the data header of the first insertion object, it is determined that described first inserts the application program that object is corresponding;
Described second resolves subelement, for resolving the remaining data part of the first insertion object, it is determined that first inserts the data structure rule of object;
Described conversion subelement, for according to the data structure rule determined, the first data inserted in object being reorganized, generates the described first data inserting the form that application program corresponding to object is supported.
Described data transmission unit 500, inserts application program corresponding to object for starting described first, insert described first the data of the form of application program support corresponding to object be sent to in the application program started.
Such as: when the first insertion object is form, chart, the application program inserting object corresponding with first is table procedure.
Owing to being sent to the data that data are the form that this application program is supported of application program, therefore user can be edited inserting object by this application program, for instance: revise data, save as individual files etc..
A kind of document that the embodiment of the present invention provides inserts the process system of object, the insertion object of document can be extracted and when inserting object and being XML format, the data that object is converted to the form of application program support corresponding to this insertion object will be inserted, then start this application program, the data after format transformation are sent to this application program.Such as: when inserting the form that object is XML format, insertion object is converted to table format namely XLS form.So, table procedure just can open the data of this table format thus carrying out the operations such as editor.The present invention can so that user can be realized the editor inserting object in document by simple operations in a document, and user's use sense is by good.
It is understood that after insertion object is edited by user, it may be necessary to the former insertion object in document is updated to the insertion object after editor, at this point it is possible to inserted in document by the insertion object after editor.
As shown in Figure 4, the another kind of document that the embodiment of the present invention provides inserts the process system of object, it is also possible to including: data acquiring unit the 600, second resolution unit 700 and object insert unit 800,
Described data acquiring unit 600, for described data transmission unit 500 data of the described first form inserting application program support corresponding to object are sent to the application program started in after, it is thus achieved that the described first the described first data inserting the form that application program corresponding to object is supported inserting that application program corresponding to object generate;
Wherein, described data acquiring unit 600, can be specifically for: the data for inserting the form of application program support corresponding to object by described first in described data transmission unit 500 be sent to the application program started in after, it is thus achieved that described first inserts the described first data inserting the form that application program corresponding to object is supported that application program corresponding to object sends before being turned off, that generated by this application program.
So, after user clicks the X button of application program, the present invention is obtained with the data that user edits, to update the insertion object of document.
Described second resolution unit 700, the data for inserting the form of application program support corresponding to object by obtain described first are converted to XML format data;
Wherein, the second resolution unit 700, it is possible to specifically for inserting the data of the form that application program corresponding to object is supported by obtain described first, be compressed into the data stream of XML format in key-value pair mode, and add data header.
Described object inserts unit 800, for described XML format data being inserted in document as inserting object.
Preferably, object inserts unit 800, it is possible to specifically for inserting in document and replace described first insertion object using described XML format data as inserting object.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is the difference with other embodiments.Especially for system embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all contained in protection scope of the present invention.