CN109977374B - Data reading method, device, electronic equipment and computer readable storage medium - Google Patents
Data reading method, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109977374B CN109977374B CN201711446758.8A CN201711446758A CN109977374B CN 109977374 B CN109977374 B CN 109977374B CN 201711446758 A CN201711446758 A CN 201711446758A CN 109977374 B CN109977374 B CN 109977374B
- Authority
- CN
- China
- Prior art keywords
- master
- target file
- slide
- target
- option
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a data reading method, a device, electronic equipment and a computer readable storage medium, wherein the data reading method comprises the following steps: obtaining an opening instruction for a target file, wherein the target file comprises a slide and a master; determining a mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides; and reading the determined master plate from the target file. By applying the embodiment of the invention, the file opening efficiency can be improved.
Description
Technical Field
The present invention relates to the field of data reading technologies, and in particular, to a data reading method, apparatus, electronic device, and computer readable storage medium.
Background
The master, which is a view or page of the slides in all slides or page formats, contains display elements such as text placeholders, pictures, action buttons, etc. that can appear on each slide, and objects on the master will appear in the same location on each slide, where the master is referred to as the slide master. The master plate can be used for conveniently unifying the styles of slides. All masters that the PPT program is self-contained and all masters created by the user who created the PPT file are contained in the created completed PPT file.
When a PPT file opening instruction is received, all masters carried by the PPT file need to be read, and when the number of masters is relatively large, a large amount of time is consumed for reading all masters and other data, so that file opening efficiency is relatively low.
Disclosure of Invention
An embodiment of the invention aims to provide a data reading method, a data reading device, electronic equipment and a computer readable storage medium, so as to improve file opening efficiency. The specific technical scheme is as follows:
in order to achieve the above object, an embodiment of the present invention provides a data reading method, including:
obtaining an opening instruction for a target file, wherein the target file comprises a slide and a master;
determining a mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides;
the determined master is read from the target file.
Optionally, after determining the master used for each slide in the target file, the method further comprises:
obtaining a target number, wherein the target number is the number of masters which are not used by the slides in the target file;
judging whether the target number is larger than a preset number;
if so, performing the step of reading the determined master from the target file.
Optionally, in the case that the target number is determined to be greater than the preset number, the method further includes:
pushing a first option and a second option, wherein the first option is an option of reading a master which is not used by the slide, and the second option is an option of only reading the master which is used by the slide;
after receiving the second option, a step of reading the determined master from the target file is performed.
Optionally, in the case that the target number is less than or equal to the preset number, or in the case that the first option is received, the method further includes:
all masters contained are read from the target file.
Optionally, obtaining the target number includes:
obtaining the total amount of the master contained in the target file;
the difference between the obtained total amount and the determined number of masters is taken as the target number.
Optionally, obtaining the target number includes:
judging whether the master is used by a slide or not for each master contained in the target file;
if yes, recording a master mark of the master;
after the judgment for each master contained in the target file is completed, the total number of recorded master identifications is taken as the target number.
In order to achieve the above object, an embodiment of the present invention further provides a data reading device, including:
the first obtaining module is used for obtaining an opening instruction for a target file, wherein the target file comprises a slide and a master plate;
the determining module is used for determining the mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides;
and the first reading module is used for reading the determined master plate from the target file.
Optionally, the apparatus further comprises:
the first obtaining module is used for obtaining the target number, wherein the target number is the number of masters which are not used by the slides in the target file;
the judging module is used for judging whether the target quantity is larger than a preset quantity or not;
the first reading module is specifically configured to read the determined master set from the target file when the determination result of the determining module is greater than the determination result.
Optionally, the apparatus further comprises:
the pushing module is used for pushing a first option and a second option when the judging result of the judging module is larger than the judging result, wherein the first option is an option for reading a mother board which is not used by the slide, and the second option is an option for only reading the mother board which is used by the slide;
the first reading module is specifically configured to read the determined master from the target file after receiving the second option.
Optionally, the apparatus further comprises:
and the second reading module is used for reading all the contained masters from the target file under the condition that the judging result of the judging module is smaller than or equal to or under the condition that the first option is received.
Optionally, the second obtaining module is specifically configured to:
obtaining the total amount of the master contained in the target file;
the difference between the obtained total amount and the determined number of masters is taken as the target number.
Optionally, the second obtaining module is specifically configured to:
judging whether the master is used by a slide or not for each master contained in the target file;
if yes, recording a master mark of the master;
after the judgment for each master contained in the target file is completed, the total number of recorded master identifications is taken as the target number.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of any one of the data reading when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, the computer program implementing the method steps of any one of the above data reading when executed by a processor.
According to the data reading method, the device, the electronic equipment and the computer readable storage medium, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slide and the mother board used by the slide, and then only the determined mother board is read, so that the data amount is reduced, the time required for reading the mother board is further reduced, and the file opening efficiency is improved. Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the above advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data reading method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second flow chart of a data reading method according to an embodiment of the present invention;
FIG. 3 is a third flow chart of a data reading method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a dialog box according to an embodiment of the present invention;
FIG. 5 is a fourth flowchart of a data reading method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of a data reading method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a data reading apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the problem of low file opening efficiency caused by reading all masters in the prior art and improve the file opening efficiency, the embodiment of the invention provides a data reading method, a data reading device, electronic equipment and a computer readable storage medium. The following first describes a data reading method provided by an embodiment of the present invention.
Fig. 1 is a first flowchart of a data reading method according to an embodiment of the present invention, where the method includes:
s101: an open instruction for a target file is obtained, wherein the target file contains a slide and a master.
The target file refers to a PPT file, specifically to a PPT file which is created in advance, and the target file comprises a slide and a master plate. The slide referred to herein refers to a pre-created slide. The masters contained in the target file refer to all masters that were self-contained and all masters created by the user in the PPT program at the time the target file was created.
In the embodiment of the invention, the operation of receiving the opening option selected by the user for the target file or the operation of double-clicking the target file can be regarded as obtaining the opening instruction for the target file.
S102: and determining the mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides.
The correspondence between the slides and the master used by the slides may be recorded at the time of creating the target file. When creating the target file, a slide is created on the basis of the master, i.e. the master is applied to the slide, and after the slide creation is completed, the created slide has the same display elements as the master used for the slide. When a slide is created, the correspondence between the created slide and the master used by the slide may be recorded, and for example, the correspondence between slide 1 and master a used by slide 1 may be: slide 1: master a.
The recorded corresponding relation between the slides and the mother plate used by the slides can be stored in the target file, the stored corresponding relation is firstly obtained from the target file, and then the mother plate used by each slide in the target file is determined according to the obtained corresponding relation. The slides in the correspondence relationship referred to herein refer to slides in the target file.
S103: the determined master is read from the target file.
The object file contains all masters of PPT programs and all masters created by users, some masters are used by slides in the object file, some masters are not used by slides in the object file, and masters which are not used by the slides in the object file can be called redundant masters of the object file. Reading these redundant masters requires a certain amount of time, which in turn results in a significant amount of time being consumed in opening the target file, thus making the target file open very slowly, and even not when the number of redundant masters is too large. To solve this problem, the opening efficiency of the target file is improved, and after determining the master used for the slides in the target file, only the determined master may be read.
In the OOXML (technical specification developed by microsoft corporation for Office 2007) format specification, each master is defaulted to create a certain number of formats, for example, a version after WPS (one Office software) 2015 or a version above PowerPoint (presentation software, abbreviated as PPT) 2007, so that 11 formats can be created for the master when creating a document, or 11 formats can be created for the master without a corresponding format when opening the created document. It should be noted that, instead of each master in the target file having a corresponding layout, there may be a master having a corresponding layout, and a master not having a corresponding layout. If a master is read during the process of opening a file, the corresponding format of the master must be read if the master has the corresponding format. The layout refers to the content placeholders that contain the format, positioning, and all slide displays. Placeholders are containers in a layout holding text (including body text, bulleted lists, and titles), tables, charts, smartArt (a newly added feature in microsoft office software) graphics, movies, sounds, pictures, and clips as such. The layout also contains slides of the subject matter (color, font, effect and background).
In the prior art, for each read master, judging whether a file to be opened includes a format corresponding to the master, if so, reading the format corresponding to the master, and if not, creating the format corresponding to the master. In the embodiment of the invention, after the master is read, the next step is also judged according to the mode, the corresponding format is read under the condition that the read master has the corresponding format, and the corresponding format of the master is created under the condition that the read master does not have the corresponding format. Compared with the prior art, the data reading method provided by the embodiment of the invention only reads the determined master plate, so that not only can the time consumed for reading the master plate be reduced, but also the time consumed for reading the format and/or creating the format can be reduced, the time required for opening the file can be greatly reduced, and the opening efficiency of the file is further improved.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slide and the mother board used by the slide, and then, only the determined mother board is read, so that the read data volume is reduced, the time required for reading the mother board is further reduced, and the file opening efficiency is improved.
Fig. 2 is a second flowchart of a data reading method according to an embodiment of the present invention, where the method includes:
s201: an open instruction for a target file is obtained, wherein the target file contains a slide and a master.
S202: and determining the mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides.
S203: a target number is obtained, wherein the target number is the number of masters in the target file that are not used by the slides.
The target number may be the number of redundant masters in the target file, and the target number may be obtained by:
obtaining the total amount of the master contained in the target file;
the difference between the obtained total amount and the determined number of masters is taken as the target number.
In the embodiment of the present invention, the target number is a difference between the total amount of masters contained in the target file and the determined number of masters. The total amount of masters contained in the target file may be recorded in the target file or may be obtained by traversing the masters in the target file.
The number of masters determined is the number of masters used for the slides in the target file, and when the number of masters used for each slide in the target file is determined, the number of masters determined is also determined.
In one embodiment of the present invention, obtaining the target number may include:
judging whether the master is used by a slide or not for each master contained in the target file;
if yes, recording a master mark of the master;
after the judgment for each master contained in the target file is completed, the total number of recorded master identifications is taken as the target number.
When traversing to one master, judging whether the master is used by a slide, wherein a specific judging method can be to judge whether the corresponding relation between the pre-recorded slide and the master used by the slide exists or not, if so, recording the master identification of the master, and under the condition that the traversing is completed, counting the number of the recorded master identifications. The master mark comprises at least one of characters, numbers, letters and characters, and can be the number, the name and the like of the master.
S204: it is judged whether the target number is greater than a preset number, if so, S205 is executed, and if not, it is ended.
The preset number is preset, and can be an empirical value set according to the number of masters in the PPT program, or a numerical value calculated according to data such as the number of masters, the opening time and the like in a file which is opened in the past. The preset number may be 600, for example.
Judging whether the target number is larger than the preset number or not, and judging whether the reading of redundant masters in the target file seriously affects the file opening efficiency or not, when the target number is larger than the preset number, the fact that the number of unused masters in the target file is too large is indicated, and the time for opening the file can be greatly increased by reading all masters, so that the determined masters can be read only from the target file.
S205: the determined master is read from the target file.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slides and the mother boards used by the slides, and then, under the condition that the target number is larger than the preset number, only the determined mother boards are read, so that the read data volume is reduced, the time required for reading the mother boards is further reduced, and the file opening efficiency is improved.
Fig. 3 is a third flowchart of a data reading method according to an embodiment of the present invention, where the method includes:
s301: obtaining an opening instruction for a target file, wherein the target file comprises a slide and a master;
s302: determining a mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides;
s303: a target number is obtained, wherein the target number is the number of masters in the target file that are not used by the slides.
S304: it is judged whether the target number is greater than a preset number, if so, S305 is executed, and if not, it is ended.
It should be noted that, in the embodiment of the present invention, S301 to S304 are the same as S201 to S204 in the above embodiment, and are not described herein.
S305: pushing a first option and a second option, wherein the first option is an option of reading a master which is not used by the slide, and the second option is an option of only reading the master which is used by the slide.
S306: after receiving the second option, the determined master is read from the target file.
In the embodiment of the invention, the first option and the second option are pushed, so that the initiative of a user can be fully exerted, and the user can decide whether to read the mother board which is not used by the slide. The first option and the second option are pushed to the user at the same time, specifically, a dialog box can be popped up in the screen of the electronic device of the user, prompt information and options are displayed in the dialog box, and as an example, the popped dialog box can prompt the user of problems existing in the target file and risks existing in the process of reading all the mother boards, the delete option is the second option, and the reserve option is the first option. The sequence in the dialog box automatically removes unused masters to increase the file opening speed, and instead of deleting unused masters of the target file from the target file, the unused masters are not read, i.e., the unused masters are not loaded in the opened target file.
S306: after receiving the second option, the determined master is read from the target file.
After the user clicks the second option, the electronic device receives the second option, and at this time, the determined master set is read from the target file, so that the file opening speed can be greatly increased, and the file opening efficiency can be improved.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slides and the mother boards used by the slides, then when the user selects to read only the mother boards used under the condition that the target number is larger than the preset number, only the determined mother boards are read, the read data quantity is reduced, the time required for reading the mother boards is further reduced, the file opening efficiency is improved, the initiative of the user can be fully exerted, and reasonable suggestions are provided for the user.
Fig. 5 is a fourth flowchart of a data reading method according to an embodiment of the present invention, where the method includes:
s501: an open instruction for a target file is obtained, wherein the target file contains a slide, a master and a layout.
S502: and determining the mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides.
S503: a target number is obtained, wherein the target number is the number of masters in the target file that are not used by the slides.
S504: it is judged whether the target number is greater than a preset number, if so, S505 is executed, and if not, S507 is executed.
S505: pushing a first option and a second option, wherein the first option is an option of reading a master which is not used by the slide, and the second option is an option of only reading the master which is used by the slide; after receiving the first option, S507 is performed, and after receiving the second option, S506 is performed.
S506: the determined master is read from the target file.
It should be noted that, in the embodiment of the present invention, S501 to S506 are the same as S301 to S306 in the above embodiment, and are not described herein.
S507: all masters contained are read from the target file.
When the target number is smaller than the preset number, it is indicated that the reading of unused masters from the target file does not have a particularly great influence on the efficiency of file opening, and in order to keep complete original data in the target file, all masters in the target file may be read.
When the first option is received, the user needs complete original data, and in order to meet the requirement of the user, all masters in the target file can be read.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slides and the mother boards used by the slides, then when the user selects to read only the mother boards used by the slides under the condition that the target number is larger than the preset number, only the determined mother boards are read, the read data quantity is reduced, the time required for reading the mother boards is further reduced, the file opening efficiency is improved, the initiative of the user can be fully exerted, and reasonable suggestions are provided for the user. And when the target number is smaller than or equal to the preset number, or the first option is received, reading all the masters in the target file, so that the complete original data in the target file can be kept.
The following describes a data reading method provided by the embodiment of the present invention with reference to fig. 6. After receiving an opening instruction of a file, starting to read the file, collecting information of all slides in the file, wherein the collected information of the slides is the identification of the slides and the corresponding relation between the slides and the mother plate used by the slides, and simultaneously collecting information of all mother plates, wherein the collected information of the mother plate can be the identification of the mother plate; then, traversing each mother plate, checking the usage condition of the mother plate, namely judging whether the mother plate is used by a slide, if yes, recording the mother plate identification of the mother plate, judging whether traversing is finished or not when the mother plate is not used by the slide, if not, continuing to execute the steps of traversing the mother plate, if not, judging whether the number of the mother plates which are recorded and not used by the slide is more than 600, if so, prompting a user to select, when the user selects to delete, reading the mother plates used by the slide from the file, when the user selects to reserve, reading all the mother plates from the file, if so, reading all the mother plates from the file, and finally, continuing to read other contents of the file.
Fig. 7 is a schematic structural diagram of a data reading device according to an embodiment of the present invention, where the device includes:
a first obtaining module 701, configured to obtain an opening instruction for a target file, where the target file includes a slide and a master;
a determining module 702, configured to determine, according to a correspondence between a pre-recorded slide and a master used by the slide, a master used by each slide in the target file;
a first reading module 703 for reading the determined master from the target file.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slide and the mother board used by the slide, and then, only the determined mother board is read, so that the read data volume is reduced, the time required for reading the mother board is further reduced, and the file opening efficiency is improved.
In one embodiment of the present invention, the apparatus may further include:
the first obtaining module is used for obtaining the target number, wherein the target number is the number of masters which are not used by the slides in the target file;
the judging module is used for judging whether the target quantity is larger than a preset quantity or not;
the first reading module 703 is specifically configured to read the determined master from the target file when the determination result of the determining module is greater than the predetermined threshold.
In one embodiment of the present invention, the apparatus may further include:
the pushing module is used for pushing a first option and a second option when the judging result of the judging module is larger than the judging result, wherein the first option is an option for reading a mother board which is not used by the slide, and the second option is an option for only reading the mother board which is used by the slide;
the first reading module 703 is specifically configured to read the determined master from the target file after receiving the second option.
In one embodiment of the present invention, the apparatus may further include:
a second reading module for determining whether the determination result of the determining module is less than or equal to
In case the PP174222 receives the first option, all masters contained are read from the target file.
In one embodiment of the invention, the second obtaining module is specifically configured to:
obtaining the total amount of the master contained in the target file;
the difference between the obtained total amount and the determined number of masters is taken as the target number.
In one embodiment of the invention, the second obtaining module is specifically configured to:
judging whether the master is used by a slide or not for each master contained in the target file;
if yes, recording a master mark of the master;
after the judgment for each master contained in the target file is completed, the total number of recorded master identifications is taken as the target number.
The embodiment of the present invention further provides an electronic device, as shown in fig. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801, when executing the program stored in the memory 803, implements the following steps:
obtaining an opening instruction aiming at a target file, wherein the target file comprises a slide, a mother plate and a format;
determining a mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides;
the determined master is read from the target file.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slide and the mother board used by the slide, and then, only the determined mother board is read, so that the read data volume is reduced, the time required for reading the mother board is further reduced, and the file opening efficiency is improved.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the data reading method of any of the above embodiments.
In the embodiment of the invention, after the opening instruction is obtained, the mother board used by each slide in the file to be opened can be determined according to the corresponding relation between the pre-recorded slide and the mother board used by the slide, and then, only the determined mother board is read, so that the read data volume is reduced, the time required for reading the mother board is further reduced, and the file opening efficiency is improved.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus/electronic device/computer readable storage medium embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of the method embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (12)
1. A method of reading data, the method comprising:
obtaining an opening instruction for a target file, wherein the target file comprises a slide and a master;
determining a mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides;
obtaining a target number, wherein the target number is the number of masters which are not used by slides in the target file;
judging whether the target number is larger than a preset number;
and if the data is larger than the target file, not reading the mother plate which is not used by the slide in the target file, and only reading the mother plate which is used by the slide in the target file.
2. The method according to claim 1, wherein in case that it is determined that the target number is greater than the preset number, the method further comprises:
pushing a first option and a second option, wherein the first option is an option of reading a master which is not used by a slide, and the second option is an option of only reading the master which is used by the slide;
after receiving the second option, performing the step of reading the determined master from the target file.
3. The method of claim 2, wherein, if the target number is less than or equal to the preset number, or if the first option is received, the method further comprises:
and reading all the contained masters from the target file.
4. The method of claim 1, wherein the obtaining the target number comprises:
obtaining the total amount of the master set contained in the target file;
the difference between the obtained total amount and the determined number of masters is taken as the target number.
5. The method of claim 1, wherein the obtaining the target number comprises:
judging whether the master is used by a slide or not for each master contained in the target file;
if not, recording the master mark of the master;
and after the judgment of each master contained in the target file is completed, taking the total number of recorded master identifications as a target number.
6. A data reading apparatus, the apparatus comprising:
the first obtaining module is used for obtaining an opening instruction for a target file, wherein the target file comprises a slide and a master plate;
the determining module is used for determining the mother plate used by each slide in the target file according to the corresponding relation between the pre-recorded slides and the mother plate used by the slides;
the second obtaining module is used for obtaining target quantity, wherein the target quantity is the quantity of mother boards which are not used by the slides in the target file;
the judging module is used for judging whether the target quantity is larger than a preset quantity or not;
and the first reading module is used for not reading the mother board which is not used by the slide in the target file from the target file and only reading the mother board which is used by the slide in the target file when the judging result of the judging module is larger than the judging result.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the pushing module is used for pushing a first option and a second option when the judging result of the judging module is larger than the judging result, wherein the first option is an option for reading a mother board which is not used by the slide, and the second option is an option for only reading the mother board which is used by the slide;
the first reading module is specifically configured to read the determined master set from the target file after receiving the second option.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the second reading module is used for reading all the contained masters and the corresponding formats of each read master from the target file under the condition that the judging result of the judging module is smaller than or equal to or the condition that the first option is received.
9. The apparatus according to claim 6, wherein the second obtaining module is specifically configured to:
obtaining the total amount of the master set contained in the target file;
the difference between the obtained total amount and the determined number of masters is taken as the target number.
10. The apparatus according to claim 6, wherein the second obtaining module is specifically configured to:
judging whether the master is used by a slide or not for each master contained in the target file;
if not, recording the master mark of the master;
and after the judgment of each master contained in the target file is completed, taking the total number of recorded master identifications as a target number.
11. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711446758.8A CN109977374B (en) | 2017-12-27 | 2017-12-27 | Data reading method, device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711446758.8A CN109977374B (en) | 2017-12-27 | 2017-12-27 | Data reading method, device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109977374A CN109977374A (en) | 2019-07-05 |
CN109977374B true CN109977374B (en) | 2023-11-28 |
Family
ID=67071722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711446758.8A Active CN109977374B (en) | 2017-12-27 | 2017-12-27 | Data reading method, device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977374B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105786811A (en) * | 2014-12-17 | 2016-07-20 | 珠海金山办公软件有限公司 | Method and device for acquiring slide format page |
CN105867885A (en) * | 2015-01-19 | 2016-08-17 | 珠海金山办公软件有限公司 | Method and device for storing slide file |
CN106557289A (en) * | 2015-09-29 | 2017-04-05 | 珠海金山办公软件有限公司 | A kind of lantern slide display packing, system and device |
CN107273341A (en) * | 2012-03-12 | 2017-10-20 | 微软技术许可有限责任公司 | Theme variant is provided in the user interface |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8166402B2 (en) * | 2005-05-13 | 2012-04-24 | Microsoft Corporation | User interface for managing master and layout relationships |
US8086963B2 (en) * | 2005-05-19 | 2011-12-27 | Microsoft Corporation | Inheritance model between masters, layouts and slides |
US7590939B2 (en) * | 2005-06-24 | 2009-09-15 | Microsoft Corporation | Storage and utilization of slide presentation slides |
-
2017
- 2017-12-27 CN CN201711446758.8A patent/CN109977374B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273341A (en) * | 2012-03-12 | 2017-10-20 | 微软技术许可有限责任公司 | Theme variant is provided in the user interface |
CN105786811A (en) * | 2014-12-17 | 2016-07-20 | 珠海金山办公软件有限公司 | Method and device for acquiring slide format page |
CN105867885A (en) * | 2015-01-19 | 2016-08-17 | 珠海金山办公软件有限公司 | Method and device for storing slide file |
CN106557289A (en) * | 2015-09-29 | 2017-04-05 | 珠海金山办公软件有限公司 | A kind of lantern slide display packing, system and device |
Also Published As
Publication number | Publication date |
---|---|
CN109977374A (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110347953B (en) | Page generation method, page generation device, computer equipment and storage medium | |
CN111539188B (en) | Note generation method, computing device, and computer storage medium | |
US7617450B2 (en) | Method, system, and computer-readable medium for creating, inserting, and reusing document parts in an electronic document | |
KR101122816B1 (en) | Method, apparatus, and computer-readable medium for managing specific types of content in an electronic document | |
CN110956016B (en) | Document content format adjusting method and device and electronic equipment | |
CN110442341B (en) | Interface configuration method and device of application program and terminal equipment | |
CN112233669B (en) | Lecture content prompting method and system | |
CN110347984B (en) | Policy page changing method and device, computer equipment and storage medium | |
CN107832052A (en) | Show the method, apparatus and storage medium and electronic equipment of preview page | |
CN110555073A (en) | data processing method and device, electronic equipment and storage medium | |
CN106528088A (en) | Method and device for addling control in online form | |
US10204080B2 (en) | Rich formatting for a data label associated with a data point | |
CN112052647B (en) | Document editing method and device, electronic equipment and readable storage medium | |
CN114296852B (en) | Method and device for displaying target page, electronic equipment and storage medium | |
CN109977374B (en) | Data reading method, device, electronic equipment and computer readable storage medium | |
CN106970758A (en) | Electronic document operation processing method, device and electronic equipment | |
CN110188297B (en) | Resource information display method, computing device and computer storage medium | |
CN109726166B (en) | Electronic book display method and device, computer equipment and readable storage medium | |
KR101498533B1 (en) | Component separate display based electronic document display device and method | |
CN110852045B (en) | Method and device for deleting document content, electronic equipment and storage medium | |
CN112487759B (en) | Document page number setting method, device, electronic device and storage medium | |
CN109331469A (en) | The method and electronic equipment of a kind of typing of language based on programming outpost information | |
CN110457659B (en) | Clause document generation method and terminal equipment | |
US10025464B1 (en) | System and method for highlighting dependent slides while editing master slides of a presentation | |
CN112329407B (en) | Method and device for adding data in form of document and electronic equipment |
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 |