CN110059058A - Document display method, apparatus, computer equipment and computer readable storage medium - Google Patents

Document display method, apparatus, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN110059058A
CN110059058A CN201910182053.2A CN201910182053A CN110059058A CN 110059058 A CN110059058 A CN 110059058A CN 201910182053 A CN201910182053 A CN 201910182053A CN 110059058 A CN110059058 A CN 110059058A
Authority
CN
China
Prior art keywords
exhibition method
destination document
exhibition
document
doctype
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
CN201910182053.2A
Other languages
Chinese (zh)
Other versions
CN110059058B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910182053.2A priority Critical patent/CN110059058B/en
Publication of CN110059058A publication Critical patent/CN110059058A/en
Application granted granted Critical
Publication of CN110059058B publication Critical patent/CN110059058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

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 invention discloses a kind of document display method, apparatus, computer equipment and computer readable storage mediums, it is related to Internet technical field, it can be when showing document, it can be unfolded according to the mode that Doctype is specified, it will not unify to show based on some office software, it avoids causing a large amount of workload to user, user's viscosity is higher.The described method includes: according to the document identification that document display request carries, determining the destination document of the document display request instruction, and obtain the destination document type of the destination document when receiving document display request;It is inquired based on the destination document type, determines the corresponding intended display mode of the destination document type;If inquiring the destination document type, there are corresponding intended display modes, the destination document is shown based on the intended display mode.

Description

