CN100363928C - Electronic document data processing editor and its controlling method - Google Patents

Electronic document data processing editor and its controlling method Download PDF

Info

Publication number
CN100363928C
CN100363928C CNB2005100077199A CN200510007719A CN100363928C CN 100363928 C CN100363928 C CN 100363928C CN B2005100077199 A CNB2005100077199 A CN B2005100077199A CN 200510007719 A CN200510007719 A CN 200510007719A CN 100363928 C CN100363928 C CN 100363928C
Authority
CN
China
Prior art keywords
electronic document
editing
data
dtd
schema
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2005100077199A
Other languages
Chinese (zh)
Other versions
CN1818898A (en
Inventor
李宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING INFORMATION ENGINEERING COLLEGE
CHINA ELECTRONIC TECHNOLOGY STANDARDIZATION INST
Original Assignee
BEIJING INFORMATION ENGINEERING COLLEGE
CHINA ELECTRONIC TECHNOLOGY STANDARDIZATION INST
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING INFORMATION ENGINEERING COLLEGE, CHINA ELECTRONIC TECHNOLOGY STANDARDIZATION INST filed Critical BEIJING INFORMATION ENGINEERING COLLEGE
Priority to CNB2005100077199A priority Critical patent/CN100363928C/en
Publication of CN1818898A publication Critical patent/CN1818898A/en
Application granted granted Critical
Publication of CN100363928C publication Critical patent/CN100363928C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The present invention provides an electronic document data processing editor and a method for controlling electronic document data edition. An editing controller controls user operation according to DTD/Schema; an electronic document which is edited is compared with the rules of the DTD/Schema in real time, and the functions which are not to be opened are closed. The present invention avoids the situation that the electronic document which is edited is not in accordance with the rules of the DTD/Schema and can not generate error prompts. A user can easily edit the electronic document which is in accordance with the rules of the DTD/Schema under the guidance of the operation interface of an electronic document processor even through the user is not acquainted with the DTD/Schema or is not familiar with XML. The present invention overcomes the detects existing in the existing electronic document data processing editor and electronic document editing control mode, raises friendly performance to the user and has high versatility, flexibility and practicability.

Description

Data for electronic documents is handled the method for editing machine and data for electronic documents editor control
Technical field
The present invention relates to a kind of data for electronic documents and handle editing machine and electronic document editor's control method, be meant especially a kind of can be according to document type definition (the Document Type Definition of extensible markup language (XML), be called for short DTD) or the outline (schema) of XML definition data for electronic documents that the electronic document process of being edited is controlled handle editing machine and electronic document editor's control method, belong to technical field of computer information processing.
Background technology
For a long time, electronic document mainly adopts special-purpose record format to describe, for example: adopt electronic document WORD, EXCEL of the Software tool editor of MS or the like.A benefit of doing like this is: the information such as composing, form that can embed suitable electronic document in electronic document; And bad one side is exactly: because the form of these electronic documents and underground, adopt special-purpose electronic file form make electronic document compatibility and be affected.For example: the WPS data for electronic documents of Kingsoft Co. is handled editing machine and is difficult to the DOC form that the Word of correct interpretation MS data for electronic documents is handled the editing machine employing; And the lantern slide editing machine PowerPointer of the MS of current use can not correctly explain its PPT form of version in the past, or the like; If disclose the form of above-mentioned electronic document, can make the company interest of research, this electronic document of exploitation software for editing be on the hazard again.Therefore, up to now, existing electronic document all has specific separately, covert form.And the electronic document that these forms have nothing in common with each other is incompatible for different electronic document editor basically.
Above-mentioned incompatibility with specific format electronic document can be given under some occasions and be used the electronic document user of different electronic document editor to bring a lot of inconvenience.Thereby the transmission of file, shared and exchange have been influenced.For this reason, industry begins to adopt extensible markup language XML to substitute traditional electronic document record format, but adopts XML to describe the record format of electronic document.For example, the office software OpenOffice of the Sun/Oasis company of the U.S., office software Office2003 of MS or the like.
Adopt XML to write down and describe electronic document, can come the record format of standard electronic document by DTD/Schema, and it is verified; Therefore can strengthen the exchange capacity of electronic document widely.But, when adopting existing electronic document handling implement that the XML electronic document is edited, need momentarily monitor usually by the form of editing electronic document whether good (well-formedness).In the process of editing electronic document, need manually or automatically the XML electronic document of being edited (example) to be verified with DTD/Schema at any time, point out the mistake of the various appearance that the user occurs by the mode that reports an error.This mode makes user interface very unfriendly.Its reason is: the user must understand the relevant knowledge of DTD/Schema and XML could edit the correct XML electronic document of generation; Even so, some miscue also might make the user be at a loss.
Summary of the invention
First purpose of the present invention provides the control method that a kind of data for electronic documents is handled editing machine and electronic document editor, DTD/Schema according to XML, handle editing machine when being handled in data for electronic documents by the editing electronic document, can be in real time, automatically its every function is controlled, make electronic document that the user edited meet the structure of DTD/Schema defined.
Second purpose of the present invention provides the control method that a kind of data for electronic documents is handled editing machine and electronic document editor, the user who uses data for electronic documents to handle editing machine need not understand the relevant knowledge of DTD/Schema and XML, and the use of data for electronic documents processing editing machine is convenient.
The 3rd purpose of the present invention provides the control method that a kind of data for electronic documents is handled editing machine and electronic document editor, avoids handling editing machine to being undertaken sending miscue to the user in the processing procedure by the editing electronic document in data for electronic documents.
Purpose of the present invention is handled editing machine by following data for electronic documents and is realized:
A kind of data for electronic documents is handled editing machine, comprising:
One electronic document processor is used to receive the edit commands of user via the operation interface input of described electronic document processor, carries out the processing capacity to the editing electronic document;
One regular data storer, the regular data that is used to store the described electronic document of described DTD/Schema;
One editing controller is used for reading from described regular data storer the regular data of the described electronic document of described DTD/Schema, and according to the regular data of described electronic document, sends the order of opening or closing corresponding function to the electronic document processor;
One supervising data storage device is being stored in this supervising data storage device by the current monitor data of editing electronic document, is comprising in this monitor data by information such as the current form of editing electronic document, data structures; Editing controller is when controlling the electronic document processor according to above-mentioned regular data, also read by the current monitor data of editing electronic document from the supervising data storage device, monitor data and regular data are compared, and then according to relatively result to electronic document processor output control command, perhaps directly some parameters of being stored in the electronic document processor are made amendment, the consequence of these modifications is: can or close and adjust the unlatching of each function in the electronic document processor.
Purpose of the present invention can also realize by following electronic document editor's control method:
A kind of electronic document editor's control method, the operation that editing controller receives the user at the electronic document processor is when being edited by the editing electronic document, read the regular data that is stored in the described electronic document of DTD/Schema in the regular data storer, and the regular data of the described electronic document of foundation, judge whether function corresponding in the unlocking electronic document processor, be then to open function corresponding, otherwise close function corresponding; Editing controller reads by the monitor data of editing electronic document from a supervising data storage device, is comprising in this monitor data by information such as the current form of editing electronic document, data structures; Editing controller is when controlling the electronic document processor according to above-mentioned regular data, also read by the current monitor data of editing electronic document from the supervising data storage device, monitor data and regular data are compared, and then according to relatively result to electronic document processor output control command, perhaps directly some parameters of being stored in the electronic document processor are made amendment, these modifications cause the unlatching of each function in the electronic document processor or close and can be adjusted in real time.
The present invention compared with prior art has tangible advantage and useful effect.Be mainly reflected in: data for electronic documents of the present invention was handled editing machine before carrying out the electronic document editor, come user's operation is controlled according to DTD/Schema by editing controller, when user's editing electronic document, for the feature operation that does not meet the DTD/Schema regulation in the electronic document processor, close in advance, and further will be compared by the regulation of editing electronic document and DTD/Schema in real time, in the process of editing electronic document, close the function that should not open, and only allow the user to carry out satisfactory operation.Like this, do not meet the situation of DTD/Schema regulation with regard to the electronic document of having avoided the user to edit; Therefore, just can not produce miscue yet.The user uses data for electronic documents provided by the present invention to handle editing machine and electronic document editor's control method, can understand DTD/Schema, even must not be familiar with XML fully, just can under the guiding at electronic document processor operations interface, edit out the electronic document that meets the DTD/Schema regulation like a cork.The present invention has overcome the deficiency that existing data for electronic documents is handled editing machine and electronic document editor control mode, has improved the user friendliness of data for electronic documents processing editing machine widely, has high generality, dirigibility and practicality.
Description of drawings
Fig. 1 handles the principle assumption diagram of editing machine for data for electronic documents of the present invention;
Fig. 2 handles the structural drawing of editing machine one embodiment for data for electronic documents of the present invention;
Fig. 3 handles the structural drawing of another embodiment of editing machine for data for electronic documents of the present invention;
Fig. 4 handles the structural drawing of the another embodiment of editing machine for data for electronic documents of the present invention;
Fig. 5 handles the editing machine structural drawing of an embodiment again for data for electronic documents of the present invention;
Fig. 6 is the structural representation of electronic document DTD/Schema of the present invention;
Fig. 7 is for using the present invention inserts an editor in by the editing electronic document synoptic diagram;
Fig. 8 is for using the present invention inserts another editor in by the editing electronic document synoptic diagram;
Fig. 9 is for using the present invention by the synoptic diagram of editing electronic documents editing window chosen content;
Part editing interface button synoptic diagram when Figure 10 is forbidden formatting for using the present invention;
Part editing interface button synoptic diagram when Figure 11 allows formatting for using the present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing and specific embodiment:
Embodiment 1:
Referring to Fig. 1, a data for electronic documents of the present invention is handled editing machine 100 and is mainly comprised: electronic document processor 1, editing controller 2 and regular data storer 3; Electronic document processor 1 is used to receive the edit commands of user via the operation interface input of described electronic document processor 1, carries out by the processing capacity of editing electronic document 8; The processing capacity here comprises: the foundation of new electronic document, the deletion of electronic document, modification, storage, data insertion, copy editor, duplicate, paste, move or the like, specifically can be referring to office software OpenOffice, the office software Office 2003 of MS, the office software WPS Office 2003 of Kingsoft Co. etc. of the Sun/Oasis company of the U.S., the user can realize use to these functions by the operation interface of above-mentioned office software; For example: in the operation interface of above-mentioned various office softwares, all be provided with function button, menu item, shortcut and/or toolbar or the like, related with some functional modules respectively or binding of these function buttons, menu item, shortcut and/or toolbar, after the user chose and press function corresponding button, menu item, shortcut and/or toolbar, functional module related with these function buttons, menu item, shortcut and/or toolbar or binding just began to carry out function corresponding.
The present invention is when using above-mentioned operation interface that electronic document is carried out editing and processing the user, adopt the DTD/Schema that designs in advance that user's operation is controlled automatically, make the operation of user's editing electronic document meet the regulation of the DTD/Schema of respective electronic document, the user is operated according to structure, the content of DTD/Schema defined naturally, obtain to meet the electronic document of DTD/Schema regulation.
In the present embodiment, the regular data of the described electronic document of DTD/Schema, be stored among the regular data storer 3, an editing controller 2, among regular data storer 3, read by the regular data of editing electronic document 8, then, according to these regular data to electronic document processor 1 send open or close in the electronic document processor 1 with operation interface in function button, menu item, the functional module that shortcut and/or toolbar are associated or bind, make the user when being edited by editing electronic document 8, the function that the DTD/Schema that meets requires is unlocked, the function that does not meet the DTD/Schema requirement is closed, the user then can't make pent function executing, the therefore just feasible regulation that is met DTD/Schema by editing electronic document 8.
Embodiment 2:
Referring to Fig. 2, embodiments of the invention 2 are improvement to embodiment 1.Among this improved embodiment, the structure member that in embodiment 1, is had, also increased a supervising data storage device 4.The effect of this supervising data storage device 4 is: storage is by the monitor data of editing electronic document 8.In fact, existing office software can generate some ephemeral datas when handling by editing electronic document 8, storing the significant data in some editing process in these ephemeral datas; These data are very useful for the control of editing and processing process.In the present embodiment, these ephemeral datas can be stored among the supervising data storage device 4, and editing controller 2 is when controlling electronic document processor 1, on the one hand among regular data storer 3, reading by the regular data of editing electronic document 8, from supervising data storage device 4, read simultaneously by the monitor data of editing electronic document, then will by the regular data of editing electronic document be compared by the monitor data of editing electronic document, open or close function corresponding in the electronic document processor 1 by the result of this contrast.
This improved embodiment 2 compares with embodiment 1, has an outstanding advantage: when handling by editing electronic 8 documents, because the participation of supervising data storage device 4, above-mentioned by the regular data of the DTD/Schema of editing electronic document 8 and monitor data acting in conjunction under, editing controller 2 can be unlocked or pent functional module in the real time modifying electronic document processor 1, make these functional modules be unlocked by the different edit phase of editing electronic document 8 or close, intelligent, also more flexible more in the control.
Embodiment 3
Referring to Fig. 3, embodiments of the invention 3 also are improvement to embodiment 1.In embodiment 3, the structure member that in embodiment 1, is had, also increased a DTD/Schema resolver 5, the effect of this DTD/Schema resolver 5 is to read in XML file, analysis, the validity of verifying XML file or each constituent of access XML file.DTD/Schema resolver 5 of the present invention has two classes: the validation verification type with non-validity checking type.All XML data can be expressed as tree structure, visit node, the search content of XML document or edit with various ergodic algorithms.This analyzer of tree structure processing XML document of pressing is generally based on the World Wide Web Consortium DOM Document Object Model (DOM) of (WorldWide Web Consortium is called for short W3C).DOM provides abundant application programming interfaces (API) to visit DOM.
The another kind of method of processing XML data is to use the event driven analyzer.Sort processor is in the processing XML document, along with meeting every class XML data (element and attribute thereof, character data, processing instruction, symbol or note), continuous trigger event, invokes application (button.onrelease) processing.This alanysis device is generally based on the simple API of XML (SAX).Therefore, can adopt these above-mentioned technological means, extract corresponding information or data from the text of DTD/Schema, these information and data then are among the DTD/Schema to be comprised is used to describe data by editing electronic documents editing rule.
Embodiment 4
Referring to Fig. 4, embodiments of the invention 4 are on the basis of above-mentioned each embodiment, increased an electronic document watch-dog 6 further, the effect of this electronic document watch-dog 6 is to being analyzed in real time by editing electronic document 8, after obtaining, these monitor datas are outputed in the supervising data storage device 4 store by the monitor data of editing electronic document.
As described in embodiment 2: existing office software can generate some ephemeral datas when handling by editing electronic document 8, storing the significant data in some editing process in these ephemeral datas; These data are very useful for the control of editing and processing process.In embodiment 2, these ephemeral datas can be stored among the supervising data storage device 4, and editing controller 2 is when controlling electronic document processor 1, on the one hand among regular data storer 3, reading by the regular data of editing electronic document 8, from supervising data storage device 4, read simultaneously by the monitor data of editing electronic document, then will by the regular data of editing electronic document be compared by the monitor data of editing electronic document, open or close function corresponding in the electronic document processor 1 by the result of this contrast.If handle like that, need in editing controller 2, add function to above-mentioned ephemeral data analysis and processing according to embodiment 2.The benefit of doing like this is: do not need to increase newly module, but can make the complexity of editing controller 2 reduce.In addition, above-mentioned ephemeral data has multiple, and the generation of ephemeral data and deletion are not necessarily and synchronous by editing electronic document 8, and therefore, the monitor data that produces according to ephemeral data might and be existed certain deviation between the editing electronic document 8 itself.
In embodiment 4, adopted another to produce the mode of monitor data: promptly to adopt 6 pairs of electronic document watch-dogs to be monitored in real time by editing electronic document 8, as long as electronic document watch-dog 6 monitors by the change of editing electronic document 8, electronic document watch-dog 6 is just generated monitor data according to new by editing electronic document 8.The benefit of doing like this is: can reduce editing controller 2 complexities, simultaneously, need not above-mentioned ephemeral data is handled, generate monitor data, monitor data can be reflected exactly by the situation of editing electronic document 8 but directly extract by the information in the editing electronic document 8.
Need to prove: above-mentioned data for electronic documents is handled the form of each parts in the editing machine 100 and can be determined according to the situation of reality.Referring to Fig. 5, among another embodiment of the present invention, editing controller 2, regular data storer 3 and supervising data storage device 4 can be combined as a whole, form editing controller 2 with regular data storer 3 and supervising data storage device 4.Certainly, also DTD/Schema resolver 5, electronic document watch-dog 6 can be combined with editing controller 2 respectively or jointly.In any case distortion, above-mentioned each embodiment of the present invention all can provide a kind of like this data for electronic documents to handle editing machine: this data for electronic documents is handled editing machine can be according to DTD/Schema, handle editing machine when being handled in data for electronic documents by the editing electronic document, in real time, automatically its every function is controlled, make electronic document that the user edited meet the structure of DTD/Schema defined.
In addition, when functional module related with function button, menu item, shortcut and/or toolbar in the operation interface as mentioned above or binding is carried out open and close, take a kind of like this method usually: the permission of this functional module/forbid parameter be set to represent to allow to carry out or forbid carrying out state.Being provided with of this state can be carried out according to unlatching or shutdown command that editing controller 2 sends by above-mentioned electronic document processor 1, also can directly be provided with by editing controller 2.For example, if when editing controller 2 according to the content in regular data storer and the supervising data storage device, determines to forbid a certain function in the electronic document processor 1, permission that can be above-mentioned/forbid parameter is set to represent to forbid the state carried out; Electronic document processor 1 is according to this parameter, function button (perhaps menu item, shortcut and/or toolbar) corresponding in its operation interface is stashed, perhaps be changed to the state that to operate, even the user presses corresponding function button (perhaps menu item, shortcut and/or toolbar) from now on, above-mentioned function can not be performed yet.Thereby reach the purpose of editor's control.
Embodiment 5
The method of data for electronic documents editor's control of the present invention, comprise following operation steps: receive user's operation at the electronic document processor, before being handled by the editing electronic document, earlier read the regular data that is stored in the described electronic document of DTD/Schema in the regular data storer by editing controller, editing controller is according to these regular data, judge whether the functional module in the unlocking electronic document processor, be then to open, otherwise close.
Function in the above-mentioned electronic document processor comprises: the foundation of new electronic document, the deletion of electronic document, modification, storage, data insertion, copy editor, duplicate, paste, move or the like, specifically can be referring to office software OpenOffice, the office software Office 2003 of MS, the office software WPS Office 2003 of Kingsoft Co. etc. of the Sun/Oasis company of the U.S..The user can realize use to these functions by the operation interface of above-mentioned office software; For example: in the operation interface of above-mentioned various office softwares, all be provided with function button, menu item, shortcut and/or toolbar or the like, related with some functional modules respectively or binding of these function buttons, menu item, shortcut and/or toolbar, after the user chose and press function corresponding button, menu item, shortcut and/or toolbar, functional module related with these function buttons, menu item, shortcut and/or toolbar or binding just began to carry out function corresponding.
Method of the present invention is when using above-mentioned operation interface that electronic document is carried out editing and processing the user, adopt the DTD/Schema that designs in advance that user's operation is controlled automatically, make the operation of user's editing electronic document meet the regulation of the DTD/Schema of respective electronic document, the user is operated according to structure, the content of DTD/Schema defined naturally, obtain to meet the electronic document of DTD/Schema regulation.
In the present embodiment, the regular data of the described electronic document of DTD/Schema, be stored among the regular data storer, by editing controller, among the regular data storer, read by the regular data of editing electronic document, then, according to these regular data to the electronic document processor send to open or close in the electronic document processor with operation interface in function button, menu item, the functional module that shortcut and/or toolbar are associated or bind, make the user when being edited by the editing electronic document, the function that the DTD/Schema that meets requires is unlocked, the function that does not meet the DTD/Schema requirement is closed, the user then can't make pent function executing, the therefore just feasible regulation that is met DTD/Schema by the editing electronic document.
Existing office software can generate some ephemeral datas when handling by the editing electronic document, storing the significant data in some editing process in these ephemeral datas; These data are very useful for the control of editing and processing process.In the present embodiment, these ephemeral datas can be stored among the supervising data storage device, and editing controller is when controlling the electronic document processor, on the one hand among the regular data storer, reading by the regular data of editing electronic document, from the supervising data storage device, read simultaneously by the monitor data of editing electronic document, then will by the regular data of editing electronic document be compared by the monitor data of editing electronic document, open or close function corresponding in the electronic document processor by the result of this contrast.
Owing to will and above-mentionedly be compared according to the monitor data of storing in the supervising data storage device by the regular data of the DTD/Schema of editing electronic document and monitor data, editing controller can be unlocked or pent functional module in the real time modifying electronic document processor, make these functional modules be unlocked by the different edit phase of editing electronic document or close, intelligent, also more flexible more in the control.
The functional module of or binding related with function button, menu item, shortcut and/or toolbar is taked a kind of like this method when carrying out open and close usually in to the aforesaid operations interface: the permission of this functional module/forbid parameter be set to represent to allow to carry out or forbid carrying out state.Being provided with of this state can be carried out according to unlatching or shutdown command that editing controller sends by above-mentioned electronic document processor, also can directly be provided with by editing controller.For example, if when editing controller according to the content in regular data storer and the supervising data storage device, determines to allow a certain function in the electronic document processor, permission that can be above-mentioned/forbid parameter is set to represent to allow the state carried out; The electronic document processor is according to this parameter, function button (perhaps menu item, shortcut and/or toolbar) corresponding in its operation interface is manifested, perhaps be changed to exercisable state, when the user presses corresponding function button (perhaps menu item, shortcut and/or toolbar), function related with this function button or binding is started, thereby reaches the purpose of editor's control.
The regular data of the electronic document among the present invention can be by the DTD/Schema resolver at the electronic document processor to before being handled by the editing electronic document, from DTD/Schema, extract, and store in the described regular data storer.
This process comprises: the DTD/Schema resolver reads in the DTD/Schema that designs in advance, and it is analyzed, and therefrom extracts by the regular data of editing electronic document, and these regular data are outputed to the regular data storer stores.In DTD/Schema, comprise by the structural information of the format information of editing electronic document and/or user data, be used to describe structure by the editing electronic document.Because DTD/Schema is a text that meets the XML standard, therefore, can adopt more existing technological means, for example: keyword query, expression formula coupling etc., extract corresponding information or data from the text of DTD/Schema, these information and data then are among the DTD/Schema to be comprised is used to describe data by editing electronic documents editing rule.
Sometimes, in by the editing electronic document, some contents are by determining from a plurality of content choice, therefore, in the embodiments of the invention, can be by editing controller according to the regular data of described electronic document, directly or control electric electronic document processor and be provided with by the defined option of DTD/Schema by the assigned address of editing electronic document, so that the function of content choice to be provided, make user's editing operation convenient.
In by the editing electronic document, to also have some contents be fixing or determine, at this moment, should reduce user's input operation as far as possible, and perhaps when user's input operation mistake, this mistake can be modified to correctly.Therefore, can be according to the regular data of described electronic document directly or control electric electronic document processor by editing controller, automatically inserted by the defined content of DTD/Schema by the assigned address of editing electronic document, perhaps correct user's input, accurate to guarantee by the immobilized substance in the editing electronic document.
The effect of this electronic document watch-dog 6 is to being analyzed in real time by editing electronic document 8, after obtaining by the monitor data of editing electronic document, these monitor datas is outputed in the supervising data storage device 4 store.
As described in embodiment 2: existing office software can generate some ephemeral datas when handling by editing electronic document 8, storing the significant data in some editing process in these ephemeral datas; These data are very useful for the control of editing and processing process.In embodiment 2, these ephemeral datas can be stored among the supervising data storage device 4, and editing controller 2 is when controlling electronic document processor 1, on the one hand among regular data storer 3, reading by the regular data of editing electronic document 8, from supervising data storage device 4, read simultaneously by the monitor data of editing electronic document, then will by the regular data of editing electronic document be compared by the monitor data of editing electronic document, open or close function corresponding in the electronic document processor 1 by the result of this contrast.If handle like that, need in editing controller 2, add function to above-mentioned ephemeral data analysis and processing according to embodiment 2.The benefit of doing like this is: do not need to increase newly module, but can make the complexity of editing controller 2 improve.In addition, above-mentioned ephemeral data has multiple, and the generation of ephemeral data and deletion are not necessarily and corresponding utterly by editing electronic document 8, and therefore, the monitor data that produces according to ephemeral data might and be existed certain deviation between the editing electronic document 8.
The present invention also adopts another to produce the mode of monitor data: promptly adopt an electronic document watch-dog to being monitored in real time by the editing electronic document, as long as the electronic document watch-dog monitors by the change of editing electronic document, the electronic document watch-dog is just generated monitor data according to new by the editing electronic document.The benefit of doing like this is: can reduce the editing controller complexity, simultaneously, need not above-mentioned ephemeral data is handled, generate monitor data, monitor data can be reflected exactly by the situation of editing electronic document but directly extract by the information in the editing electronic document.
Below be to adopt method of the present invention to realize an example of electronic document editor control:
Of the present invention is an envelope Email by the editing electronic document, and this Email has the Email structure of DTD/Schema defined as shown in Figure 6.This Email comprises " theme ", " outbox date ", " sender ", " addressee ", " return address " and " body matter " in order.Wherein, " return address " and " body matter " is optional.
According to method of the present invention, before Email is edited, DTD/Schema resolver as shown in Figure 4 reads in this above-mentioned DTD/Schema earlier, therefrom extract the content-form parameter and the structured data that comprise " theme ", " outbox date ", " sender ", " addressee ", " return address " and data such as " body matters " in the whole Email, and these content-form parameters and structured data are stored in the above-mentioned regular data storer.
When the user created a new Email, the electronic document processor produced following XML data automatically according to above-mentioned DTD/Schema:
<?xml?vers?ion=″1.0″encoding=″UTF-8″?>
<Email 〉
<outbox date/〉
<sender 〉
<addresses of items of mail/〉
</sender 〉
<addressee 〉
<addresses of items of mail/〉
</addressee 〉
</Email 〉
This electronic document content is produced automatically by the electronic document processor, has represented prerequisite several the contents of Email.
When "</addressee〉" in the operation interface of electronic document processor when a hurdle is selected, because this place needs to add the project of being selected by the user, under the control of editing controller, the electronic document processor generates menu as shown in Figure 7 on operation interface.If the user has selected " return address ", then as follows by the XML data of editing electronic document:
<?xml?version=″1.0″encoding=″UTF-8″?>
<Email 〉
<outbox date/〉
<sender 〉
<addresses of items of mail/〉
</sender 〉
<addressee 〉
<addresses of items of mail/〉
</addressee 〉
<return address 〉
<addresses of items of mail/〉
</return address 〉
</Email 〉
When "</return address〉" in the operation interface of electronic document processor locates when selected, under the control of editing controller, the electronic document processor shows the menu as Fig. 8 in the right-click menu of its operation interface; If the user selects " body matter ", the XML data of electronic document are as follows:
?xml?vers?i?on=″1.0″encoding=″UTF-8″?>
<Email 〉
<outbox date/〉
<sender 〉
<addresses of items of mail/〉
</sender 〉
<addressee 〉
<addresses of items of mail/〉
</addressee 〉
<return address 〉
<addresses of items of mail/〉
</return address 〉
<body matter/〉
</Email 〉
Form complete electronic document.
On the basis of above-mentioned example, the form Schema except the definition Email can also stipulate that except that " body matter " other elements must not be provided with form (font, color etc.).
Referring to Fig. 9, on the operation interface of above-mentioned electronic document processor, during partial content outside the user has chosen " body matter ", editing controller can be given an order to the electronic document processor, and the electronic document processor makes the formatting button relevant with this partial content be in as shown in figure 10 " forbidding (disable) " state.When the user had imported " body matter " and selected it, the described formatting of above-mentioned Figure 10 was in " enabling (enable) " state as shown in figure 11.And " body matter " is provided with after the form, following demonstration will appear in the editor of electronic document processor:
<?xml?version=″1.0″encoding=″UTF-8″?>
<Email 〉
<theme〉Care Yourself</theme 〉
<outbox the date〉1999-05-31T13:20:00.000-05:00</the outbox date 〉
<sender 〉
<addresses of items of mail〉mickey@disney.com</addresses of items of mail 〉
</sender 〉
<addressee 〉
<addresses of items of mail〉donald@disney.com</addresses of items of mail 〉
</addressee 〉
<return address 〉
<addresses of items of mail〉mickey@disney.com</addresses of items of mail 〉
</return address 〉
<body matter 〉
Dear?Mr?Danald:
Neaer?go?to?the?roaet?ducle?reataurant.
With?you?be?good?health.
</body matter 〉
</Email 〉
The editing process of above-mentioned Email for example can not limit data for electronic documents of the present invention handle the method for editing machine or data for electronic documents editor control, therefore, it should be noted that at last: above embodiment only in order to the explanation the present invention and and unrestricted technical scheme described in the invention; Therefore, although this instructions has been described in detail the present invention with reference to each above-mentioned embodiment,, those of ordinary skill in the art should be appreciated that still and can make amendment or be equal to replacement the present invention; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (12)

1. a data for electronic documents is handled editing machine, comprises an electronic document processor, is used to receive the edit commands of user via the operation interface input of described electronic document processor, carries out by the processing capacity of editing electronic document; It is characterized in that also comprising:
One regular data storer, the regular data that is used to store the described electronic document of described DTD/Schema;
One editing controller is used for reading from described regular data storer the regular data of the described electronic document of DTD/Schema, and according to the regular data of described electronic document, sends the order of opening or closing corresponding function to described electronic document processor;
One supervising data storage device is used to store the monitor data by the editing electronic document; Described editing controller reads by the monitor data of editing electronic document from described supervising data storage device, and after the regular data of described electronic document and this monitor data by the editing electronic document compared, open or close function corresponding in the described electronic document processor.
2. data for electronic documents according to claim 1 is handled editing machine, it is characterized in that: described data for electronic documents is handled editing machine and is also comprised:
One electronic document watch-dog is used for being analyzed in real time by the editing electronic document, obtain described by the monitor data of editing electronic document after, this monitor data is outputed to described supervising data storage device stores.
3. data for electronic documents according to claim 1 and 2 is handled editing machine, it is characterized in that: described data for electronic documents is handled editing machine and is also comprised:
One DTD/Schema resolver is used for the DTD/Schema that reads in is analyzed, and therefrom extracts the regular data of electronic document, and described regular data is outputed to described regular data storer stores.
4. data for electronic documents according to claim 1 and 2 is handled editing machine, it is characterized in that: described operation interface comprises: function button, menu item, shortcut and/or toolbar, related with its corresponding functional module respectively or binding of described function button, menu item, shortcut and/or toolbar, after the user chose and press function corresponding button, menu item, shortcut and/or toolbar, functional module related with described function button, menu item, shortcut and/or toolbar or binding was carried out function corresponding.
5. data for electronic documents according to claim 4 is handled editing machine, it is characterized in that: the function of the described function button of storage, menu item, shortcut and/or toolbar allows/forbids parameter in the described electronic document processor, this function allows/forbids parameter to be made amendment according to described editing controller transmission order by described electronic document processor, is perhaps directly revised by described editing controller.
6. a computer electronic documents editor control method, it is characterized in that: editing controller receives user's operation at the electronic document processor, before being handled by the editing electronic document, read and be stored in regular data in the regular data storer, the described electronic document of DTD/Schema, and the regular data of the described electronic document of foundation, judge whether function corresponding in the unlocking electronic document processor, be then to open function corresponding, otherwise close function corresponding; Described editing controller also further reads and is stored in the supervising data storage device by the monitor data of editing electronic document, and the regular data of described monitor data and described electronic document compared, if the result after the contrast is for allowing to carry out function corresponding in the electronic document processor, then open function corresponding, otherwise close function corresponding.
7. electronic document editor's according to claim 6 control method is characterized in that: with function button, menu item, shortcut and/or toolbar in the described electronic document processor operations interface respectively with the electronic document processor in corresponding functional module set up related or bind; After the user chose and press function corresponding button, menu item, shortcut and/or toolbar, described functional module was carried out function corresponding;
The function of the described function button of storage, menu item, shortcut and/or toolbar allows/forbids parameter in described electronic document processor, unlatching that described electronic document processor sends according to the electronic document watch-dog or the order of closing corresponding function revise respectively allowing/forbidding parameter; Perhaps respectively allow/forbid parameter, open or close corresponding function by the direct modification of described electronic document editing controller.
8. electronic document editor's according to claim 6 control method, it is characterized in that: the regular data of described electronic document by the DTD/Schema resolver at described electronic document processor to before being handled by the editing electronic document, from DTD/Schema, extract, and store in the described regular data storer.
9. electronic document editor's according to claim 8 control method is characterized in that: described DTD/Schema, comprise by the structural information of the format information of editing electronic document and/or user data, and be used to describe structure by the editing electronic document.
10. electronic document editor's according to claim 8 control method, it is characterized in that: described editing controller is also according to the regular data of described electronic document, by the assigned address setting of editing electronic document by the defined content information of DTD/Schema.
11. electronic document editor's according to claim 8 control method, it is characterized in that: described editing controller is the regular data of the described electronic document of foundation also, being inserted by the defined content of DTD/Schema automatically, perhaps correct user's input by the assigned address of editing electronic document.
12. electronic document editor's according to claim 8 control method is characterized in that: described monitor data, and is stored in the described supervising data storage device according to being generated by the editing electronic document by the electronic document watch-dog.
CNB2005100077199A 2005-02-08 2005-02-08 Electronic document data processing editor and its controlling method Active CN100363928C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100077199A CN100363928C (en) 2005-02-08 2005-02-08 Electronic document data processing editor and its controlling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100077199A CN100363928C (en) 2005-02-08 2005-02-08 Electronic document data processing editor and its controlling method

Publications (2)

Publication Number Publication Date
CN1818898A CN1818898A (en) 2006-08-16
CN100363928C true CN100363928C (en) 2008-01-23

Family

ID=36918914

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100077199A Active CN100363928C (en) 2005-02-08 2005-02-08 Electronic document data processing editor and its controlling method

Country Status (1)

Country Link
CN (1) CN100363928C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1903452B1 (en) * 2006-09-25 2012-08-22 Software AG Method and system for processing the input in an XML form
CN101883082A (en) * 2009-05-06 2010-11-10 华为技术有限公司 Method, equipment and system for acquiring modeling file information of network configuration protocol server
CN103176728A (en) * 2011-12-23 2013-06-26 华硕电脑股份有限公司 Toolbar menu operation method and portable electronic device
CN103413088B (en) * 2012-07-09 2016-06-29 深圳市利谱信息技术有限公司 A kind of computer document operation safety auditing system
CN103927154A (en) * 2013-01-15 2014-07-16 陈柯瑾 Common operation and setup rapid accomplishing method for modern computer software
CN111488403A (en) * 2020-04-03 2020-08-04 自然资源部第三地形测量队(黑龙江第二测绘工程院) Data editing method and device, auxiliary editing equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5189731A (en) * 1987-04-22 1993-02-23 Sharp Kabushiki Kaisha Character processing system having editing function
JPH08235176A (en) * 1995-02-27 1996-09-13 Casio Comput Co Ltd Document processor
CN1220427A (en) * 1997-10-06 1999-06-23 松下电器产业株式会社 Transmission document edition device, received document processing device, server device and recording medium
CN1485785A (en) * 2002-09-26 2004-03-31 国际商业机器公司 Retracting mechanism of optical element for retractable photographing lens
US20040088647A1 (en) * 2002-11-06 2004-05-06 Miller Adrian S. Web-based XML document processing system
CN1549162A (en) * 2003-05-21 2004-11-24 联想(北京)有限公司 Method and system for processing expansible safety information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5189731A (en) * 1987-04-22 1993-02-23 Sharp Kabushiki Kaisha Character processing system having editing function
JPH08235176A (en) * 1995-02-27 1996-09-13 Casio Comput Co Ltd Document processor
CN1220427A (en) * 1997-10-06 1999-06-23 松下电器产业株式会社 Transmission document edition device, received document processing device, server device and recording medium
CN1485785A (en) * 2002-09-26 2004-03-31 国际商业机器公司 Retracting mechanism of optical element for retractable photographing lens
US20040088647A1 (en) * 2002-11-06 2004-05-06 Miller Adrian S. Web-based XML document processing system
CN1549162A (en) * 2003-05-21 2004-11-24 联想(北京)有限公司 Method and system for processing expansible safety information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种扩展置标语言解析器的设计与实现. 丁峰,王煜,沈钧毅,齐勇.西安交通大学学报,第36卷第8期. 2002 *

Also Published As

Publication number Publication date
CN1818898A (en) 2006-08-16

Similar Documents

Publication Publication Date Title
US7406660B1 (en) Mapping between structured data and a visual surface
CN101322121B (en) Method and system for implementing demixing process of document, device and document library system
CN100363928C (en) Electronic document data processing editor and its controlling method
US6996781B1 (en) System and method for generating XSL transformation documents
US6631497B1 (en) Binding data from data source to cells in a spreadsheet
US7979793B2 (en) Graphical creation of a document conversion template
CN105825066B (en) A kind of electronic health record generation method and device
US7581177B1 (en) Conversion of structured documents
US6718329B1 (en) Method and apparatus for generating typed nodes and links in a hypertext database from formation documents
WO2016085822A1 (en) Systems and methods for editing a file in a non-native application using an application engine
CN101599011A (en) DPS (Document Processing System) and method
WO2006051975A1 (en) Document processing device
CN102707983A (en) Automated generation of client/driver communication interfaces
US20190095803A1 (en) Intelligent inferences of authoring from document layout and formatting
CN107861721A (en) Reverse graphical intelligence programming method and apparatus, equipment and storage medium
Chu-Carroll et al. Visual separation of concerns through multidimensional program storage
CN112364669B (en) Method, device, equipment and storage medium for translating translated terms by machine translation
Kirsch et al. Snippets and Component-Based Authoring Tools for Reusing and Connecting Documents.
WO2006051720A1 (en) Document processing device, document processing method, and electronic mail processing device
Surla Eclipse editor for MARC records
Donaldson et al. Pen-based input of UML activity diagrams for business process modelling
Palmirani et al. Metadata for the legal domain
CN103914448A (en) Translation project process optimizing method based on Tardos and Excel
Wysota Porting graphical user interfaces through ontology alignment
Leal et al. Visual Programming of XSLT from examples

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant