CN111766991A - Method and device for opening document - Google Patents

Method and device for opening document Download PDF

Info

Publication number
CN111766991A
CN111766991A CN201910256064.0A CN201910256064A CN111766991A CN 111766991 A CN111766991 A CN 111766991A CN 201910256064 A CN201910256064 A CN 201910256064A CN 111766991 A CN111766991 A CN 111766991A
Authority
CN
China
Prior art keywords
document
target
tag
target document
hidden directory
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.)
Granted
Application number
CN201910256064.0A
Other languages
Chinese (zh)
Other versions
CN111766991B (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 CN201910256064.0A priority Critical patent/CN111766991B/en
Publication of CN111766991A publication Critical patent/CN111766991A/en
Application granted granted Critical
Publication of CN111766991B publication Critical patent/CN111766991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a method and a device for opening a document, which relate to the technical field of computers, and the method comprises the following steps: when closing a target document, if a document storage instruction input by a user is not received, acquiring the target document; storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document; and when a selection instruction corresponding to the document tag input by a user is received, acquiring the target document from the hidden directory folder and displaying the target document. By the adoption of the method and the device, when the document is closed without being stored, the document is stored to the hidden directory by the electronic equipment, and meanwhile the document tag is added to the folder where the document tag is located. When the electronic equipment opens the document tag, the electronic equipment opens the only document which is closed without being stored and corresponds to the document tag. In this way, the electronic device can save the documents which are closed but not saved in time.

Description

Method and device for opening document
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for opening a document.
Background
Currently, a user may install document applications, such as a text editor, a slide editor, and a form editor, etc., in a terminal. A user may edit or browse a document through a document application.
In the prior art, when a user edits a document using an electronic device, text, pictures, tables and other forms of information can be recorded in the document. Before the user inputs a closing instruction to the electronic equipment, the user needs to input a saving instruction for saving the information in the document. However, if the electronic device receives a close instruction input by the user and does not receive a save instruction input by the user after the user edits are completed, then such information within the document may be lost due to the closing of the document.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for opening a document, so that all contents edited before the document is opened are reserved when the document is opened. The specific technical scheme is as follows:
in a first aspect, a method for opening a document is provided, where the method is applied to an electronic device, and the method includes:
when closing a target document, if a document storage instruction input by a user is not received, acquiring the target document;
storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document;
and when a selection instruction corresponding to the document tag input by a user is received, acquiring the target document from the hidden directory folder and displaying the target document.
Optionally, the storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document includes:
extracting target characters of the target document, and taking the target characters as a document name of the target document;
saving the target document to the hidden directory folder;
creating the document tag corresponding to the target document, and taking the document name as the document tag name of the document tag;
and adding a newly added document prompt icon at an entrance tag of the folder where the document tag is located.
Optionally, after receiving a selection instruction of a corresponding document tag input by a user, acquiring and displaying the target document from the hidden directory folder, where the acquisition instruction includes:
when a selection instruction corresponding to the document tag and input by a user is received, retrieving the target document with the same name as the document tag in the hidden directory folder;
opening the target document in the hidden directory folder.
Optionally, the method further includes:
when the target document in the hidden directory folder is closed, if a document saving instruction input by a user is not received, the target document is saved to the hidden directory folder again.
In a second aspect, an apparatus for opening a document is provided, the apparatus being applied to an electronic device, and the apparatus including:
the acquisition module is used for acquiring the target document if a document storage instruction input by a user is not received when the target document is closed;
the first storage module is used for storing the target document to a preset hidden directory folder and creating a document tag corresponding to the target document;
and the display module is used for acquiring the target document from the hidden directory folder and displaying the target document after receiving a selection instruction corresponding to the document tag and input by a user.
Optionally, the first saving module is specifically configured to:
extracting target characters of the target document, and taking the target characters as a document name of the target document;
saving the target document to the hidden directory folder;
creating the document tag corresponding to the target document, and taking the document name as the document tag name of the document tag;
and adding a newly added document prompt icon at an entrance tag of the folder where the document tag is located.
Optionally, the display module is specifically configured to:
when a selection instruction corresponding to the document tag and input by a user is received, retrieving the target document with the same name as the document tag in the hidden directory folder;
opening the target document in the hidden directory folder.
Optionally, the apparatus further comprises:
and the second saving module is used for saving the target document to the hidden directory folder again if a document saving instruction input by a user is not received when the target document in the hidden directory folder is closed.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the first aspect when executing the program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when being executed by a processor, carries out the method steps of the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
According to the method and the device for opening the document, the target document can be obtained if a document saving instruction input by a user is not received when the target document is closed. And storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document. And when a selection instruction of the corresponding document tag input by the user is received, acquiring the target document from the hidden directory folder and displaying the target document. In this way, when the electronic device receives a closing instruction input by a user and does not receive a saving instruction input by the user, the target document is saved in the hidden directory folder, so that the document which is closed without being saved is saved in time.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for opening a document according to an embodiment of the present application;
fig. 2 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of another display interface provided by an embodiment of the present application;
FIG. 4 is a flowchart of a method for opening a document according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for opening a document according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an apparatus for opening a document according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The embodiment of the application provides a method for opening a document, which can be applied to electronic equipment capable of reading a WPS Word (WebSphere Process Server Word) document. Wherein, the terminal can be a mobile terminal, such as a mobile phone; alternatively, the terminal may be a PC (personal computer) terminal.
The following will describe a method for opening a document provided in an embodiment of the present application in detail with reference to a specific embodiment, as shown in fig. 1, the specific steps are as follows:
step 101, when closing the target document, if the saving instruction of the document input by the user is not received, acquiring the target document.
In the embodiment of the application, a user can edit a document by using the electronic device, and the edited content includes characters, pictures, slides, tables and the like. After the user edits the target document by using the electronic equipment, the electronic equipment closes the target document due to forgetting to input the saving instruction or due to the failure of the electronic equipment, and the electronic equipment acquires the target document when the saving instruction input by the user for the target document is not received.
And 102, storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document.
In the embodiment of the application, the electronic device is preset with a hidden directory folder, the hidden directory folder is used for storing the target document which is closed without receiving the document storage instruction input by the user, and the hidden directory folder is a folder invisible to the user. After the target document is saved in the preset hidden directory folder, the electronic device creates a folder for saving document tags on a client side home page of the edited document in the electronic device, as shown in fig. 2, fig. 2 shows a schematic diagram of a display interface of the client side in the electronic device, where the display interface includes an open button, a cooperation button, a new document draft box button, and a document recording part, and the new document draft box button in the interface display is an entry of the folder for saving document tags. And creating a document tag corresponding to the target document in the folder for storing the document tag. As shown in fig. 3, a schematic diagram of an interface of a document tag provided in an embodiment of the present application is provided, where the display interface includes a document tag and a delete button, the document tag is a tag capable of opening a corresponding target document, all document tags are to be displayed in a folder for storing document tags, and a user may open a target document stored in a hidden directory folder by inputting a selection instruction of the document tag.
Optionally, the electronic device stores the target document in a preset hidden directory folder, and creates a document tag corresponding to the target document, including the following steps:
step one, extracting target characters of the target document, and taking the target characters as a document name of the target document.
In the embodiment of the application, in order to form a corresponding relationship between a target document and a document tag in a hidden directory and clearly show the content of the target document, the electronic device names the target document and the document tag. The embodiment of the application provides a named example, and the specific process can be as follows: after the target document is saved in the hidden directory folder by the electronic device, the electronic device names the target document by taking a preset number of characters of the target document, and the preset number can be freely set by a user through the electronic device, for example, 8 characters of the target document are named for the target document. If the electronic equipment names the target document and the hidden directory folder already has the document with the same name, the electronic equipment finally adds brackets and numbers to the name of the target document to distinguish other documents in the hidden directory folder when naming the target document.
And step two, storing the target document into the hidden directory folder.
In the embodiment of the application, when the electronic equipment stores the target document, the electronic equipment extracts all data of the target document, stores all the data into the document, and modifies the storage path to the hidden directory folder, so that the target document is stored into the hidden directory folder. In order to ensure that the hidden directory folder and the documents in the hidden directory folder do not occupy too much storage space, an example of limiting the hidden directory folder is provided in the embodiments of the present application, and the specific process may be: for all the documents in the hidden directory folder, the electronic equipment can sequence the documents according to the time for saving the documents to the hidden directory folder, and when the number of the documents in the hidden directory folder is greater than a preset number threshold, the electronic equipment automatically deletes the document which is saved to the hidden directory folder and has the earliest time sequence, so that the number of the documents in the hidden directory folder is not greater than the preset number threshold. The preset number threshold may be freely set by the user through the electronic device, for example, the user sets the preset number threshold to 100 pieces through the electronic device, and when the number of documents in the hidden directory folder is greater than 100 pieces, the electronic device automatically deletes the document saved to the hidden directory folder with the earliest time ranking.
And step three, creating the document tag corresponding to the target document, and taking the document name as the document tag name of the document tag.
In the embodiment of the application, after the target document is stored in the hidden directory folder by the electronic device, the document tag corresponding to the target document is created. The document tag is a tag visible to a user, and the user can click the document tag by inputting a selected document tag, so that a target document corresponding to the document tag is opened. When the target document is deleted from the hidden directory folder, the document tag corresponding to the target document is also deleted by the electronic device. And when the electronic equipment creates a document tag for the target document, taking the document name as the document tag name of the document tag. Such a naming convention provides a one-to-one correspondence of the target document in the hidden directory folder to the document tag.
And step four, adding a newly added document prompt icon at the entrance label of the folder where the document label is located.
In the embodiment of the application, the electronic device adds a new document prompt icon at an entry tag of a folder where a document tag is located. Fig. 2 is a schematic view of a display interface of a client according to an embodiment of the present disclosure. The home interface of the client for editing the document may include an open button, a cooperation button, a new document draft box button, and a document recording section. The document recording part is a document which is displayed and edited, the electronic equipment receives a storage instruction input by a user, the button of the newly-built document draft box is an inlet of a folder for storing document tags, and all the document tags are displayed in the folder for storing the document tags. When a new target text stored in the hidden directory folder exists, the electronic equipment adds a new document prompt icon at the entrance of the folder for storing the document tag so as to remind a user that a new document is stored in the hidden directory folder.
And 103, acquiring and displaying the target document from the hidden directory folder after receiving a selection instruction of the corresponding document tag input by the user.
In the embodiment of the application, the target document can be stored in the hidden directory folder, the hidden directory folder is a folder invisible to a user, the user wants to open the target document in the hidden directory folder, and the target document can be opened by inputting an instruction for selecting a document tag corresponding to the target document to the electronic device. In the electronic equipment, the target documents correspond to the document tags one by one, and a user can control the electronic equipment by inputting instructions. And the electronic equipment operates the document tag according to the instruction, retrieves the target document with the same name as the document tag, and further saves the target document or deletes the target document.
Optionally, after receiving a selection instruction of a corresponding document tag input by a user, obtaining a target document from the hidden directory folder and displaying the target document, the specific steps include:
step one, after receiving a selection instruction of a corresponding document tag input by a user, retrieving a target document with the same name as the document tag in a hidden directory folder.
In the embodiment of the application, when a user wants to open a target document in a hidden directory folder, an instruction for selecting a document tag corresponding to the target document needs to be input, and the target document corresponding to the document tag can be found by retrieving the document with the same name as the document tag in the hidden directory folder after the electronic equipment receives the instruction because the target document and the document tag are in one-to-one correspondence.
After the electronic device saves the target document to the hidden directory folder, the electronic device may determine that the target document is a newly added target document until the electronic device receives an open instruction corresponding to the target document. After the electronic equipment receives an opening instruction corresponding to the target document, the electronic equipment can open the target document and eliminate a new document prompt icon at an entry label of a folder where a document label is located.
And step two, opening the target document in the hidden directory folder.
In the embodiment of the application, after the electronic equipment searches the target document with the same name as the document tag in the hidden directory folder, the electronic equipment acquires all data contents of the target document and opens all data of the target document in an editor for editing the document so as to achieve the effect of opening the target document. As shown in fig. 3, the electronic device presents all document tags in the interface in the order of creation time, the user can input an instruction in the interface, and the electronic device operates the document tags according to the instruction input by the user.
Optionally, in addition to the instruction for selecting the document tag, the user may also input other instructions, which may specifically include, but are not limited to, the following instructions:
saving instructions: when a user inputs a document tag storage instruction to the electronic equipment, the electronic equipment stores a target document in the hidden directory folder, moves the target document out of the hidden directory folder to a folder where other normally stored documents are located, and deletes a document tag corresponding to the target document.
And (4) deleting an instruction: when a user inputs a command of deleting the document tag to the electronic equipment, the electronic equipment deletes the target document in the hidden directory folder and the document tag corresponding to the target document at the same time.
And (3) multi-selection instruction: when the user inputs a multi-selection document tag instruction to the electronic equipment, the electronic equipment executes a deletion instruction on a plurality of selected document tags. In fig. 3, after the electronic device receives the multiple selection instruction to select three document tags, the user may input a deletion instruction to cause the electronic device to execute the deletion instruction on the three document tags at the same time.
Alternatively, when the target document in the hidden directory folder is closed, if a document saving instruction input by the user is not received, the electronic device may save the target document to the hidden directory folder again.
In the embodiment of the application, when the electronic equipment receives a selected instruction of a document tag input by a user, a target document in a hidden directory folder is opened. And if the target document is closed again and a document saving instruction input by the user is not received, a new document is saved in the hidden directory folder again and renamed. The embodiment provided by the embodiment of the method can solve the defects of inconvenience and low efficiency in the prior art.
As shown in fig. 4, an example of a method for opening a document provided in the embodiment of the present application specifically includes the following steps:
step 401, when the target document is closed, if a document saving instruction input by a user is not received, acquiring the target document.
Step 402, extracting the characters of the target document, and naming the target document by using the characters of the target document.
And step 403, saving the target document to a preset hidden directory folder.
Step 404, creating a document tag corresponding to the target document, and naming the document tag by using the name of the target document.
Step 405, judging whether a selection instruction of the corresponding document tag input by the user is received. If the electronic device receives a selection instruction corresponding to the document tag input by the user, step 406 is executed.
Step 406 retrieves the target document in the hidden directory folder with the same name as the document tag.
Step 407, open the retrieved target document.
Step 408, when the target document is closed, judging whether a document saving instruction input by the user is received. If the electronic device does not receive the document saving instruction input by the user, step 402 is executed.
According to the method and the device for opening the document, the target document can be obtained if a document saving instruction input by a user is not received when the target document is closed. And storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document. And when a selection instruction of the corresponding document tag input by the user is received, acquiring the target document from the hidden directory folder and displaying the target document. In this way, when the electronic device receives a closing instruction input by a user and does not receive a saving instruction input by the user, the target document is saved in the hidden directory folder, so that the document which is closed without being saved is saved in time.
Based on the same technical concept, the embodiment of the present application further provides an apparatus for opening a document, as shown in fig. 5, the apparatus includes:
an obtaining module 501, configured to, when the target document is closed, if a document saving instruction input by a user is not received, obtain the target document.
The first saving module 502 is configured to save the target document to a preset hidden directory folder, and create a document tag corresponding to the target document.
The display module 503 is configured to, after receiving a corresponding instruction for selecting a document tag input by a user, obtain a target document from the hidden directory folder and display the target document.
Optionally, the first saving module 502 is specifically configured to:
and extracting the target character of the target document, and taking the target character as the document name of the target document.
And saving the target document into the hidden directory folder.
And creating a document tag corresponding to the target document, and taking the document name as the document tag name of the document tag.
And adding a newly added document prompt icon at an entrance tag of the folder where the document tag is located.
Optionally, the display module 503 is specifically configured to:
and after receiving a selection instruction of the corresponding document tag input by the user, searching a target document with the same name as the document tag in the hidden directory folder.
The target document in the hidden directory folder is opened.
Optionally, as shown in fig. 6, the apparatus further includes:
the second saving module 504 is configured to, when the target document in the hidden directory folder is closed, if a document saving instruction input by a user is not received, save the target document to the hidden directory folder again.
According to the method and the device for opening the document, the target document can be obtained if a document saving instruction input by a user is not received when the target document is closed. And storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document. And when a selection instruction of the corresponding document tag input by the user is received, acquiring the target document from the hidden directory folder and displaying the target document. In this way, when the electronic device receives a closing instruction input by a user and does not receive a saving instruction input by the user, the target document is saved in the hidden directory folder, so that the document which is closed without being saved is saved in time.
The embodiment of the present application further provides an electronic device, as shown in fig. 7, which includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:
when closing a target document, if a document storage instruction input by a user is not received, acquiring the target document;
storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document;
and when a selection instruction corresponding to the document tag input by a user is received, acquiring the target document from the hidden directory folder and displaying the target document.
Optionally, the storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document includes:
extracting target characters of the target document, and taking the target characters as a document name of the target document;
saving the target document to the hidden directory folder;
creating the document tag corresponding to the target document, and taking the document name as the document tag name of the document tag;
and adding a newly added document prompt icon at an entrance tag of the folder where the document tag is located.
Optionally, after receiving a selection instruction of a corresponding document tag input by a user, acquiring and displaying the target document from the hidden directory folder, where the acquisition instruction includes:
when a selection instruction corresponding to the document tag and input by a user is received, retrieving the target document with the same name as the document tag in the hidden directory folder;
opening the target document in the hidden directory folder.
Optionally, the method further includes:
when the target document in the hidden directory folder is closed, if a document saving instruction input by a user is not received, the target document is saved to the hidden directory folder again.
The communication bus mentioned in the network device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. 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 network device and other devices.
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; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components.
Based on the same technical concept, embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the above method steps for opening a document.
Based on the same technical concept, embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, causes the computer to perform the above method steps for opening a document.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be 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 phrase "comprising an … …" does not exclude the presence of other identical 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, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A method of opening a document, the method comprising:
when closing a target document, if a document storage instruction input by a user is not received, acquiring the target document;
storing the target document to a preset hidden directory folder, and creating a document tag corresponding to the target document;
and when a selection instruction corresponding to the document tag input by a user is received, acquiring the target document from the hidden directory folder and displaying the target document.
2. The method according to claim 1, wherein the saving the target document to a preset hidden directory folder and creating a document tag corresponding to the target document comprises:
extracting target characters of the target document, and taking the target characters as a document name of the target document;
saving the target document to the hidden directory folder;
creating the document tag corresponding to the target document, and taking the document name as the document tag name of the document tag;
and adding a newly added document prompt icon at an entrance tag of the folder where the document tag is located.
3. The method according to claim 1, wherein the obtaining and displaying the target document from the hidden directory folder after receiving a selection instruction of a corresponding document tag input by a user comprises:
when a selection instruction corresponding to the document tag and input by a user is received, retrieving the target document with the same name as the document tag in the hidden directory folder;
opening the target document in the hidden directory folder.
4. The method of claim 3, further comprising:
when the target document in the hidden directory folder is closed, if a document saving instruction input by a user is not received, the target document is saved to the hidden directory folder again.
5. An apparatus for opening a document, the apparatus being applied to an electronic device, the apparatus comprising:
the acquisition module is used for acquiring the target document if a document storage instruction input by a user is not received when the target document is closed;
the first storage module is used for storing the target document to a preset hidden directory folder and creating a document tag corresponding to the target document;
and the display module is used for acquiring the target document from the hidden directory folder and displaying the target document after receiving a selection instruction corresponding to the document tag and input by a user.
6. The apparatus of claim 5, wherein the first saving module is specifically configured to:
extracting target characters of the target document, and taking the target characters as a document name of the target document;
saving the target document to the hidden directory folder;
creating the document tag corresponding to the target document, and taking the document name as the document tag name of the document tag;
and adding a newly added document prompt icon at an entrance tag of the folder where the document tag is located.
7. The apparatus of claim 5, wherein the display module is specifically configured to:
when a selection instruction corresponding to the document tag and input by a user is received, retrieving the target document with the same name as the document tag in the hidden directory folder;
opening the target document in the hidden directory folder.
8. The apparatus of claim 7, further comprising:
and the second saving module is used for saving the target document to the hidden directory folder again if a document saving instruction input by a user is not received when the target document in the hidden directory folder is closed.
9. 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;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201910256064.0A 2019-04-01 2019-04-01 Method and device for opening document Active CN111766991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910256064.0A CN111766991B (en) 2019-04-01 2019-04-01 Method and device for opening document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910256064.0A CN111766991B (en) 2019-04-01 2019-04-01 Method and device for opening document

Publications (2)

Publication Number Publication Date
CN111766991A true CN111766991A (en) 2020-10-13
CN111766991B CN111766991B (en) 2024-03-29

Family

ID=72718573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910256064.0A Active CN111766991B (en) 2019-04-01 2019-04-01 Method and device for opening document

Country Status (1)

Country Link
CN (1) CN111766991B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116821063A (en) * 2023-06-28 2023-09-29 深圳市至简科技设计有限公司 Multi-folder page stacking display and synchronous starting method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005098666A1 (en) * 2004-04-08 2005-10-20 Justsystems Corporation Processing data and documents that use a markup language
CN101458643A (en) * 2007-12-12 2009-06-17 新奥特(北京)视频技术有限公司 Document autosave apparatus
CN101458644A (en) * 2007-12-12 2009-06-17 新奥特(北京)视频技术有限公司 Document autosave method
CN103164656A (en) * 2012-06-01 2013-06-19 北京安天电子设备有限公司 Method and system for erasing hidden file based on visible file
WO2014153970A1 (en) * 2013-03-26 2014-10-02 Tencent Technology (Shenzhen) Company Limited Method and apparatus for text input protection
US9372859B1 (en) * 2011-12-20 2016-06-21 Intellectual Ventures Fund 79 Llc Methods, devices, and mediums for displaying information having different formats
CN106126244A (en) * 2016-06-28 2016-11-16 北京金山云网络技术有限公司 A kind of document processing method and device
CN106776511A (en) * 2016-11-11 2017-05-31 郑州云海信息技术有限公司 One kind editor document storage method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005098666A1 (en) * 2004-04-08 2005-10-20 Justsystems Corporation Processing data and documents that use a markup language
CN101458643A (en) * 2007-12-12 2009-06-17 新奥特(北京)视频技术有限公司 Document autosave apparatus
CN101458644A (en) * 2007-12-12 2009-06-17 新奥特(北京)视频技术有限公司 Document autosave method
US9372859B1 (en) * 2011-12-20 2016-06-21 Intellectual Ventures Fund 79 Llc Methods, devices, and mediums for displaying information having different formats
CN103164656A (en) * 2012-06-01 2013-06-19 北京安天电子设备有限公司 Method and system for erasing hidden file based on visible file
WO2014153970A1 (en) * 2013-03-26 2014-10-02 Tencent Technology (Shenzhen) Company Limited Method and apparatus for text input protection
CN106126244A (en) * 2016-06-28 2016-11-16 北京金山云网络技术有限公司 A kind of document processing method and device
CN106776511A (en) * 2016-11-11 2017-05-31 郑州云海信息技术有限公司 One kind editor document storage method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116821063A (en) * 2023-06-28 2023-09-29 深圳市至简科技设计有限公司 Multi-folder page stacking display and synchronous starting method and system
CN116821063B (en) * 2023-06-28 2024-03-05 深圳市至简科技设计有限公司 Multi-folder page stacking display and synchronous starting method and system

Also Published As

Publication number Publication date
CN111766991B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
US11455069B2 (en) Auto-complete with persisted atomically linked entities
US7140536B2 (en) Method and system for highlighting modified content in a shared document
US7987418B2 (en) Automatic bibliographical information within electronic documents
US9160694B2 (en) Email management method, apparatus and terminal device
US20150046493A1 (en) Access and management of entity-augmented content
KR20060043137A (en) Systems and methods for managing discussion threads based on ratings
CN105706040A (en) Methods of processing electronic files including combined close and delete, and related systems and computer program products
EP2810149B1 (en) Intelligent prioritization of activated extensions
CN105393223A (en) Capturing website content through capture services
KR20140072877A (en) Techniques for managing and viewing followed content
US8296785B2 (en) Providing links between application programs
CN113467669A (en) Information processing method and device, electronic equipment and readable medium
US11750549B2 (en) File-related task management device
CN104182479B (en) A kind of method and device handling information
CN111766991B (en) Method and device for opening document
CN110941752A (en) Information searching method, data processing method and equipment
CN112257005A (en) Form component generation method and device
WO2023236795A1 (en) Encyclopedia entry processing method and apparatus, and electronic device, medium and program product
CN110852045A (en) Method and device for deleting document content, electronic equipment and storage medium
CN110851346B (en) Query statement boundary problem detection method, device, equipment and storage medium
CN103500090A (en) Mobile device and method and device for displaying electronic file page
CN108647197B (en) Information processing method, device and storage medium
JP2017215714A (en) Information processor and information processing program
CN112783381B (en) Slide processing method and device and electronic equipment
CN112540961A (en) Method and device for positioning audio file in document

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