Document display method, apparatus, computer equipment and computer readable storage medium
Technical field
The present invention relates to Internet technical field, more particularly to a kind of document display method, apparatus, computer equipment and Computer readable storage medium.
Background technique
With the rapid development of Internet technology, either learns, works or live, all be unable to do without internet, rely on The terminal of Internet technology also becomes increasingly popular.At this stage, most in order to meet the needs of in people's study, work and life Terminal is provided with the function of showing the document of electronic type.
In the related technology, terminal is typically based on office software displaying, such as Word when showing the document of electronic type (word processor application), Excel (spreadsheet software), PDF (Portable Document Format, it is portable Document format) etc..When detecting that user requests to show document, terminal usually determines the format of the document, currently The corresponding default office software of format of the document is selected in the application of installation, and this article is shown based on the default office software Shelves.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
The document of various formats can be compatible with by having a kind of office software usually, after opening document using such office software, Although not setting such office software to show the default office software of document, such software can be modified silent automatically Recognize, no matter so that the document of later any format be all made of such office software displaying, cause to wish to use it in user It when his office software shows current document, needs thoroughly to close such office software, and resets and show doing for the document Public software, causes a large amount of workload, and user's viscosity is lower.
Summary of the invention
In view of this, the present invention provides a kind of document display method, apparatus, computer equipment and computer-readable storages Medium, main purpose are that solution when user wishes that other office softwares is used to show current document, needs thoroughly at present Close such office software, and reset the office software for showing the document, cause a large amount of workload, user's viscosity compared with Low problem.
According to the present invention in a first aspect, providing a kind of document display method, this method comprises:
When receiving document display request, according to the document identification that document display request carries, the text is determined Shelves show the destination document of request instruction, and obtain the destination document type of the destination document;
It is inquired based on the destination document type, determines the corresponding intended display mode of the destination document type;
If inquiring the destination document type, there are corresponding intended display modes, it is based on the intended display mode Show the destination document.
In another embodiment, described to be inquired based on the destination document type, determine the destination document class After the corresponding intended display mode of type, comprising:
If inquiring the destination document type, there is no the corresponding intended display modes, at least one exhibition is obtained Show mode;
At least one corresponding Doctype of each exhibition method at least one described exhibition method is determined respectively;
At least one that exhibition method each in the destination document type and at least one described exhibition method is supported Doctype is compared, and extracts at least one described exhibition method and the exhibition method of the destination document type is supported to make For appointment display mode;
By destination document type storage corresponding with the appointment display mode, it is based on the appointment display mode, exhibition Show the destination document.
In another embodiment, before described at least one exhibition method of acquisition, comprising:
The application of terminal is arranged, at least one is extracted and shows application as at least one exhibition method;
For each exhibition method at least one described exhibition method, in the attribute of the exhibition method, inquiry At least one Doctype that the exhibition method is supported;
By exhibition method storage corresponding at least one described Doctype;
The above-mentioned process that Doctype is determined for exhibition method is repeated, at least one exhibition method setting branch At least one Doctype held.
In another embodiment, the method also includes:
When receiving exhibition method modification instruction, the sending method of the exhibition method modification instruction, the hair are determined Sending mode to be at least, application is sent or system is sent;
If the sending method of the exhibition method modification instruction is that application is sent, refuse to modify exhibition method, by institute Exhibition method modification instruction is stated to abandon;
If the sending method of the exhibition method modification instruction is system transmission, modifies and instruct in the exhibition method Middle determination Doctype to be modified and exhibition method to be modified modify the corresponding exhibition method of the Doctype to be modified For the exhibition method to be modified.
In another embodiment, described when receiving exhibition method modification instruction, determine the exhibition method modification The sending method of instruction, comprising:
When receiving the exhibition method modification instruction, the source of exhibition method modification instruction is traced, Determine the port for sending the exhibition method modification instruction;
If the port for sending the exhibition method modification instruction is located in application, it is determined that the exhibition method modification refers to The sending method of order is that application is sent;
If the port for sending the exhibition method modification instruction is located in system, it is determined that the exhibition method modification refers to The sending method of order is system transmission.
Second aspect according to the present invention, provides a kind of document display device, which includes:
First determining module, the text for being carried according to document display request when receiving document display request Shelves mark, determines the destination document of the document display request instruction, and obtains the destination document type of the destination document;
Enquiry module determines that the destination document type is corresponding for being inquired based on the destination document type Intended display mode;
Display module is based on institute if there are corresponding intended display modes for inquiring the destination document type It states intended display mode and shows the destination document.
In another embodiment, described device includes:
Module is obtained, if the corresponding intended display mode is not present for inquiring the destination document type, Obtain at least one exhibition method;
Second determining module, for determining respectively, each exhibition method is corresponding at least at least one described exhibition method One Doctype;
Comparison module is used for each exhibition method branch in the destination document type and at least one described exhibition method At least one Doctype held is compared, and extracts at least one described exhibition method and supports the destination document type Exhibition method as appointment display mode;
Memory module, for being based on the finger for destination document type storage corresponding with the appointment display mode Determine exhibition method, shows the destination document.
In another embodiment, described device further include:
Extraction module is arranged for the application to terminal, is extracted at least one and is shown application as at least one exhibition Show mode;
Second determining module, for for each exhibition method at least one described exhibition method, described In the attribute of exhibition method, at least one Doctype that the exhibition method is supported is inquired;
The memory module is used for exhibition method storage corresponding at least one described Doctype;
The extraction module is also used to repeat the above-mentioned process that Doctype is determined for exhibition method, for described in extremely At least one Doctype that few exhibition method setting is supported.
In another embodiment, described device further include:
Third determining module, for determining the exhibition method modification instruction when receiving exhibition method modification instruction Sending method, described sender formula be at least application send or system send;
Discard module is refused to modify if the sending method for exhibition method modification instruction is that application is sent The exhibition method is modified instruction and abandoned by exhibition method;
Modified module, if the sending method for exhibition method modification instruction is system transmission, in the exhibition The mode of showing, which is modified, determines Doctype to be modified and exhibition method to be modified in instruction, the Doctype to be modified is corresponding Exhibition method be revised as the exhibition method to be modified.
In another embodiment, the third determining module, for when receiving exhibition method modification instruction, The source of exhibition method modification instruction is traced, determines the port for sending the exhibition method modification instruction;
The discard module, if the port for being also used to send the exhibition method modification instruction is located in application, really The sending method of the fixed exhibition method modification instruction is that application is sent;
The modified module, if the port for being also used to send the exhibition method modification instruction is located in system, really The sending method of the fixed exhibition method modification instruction is system transmission.
The third aspect according to the present invention provides a kind of computer equipment, including memory and processor, the memory It is stored with computer program, the processor realizes the step of above-mentioned first aspect the method when executing the computer program Suddenly.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, The computer program realizes the step of method of above-mentioned first aspect when being executed by processor.
By above-mentioned technical proposal, a kind of document display method, apparatus, computer equipment and computer provided by the invention Readable storage medium storing program for executing, compared with current software can modify automatically the mode of default, the present invention when receive document display request when, According to the document identification that document display request carries, the destination document of document display request instruction is determined, and obtain destination document Destination document type, and then inquired based on destination document type, determine the corresponding intended display side of destination document type Formula, and if inquiring destination document type, there are corresponding intended display modes, show target text based on intended display mode Shelves will not be unified to be based on some office software exhibition so that can be unfolded according to the mode that Doctype is specified when showing document Show, avoids causing a large amount of workload to user, user's viscosity is higher.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of document display method flow schematic diagram provided in an embodiment of the present invention;
Fig. 2A shows a kind of document display method flow schematic diagram provided in an embodiment of the present invention;
Fig. 2 B shows a kind of document display method flow schematic diagram provided in an embodiment of the present invention;
Fig. 3 A shows a kind of structural schematic diagram of document display device provided in an embodiment of the present invention;
Fig. 3 B shows a kind of structural schematic diagram of document display device provided in an embodiment of the present invention;
Fig. 3 C shows a kind of structural schematic diagram of document display device provided in an embodiment of the present invention;
Fig. 3 D shows a kind of structural schematic diagram of document display device provided in an embodiment of the present invention;
Fig. 4 shows a kind of apparatus structure schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of document display method, can make when showing document, it can be according to document class The specified mode of type is unfolded, and will not unify to show based on some office software, reach and avoided causing a large amount of work to user It measures, the higher purpose of user's viscosity, as shown in Figure 1, this method comprises:
101, when receiving document display request, according to the document identification that document display request carries, document exhibition is determined Show the destination document of request instruction, and obtains the destination document type of destination document.
In embodiments of the present invention, when receiving document display request, in order to show document that needs are shown, document exhibition Show in request and need to carry document identification, in this way, document identification can be extracted in document display request, and determines document exhibition Show the destination document of request instruction.Since terminal is to determine exhibition method according to the document identification of document when showing document, Therefore, after destination document has been determined, the destination document type of destination document can be obtained, so as in subsequent determining displaying side Formula.
102, it is inquired based on destination document type, determines the corresponding intended display mode of destination document type.
In embodiments of the present invention, after obtaining the destination document type of destination document, destination document can be based on Type is inquired, so that it is determined that the corresponding intended display mode of destination document type, to be shown based on intended display mode The destination document.
If 103, there are corresponding intended display modes for inquiry destination document type, shown based on intended display mode Destination document.
In embodiments of the present invention, if there are corresponding intended display modes for inquiry destination document type, then it represents that use Family is already provided with the specified intended display mode of the destination document type, therefore, shows target text based on intended display mode Shelves.
Method provided in an embodiment of the present invention is carried when receiving document display request according to document display request Document identification, determines the destination document of document display request instruction, and obtains the destination document type of destination document, and then be based on Destination document type is inquired, and determines the corresponding intended display mode of destination document type, and if inquiry destination document class There are corresponding intended display modes for type, then show destination document based on intended display mode, so that when showing document, it can root It is unfolded according to the mode that Doctype is specified, will not unifies to show based on some office software, avoid causing to user largely Workload, user's viscosity are higher.
The embodiment of the invention provides a kind of document display method, can make when showing document, it can be according to document class The specified mode of type is unfolded, and will not unify to show based on some office software, reach and avoided causing a large amount of work to user It measures, the higher purpose of user's viscosity, as shown in Figure 2 A, this method comprises:
201, when receiving document display request, according to the document identification that document display request carries, document exhibition is determined Show the destination document of request instruction, and obtains the destination document type of destination document.
In embodiments of the present invention, it was recognized by the inventor that displaying, editor etc. that using terminal carries out document are users in day Most-often used one of terminal function in normal working and learning, in order to preferably provide function relevant to document for user, eventually Operating system can be set in end, and the various operations about document are executed based on the operating system.
In daily work, for user when carrying out document display based on terminal, ordinary practice is in a kind of exhibition method.But It is that usually will be installed multiple applications for supporting to show this kind of document in terminal, causes document when showing each time, all may It is shown based on different applications, is not able to satisfy user in customary demand, causes to perplex to user.Therefore, operating system mentions A kind of binding service has been supplied, the Doctype of document has been bound with exhibition method, has also been the setting of each Doctype One application for being fixed for showing such document, and persistently this is used to apply the document of displaying the document type subsequent, from And meet user in customary demand.
Wherein, exhibition method inlet porting can be set in operating system, when detecting that user triggers the exhibition method and set When posting port, at least one Doctype and the corresponding optional exhibition method of each Doctype are shown, so that user can be with A kind of exhibition method is set for each Doctype, and when detecting user's confirmation, by the Doctype of user setting with Exhibition method corresponds storage, to show the document of corresponding Doctype in the subsequent exhibition method based on user setting. Specifically, when storing the corresponding relationship between Doctype and exhibition method, type-side as shown in table 1 below can be generated Formula list, and based on the type-mode list storage.
Table 1
It should be noted that most users may can't actively be each document class during practical application Corresponding exhibition method is arranged in type, in this way, the exhibition method of the document can be write from memory when user requests to show document for the first time Think the corresponding exhibition method of the Doctype of the document, and the document type is persistently shown based on the exhibition method subsequent Document avoids the occurrence of the case where showing document using different exhibition methods every time generation.
In this way, when receiving document display request, since document display request would generally indicate which document shown, Therefore, the document identification for being used to indicate document can be carried in document display request, at this moment, can be mentioned in document display request Document identification is taken, determines the destination document of document identification instruction.Due to when showing document, being that the Doctype based on document is tied up Therefore fixed exhibition method after destination document has been determined, obtains the destination document type of the destination document, so as to subsequent It is that the destination document determines exhibition method based on the destination document type.
202, it is inquired based on destination document type, determines the corresponding intended display mode of destination document type, if Destination document type is inquired there are corresponding intended display mode, then executes following step 203;If inquiring destination document type There is no corresponding intended display modes, then execute following step 204.
In embodiments of the present invention, due to binding Doctype and exhibition method in the operating system of terminal, because This can be inquired, the determining and mesh after the destination document type of destination document has been determined based on the destination document type The corresponding intended display mode of Doctype is marked, to show destination document based on the intended display mode.
During practical application, it is contemplated that user may occur, and there is no be actively destination document type setting exhibition Show mode, and be for the first time document based on the terminal display destination document type the case where so that can not be according to destination document class Type determines corresponding intended display mode, namely intended display mode corresponding with destination document type is not present, in this way, if Inquiring destination document type, there are corresponding intended display modes, then it represents that the destination document type has specified that is opened up with for which kind of The mode of showing is shown, in this way, the destination document directly can be shown based on the intended display mode subsequent, namely is executed following Step 203;If inquiring destination document type is not present corresponding intended display mode, then it represents that the destination document type is not There is specified which kind of exhibition method displaying, in this way, just needing to default for destination document type a kind of exhibition method, namely under execution State step 204.
If 203, there are corresponding intended display modes for inquiry destination document type, shown based on intended display mode Destination document.
In embodiments of the present invention, if there are corresponding intended display modes for inquiry destination document type, then it represents that should Destination document type has specified that shown with which kind of exhibition method, in this way, the intended display mode directly can be based on Show the destination document.
If 204, corresponding intended display mode is not present in inquiry destination document type, at least one displaying side is obtained Formula determines at least one corresponding Doctype of each exhibition method at least one exhibition method respectively.
In embodiments of the present invention, if corresponding intended display mode is not present in inquiry destination document type, then it represents that The destination document type is shown there is no specified with which kind of exhibition method, in this way, just needing to default one kind for destination document type Exhibition method.And the Doctype supported in view of every kind of exhibition method is different, and needs to obtain at least one displaying side Formula, and at least one corresponding Doctype of each exhibition method at least one exhibition method is determined respectively, it is so as to subsequent The exhibition method that can be compatible with is arranged in the destination document type.
Wherein, since exhibition method is supported and provided by the application in terminal, therefore, it is necessary to the operation systems to terminal The Doctype that system can support exhibition method and each exhibition method counts, so as to determine at least one respectively At least one corresponding Doctype of each exhibition method in a exhibition method.Specifically, to exhibition method and each exhibition When the Doctype that the mode of showing is supported is counted, firstly, the application to terminal arranges, extracts at least one and show application As at least one exhibition method;Subsequently, for each exhibition method at least one exhibition method, in the category of exhibition method Property in, at least one Doctype that inquiry exhibition method is supported, and depositing exhibition method is corresponding at least one Doctype Storage.It, can be for the setting of at least one exhibition method by repeating the above-mentioned process for determining Doctype for exhibition method At least one Doctype supported.It should be noted that when being stored exhibition method and at least one Doctype, The presets list as shown in table 2 below can be generated, and pair between exhibition method and Doctype is stored based on the presets list It should be related to.
Table 2
In this way, in determining at least one exhibition method when at least one Doctype of each exhibition method support, just It can be based on exhibition method, inquired in the presets list, to obtain the Doctype that each exhibition method is supported.
205, at least one document for supporting exhibition method each in destination document type and at least one exhibition method Type is compared, and extracts at least one exhibition method and supports the exhibition method of destination document type as appointment display side The storage corresponding with appointment display mode of destination document type is based on appointment display mode, shows destination document by formula.
It in embodiments of the present invention, can will be by mesh after getting the Doctype that each exhibition method is supported Mark Doctype is compared at least one Doctype that exhibition method each at least one exhibition method is supported, extremely Extracting in a few exhibition method supports the exhibition method of destination document type as appointment display mode, and based on the specified exhibition The mode of showing shows destination document.In order to make subsequent persistently can to show the destination document type based on determining appointment display mode Document, after appointment display mode has been determined, by the destination document type it is corresponding with appointment display mode storage, so as to rear It is continuous exhibition method directly to be determined according to the destination document type.
It should be noted that since there may be multiple exhibition methods to support the destination document type, at this point, a kind of side Formula can one exhibition method of random selection be opened up as specified in multiple exhibition methods for supporting the destination document type at random Show mode;Another way can be using the exhibition method of the support to rank the first in the presets list the destination document type as referring to Determine exhibition method.The embodiment of the present invention is to the mode of determining appointment display mode without specifically limiting.
201 to process shown in step 205 through the above steps, can realize the displaying of destination document, and in reality During border is applied, the operating system of terminal can also receive the finger being modified to the corresponding exhibition method of Doctype It enables, referring to fig. 2 B, this method comprises:
206, when receiving exhibition method modification instruction, the sending method of exhibition method modification instruction is determined, if exhibition The mode of showing is modified the sending method of instruction and is sent for application, then executes following step 207;If the hair of exhibition method modification instruction It send mode for system transmission, is then executing following step 208.
In embodiments of the present invention, it is contemplated that some applications may voluntarily modify the Doctype for having completed setting The wish of exhibition method, these modifications and non-user is using the mandatory modification carried out to promote, certainly in order to avoid application Row modification exhibition method gives puzzlement caused by user security risk, when receiving exhibition method modification instruction, it is thus necessary to determine that exhibition method is repaired Change the sending method of instruction, and then determines whether to modify to exhibition method according to sending method.Wherein, sending method Any one of at least application is sent or system is sent.
When determining the sending method of exhibition method modification instruction, the source that can modify instruction to exhibition method is chased after It traces back, determines the port for sending exhibition method modification instruction.In this way, if the port for sending exhibition method modification instruction is located at application In, then it represents that exhibition method modification instruction is to determine that the sending method of exhibition method modification instruction is application using sending It sends, namely executes following step 207.If the port for sending exhibition method modification instruction is located in system, then it represents that the exhibition The mode of showing, which modifies instruction, to be generated and sent after system detection to the operation of user, determines the transmission that exhibition method modification instructs Mode is system transmission, namely executes following step 208.
If 207, the sending method of exhibition method modification instruction is that application is sent, refuse to modify exhibition method, by exhibition The mode of showing is modified instruction and is abandoned.
In embodiments of the present invention, if the sending method of exhibition method modification instruction is that application is sent, then it represents that current It may be to apply voluntarily to change exhibition method, and do not meet the modification condition of exhibition method, therefore, it is necessary to refuse to exhibition method It modifies, which is modified into instruction and is abandoned, and when showing document next time, still based on current exhibition method Show document.
If 208, the sending method of exhibition method modification instruction is system transmission, in exhibition method modification instruction really Fixed Doctype to be modified and exhibition method to be modified, the corresponding exhibition method of Doctype to be modified are revised as to be modified Exhibition method.
In embodiments of the present invention, if sending method is system transmission, then it represents that currently may be that user requests change Exhibition method determines Doctype to be modified and exhibition method to be modified in this way, can modify in exhibition method in instruction, The corresponding exhibition method of the Doctype to be modified is revised as exhibition method to be modified, also will the exhibition method to be modified with The corresponding exhibition method of the Doctype to be modified is bound again, so as to when showing the document of the document type next time, base It is shown in the exhibition method newly bound.Wherein, if stored between exhibition method and Doctype based on type-mode list Corresponding relationship, then by the Doctype to be modified, corresponding exhibition method is changed to displaying to be modified in type-mode list Mode.
Method provided in an embodiment of the present invention is carried when receiving document display request according to document display request Document identification, determines the destination document of document display request instruction, and obtains the destination document type of destination document, and then be based on Destination document type is inquired, and determines the corresponding intended display mode of destination document type, and if inquiry destination document class There are corresponding intended display modes for type, then show destination document based on intended display mode, so that when showing document, it can root It is unfolded according to the mode that Doctype is specified, will not unifies to show based on some office software, avoid causing to user largely Workload, user's viscosity are higher.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of document display dresses It sets, as shown in Figure 3A, described device includes: the first determining module 301, enquiry module 302 and display module 303.
First determining module 301, for requesting to carry according to the document display when receiving document display request Document identification, determine the destination document of document display request instruction, and obtain the destination document class of the destination document Type;
The enquiry module 302 determines the destination document type pair for being inquired based on the destination document type The intended display mode answered;
The display module 303, if there are corresponding intended display mode, bases for inquiring the destination document type The destination document is shown in the intended display mode.
In specific application scenarios, as shown in Figure 3B, which includes: to obtain module 304, the second determining module 305, Comparison module 306 and memory module 307.
The acquisition module 304, if there is no the corresponding intended display sides for inquiring the destination document type Formula then obtains at least one exhibition method;
Second determining module 305, for determining respectively, each exhibition method is corresponding at least one described exhibition method At least one Doctype;
The comparison module 306 is used for each displaying in the destination document type and at least one described exhibition method At least one Doctype that mode is supported is compared, and extracts at least one described exhibition method and supports the target text The exhibition method of shelves type is as appointment display mode;
The memory module 307, for being based on institute for destination document type storage corresponding with the appointment display mode Appointment display mode is stated, shows the destination document.
In specific application scenarios, as shown in Figure 3 C, the device further include: extraction module 308.
The extraction module 308 is arranged for the application to terminal, is extracted at least one and is shown that application is used as at least one A exhibition method;
Second determining module 305, for for each exhibition method at least one described exhibition method, described In the attribute of exhibition method, at least one Doctype that the exhibition method is supported is inquired;
The memory module 307 is used for exhibition method storage corresponding at least one described Doctype;
The extraction module 308 is also used to repeat the above-mentioned process that Doctype is determined for exhibition method, for described in extremely At least one Doctype that few exhibition method setting is supported.
In specific application scenarios, as shown in Figure 3D, the device further include: third determining module 309, discard module 310 and modified module 311.
The third determining module 309, for determining the exhibition method modification when receiving exhibition method modification instruction The sending method of instruction, described sender formula is at least application transmission or system is sent;
The discard module 310 is refused if the sending method for exhibition method modification instruction is that application is sent Exhibition method is modified, the exhibition method is modified into instruction and is abandoned;
The modified module 311, if the sending method for exhibition method modification instruction is system transmission, in institute It states in exhibition method modification instruction and determines Doctype to be modified and exhibition method to be modified, by the Doctype to be modified Corresponding exhibition method is revised as the exhibition method to be modified.
In specific application scenarios, which receives the exhibition method modification instruction for working as When, the source of exhibition method modification instruction is traced, determines the port for sending the exhibition method modification instruction;
The discard module 310, if the port for being also used to send the exhibition method modification instruction is located in application, really The sending method of the fixed exhibition method modification instruction is that application is sent;
The modified module 311, if the port for being also used to send the exhibition method modification instruction is located in system, really The sending method of the fixed exhibition method modification instruction is system transmission.
Device provided in an embodiment of the present invention is carried when receiving document display request according to document display request Document identification, determines the destination document of document display request instruction, and obtains the destination document type of destination document, and then be based on Destination document type is inquired, and determines the corresponding intended display mode of destination document type, and if inquiry destination document class There are corresponding intended display modes for type, then show destination document based on intended display mode, so that when showing document, it can root It is unfolded according to the mode that Doctype is specified, will not unifies to show based on some office software, avoid causing to user largely Workload, user's viscosity are higher.
It should be noted that other of each functional unit involved by a kind of document display device provided in an embodiment of the present invention Corresponding description, can be with reference to the corresponding description in Fig. 1 and Fig. 2A to Fig. 2 B, and details are not described herein.
In the exemplary embodiment, referring to fig. 4, a kind of equipment is additionally provided, which includes communication bus, processing Device, memory and communication interface, can also include, input/output interface and display equipment, wherein can between each functional unit To complete mutual communication by bus.The memory is stored with computer program, processor, for executing institute on memory The program of storage executes the document display method in above-described embodiment.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of document display method is realized when row.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben What the technical staff in field can think variation should all fall into the protection scope of the application.

