CN110309103B - Document opening method and device, electronic equipment and readable storage medium - Google Patents

Document opening method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110309103B
CN110309103B CN201810247093.6A CN201810247093A CN110309103B CN 110309103 B CN110309103 B CN 110309103B CN 201810247093 A CN201810247093 A CN 201810247093A CN 110309103 B CN110309103 B CN 110309103B
Authority
CN
China
Prior art keywords
document
search
list
search box
target
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
CN201810247093.6A
Other languages
Chinese (zh)
Other versions
CN110309103A (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 Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
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 Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201810247093.6A priority Critical patent/CN110309103B/en
Publication of CN110309103A publication Critical patent/CN110309103A/en
Application granted granted Critical
Publication of CN110309103B publication Critical patent/CN110309103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation

Abstract

The embodiment of the invention provides a document opening method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring a search word input into a search box by a user, wherein the search box is displayed in a recently opened document list of office software; after the search terms are obtained, whether the search terms exist in the document attribute information of each document in the recently opened document list or not is judged respectively; for each document in the recently opened document list, if the document attribute information of the document does not have a search word, hiding the document name of the document to display the document name of each target document in the recently opened document list; search terms exist in the document attribute information of each target document; and when a document opening instruction aiming at one target document in all the target documents is received, opening the target document. By applying the embodiment of the invention, the efficiency of opening the document can be improved.

Description

Document opening method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of document processing technologies, and in particular, to a document opening method and apparatus, an electronic device, and a readable storage medium.
Background
At present, most office software, such as WPS (WPS software) office software and PPT (PowerPoint) office software, can record documents recently opened by a user into a list of recently opened documents corresponding to the corresponding office software. In this way, the user can find the document which the user wants to open from the recently opened document list, and then open the document which the user wants to open.
The inventor finds that when too many documents recorded in a recently opened document list exist, a user needs to drag a scroll bar displayed in the recently opened document list and check and open a document which the user wants to open after checking the documents one by one, and the document opening method causes the efficiency of opening the document to be low.
Disclosure of Invention
The embodiment of the invention aims to provide a document opening method, a document opening device, electronic equipment and a readable storage medium, so as to improve the efficiency of opening a document. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a document opening method, where the method may include:
acquiring a search word input into a search box by a user, wherein the search box is displayed in a recently opened document list of office software;
after the search terms are obtained, whether the search terms exist in the document attribute information of each document in the recently opened document list is judged respectively;
for each document in the recently opened document list, if the document attribute information of the document does not contain a search word, hiding the document name of the document so as to display the document name of each target document in the recently opened document list; search terms exist in the document attribute information of each target document;
and when a document opening instruction aiming at one target document in the target documents is received, opening the target document.
Optionally, the search term may include: at least one of a document name keyword, a document absolute storage path, a document size, a document creation time, and a document modification time.
Optionally, the search box may include: at least one of a document name keyword search box, a document absolute storage path search box, a document size search box, a document creation time search box, and a document modification time search box.
Alternatively, when the search box includes a document creation time search box/a document modification time search box, the step of, after obtaining the search term, respectively determining whether the search term exists in document attribute information of each document in the recently opened document list may include:
after the search word input to the document creation time search box/document modification time search box by the user is obtained, whether the search word exists in the document creation time/document modification time in the document attribute information of each document in the recently opened document list is judged respectively.
Optionally, when the obtained search word is a document name keyword, after the step of hiding the document name of each document in the document list that is opened recently and if the search word does not exist in the document attribute information of the document, the method may further include:
and displaying the content matched with the document name keyword in the document name of each target document by using a preset color.
Optionally, the list of recently opened documents may also display: a button for instructing to open all target documents; after the step of hiding the document name of each document in the recently opened document list if no search term exists in the document attribute information of the document, the method may further include:
detecting whether a button is clicked;
when it is detected that the button is clicked, each target document displayed in the list of recently opened documents is opened.
In a second aspect, an embodiment of the present invention further provides a document opening apparatus, where the apparatus may include:
an obtaining unit, configured to obtain a search term input into a search box by a user, where the search box is displayed in a recently opened document list of office software;
the judging unit is used for respectively judging whether the search terms exist in the document attribute information of each document in the recently opened document list after the search terms are obtained;
a first display unit, configured to hide, for each document in the recently opened document list, a document name of the document if a search term does not exist in document attribute information of the document, so as to display the document name of each target document in the recently opened document list; search terms exist in the document attribute information of each target document;
and the first opening unit is used for opening a target document in the target documents when receiving a document opening instruction aiming at the target document.
Optionally, the search term may include: at least one of a document name keyword, a document absolute storage path, a document size, a document creation time, and a document modification time.
Optionally, the search box may include: at least one of a document name keyword search box, a document absolute storage path search box, a document size search box, a document creation time search box, and a document modification time search box.
Optionally, when the search box includes a document creation time search box/a document modification time search box, the determining unit may be specifically configured to:
after obtaining the search terms input to the document creation time search box/document modification time search box by the user, respectively judging whether the search terms exist in the document creation time/document modification time in the document attribute information of each document in the recently opened document list.
Optionally, when the obtained search word is a document name keyword, the apparatus may further include:
and the second display unit is used for displaying the content matched with the document name keyword in the document name of each target document by using a preset color after the document name of each document is hidden if the search word does not exist in the document attribute information of the document aiming at each document in the recently opened document list.
Optionally, the list of recently opened documents may further display: a button for instructing to open all target documents; the apparatus may further include:
the detection unit is used for detecting whether a button is clicked or not after the document name of the document is hidden if the search word does not exist in the document attribute information of each document in the recently opened document list;
and a second opening unit for opening each of the target documents displayed in the list of recently opened documents when it is detected that the button is clicked.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus; office software is installed on the electronic equipment; a memory for storing a computer program;
and the processor is used for realizing the method steps of any document opening method provided by the embodiment of the invention when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, where the readable storage medium is a readable storage medium on an electronic device, the electronic device is installed with office software, and the readable storage medium stores a computer program, and when executed by a processor, the computer program implements: the method steps of any one of the document opening methods provided by the embodiment of the invention.
In a fifth aspect, an embodiment of the present invention further provides a computer program product including instructions, which when run on an electronic device, cause the electronic device to perform: the method for opening any document provided by the embodiment of the invention comprises the following steps.
In the embodiment of the present invention, a search box may be displayed in the list of recently opened documents of the office software installed in the electronic device. When the user enters a search term in the search box, the electronic device may obtain the search term entered into the search box by the user. After obtaining the search term, it may be determined whether the search term exists in the document attribute information of each document in the list of recently opened documents. If the search term does not exist in the document attribute information of one document, the document name of the document is hidden. If the search term exists in the document attribute information of one document, the document name of the document is abandoned to be hidden, and the document corresponding to the document name is taken as the target document. In this way, only the target document satisfying the search condition is displayed in the recently opened document list, reducing the number of documents displayed in the recently opened document list. When a document opening instruction for a target document issued by a user is received, the target document may be opened. Therefore, the user can quickly check and open the document which the user wants to open from each target document displayed by the recently opened document list, the searching time is reduced, and the document opening efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart of a document opening method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a recently opened document list according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating another recently opened document list according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a list of recently opened documents according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a document opening apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for opening a document, an electronic device, and a readable storage medium.
First, a document opening method provided in an embodiment of the present invention is described below.
Referring to fig. 1, a document opening method provided by an embodiment of the present invention may be applied to an electronic device installed with office software, and the method may include the following steps:
s101: acquiring a search word input into a search box by a user, wherein the search box is displayed in a recently opened document list of office software;
as can be seen from fig. 2, in the recently opened document list of the office software according to the embodiment of the present invention, in addition to the recently opened document (for example, three person profiles, doc, etc.), a search box may be displayed. After the user enters the search terms in the search box, the electronic device may obtain the search terms.
In order to facilitate the user to use the search box, an input prompt word can be displayed in front of the search box. As can be seen from fig. 2, the input prompt may specifically be: please enter keywords. Although not limited thereto.
In addition, fig. 2 only shows an example of setting one search box, and it is reasonable that a person skilled in the art may set a plurality of search boxes according to actual requirements. For clarity, the following description specifically describes the case of multiple search boxes.
It should be noted that, the office software in the embodiment of the present invention includes but is not limited to: WPS (WPS software) office software, PPT (PowerPoint) office software, and PDF (Portable Document Format) office software.
S102: after the search terms are obtained, whether the search terms exist in the document attribute information of each document in the recently opened document list is judged respectively;
after the search term is obtained, the search term may be used to match document attribute information of each document in the recently opened document list, respectively, to check whether the search term exists in the document attribute information of each document.
The document attribute information of a document may include: at least one of a document name, a document absolute storage path, a document size, a document creation time, and a document modification time. Those skilled in the art can set which items are specifically included in the document attribute information according to actual requirements, and details are not described herein.
S103: for each document in the recently opened document list, if the document attribute information of the document does not have a search word, hiding the document name of the document to display the document name of each target document in the recently opened document list; search terms exist in the document attribute information of each target document;
and hiding the document displayed in the recently opened document list when the search word does not exist in the document attribute information of one document in the recently opened document list. Thus, only the document name of the target document in which the search word exists in the document attribute information is caused to be displayed in the recently opened document list. Therefore, only the target document meeting the search condition corresponding to the search word is displayed in the recently opened document list, and the number of documents displayed in the recently opened document list is reduced, so that the searching workload of a user is reduced, and the user experience is improved.
S104: and when a document opening instruction aiming at one target document in the target documents is received, opening the target document.
Wherein, when the user wants to open a target document displayed in the recently opened document list, the target document can be clicked. At this time, the electronic device may receive a document opening instruction for the target document and open the target document. The document opening mode enables a user to find a document to be opened more quickly, reduces the time for the user to search the document, and improves the efficiency of opening the document.
In the embodiment of the present invention, a search box may be displayed in the list of recently opened documents of the office software installed in the electronic device. When the user enters a search term in the search box, the electronic device may obtain the search term entered into the search box by the user. After obtaining the search term, it may be determined whether the search term exists in the document attribute information of each document in the list of recently opened documents. And if the search word does not exist in the document attribute information of one document, hiding the document name of the document. And if the search word exists in the document attribute information of one document, giving up hiding the document name of the document, and taking the document corresponding to the document name as a target document. In this way, only the target document satisfying the search condition is displayed in the recently opened document list, reducing the number of documents displayed in the recently opened document list. When a document opening instruction for a target document issued by a user is received, the target document may be opened. Therefore, the user can quickly check and open the document which the user wants to open from each target document displayed by the recently opened document list, the searching time is reduced, and the document opening efficiency is improved.
The following describes the document opening method provided by the embodiment of the present invention in detail with reference to specific examples.
In one implementation, a recently opened document list of office software provided by the embodiment of the present invention may have a search box displayed therein as shown in fig. 2. The search box is displayed with input prompt words in front: please enter the keyword.
In this implementation, the user may enter one or more of a document name keyword, a document absolute storage path, a document size, a document creation time, and a document modification time in the search box.
For example, the user may enter the document name keyword "zhang san" as shown in fig. 3 or the document name keyword "zhang san x 2017" as shown in fig. 4 in the search box. The search terms of the document absolute storage path "C: \ blurb \ three person blurb", document size "452KB", document creation time "20180213", document modification time "20180213", or "three by 452KB" may also be entered in the search box.
Wherein, a person skilled in the art may preset the meaning of "×" denotes "and", and then the meaning denoted by the search word "zhang san × 2017" is: there are both "zhang san" and "2017". The meaning of "×" representing "or" may also be preset, and then the meaning represented by the search word "zhang san 2017" is: it is reasonable that there is "zhangsan" or "2017". In addition, the symbol may be replaced with another symbol (e.g., symbol &).
Assume that 12 documents as shown in fig. 2 are displayed in the recently opened document list when the content in the search box is empty, and assume that the meaning represented by the search word "zhang san × 2017" preset by a person skilled in the art is: there are both "zhang san" and "2017". Then, when the user inputs the search term "zhang san × 2017" in the search box, the electronic device may detect the search term "zhang san × 2017", and may determine whether both "zhang san" and "2017" exist in the document attribute information of the 12 documents, respectively.
Assume that the document attribute information corresponding to the document name "three-person performance 2017.Doc" displayed in fig. 2 includes: document name "three person performances 2017.Doc", document absolute storage path "C: \ three person performances 2017", document size "128KB", document creation time "20171224", and document creation time "20171225". Then, when the user inputs the search term "zhang san × 2017" in the search box, the electronic device may determine that the search term "zhang san × 2017" exists in the document attribute information of the document "zhang san person performance 2017. Doc". At this time, the document "three person performance 2017.Doc" may be taken as a target document.
In addition, assuming that the search term "three by three 2017" does not exist in the document attribute information of the other 11 documents displayed in fig. 2, the document names of the 11 documents may be hidden at this time, so that only the document name of the document "three by three person performance 2017.Doc" shown in fig. 4 is displayed in the most recently displayed document. Therefore, only the document name meeting the search condition can be displayed in the recently displayed document, the document to be opened can be quickly checked without manually searching one by the user, and the office efficiency of the user is improved.
In this way, when the user clicks "three person performances 2017.Doc" as shown in fig. 4, the electronic device can quickly open the document "three person performances 2017.Doc", improving the efficiency of opening the document.
Further, since there may be a plurality of document names that are displayed only satisfying the search condition among the recently displayed documents, that is, there may be a plurality of target documents. For example, the document names of 3 target documents as shown in FIG. 3 may be displayed in the recently opened document list by the search word "Zhang three".
Therefore, in the list of recently opened documents, there may also be displayed: a button for instructing to open all target documents. Wherein in one particular implementation, the button may be set to an "open all" button as shown in figure 3. Of course, the button may also be set as an "all on" button, although not limited thereto.
Thus, when the user clicks the "open all" button as shown in fig. 3, the electronic device may open all the 3 target documents displayed in the recently opened document list in fig. 3, so that the user does not need to open the documents satisfying the search condition one by one, the document opening speed is increased, and the user experience is improved.
In addition, in order to facilitate the user to view which keywords of the document name of the target document match with the document name keywords input by the user, the electronic device may further display the content matching with the document name keywords in the document name of each target document by using a preset color. Of course, it is reasonable to display the content matching the document name keyword in the document name of each target document by using the way of thickening, italicizing, enlarging, highlighting, and the like.
In order to more accurately find out a document that a user wants to open through a search word, in another implementation manner, at least one of a document name keyword search box, a document absolute storage path search box, a document size search box, a document creation time search box and a document modification time search box may be simultaneously displayed in a recently opened document list of office software provided in an embodiment of the present invention.
The document name keyword search box is used for allowing a user to input a document name keyword; the document absolute storage path search box is used for inputting a document absolute storage path by a user; the document size search box is used for inputting the size of the document or the range of the size of the document by a user; the document creation time search box is used for inputting the creation time or the range of the creation time of the document by a user; the document modification time search box is used for inputting the modification time of the document or the range of the modification time by the user.
And, after the user inputs a search word in the document name keyword search box, the electronic device may determine whether the search word exists in the document name of each document in the recently opened document list. After the user inputs a search term in the document absolute storage path search box, the electronic device may determine whether the search term exists in the absolute storage path of each document in the recently opened document list.
After the user enters a search term in the document size search box, the electronic device may determine whether the document size of each document in the recently opened document list is equal to the search term, or whether the document size is within a range of the search term. After the user enters a search term in the document creation time search box, the electronic device may determine whether the document creation time of each document in the recently opened document list is equal to the search term, or whether the document creation time is within a range in which the search term is located. After the user inputs the search term in the document modification time search box, the electronic device may determine whether the document modification time of each document in the recently opened document list is equal to the search term, or whether the document modification time is within a range in which the search term is located.
That is, the document name keyword search box is associated with the document name in the document attribute information; the document absolute storage path search box is associated with the document absolute storage path in the document attribute information; the document size search box is associated with the document size in the document attribute information; the document creation time search box is associated with the document creation time in the document attribute information; the document modification time search box is associated with a document modification time in the document attribute information.
In summary, by applying the embodiment of the present invention, the target document meeting the search condition can be quickly displayed in the recently opened document list, the number of documents that the user needs to view is reduced, and the efficiency of opening the document that the user wants to open is further improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a document opening apparatus, and referring to fig. 5, the apparatus may include:
an obtaining unit 501, configured to obtain a search term input into a search box by a user, where the search box is displayed in a recently opened document list of office software;
a judging unit 502, configured to respectively judge whether a search term exists in document attribute information of each document in the recently opened document list after the search term is obtained;
a first display unit 503 configured to hide, for each document in the recently-opened document list, a document name of the document if a search word does not exist in document attribute information of the document, to display the document name of each target document in the recently-opened document list; search terms exist in the document attribute information of each target document;
a first opening unit 504, configured to open a target document among the target documents when a document opening instruction for the target document is received.
By the device provided by the embodiment of the invention, the search box can be displayed in the recently opened document list of the office software installed in the electronic equipment. When the user enters a search term in the search box, the electronic device may obtain the search term entered into the search box by the user. After obtaining the search term, it may be determined whether the search term exists in the document attribute information of each document in the list of recently opened documents. If the search term does not exist in the document attribute information of one document, the document name of the document is hidden. And if the search word exists in the document attribute information of one document, giving up hiding the document name of the document, and taking the document corresponding to the document name as a target document. In this way, only the target document satisfying the search condition is displayed in the recently opened document list, reducing the number of documents displayed in the recently opened document list. When a document opening instruction for a target document issued by a user is received, the target document may be opened. Therefore, the user can quickly check and open the document which the user wants to open from each target document displayed by the recently opened document list, the searching time is reduced, and the document opening efficiency is improved.
Optionally, in this embodiment of the present invention, the search term may include: at least one of a document name keyword, a document absolute storage path, a document size, a document creation time, and a document modification time.
Optionally, in an embodiment of the present invention, the search box may include: at least one of a document name keyword search box, a document absolute storage path search box, a document size search box, a document creation time search box, and a document modification time search box.
Optionally, in this embodiment of the present invention, when the search box includes a document creation time search box/a document modification time search box, the determining unit 502 is specifically configured to:
after obtaining the search terms input to the document creation time search box/document modification time search box by the user, respectively judging whether the search terms exist in the document creation time/document modification time in the document attribute information of each document in the recently opened document list.
Optionally, when the obtained search term is a document name keyword, the apparatus may further include:
and the second display unit is used for displaying the content matched with the document name keyword in the document name of each target document by using a preset color after hiding the document name of the document if the search word does not exist in the document attribute information of the document aiming at each document in the recently opened document list.
Optionally, also displayed in the list of recently opened documents are: a button for instructing to open all target documents; the apparatus may further include:
the detection unit is used for detecting whether a button is clicked or not after the document name of the document is hidden if the search word does not exist in the document attribute information of each document in the recently opened document list;
and a second opening unit for opening each of the target documents displayed in the list of recently opened documents when it is detected that the button is clicked.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an electronic device, referring to fig. 6, the electronic device includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604; office software is installed on the electronic equipment;
a memory 603 for storing a computer program;
the processor 601 is configured to implement the method steps provided by any of the above embodiments of the document opening method when executing the program stored in the memory.
In the list of recently opened documents of office software installed in the electronic device provided by the embodiment of the present invention, a search box may be displayed. When the user enters a search term in the search box, the electronic device may obtain the search term entered into the search box by the user. After obtaining the search term, it may be determined whether the search term exists in the document attribute information of each document in the list of recently opened documents. And if the search word does not exist in the document attribute information of one document, hiding the document name of the document. And if the search word exists in the document attribute information of one document, giving up hiding the document name of the document, and taking the document corresponding to the document name as a target document. In this way, only the target document satisfying the search condition is displayed in the recently opened document list, reducing the number of documents displayed in the recently opened document list. When a document open instruction for a target document is received, the target document may be opened. Therefore, the user can quickly check and open the document which the user wants to open from each target document displayed by the recently opened document list, the searching time is reduced, and the document opening efficiency is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, where the readable storage medium is a readable storage medium on an electronic device, office software is installed on the electronic device, and a computer program is stored in the readable storage medium, and when being executed by a processor, the computer program implements the method steps provided by any of the above document opening method embodiments.
After the computer program stored in the readable storage medium provided by the embodiment of the present invention is executed by the processor of the electronic device, a search box may be displayed in the recently opened document list of the office software installed in the electronic device. When the user enters a search term in the search box, the electronic device may obtain the search term entered into the search box by the user. After obtaining the search term, it may be determined whether the search term exists in the document attribute information of each document in the list of recently opened documents. And if the search word does not exist in the document attribute information of one document, hiding the document name of the document. And if the search word exists in the document attribute information of one document, giving up hiding the document name of the document, and taking the document corresponding to the document name as a target document. In this way, only the target document satisfying the search condition is displayed in the recently opened document list, reducing the number of documents displayed in the recently opened document list. When a document open instruction for a target document is received, the target document may be opened. Therefore, the user can quickly check and open the document which the user wants to open from each target document displayed by the recently opened document list, the searching time is reduced, and the document opening efficiency is improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer program product including instructions, which, when run on an electronic device, cause the electronic device to perform: the method steps provided by any of the above embodiments of the document opening method.
When the computer program product containing the instructions provided by the embodiment of the invention runs on the server, a search box can be displayed in a recently opened document list of office software installed in the electronic equipment. When the user enters a search term in the search box, the electronic device may obtain the search term entered into the search box by the user. After obtaining the search term, it may be determined whether the search term exists in the document attribute information of each document in the list of recently opened documents. And if the search word does not exist in the document attribute information of one document, hiding the document name of the document. And if the search word exists in the document attribute information of one document, giving up hiding the document name of the document, and taking the document corresponding to the document name as a target document. In this way, only the target document satisfying the search condition is displayed in the recently opened document list, reducing the number of documents displayed in the recently opened document list. When a document open instruction for a target document is received, the target document may be opened. Therefore, the user can quickly check and open the document which the user wants to open from each target document displayed by the recently opened document list, the searching time is reduced, and the document opening efficiency is improved.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. A method of opening a document, the method comprising:
obtaining a search word input into a search box by a user, wherein the search box is displayed in a recently opened document list of office software;
after the search terms are obtained, whether the search terms exist in the document attribute information of each document in the recently opened document list or not is judged respectively;
for each document in the recently opened document list, if the search word does not exist in the document attribute information of the document, hiding the document name of the document so as to display the document name of each target document in the recently opened document list; the search terms exist in the document attribute information of each target document;
and when a document opening instruction aiming at one target document in the target documents is received, opening the target document.
2. The method of claim 1, wherein the search term comprises: at least one of a document name keyword, a document absolute storage path, a document size, a document creation time, and a document modification time.
3. The method of claim 1, wherein the search box comprises: at least one of a document name keyword search box, a document absolute storage path search box, a document size search box, a document creation time search box, and a document modification time search box.
4. The method according to claim 1, wherein when the search box includes a document creation time search box/a document modification time search box, the step of determining whether the search word exists in document attribute information of each document in the list of recently opened documents, respectively, after obtaining the search word, comprises:
after obtaining the search terms input to the document creation time search box/document modification time search box by the user, respectively judging whether the search terms exist in the document creation time/document modification time in the document attribute information of each document in the recently opened document list.
5. The method according to claim 1, wherein when the obtained search word is a document name keyword, after the step of hiding the document name of each document in the list of recently opened documents if the search word does not exist in the document attribute information of the document, the method further comprises:
and displaying the content matched with the document name keyword in the document names of the target documents by using preset colors.
6. The method according to any of claims 1-5, wherein further displayed in the list of recently opened documents are: a button for instructing to open all target documents; after the step of hiding the document name of the document if the search term does not exist in the document attribute information of the document for each document in the recently opened document list, the method further includes:
detecting whether the button is clicked;
opening each target document displayed in the list of recently opened documents when it is detected that the button is clicked.
7. A document opening apparatus, characterized in that the apparatus comprises:
an obtaining unit configured to obtain a search word input by a user into a search box displayed in a recently opened document list of office software;
the judging unit is used for respectively judging whether the search word exists in the document attribute information of each document in the recently opened document list after the search word is obtained;
a first display unit, configured to hide, for each document in the recently-opened document list, a document name of the document if the search term does not exist in the document attribute information of the document, so as to display the document name of each target document in the recently-opened document list; the search terms exist in the document attribute information of each target document;
and the first opening unit is used for opening a target document in the target documents when receiving a document opening instruction aiming at the target document.
8. The method of claim 7, wherein the search term comprises: at least one of a document name keyword, a document absolute storage path, a document size, a document creation time, and a document modification time.
9. The apparatus of claim 7, wherein the search box comprises: at least one of a document name keyword search box, a document absolute storage path search box, a document size search box, a document creation time search box, and a document modification time search box.
10. The apparatus according to claim 7, wherein when the search box includes a document creation time search box/a document modification time search box, the determining unit is specifically configured to:
after obtaining the search word input into the document creation time search box/document modification time search box by the user, respectively judging whether the search word exists in the document creation time/document modification time in the document attribute information of each document in the recently opened document list.
11. The apparatus according to claim 7, wherein when the obtained search word is a document name keyword, the apparatus further comprises:
and the second display unit is used for hiding the document name of each document in the document attribute information of the document if the search word does not exist in the document attribute information of the document aiming at each document in the recently opened document list, and then displaying the content matched with the document name keyword in the document name of each target document by using a preset color.
12. The apparatus according to any of claims 7-11, wherein further displayed in the list of recently opened documents are: a button for instructing to open all target documents; the device further comprises:
a detecting unit, configured to detect whether the button is clicked after hiding a document name of the document if the search word does not exist in the document attribute information of the document for each document in the recently opened document list;
a second opening unit configured to open each of the target documents displayed in the list of recently opened documents when it is detected that the button is clicked.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; office software is installed on the electronic equipment; a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1-6 when executing a program stored on a memory.
14. A readable storage medium, characterized in that the readable storage medium is a readable storage medium on an electronic device, on which office software is installed, the readable storage medium having stored therein a computer program, which when executed by a processor, implements the method steps of any one of claims 1-6.
CN201810247093.6A 2018-03-23 2018-03-23 Document opening method and device, electronic equipment and readable storage medium Active CN110309103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810247093.6A CN110309103B (en) 2018-03-23 2018-03-23 Document opening method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810247093.6A CN110309103B (en) 2018-03-23 2018-03-23 Document opening method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110309103A CN110309103A (en) 2019-10-08
CN110309103B true CN110309103B (en) 2023-03-31

Family

ID=68073384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810247093.6A Active CN110309103B (en) 2018-03-23 2018-03-23 Document opening method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110309103B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385621A (en) * 2011-10-26 2012-03-21 上海量明科技发展有限公司 Method and system for implementing document index based on input method interface
CN107015992A (en) * 2016-01-28 2017-08-04 珠海金山办公软件有限公司 A kind of document display method and device
CN107391535A (en) * 2017-04-20 2017-11-24 阿里巴巴集团控股有限公司 The method and device of document is searched in document application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278302A1 (en) * 2004-05-27 2005-12-15 Ritter Gerd M Search of recently accessed documents
US7340686B2 (en) * 2005-03-22 2008-03-04 Microsoft Corporation Operating system program launch menu search
US20120076414A1 (en) * 2010-09-27 2012-03-29 Microsoft Corporation External Image Based Summarization Techniques

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385621A (en) * 2011-10-26 2012-03-21 上海量明科技发展有限公司 Method and system for implementing document index based on input method interface
CN107015992A (en) * 2016-01-28 2017-08-04 珠海金山办公软件有限公司 A kind of document display method and device
CN107391535A (en) * 2017-04-20 2017-11-24 阿里巴巴集团控股有限公司 The method and device of document is searched in document application

Also Published As

Publication number Publication date
CN110309103A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US11449767B2 (en) Method of building a sorting model, and application method and apparatus based on the model
US10705721B2 (en) Method and system for providing topic view in electronic device
TW201541266A (en) Providing search results corresponding to displayed content
CN109597874B (en) Information recommendation method, device and server
CN111767713A (en) Keyword extraction method and device, electronic equipment and storage medium
CN110716991A (en) Method for displaying entity associated information based on electronic book and electronic equipment
WO2023087934A1 (en) Voice control method, apparatus, device, and computer storage medium
CN105550217B (en) Scene music searching method and scene music searching device
CN111611502A (en) Label page display method and device
US9910918B2 (en) Presenting tags of a tag cloud in a more understandable and visually appealing manner
CN111881183A (en) Enterprise name matching method and device, storage medium and electronic equipment
CN106919593B (en) Searching method and device
CN109325135B (en) Text-based video generation method, device, computer equipment and storage medium
CN110309103B (en) Document opening method and device, electronic equipment and readable storage medium
CN110363189B (en) Document content restoration method and device, electronic equipment and readable storage medium
CN106202127B (en) Method and device for processing retrieval request by vertical search engine
CN112579937A (en) Character highlight display method and device
CN112269869A (en) Method and device for querying keywords
CN110728113A (en) Information screening method and device of electronic forms and terminal equipment
CN110895924B (en) Method and device for reading document content aloud, electronic equipment and readable storage medium
KR102254329B1 (en) Method and Apparatus for Providing User Customized Search Result
US20170322970A1 (en) Data organizing and display for dynamic collaboration
CN113157964A (en) Method and device for searching data set through voice and electronic equipment
CN112328081A (en) File searching method and device, electronic equipment and readable storage medium
CN111178072A (en) Legal provision determining method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant