CN110059058B - Document display method, device, computer equipment and computer readable storage medium - Google Patents
Document display method, device, computer equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110059058B CN110059058B CN201910182053.2A CN201910182053A CN110059058B CN 110059058 B CN110059058 B CN 110059058B CN 201910182053 A CN201910182053 A CN 201910182053A CN 110059058 B CN110059058 B CN 110059058B
- Authority
- CN
- China
- Prior art keywords
- display mode
- document
- target
- document type
- display
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000012986 modification Methods 0.000 claims description 93
- 230000004048 modification Effects 0.000 claims description 93
- 230000005540 biological transmission Effects 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/144—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/156—Query results presentation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a document display method, a document display device, computer equipment and a computer readable storage medium, which relate to the technical field of Internet, can be unfolded according to a document type appointed mode when displaying a document, cannot be uniformly displayed based on certain office software, avoid causing a large amount of workload to a user, and have higher user viscosity. The method comprises the following steps: when a document display request is received, determining a target document indicated by the document display request according to a document identifier carried by the document display request, and acquiring a target document type of the target document; inquiring based on the target document type, and determining a target display mode corresponding to the target document type; and if the target document type is queried to have a corresponding target display mode, displaying the target document based on the target display mode.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a document display method, a document display device, a computer device, and a computer readable storage medium.
Background
With the rapid development of internet technology, no matter study, work or life is carried out, the internet is separated, and terminals relying on the internet technology are increasingly popular. At present, in order to meet the demands of people in study, work and life, most terminals have the function of displaying electronic documents.
In the related art, when a document of an electronic type is presented, the terminal is generally presented based on office software, such as Word (Word processor application), excel (spreadsheet software), PDF (Portable Document Format ), and the like. When it is detected that a user requests to display a document, the terminal generally determines the format of the document, selects default office software corresponding to the format of the document from applications that have been currently installed, and displays the document based on the default office software.
In carrying out the present application, the inventors have found that the related art has at least the following problems:
after the documents are opened by using the office software, the office software is not set as default office software for displaying the documents, but the office software automatically modifies default, so that the documents in any format are displayed by using the office software, and when a user wants to display the current documents by using other office software, the office software needs to be completely closed, and the office software for displaying the documents is reset, so that a large amount of workload is caused, and the user viscosity is lower.
Disclosure of Invention
In view of this, the present application provides a document display method, apparatus, computer device and computer readable storage medium, and aims to solve the problems of great workload and low user viscosity caused by thoroughly closing office software and resetting the office software for displaying the document when the user wants to display the current document by using other office software.
According to a first aspect of the present application, there is provided a document presentation method comprising:
when a document display request is received, determining a target document indicated by the document display request according to a document identifier carried by the document display request, and acquiring a target document type of the target document;
inquiring based on the target document type, and determining a target display mode corresponding to the target document type;
and if the target document type is queried to have a corresponding target display mode, displaying the target document based on the target display mode.
In another embodiment, after the querying based on the target document type and determining the target display mode corresponding to the target document type, the querying includes:
if the target document type is inquired that the corresponding target display mode does not exist, at least one display mode is acquired;
respectively determining at least one document type corresponding to each display mode in the at least one display mode;
comparing the target document type with at least one document type supported by each display mode in the at least one display mode, and extracting a display mode supporting the target document type from the at least one display mode as a designated display mode;
and storing the target document type corresponding to the appointed display mode, and displaying the target document based on the appointed display mode.
In another embodiment, before the obtaining at least one display mode, the method includes:
the method comprises the steps of sorting applications of a terminal, and extracting at least one display application as at least one display mode;
for each of the at least one presentation, querying at least one document type supported by the presentation in an attribute of the presentation;
storing the display mode and the at least one document type correspondingly;
and repeatedly executing the process of determining the document type for the display mode, and setting at least one supported document type for the at least one display mode.
In another embodiment, the method further comprises:
when a display mode modification instruction is received, determining a transmission mode of the display mode modification instruction, wherein the transmission mode is at least application transmission or system transmission;
if the sending mode of the display mode modification instruction is application sending, refusing to modify the display mode, and discarding the display mode modification instruction;
if the sending mode of the display mode modification instruction is system sending, determining the type of the document to be modified and the display mode to be modified in the display mode modification instruction, and modifying the display mode corresponding to the type of the document to be modified into the display mode to be modified.
In another embodiment, when the display mode modification instruction is received, determining a sending mode of the display mode modification instruction includes:
when the display mode modification instruction is received, tracing the source of the display mode modification instruction, and determining a port for transmitting the display mode modification instruction;
if the port for transmitting the display mode modification instruction is positioned in the application, determining that the transmission mode of the display mode modification instruction is application transmission;
if the port for transmitting the display mode modification instruction is positioned in the system, determining that the transmission mode of the display mode modification instruction is system transmission.
According to a second aspect of the present application there is provided a document presentation apparatus comprising:
the first determining module is used for determining a target document indicated by the document display request according to a document identifier carried by the document display request when the document display request is received, and acquiring a target document type of the target document;
the query module is used for querying based on the target document type and determining a target display mode corresponding to the target document type;
and the display module is used for displaying the target document based on the target display mode if the target document type is queried to have the corresponding target display mode.
In another embodiment, the apparatus comprises:
the acquisition module is used for acquiring at least one display mode if the target document type is inquired that the corresponding target display mode does not exist;
the second determining module is used for determining at least one document type corresponding to each display mode in the at least one display mode respectively;
the comparison module is used for comparing the target document type with at least one document type supported by each display mode in the at least one display mode, and extracting the display mode supporting the target document type from the at least one display mode as a designated display mode;
and the storage module is used for storing the target document type corresponding to the appointed display mode and displaying the target document based on the appointed display mode.
In another embodiment, the apparatus further comprises:
the extraction module is used for sorting the applications of the terminal and extracting at least one display application as at least one display mode;
the second determining module is configured to query, for each of the at least one presentation, at least one document type supported by the presentation in an attribute of the presentation;
the storage module is used for storing the display mode and the at least one document type correspondingly;
the extraction module is further configured to repeatedly execute the above process of determining a document type for a display mode, and set at least one supported document type for the at least one display mode.
In another embodiment, the apparatus further comprises:
the third determining module is used for determining a sending mode of the display mode modification instruction when receiving the display mode modification instruction, wherein the sending mode is at least application sending or system sending;
the discarding module is used for rejecting to modify the display mode and discarding the display mode modification instruction if the transmission mode of the display mode modification instruction is application transmission;
and the modification module is used for determining the type of the document to be modified and the display mode to be modified in the display mode modification instruction if the transmission mode of the display mode modification instruction is system transmission, and modifying the display mode corresponding to the type of the document to be modified into the display mode to be modified.
In another embodiment, the third determining module is configured to trace back a source of the exhibition mode modification instruction when the exhibition mode modification instruction is received, and determine a port for sending the exhibition mode modification instruction;
the discarding module is further configured to determine that the sending mode of the display mode modification instruction is application sending if the port for sending the display mode modification instruction is located in the application;
and the modification module is further used for determining that the sending mode of the display mode modification instruction is system sending if the port for sending the display mode modification instruction is located in the system.
According to a third aspect of the present application there is provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of the first aspect described above when the computer program is executed by the processor.
According to a fourth aspect of the present application there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect described above.
By means of the technical scheme, compared with the mode that the existing software can automatically modify defaults, the document display method, device, computer equipment and computer readable storage medium provided by the application have the advantages that when a document display request is received, a target document indicated by the document display request is determined according to the document identification carried by the document display request, the target document type of the target document is obtained, then the query is carried out based on the target document type, the target display mode corresponding to the target document type is determined, and if the corresponding target display mode exists in the query target document type, the target document is displayed based on the target display mode, so that the document can be displayed according to the mode specified by the document type, the display is not uniformly carried out based on certain office software, a large amount of workload is avoided to a user, and the user viscosity is higher.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a schematic flow chart of a document display method according to an embodiment of the present application;
FIG. 2A is a schematic flow chart of a document display method according to an embodiment of the present application;
FIG. 2B is a schematic flow chart of a document display method according to an embodiment of the present application;
FIG. 3A is a schematic diagram of a document display apparatus according to an embodiment of the present application;
FIG. 3B is a schematic diagram of a document display apparatus according to an embodiment of the present application;
FIG. 3C is a schematic diagram of a document display apparatus according to an embodiment of the present application;
FIG. 3D is a schematic diagram of a document display apparatus according to an embodiment of the present application;
fig. 4 shows a schematic device structure of a computer device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
The embodiment of the application provides a document display method, which can be used for expanding according to a mode specified by a document type when displaying a document, and can not be uniformly displayed based on a certain office software, so that the purposes of avoiding causing a large amount of workload to a user and having higher user viscosity are achieved, and the method comprises the following steps of:
101. when a document display request is received, determining a target document indicated by the document display request according to a document identification carried by the document display request, and acquiring a target document type of the target document.
In the embodiment of the application, when the document display request is received, in order to display the document to be displayed, the document display request needs to carry the document identification, so that the document identification can be extracted from the document display request, and the target document indicated by the document display request can be determined. Because the terminal determines the display mode according to the document identification of the document when displaying the document, after determining the target document, the terminal can acquire the target document type of the target document so as to determine the display mode later.
102. And inquiring based on the target document type, and determining a target display mode corresponding to the target document type.
In the embodiment of the application, after the target document type of the target document is acquired, the query can be performed based on the target document type, so that the target display mode corresponding to the target document type is determined, and the target document is displayed based on the target display mode.
103. And if the corresponding target display mode exists in the query target document type, displaying the target document based on the target display mode.
In the embodiment of the application, if the query target document type has a corresponding target display mode, the user is indicated to set the target display mode designated by the target document type, so that the target document is displayed based on the target display mode.
According to the method provided by the embodiment of the application, when the document display request is received, the target document indicated by the document display request is determined according to the document identification carried by the document display request, the target document type of the target document is obtained, then the query is carried out based on the target document type, the target display mode corresponding to the target document type is determined, and if the corresponding target display mode exists in the query target document type, the target document is displayed based on the target display mode, so that the document can be unfolded according to the mode appointed by the document type when being displayed, the display is not uniformly carried out based on a certain office software, a great amount of workload is avoided to a user, and the user viscosity is higher.
The embodiment of the application provides a document display method, which can be used for expanding according to a mode specified by a document type when displaying a document, and can not be uniformly displayed based on a certain office software, so that the purposes of avoiding causing a large amount of workload to a user and having higher user viscosity are achieved, and the method comprises the following steps of:
201. when a document display request is received, determining a target document indicated by the document display request according to a document identification carried by the document display request, and acquiring a target document type of the target document.
In the embodiment of the present application, the inventor has recognized that the presentation, editing, etc. of a document using a terminal is one of the terminal functions most commonly used by users in daily work and study, and in order to better provide the user with functions related to the document, an operation system may be provided in the terminal and various operations related to the document may be performed based on the operation system.
In daily work, users are often accustomed to a manner of presentation when presenting documents on a terminal basis. However, a plurality of applications supporting the document display are usually installed in the terminal, so that the document may be displayed based on different applications each time, and the user's requirements in habit cannot be met, which causes trouble to the user. Therefore, the operation system provides a binding service, and binds the document type and the display mode of the document, namely, an application fixed for displaying the document type is set for each document type, and the document of the document type is displayed by continuously adopting the application in the follow-up process, so that the requirement of a user in habit is met.
When the display mode setting inlet is detected to be triggered by a user, at least one document type and an optional display mode corresponding to each document type are displayed, so that the user can set a display mode for each document type, and when the user confirmation is detected, the document types set by the user are stored in a one-to-one correspondence with the display modes, so that the documents corresponding to the document types are displayed in the subsequent display modes based on the user setting. Specifically, when storing the correspondence between the document type and the presentation style, a type-style list as shown in table 1 below may be generated and stored based on the type-style list.
TABLE 1
It should be noted that, in the practical application process, most users may not actively set a corresponding display mode for each document type, so that when a user requests to display a document for the first time, the display mode of the document may be defaulted to be a display mode corresponding to the document type of the document, and the document of the document type is continuously displayed based on the display mode in the subsequent process, so that the situation that the document is displayed by adopting different display modes each time is avoided.
Thus, when the document display request is received, the document display request usually indicates which document is displayed, and therefore the document display request carries the document identification for indicating the document, and at this time, the document identification can be extracted from the document display request, and the target document indicated by the document identification can be determined. Because the display mode is bound based on the document type of the document when the document is displayed, after the target document is determined, the target document type of the target document is acquired so as to determine the display mode for the target document based on the target document type later.
202. Inquiring based on the target document type, determining a target display mode corresponding to the target document type, and executing the following step 203 if the corresponding target display mode exists in the inquired target document type; if the query target document type does not have a corresponding target presentation, then the following step 204 is performed.
In the embodiment of the application, since the document type and the display mode are already bound in the running system of the terminal, after the target document type of the target document is determined, the query can be performed based on the target document type, and the target display mode corresponding to the target document type is determined so as to display the target document based on the target display mode.
In the practical application process, considering that the situation that the user does not actively set the display mode for the target document type and displays the document of the target document type based on the terminal for the first time possibly occurs, the corresponding target display mode cannot be determined according to the target document type, that is, the target display mode corresponding to the target document type does not exist, so if the corresponding target display mode exists in the query target document type, the display mode is indicated to be used for displaying the target document type, and thus, the target document can be displayed directly based on the target display mode in the following step 203 is executed; if the query target document type does not have a corresponding target presentation, it indicates that the target document type is not designated for presentation in which presentation mode, and thus, a presentation mode needs to be defaulted for the target document type, i.e., step 204 described below is performed.
203. And if the corresponding target display mode exists in the query target document type, displaying the target document based on the target display mode.
In the embodiment of the application, if the query target document type has a corresponding target display mode, the display mode of the target document type is designated, so that the target document can be directly displayed based on the target display mode.
204. If the query target document type does not have the corresponding target display mode, at least one display mode is acquired, and at least one document type corresponding to each display mode in the at least one display mode is respectively determined.
In the embodiment of the application, if the query target document type does not have a corresponding target display mode, the query target document type is indicated that the target document type is not designated to be displayed in which display mode, and thus, one display mode needs to be defaulted for the target document type. Considering that the document types supported by each display mode are different, at least one display mode needs to be acquired, and at least one document type corresponding to each display mode in the at least one display mode is respectively determined, so that a compatible display mode can be set for the target document type later.
The display modes are supported and provided by the application in the terminal, so that the running system of the terminal needs to count the display modes and the document types supported by each display mode, and at least one document type corresponding to each display mode in at least one display mode can be determined respectively. Specifically, when the display modes and the document types supported by each display mode are counted, firstly, the applications of the terminal are sorted, and at least one display application is extracted as at least one display mode; then, for each of the at least one presentation, querying at least one document type supported by the presentation among the attributes of the presentation, and storing the presentation in correspondence with the at least one document type. By repeatedly performing the above-described process of determining document types for presentation forms, at least one supported document type can be set for at least one presentation form. It should be noted that, when the display manner and at least one document type are stored, a preset list as shown in table 2 below may be generated, and the correspondence between the display manner and the document type may be stored based on the preset list.
TABLE 2
In this way, when determining at least one document type supported by each of the at least one display mode, the at least one document type supported by each display mode can be obtained by querying in a preset list based on the display mode.
205. Comparing the target document type with at least one document type supported by each display mode in at least one display mode, extracting the display mode supporting the target document type from the at least one display mode as a designated display mode, storing the target document type corresponding to the designated display mode, and displaying the target document based on the designated display mode.
In the embodiment of the application, after the document type supported by each display mode is acquired, the target document type can be compared with at least one document type supported by each display mode in at least one display mode, the display mode supporting the target document type is extracted from at least one display mode as a designated display mode, and the target document is displayed based on the designated display mode. In order to enable the subsequent display of the document of the target document type based on the determined appointed display mode, after the appointed display mode is determined, the target document type is stored correspondingly to the appointed display mode, so that the display mode can be determined directly according to the target document type.
It should be noted that, because there may be multiple display modes supporting the target document type, at this time, one mode may randomly select one display mode from multiple display modes supporting the target document type as a designated display mode; and in another mode, the first display mode in the preset list for supporting the target document type can be used as a designated display mode. The embodiment of the application does not limit the mode of determining the appointed display mode in detail.
Through the processes shown in the steps 201 to 205, the target document may be displayed, and in the actual application process, the operating system of the terminal may also receive an instruction for changing the display mode corresponding to the document type, and referring to fig. 2B, the method includes:
206. when the display mode modification instruction is received, determining a transmission mode of the display mode modification instruction, and if the transmission mode of the display mode modification instruction is application transmission, executing the following step 207; if the manner of sending the presentation manner modification instruction is system sending, the following step 208 is performed.
In the embodiment of the application, considering that some applications may modify the display mode of the document type which has been set, the modification is not the wish of the user, and is forced modification for popularization, in order to avoid the trouble caused by the application modifying the display mode by itself to the user, when receiving the display mode modification instruction, the sending mode of the display mode modification instruction needs to be determined, and then whether the display mode can be modified is determined according to the sending mode. The transmission mode is at least any one of application transmission and system transmission.
When the sending mode of the display mode modification instruction is determined, the source of the display mode modification instruction can be traced, and the port for sending the display mode modification instruction is determined. Thus, if the port that sends the exhibition mode modification instruction is located in the application, it indicates that the exhibition mode modification instruction is sent by the application, and it is determined that the sending mode of the exhibition mode modification instruction is sent by the application, that is, the following step 207 is executed. If the port for sending the display mode modification instruction is located in the system, it indicates that the display mode modification instruction is generated and sent after the system detects the operation of the user, and it is determined that the sending mode of the display mode modification instruction is system sending, that is, the following step 208 is executed.
207. If the sending mode of the display mode modification instruction is application sending, the display mode is refused to be modified, and the display mode modification instruction is discarded.
In the embodiment of the application, if the sending mode of the display mode modification instruction is application sending, the display mode is possibly changed by the application at present and does not accord with the modification condition of the display mode, so that the display mode is required to be refused to be modified, the display mode modification instruction is discarded, and the document is still displayed based on the current display mode when the document is displayed next time.
208. If the sending mode of the display mode modification instruction is system sending, determining the type of the document to be modified and the display mode to be modified in the display mode modification instruction, and modifying the display mode corresponding to the type of the document to be modified into the display mode to be modified.
In the embodiment of the application, if the sending mode is system sending, the display mode is indicated to be possibly requested to be changed by a user currently, so that the type of the document to be modified and the display mode to be modified can be determined in the display mode modification instruction, the display mode corresponding to the type of the document to be modified is modified into the display mode to be modified, namely, the display mode to be modified and the display mode corresponding to the type of the document to be modified are rebind, so that when the document of the document type is displayed next time, the display mode based on the new binding is displayed. If the corresponding relation between the display mode and the document type is stored based on the type-mode list, changing the display mode corresponding to the document type to be modified in the type-mode list into the display mode to be modified.
According to the method provided by the embodiment of the application, when the document display request is received, the target document indicated by the document display request is determined according to the document identification carried by the document display request, the target document type of the target document is obtained, then the query is carried out based on the target document type, the target display mode corresponding to the target document type is determined, and if the corresponding target display mode exists in the query target document type, the target document is displayed based on the target display mode, so that the document can be unfolded according to the mode appointed by the document type when being displayed, the display is not uniformly carried out based on a certain office software, a great amount of workload is avoided to a user, and the user viscosity is higher.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present application provides a document display apparatus, as shown in fig. 3A, where the apparatus includes: a first determining module 301, a querying module 302 and a displaying module 303.
The first determining module 301 is configured to determine, when a document display request is received, a target document indicated by the document display request according to a document identifier carried by the document display request, and obtain a target document type of the target document;
the query module 302 is configured to query based on the target document type, and determine a target display manner corresponding to the target document type;
the display module 303 is configured to display the target document based on the target display mode if the target document type is queried for a corresponding target display mode.
In a specific application scenario, as shown in fig. 3B, the apparatus includes: the acquisition module 304, the second determination module 305, the comparison module 306 and the storage module 307.
The obtaining module 304 is configured to obtain at least one presentation mode if the target document type is queried that the corresponding target presentation mode does not exist;
the second determining module 305 is configured to determine at least one document type corresponding to each of the at least one display manner;
the comparison module 306 is configured to compare the target document type with at least one document type supported by each of the at least one display manner, and extract, from the at least one display manner, a display manner supporting the target document type as a specified display manner;
the storage module 307 is configured to store the target document type in correspondence with the specified display mode, and display the target document based on the specified display mode.
In a specific application scenario, as shown in fig. 3C, the apparatus further includes: extraction module 308.
The extracting module 308 is configured to sort applications of the terminal, and extract at least one presentation application as at least one presentation mode;
the second determining module 305 is configured to query, for each of the at least one presentation, at least one document type supported by the presentation in an attribute of the presentation;
the storage module 307 is configured to store the presentation mode in correspondence with the at least one document type;
the extracting module 308 is further configured to repeatedly perform the above process of determining a document type for a presentation mode, and set at least one supported document type for the at least one presentation mode.
In a specific application scenario, as shown in fig. 3D, the apparatus further includes: a third determination module 309, a discard module 310 and a modification module 311.
The third determining module 309 is configured to determine, when receiving the display mode modification instruction, a sending mode of the display mode modification instruction, where the sending mode is at least application sending or system sending;
the discarding module 310 is configured to reject modification of the display mode if the transmission mode of the display mode modification instruction is application transmission, and discard the display mode modification instruction;
the modification module 311 is configured to determine a document type to be modified and a display mode to be modified in the display mode modification instruction if the transmission mode of the display mode modification instruction is system transmission, and modify the display mode corresponding to the document type to be modified into the display mode to be modified.
In a specific application scenario, the third determining module 309 is configured to trace back a source of the display mode modification instruction when the display mode modification instruction is received, and determine a port for sending the display mode modification instruction;
the discarding module 310 is further configured to determine that the sending mode of the display mode modification instruction is an application sending mode if the port for sending the display mode modification instruction is located in the application;
the modification module 311 is further configured to determine that the sending manner of the display manner modification instruction is system sending if the port for sending the display manner modification instruction is located in the system.
According to the device provided by the embodiment of the application, when the document display request is received, the target document indicated by the document display request is determined according to the document identification carried by the document display request, the target document type of the target document is obtained, then the query is carried out based on the target document type, the target display mode corresponding to the target document type is determined, and if the corresponding target display mode exists in the query target document type, the target document is displayed based on the target display mode, so that the document can be unfolded according to the mode appointed by the document type when being displayed, the display is not uniformly carried out based on a certain office software, a great amount of workload is avoided to a user, and the user viscosity is higher.
It should be noted that, for other corresponding descriptions of each functional unit related to the document display apparatus provided by the embodiment of the present application, reference may be made to corresponding descriptions in fig. 1 and fig. 2A to fig. 2B, and no further description is given here.
In an exemplary embodiment, referring to fig. 4, there is further provided a device 400 including a communication bus, a processor, a memory, and a communication interface, and may further include an input-output interface, and a display device, wherein the functional units may communicate with each other via the bus. The memory stores a computer program and a processor for executing the program stored in the memory to perform the document presentation method in the above embodiment.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the document presentation method.
From the above description of the embodiments, it will be clear to those skilled in the art that the present application may be implemented in hardware, or may be implemented by means of software plus necessary general hardware platforms. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective implementation scenario of the present application.
Those skilled in the art will appreciate that the drawing is merely a schematic illustration of a preferred implementation scenario and that the modules or flows in the drawing are not necessarily required to practice the application.
Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario.
The foregoing disclosure is merely illustrative of some embodiments of the application, and the application is not limited thereto, as modifications may be made by those skilled in the art without departing from the scope of the application.
Claims (8)
1. A document presentation method, comprising:
when a document display request is received, determining a target document indicated by the document display request according to a document identifier carried by the document display request, and acquiring a target document type of the target document;
inquiring based on the target document type, and determining a target display mode corresponding to the target document type;
if the target document type is queried to have a corresponding target display mode, displaying the target document based on the target display mode;
when a display mode modification instruction is received, tracing a source port of the display mode modification instruction, determining a port for transmitting the display mode modification instruction, and determining a transmission mode of the display mode modification instruction according to the port, wherein the transmission mode is at least application transmission or system transmission;
if the port for transmitting the display mode modification instruction is located in the application, determining that the transmission mode of the display mode modification instruction is the transmission mode of the application, refusing to modify the display mode, and discarding the display mode modification instruction;
if the port for transmitting the display mode modification instruction is located in the system, determining that the transmission mode of the display mode modification instruction is the system transmission mode, determining the type of the document to be modified and the display mode to be modified in the display mode modification instruction, and modifying the display mode corresponding to the type of the document to be modified into the display mode to be modified.
2. The method according to claim 1, wherein after the query based on the target document type determines the target display mode corresponding to the target document type, the method comprises:
if the target document type is inquired that the corresponding target display mode does not exist, at least one display mode is acquired;
respectively determining at least one document type corresponding to each display mode in the at least one display mode;
comparing the target document type with at least one document type supported by each display mode in the at least one display mode, and extracting a display mode supporting the target document type from the at least one display mode as a designated display mode;
and storing the target document type corresponding to the appointed display mode, and displaying the target document based on the appointed display mode.
3. The method of claim 2, wherein prior to the obtaining the at least one presentation, comprising:
the method comprises the steps of sorting applications of a terminal, and extracting at least one display application as at least one display mode;
for each of the at least one presentation, querying at least one document type supported by the presentation in an attribute of the presentation;
and storing the display mode corresponding to the at least one document type.
4. A document presentation apparatus, comprising:
the first determining module is used for determining a target document indicated by the document display request according to a document identifier carried by the document display request when the document display request is received, and acquiring a target document type of the target document;
the query module is used for querying based on the target document type and determining a target display mode corresponding to the target document type;
the display module is used for displaying the target document based on the target display mode if the corresponding target display mode exists in the target document type;
when a display mode modification instruction is received, tracing a source port of the display mode modification instruction, determining a port for transmitting the display mode modification instruction, and determining a transmission mode of the display mode modification instruction according to the port, wherein the transmission mode is at least application transmission or system transmission;
if the port for transmitting the display mode modification instruction is located in the application, determining that the transmission mode of the display mode modification instruction is the transmission mode of the application, refusing to modify the display mode, and discarding the display mode modification instruction;
if the port for transmitting the display mode modification instruction is located in the system, determining that the transmission mode of the display mode modification instruction is the system transmission mode, determining the type of the document to be modified and the display mode to be modified in the display mode modification instruction, and modifying the display mode corresponding to the type of the document to be modified into the display mode to be modified.
5. The apparatus of claim 4, wherein the apparatus comprises:
the acquisition module is used for acquiring at least one display mode if the target document type is inquired that the corresponding target display mode does not exist;
the second determining module is used for determining at least one document type corresponding to each display mode in the at least one display mode respectively;
the comparison module is used for comparing the target document type with at least one document type supported by each display mode in the at least one display mode, and extracting the display mode supporting the target document type from the at least one display mode as a designated display mode;
and the storage module is used for storing the target document type corresponding to the appointed display mode and displaying the target document based on the appointed display mode.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the extraction module is used for sorting the applications of the terminal and extracting at least one display application as at least one display mode;
the second determining module is configured to query, for each of the at least one presentation, at least one document type supported by the presentation in an attribute of the presentation;
the storage module is used for storing the display mode and the at least one document type correspondingly;
the extraction module is further configured to repeatedly perform a process of determining a document type for a presentation mode, and set at least one supported document type for the at least one presentation mode.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 3 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910182053.2A CN110059058B (en) | 2019-03-11 | 2019-03-11 | Document display method, device, computer equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910182053.2A CN110059058B (en) | 2019-03-11 | 2019-03-11 | Document display method, device, computer equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110059058A CN110059058A (en) | 2019-07-26 |
CN110059058B true CN110059058B (en) | 2023-12-15 |
Family
ID=67316808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910182053.2A Active CN110059058B (en) | 2019-03-11 | 2019-03-11 | Document display method, device, computer equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110059058B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034519A (en) * | 2012-12-19 | 2013-04-10 | 广东欧珀移动通信有限公司 | Method and device for switching file default application |
CN103488511A (en) * | 2013-09-25 | 2014-01-01 | 深圳市金立通信设备有限公司 | Method and device for inquiring file opening mode |
CN104298424A (en) * | 2014-09-16 | 2015-01-21 | 小米科技有限责任公司 | File operation method and device |
CN104471528A (en) * | 2012-04-23 | 2015-03-25 | 谷歌公司 | Associating a file type with an application in a network storage service |
CN105893077A (en) * | 2015-12-31 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Method, device and system for recommending application program to open file |
CN108255374A (en) * | 2018-01-26 | 2018-07-06 | 维沃移动通信有限公司 | The deployment method and terminal device of a kind of file |
-
2019
- 2019-03-11 CN CN201910182053.2A patent/CN110059058B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104471528A (en) * | 2012-04-23 | 2015-03-25 | 谷歌公司 | Associating a file type with an application in a network storage service |
CN103034519A (en) * | 2012-12-19 | 2013-04-10 | 广东欧珀移动通信有限公司 | Method and device for switching file default application |
CN103488511A (en) * | 2013-09-25 | 2014-01-01 | 深圳市金立通信设备有限公司 | Method and device for inquiring file opening mode |
CN104298424A (en) * | 2014-09-16 | 2015-01-21 | 小米科技有限责任公司 | File operation method and device |
CN105893077A (en) * | 2015-12-31 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Method, device and system for recommending application program to open file |
CN108255374A (en) * | 2018-01-26 | 2018-07-06 | 维沃移动通信有限公司 | The deployment method and terminal device of a kind of file |
Also Published As
Publication number | Publication date |
---|---|
CN110059058A (en) | 2019-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657213B (en) | File transmission method and device | |
US20160117079A1 (en) | Method and apparatus for displaying application icons on terminal | |
CN106469044B (en) | Method and device for realizing page jump | |
EP2813955A1 (en) | Information association method and terminal | |
CN103530114A (en) | Picture managing method and device | |
US20140089397A1 (en) | Method, server, and client for pushing and displaying splash screen | |
CN105989158A (en) | Screenshot distinguishing method and equipment | |
CN107329976B (en) | Webpage paging method and device, computer equipment and computer readable storage medium | |
CN112511868B (en) | Video playing method and device, electronic equipment and computer storage medium | |
CN108197210B (en) | User interactive reading method based on friend relationship and computing equipment | |
CN105094975A (en) | Method and device for calling application program | |
CN103530313A (en) | Searching method and device of application information | |
CN104601448B (en) | A kind of method and apparatus handled virtual card | |
CN113050735A (en) | Method and device for controlling wine cabinet and intelligent wine cabinet | |
CN105847320A (en) | Resource obtaining method and device | |
CN109495553A (en) | A kind of webpage display control method, system and Reverse Proxy | |
CN109783678B (en) | Image searching method and device | |
CN105589873B (en) | Data searching method, terminal and server | |
CN106407383A (en) | Picture ranking method and device | |
CN109697281A (en) | The online method, apparatus and electronic equipment for merging document | |
CN110059058B (en) | Document display method, device, computer equipment and computer readable storage medium | |
CN107666431B (en) | Bookmark communication message acquisition method and device | |
US10470033B2 (en) | Method for acquiring user configuration information and terminal | |
CN108829844B (en) | Information searching method and system | |
CN111124209A (en) | Interface display adjustment method and device |
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 |