Claims (10)

1. a kind of document display method characterized by comprising
When receiving document display request, according to the document identification that document display request carries, the document exhibition is determined Show the destination document of request instruction, and obtains the destination document type of the destination document;
It is inquired based on the destination document type, determines the corresponding intended display mode of the destination document type;
If inquiring the destination document type, there are corresponding intended display modes, shown based on the intended display mode The destination document.
2. the method according to claim 1, wherein described inquired based on the destination document type, really Calmly after the corresponding intended display mode of the destination document type, comprising:
If inquiring the destination document type, there is no the corresponding intended display modes, at least one displaying side is obtained Formula;
At least one corresponding Doctype of each exhibition method at least one described exhibition method is determined respectively;
At least one document that exhibition method each in the destination document type and at least one described exhibition method is supported Type is compared, and extracts at least one described exhibition method and supports the exhibition method of the destination document type is used as to refer to Determine exhibition method;
By destination document type storage corresponding with the appointment display mode, it is based on the appointment display mode, shows institute State destination document.
3. according to the method described in claim 2, it is characterized in that, before described at least one exhibition method of acquisition, comprising:
The application of terminal is arranged, at least one is extracted and shows application as at least one exhibition method;
For each exhibition method at least one described exhibition method, in the attribute of the exhibition method, described in inquiry At least one Doctype that exhibition method is supported;
By exhibition method storage corresponding at least one described Doctype.
4. the method according to claim 1, wherein the method also includes:
When receiving exhibition method modification instruction, the sending method of the exhibition method modification instruction, described sender are determined Formula is at least application transmission or system is sent;
If the sending method of the exhibition method modification instruction is that application is sent, refuse to modify exhibition method, by the exhibition The mode of showing is modified instruction and is abandoned;
If the sending method of the exhibition method modification instruction is system transmission, in exhibition method modification instruction really The corresponding exhibition method of the Doctype to be modified is revised as institute by fixed Doctype to be modified and exhibition method to be modified State exhibition method to be modified.
5. according to the method described in claim 4, it is characterized in that, described when receiving exhibition method modification instruction, determination The sending method of the exhibition method modification instruction, comprising:
When receiving the exhibition method modification instruction, the source of exhibition method modification instruction is traced, is determined Send the port of the exhibition method modification instruction;
If the port for sending the exhibition method modification instruction is located in application, it is determined that the exhibition method modification instruction Sending method is that application is sent;
If the port for sending the exhibition method modification instruction is located in system, it is determined that the exhibition method modification instruction Sending method is system transmission.
6. a kind of document display device characterized by comprising
First determining module, the document mark for being carried according to document display request when receiving document display request Know, determine the destination document of the document display request instruction, and obtains the destination document type of the destination document;
Enquiry module determines the corresponding target of the destination document type for being inquired based on the destination document type Exhibition method;
Display module is based on the mesh if there are corresponding intended display modes for inquiring the destination document type It marks exhibition method and shows the destination document.
7. device according to claim 6, which is characterized in that described device includes:
Module is obtained, if there is no the corresponding intended display modes for inquiring the destination document type, is obtained At least one exhibition method;
Second determining module, for determine at least one described exhibition method respectively each exhibition method it is corresponding at least one Doctype;
Comparison module, for support exhibition method each in the destination document type and at least one described exhibition method At least one Doctype is compared, and the exhibition for supporting the destination document type is extracted at least one described exhibition method Show mode as appointment display mode;
Memory module, for being based on the specified exhibition for destination document type storage corresponding with the appointment display mode Show mode, shows the destination document.
8. device according to claim 7, which is characterized in that described device further include:
Extraction module is arranged for the application to terminal, is extracted at least one and is shown application as at least one displaying side Formula;
Second determining module, for for each exhibition method at least one described exhibition method, in the displaying In the attribute of mode, at least one Doctype that the exhibition method is supported is inquired;
The memory module is used for exhibition method storage corresponding at least one described Doctype;
The extraction module is also used to repeat the above-mentioned process that Doctype is determined for exhibition method, is described at least one At least one Doctype that a exhibition method setting is supported.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201910182053.2A 2019-03-11 2019-03-11 Document display method, device, computer equipment and computer readable storage medium Active CN110059058B (en)

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 true CN110059058A (en) 2019-07-26
CN110059058B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN110059058B (en) 2023-12-15

