A kind of implementation method of net digest browser and systemTechnical field:
The present invention relates to a kind of implementation method and system of net digest browser, more specifically say, relating to a kind of user can browsing page, and web page extracts is preserved and taken passages content, and directly content is taken passages in issue on the net, and the method for taking passages content with cryptoguard.The present invention for the user provide one can be in browsing page web page extracts, and taking passages the method that an Edition Contains saves as the net digest notes, also provide a kind of implementation method of the extracts Notes System with cryptoguard simultaneously.
Background technology:
Along with the development of numeral science and technology, people are through browser browsing page commonly used, and web page contents are carried out whole page or leaf preserve, and perhaps duplicate the mode that pastes other edit tools and take passages content on the webpage.But people are starved of some literal on the webpage with in the browsing page, and perhaps the regional literal of certain of webpage is taken passages, and editor and preservation so that form the net digest notes, are convenient to read in the future and edit.And the content of taking passages webpage directly be published to online collection (such as, be stowed to blog) also be that a lot of users are desirable.
In present stage, the good method of neither one realizes the above-mentioned problem of mentioning.
Summary of the invention:
The invention provides a kind of implementation method and system of net digest browser, purpose be for the user provide one can be in browsing page web page extracts, and save as the net digest notes taking passages an Edition Contains, perhaps be published to the method for online collection.
Technical solution of the present invention is as follows:
A kind of implementation method of net digest browser comprises step:
1) opens webpage with browser;
2) the selected web page contents that needs extracts on webpage;
3) selected web page contents is submitted to the extracts module and obtains taking passages content, edit;
4) be submitted to content managing module taking passages content, also can be submitted to text input frame on the webpage, be published to online (such as blog) taking passages content;
5) carry out data processing (comprise and add title and password etc.) with content managing module to taking passages content, and data are saved in net digest notes file;
6) open net digest notes file, browse editor and take passages content.
The employed system of the inventive method is composed as follows: the browser kernel, and take passages module, content managing module and net digest notes file and form.This four systems is according to the software of function setting and file system, and wherein content managing module and net digest notes file can constitute an information management system with same password protection and deployment method separately.Each subsystem concrete function is as follows: (with reference to figure 1)
1) browser kernel is used to the user that the client modules of browsing page is provided.
2) take passages module, be used to the client modules of user's web page extracts, and can submit to content managing module, also can be submitted to input frame on the webpage, be published to online (such as blog) taking passages content taking passages content.The method of web page extracts can include, but not limited to following two kinds of methods: one can copy to the extracts module to selected web page contents then with the selected web page contents of the method (with mouse or the highlighted chosen content of keyboard) of computing machine acquiescence; Its two, the web page area with click activate to need is taken passages copies to the extracts module to the web page contents of active region then.
3) content managing module, major function are to make up to take passages the note data structure, and five major functions are specifically arranged: (a) structure is taken passages item, take passages item and comprise extracts content, title and password (password can lack); (b) make up the extracts unit: the extracts unit comprises title, password (password can lack), and one or more item (more simplifying, also can not make up the extracts unit, is that unit manages and preserves with the extracts item directly) of taking passages; (c) editor shows the extracts content; (d) use data structure (Hashtable, XML etc.) management to take passages unit and extracts item, be convenient to preserve management and inquiry; (e) data in the content managing module are saved in net digest notes file.
4) net digest is taken down notes file, and the file that can carry out read-write operation is used to store the data that contain extracts unit and extracts item that made up by content managing module.
Wherein, content managing module specifically comprises:
1) takes passages the unit submodule, be used for creating, revise and deletion extracts unit;
2) take passages an item submodule, be used for establishment, modification and deletion and take passages item;
3) data structure submodule is created modification and deletion and is used to comprise the data structure of taking passages the unit and taking passages item;
4) file is preserved submodule, is used for the data of content managing module are saved in net digest notes file;
5) inquiry submodule is used to list and takes passages unit and extracts item, and use the extracts unit of cryptoguard and take passages item according to the cipher inquiry that the user provides, and an extracts content is submitted to editor's display module;
6) editor's display module, editor shows extracts content, title and password.
Description of drawings:
Fig. 1 is that the main modular of one embodiment of the invention constitutes synoptic diagram
Fig. 2 is a system for use in carrying process flow diagram of the present invention
Embodiment:
Below in conjunction with accompanying drawing, embodiments of the present invention are described.
Fig. 1 represents that the main modular of a net digest browser constitutes synoptic diagram.As shown in the drawing, the net digest browser mainly is made up of four parts: the browser kernel, take passages module, content managing module and net digest notes module.Need to prove that the browser kernel is taken passages module, content managing module and net digest notes file can be to be erected on same the computing machine, perhaps are deployed in respectively on the different computing machines that link to each other with the internet.The browser kernel can be selected the Internet Explorer kernel of MS's issue for use, perhaps the similar browser kernel of other company's issue.
The net digest browser can be one and operate in a system software on the computing equipment, and it can be finished by the http agreement such as but not limited to standard with extraneous communication,
Fig. 2 represents system for use in carrying process flow diagram of the present invention, comprises the following steps:
Step S20, the user opens webpage with the browser kernel.
Step S21, when the user selectes the content that needs extracts on webpage, the method of web page extracts can comprise, but be not limited to, below two kinds of methods: one, can copy to the extracts module to selected web page contents then with the selected web page contents of the method (with mouse or the highlighted chosen content of keyboard) of computing machine acquiescence; Its two, the web page area with click activate to need is taken passages copies to the extracts module to the web page contents of active region then.
Step S22, the content replication that the user is selected obtains taking passages content to taking passages module.Such as, with the WebBrowser control that provides of Microsoft as the browser kernel, can carry out " Copy " by Document.ExecCommand and order the literal that the user is selected to copy to pasting boards (Clipboard), and then the extracts module is arrived in the content replication on the pasting boards.Also can take passages active region.Such as, the browser kernel of making of the WebBrowser control that providing of Microsoft, can be by obtaining to belong to the content that Document.ActiveElement.InnerText (perhaps InnerHtml) under the WebBrowser obtains whole active region), content of multimedia such as picture for the link in the active region, can be linked to appropriate address in the content and download by taking passages, add to then and take passages module and edit and browse.The editor who takes passages content can use the standard software control, such as the RichTextBox control in the C# language.
S23 arrives the Edition Contains module to the content replication of taking passages on the module, takes passages the unit accordingly and takes passages item.
S24 is published to online collection to the content replication of taking passages on the module to the text input frame on the webpage.By this method, the user can directly be published to online (such as blog etc.) behind the Edition Contains taking passages.Such as, the browser kernel of making of the WebBrowser control that providing of Microsoft, the user can click earlier and activate the text input frame of wishing to paste content, then taking passages the word content assignment realizes taking passages word content to Document.ActiveElement.InnerText under the WebBrowser issue collection.
S25, the detailed process of taking passages content with the content managing module management is: structure is taken passages item, takes passages item and comprises extracts content, title and password (password can lack); Make up and take passages the unit: take passages the unit and comprise a title, a password (password can lack), and one or more extracts item; Take passages the unit and take passages item with data structure (Hashtable, XML etc.) management, be convenient to preserve management and inquiry; Edit-modify is taken passages content; Be saved in net digest notes file containing the data structure of taking passages the unit and taking passages item.Preferable, can encrypt net digest notes file.More simplify, also can only make up and take passages item, do not make up the extracts unit.Be that the unit is saved in data in the data structure directly to take passages item.Take passages the unit and take passages for managing, but can consider to preserve data with the method for preservation serialized object with data structures such as Hashtable.If take passages the unit and take passages, need set up label for every content taking passages the unit and take passages, and the rule of following XML is saved in the XML file to related content, so that preserve and search with XML file mode management.The editor who takes passages content can use the standard software control, such as the RichTextBox control in the C# language.
Step S26, the detailed process of opening net digest notes file is: system lists earlier to be taken passages the extracts unit in the notes file and takes passages titles that in the unit all are taken passages and taken passages, the title of selecting according to the user is given the user taking passages content revealing then; When the user need open the extracts unit of using cryptoguard and take passages item, require the user to input password, the system verification password is correct to be listed an extracts item of taking passages in the unit afterwards, and the extracts content of the extracts item of user's selection is submitted to the user.When the user opens the extracts unit of cryptoguard and takes passages item; system can also not provide title or other relevant informations of taking passages the unit and taking passages item to the user in advance; but require the user that password is provided earlier, extracts unit that the password that listing then provides with the user is associated and extracts item.Take passages the title of unit and extracts item, can list with the control of tree structure or list structure.
Can also take down notes file to net digest for information safety system and carry out encryption, decipher again when the user opens file.The content managing module of native system and net digest notes file can constitute the notes software systems with cryptoguard separately.