Similar Documents

Publication Publication Date Title
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
CN109391509A (en) A kind of method, system and the application server of more new application
CN105027535A (en) Backwards-compatible feature-level version control of an application using a restlike api
CN105719329B (en) Bookkeeping voucher generation method and system
CN109471838B (en) Directory document operation method and device, electronic equipment and readable storage medium
CN109190101A (en) Note reading generation method, device and electronic equipment
CN103577207A (en) Loading method and loading device for interface components in custom interface system
US20160205183A1 (en) Method and aparatus for backing up data and electronic device
EP2916495A1 (en) Information processing system, an information processing apparatus and a medium storing an information processing program
CN109726295A (en) Brand knowledge map display methods, device, figure server and storage medium
CN106022010A (en) File display method and device
CN105554290A (en) Wallpaper sharing method and device
CN109697281A (en) The online method, apparatus and electronic equipment for merging document
CN104808995B (en) A kind of method and apparatus for across application collection application content
CN103077214A (en) File storage method and device
CN106294417A (en) A kind of data reordering method, device and electronic equipment
CN110647327B (en) Method and device for dynamic control of user interface based on card
KR102455316B1 (en) Method for unifying tool and information coming from multiple information sources, and computer program product and device using same
US20140297953A1 (en) Removable Storage Device Identity and Configuration Information
KR20110015420A (en) Off-line smartphone file system snapshots
CN111414507A (en) Information display method, equipment, device and computer readable storage medium
CN110059058A (en) Document display method, apparatus, computer equipment and computer readable storage medium
CN104753938A (en) Information processing method and electronic equipment
CN103870603A (en) Directory management method and electronic device
JP2019095850A (en) Document processing apparatus and program

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