CN109977374A - Method for reading data, device, electronic equipment and computer readable storage medium - Google Patents
Method for reading data, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109977374A CN109977374A CN201711446758.8A CN201711446758A CN109977374A CN 109977374 A CN109977374 A CN 109977374A CN 201711446758 A CN201711446758 A CN 201711446758A CN 109977374 A CN109977374 A CN 109977374A
- Authority
- CN
- China
- Prior art keywords
- mother matrix
- lantern slide
- file destination
- option
- destination
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 239000011159 matrix material Substances 0.000 claims abstract description 250
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012356 Product development Methods 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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 method for reading data, device, electronic equipment and computer readable storage medium, method for reading data includes: to obtain the open instructions for being directed to file destination, wherein the file destination includes lantern slide and mother matrix;The corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide, determines mother matrix used in each lantern slide in the file destination;Mother matrix determined by being read from the file destination.Using the embodiment of the present invention, the efficiency for opening file can be improved.
Description
Technical field
The present invention relates to data reading techniques fields, more particularly to method for reading data, device, electronic equipment and calculating
Machine readable storage medium storing program for executing.
Background technique
Mother matrix is the lantern slide view or the page of all lantern slides or page formatting, comprising may alternatively appear in each lantern slide
On display elements, such as text placeholder, picture, Action Button, the object on mother matrix will appear in the phase of every lantern slide
With on position, mother matrix mentioned here refers in particular to slide master.Use the style for the unified lantern slide that mother matrix can be convenient.Institute
It creates in the PPT file of completion and owns comprising what all mother matrixs that PPT program carries were created with the user for creating the PPT file
Mother matrix.
When receiving a PPT File Open instruction, need to read all mother matrixs entrained by this PPT file, when
It when the quantity of mother matrix is more, reads the data such as whole mother matrixs and needs to consume a large amount of time, and then cause to open text
Part efficiency is relatively low.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of method for reading data, device, electronic equipment and computer-readable
Storage medium improves the efficiency for opening file to realize.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the invention provides a kind of method for reading data, method packets
It includes:
Obtain the open instructions for being directed to file destination, wherein file destination includes lantern slide and mother matrix;
The corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines every in file destination
Mother matrix used in one lantern slide;
Mother matrix determined by being read from file destination.
Optionally, in determining file destination after mother matrix used in each lantern slide, method further include:
Obtain destination number, wherein destination number is the quantity for the mother matrix not used by lantern slide in file destination;
Judge whether destination number is greater than preset quantity;
If it does, executing the step of reading identified mother matrix from file destination.
Optionally, in the case where judging that destination number is greater than preset quantity, method further include:
Pushing the first option and the second option, wherein the first option is the option for reading the mother matrix not used by lantern slide,
Second option is the option for only reading the mother matrix used by lantern slide;
After receiving the second option, the step of identified mother matrix is read from file destination is executed.
Optionally, it is less than or equal to preset quantity in destination number, or in the case where receiving the first option, method is also
Include:
All mother matrixs for being included are read from file destination.
Optionally, destination number is obtained, comprising:
Obtain the total amount of mother matrix included in file destination;
By the difference of total amount obtained and the quantity of identified mother matrix, as destination number.
Optionally, destination number is obtained, comprising:
For each mother matrix included in file destination, judge whether the mother matrix is used by lantern slide;
If so, recording the mother matrix mark of the mother matrix;
After the completion of for the judgement of each mother matrix included in file destination, by the total of the mother matrix recorded mark
Number, as destination number.
Second aspect, in order to achieve the above object, the embodiment of the invention also provides a kind of reading data device, device packets
It includes:
First obtain module, for obtains be directed to file destination open instructions, wherein file destination include lantern slide with
Mother matrix;
Determining module, the corresponding relationship between mother matrix for being used according to pre-recorded lantern slide and lantern slide, really
Set the goal mother matrix used in each lantern slide in file;
First read module, for reading identified mother matrix from file destination.
Optionally, device further include:
First obtains module, for obtaining destination number, wherein destination number is not used by lantern slide in file destination
Mother matrix quantity;
Judgment module, for judging whether destination number is greater than preset quantity;
First read module, specifically for the judging result of judgment module be greater than in the case where, from file destination
Mother matrix determined by reading.
Optionally, device further include:
Pushing module, for the judging result of judgment module be greater than in the case where, push the first option and second choosing
, wherein the first option is the option for reading the mother matrix not used by lantern slide, and the second option is only to read to be used by lantern slide
Mother matrix option;
First read module, specifically for reading identified mother matrix from file destination after receiving the second option.
Optionally, device further include:
Second read module, the judging result for judgment module are or to receive the less than or equal in the case where
In the case where one option, all mother matrixs for being included are read from file destination.
Optionally, second module is obtained, is specifically used for:
Obtain the total amount of mother matrix included in file destination;
By the difference of total amount obtained and the quantity of identified mother matrix, as destination number.
Optionally, second module is obtained, is specifically used for:
For each mother matrix included in file destination, judge whether the mother matrix is used by lantern slide;
If so, recording the mother matrix mark of the mother matrix;
After the completion of for the judgement of each mother matrix included in file destination, by the total of the mother matrix recorded mark
Number, as destination number.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the method step of any of the above-described reading data
Suddenly.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage medium, computer-readable storage mediums
It is stored with computer program in matter, the method step of any of the above-described reading data is realized when computer program is executed by processor
Suddenly.
Method for reading data, device, electronic equipment and computer readable storage medium provided in an embodiment of the present invention, can be with
After obtaining open instructions, according to the corresponding relationship of mother matrix used in pre-recorded lantern slide and lantern slide, determine wait beat
Then mother matrix used in each lantern slide in open file only reads identified mother matrix, reduces the data volume of reading,
And then reduce the time required for reading mother matrix, improve the efficiency for opening file.Certainly, implement any of the products of the present invention or
Method must be not necessarily required to reach simultaneously above all advantages.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the first flow diagram of method for reading data provided in an embodiment of the present invention;
Fig. 2 is second of flow diagram of method for reading data provided in an embodiment of the present invention;
Fig. 3 is the third flow diagram of method for reading data provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of dialog box provided in an embodiment of the present invention;
Fig. 5 is the 4th kind of flow diagram of method for reading data provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of method for reading data principle provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of reading data device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Lead to File Open low efficiency to solve the problems, such as to read whole mother matrixs in the prior art, improves and open file
Efficiency, the embodiment of the invention provides a kind of method for reading data, device, electronic equipment and computer readable storage mediums.
Method for reading data is provided for the embodiments of the invention first below to be illustrated.
Fig. 1 is the first flow diagram of method for reading data provided in an embodiment of the present invention, and method includes:
S101: the open instructions for being directed to file destination is obtained, wherein file destination includes lantern slide and mother matrix.
File destination refers to PPT file, specifically refers to that the PPT file being pre-created, file destination include magic lantern
Piece and mother matrix.Lantern slide mentioned here refers to the lantern slide being pre-created.The mother matrix that file destination is included refers to creation
All mother matrixs of included whole mother matrixs and user's creation when file destination in PPT program.
In embodiments of the present invention, user is received to open the operation of option for file destination selection or double-click target text
The operation of part, it is believed that be to obtain the open instructions for being directed to file destination.
S102: the corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines target text
Mother matrix used in each lantern slide in part.
The corresponding relationship between mother matrix that lantern slide and lantern slide use, which can be, to be recorded when creating file destination.
When creating file destination, lantern slide is created on the basis of mother matrix, i.e., mother matrix is applied to lantern slide, created in lantern slide
There are identical display elements for mother matrix used in Cheng Hou, the lantern slide created and the lantern slide.Create lantern slide when
It waits, can recorde the corresponding relationship between mother matrix used in created lantern slide and the lantern slide, illustratively, lantern slide
Corresponding relationship between 1 and the mother matrix A that uses of lantern slide 1 can be with are as follows: lantern slide 1: mother matrix A.
The corresponding relationship between mother matrix that the lantern slide and lantern slide recorded uses, can store in file destination,
First stored corresponding relationship is obtained from file destination to determine each in file destination further according to acquired corresponding relationship
Mother matrix used in lantern slide.It should be noted that the lantern slide in corresponding relationship mentioned here refers in file destination
Lantern slide.
S103: mother matrix determined by being read from file destination.
Whole mother matrixs of the included whole mother matrixs of PPT program and user's creation are contained in file destination, in these mother matrixs
Some mother matrixs are used by the lantern slide in file destination, some mother matrixs are not used by the lantern slide in file destination, not by
Mother matrix used in lantern slide in file destination can be referred to as the redundancy mother matrix of file destination.These redundancy mother matrixs are read,
It needs to consume the regular hour, and then opening file destination is caused to need to consume the plenty of time, so that file destination is opened
Very slowly, when redundancy mother matrix quantity is excessive, or even file destination of not opening.In order to solve this problem, target text is improved
The opening efficiency of part can only read identified mother matrix in determining file destination after mother matrix used in lantern slide.
In OOXML (technical specification that Microsoft is 2007 product development of Office) format specification, each mother matrix
Default creates a certain number of formats, for example, version or the PowerPoint (demonstration that WPS (a office software) 2015 is later
Manuscript software, abbreviation PPT) 2007 or more versions, 11 formats can be created for mother matrix when new document, it can also be with
When opening the document that creation is completed, 11 formats are created for the mother matrix of no corresponding format.It should be noted that not
That there are corresponding formats for each mother matrix in file destination, it is possible to the presence of the corresponding format of mother matrix, some mother matrixs are not
There are corresponding formats.During opening file, if reading a mother matrix, in the mother matrix, there are the feelings of corresponding format
Under condition, the corresponding format of the mother matrix necessarily can read.Format refers to that the content shown comprising format, positioning and all lantern slides accounts for
Position symbol.Placeholder is text, table, the chart, SmartArt pinned (including body text, Bulleted List and title)
(characteristic being newly added in MS Office Applications) figure, film, sound, picture and clip art are the appearance in the format of such content
Device.It also include the lantern slide of theme (color, font, effect and background) in format.
In the prior art, for each read mother matrix, judge to include the corresponding version of the mother matrix in file to be opened
Formula reads the corresponding format of the mother matrix if including, if not including, creates the corresponding format of the mother matrix.Of the invention real
It applies in example, after reading mother matrix, the step of also judging next step in the manner described above, has corresponding format in read mother matrix
In the case where, corresponding format is read, in the case where read mother matrix does not have corresponding format, it is corresponding to create the mother matrix
Format.Method for reading data provided by the embodiment of the present invention only reads identified mother matrix, not only compared in the prior art
The time reading mother matrix and consuming can be reduced, but also can reduce and read the time consumed by format and/or creation format,
It can be significantly reduced elapsed time required for opening file, and then improve the opening efficiency for opening file.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, only reads institute really
Fixed mother matrix, reduces the data volume of reading, and then reduces the time required for reading mother matrix, improves the effect for opening file
Rate.
Fig. 2 is second of flow diagram of method for reading data provided in an embodiment of the present invention, and method includes:
S201: the open instructions for being directed to file destination is obtained, wherein file destination includes lantern slide and mother matrix.
S202: the corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines target text
Mother matrix used in each lantern slide in part.
S203: destination number is obtained, wherein destination number is the number for the mother matrix not used by lantern slide in file destination
Amount.
Destination number can be the quantity of redundancy mother matrix in file destination, and destination number can be to be obtained in the following manner
:
Obtain the total amount of mother matrix included in file destination;
By the difference of total amount obtained and the quantity of identified mother matrix, as destination number.
In embodiments of the present invention, destination number be mother matrix included in file destination total amount and identified mother matrix
Quantity difference.The total amount of mother matrix included in file destination can recorde in file destination, be also possible to traverse target
What the mother matrix in file obtained.
The quantity of identified mother matrix is the quantity of mother matrix used in lantern slide in file destination, when target has been determined
Mother matrix used in each lantern slide in file, the quantity of identified mother matrix also determine therewith.
In an embodiment of the invention, obtaining destination number may include:
For each mother matrix included in file destination, judge whether the mother matrix is used by lantern slide;
If so, recording the mother matrix mark of the mother matrix;
After the completion of for the judgement of each mother matrix included in file destination, by the total of the mother matrix recorded mark
Number, as destination number.
Whether each mother matrix included in traversal file destination judges the mother matrix when traversing a mother matrix
Used by lantern slide, specific judgment method can for judge mother matrix used in pre-recorded lantern slide and lantern slide it
Between corresponding relationship whether there is the mother matrix, if it is present record the mother matrix mother matrix mark, traverse complete the case where
Under, count the quantity of recorded mother matrix mark.Mother matrix mark includes at least one of text, number, letter and character, can
Think number, the title etc. of mother matrix.
S204: judging whether destination number is greater than preset quantity, if it does, execute S205, if it is less than or be equal to, tie
Beam.
Preset quantity be it is pre-set, can be the empirical value being arranged according to the quantity of mother matrix in PPT program, can also
To be according to the data such as mother matrix quantity and opening time, the numerical value being calculated in the file opened in the past.Illustratively, it presets
Quantity can be 600.
Judge whether destination number is greater than preset quantity, is to judge read redundancy mother matrix in file destination whether can be tight in fact
Ghost image ring file opening efficiency, when destination number be greater than preset quantity, illustrate the mother matrix quantity being not used by file destination
Excessively, the time for opening file can be greatly increased by reading whole mother matrixs, therefore, can be only from file destination determined by reading
Mother matrix.
S205: mother matrix determined by being read from file destination.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, in destination number
In the case where greater than preset quantity, identified mother matrix is only read, reduces the data volume of reading, and then reduce reading mother matrix
The required time improves the efficiency for opening file.
Fig. 3 is the third flow diagram of method for reading data provided in an embodiment of the present invention, and method includes:
S301: the open instructions for being directed to file destination is obtained, wherein file destination includes lantern slide and mother matrix;
S302: the corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines target text
Mother matrix used in each lantern slide in part;
S303: destination number is obtained, wherein destination number is the number for the mother matrix not used by lantern slide in file destination
Amount.
S304: judging whether destination number is greater than preset quantity, if it does, execute S305, if it is less than or be equal to, tie
Beam.
It should be noted that in the embodiment of the present invention S301-S304 respectively with the S201-S204 phase in above-described embodiment
Together, herein without repeating.
S305: the first option of push and the second option, wherein the first option is to read the mother matrix not used by lantern slide
Option, the second option are the option for only reading the mother matrix used by lantern slide.
S306: after receiving the second option, identified mother matrix is read from file destination.
In embodiments of the present invention, the first option and the second option are pushed, the initiative of user can be given full play to, by with
Family decides whether to read the mother matrix not used by lantern slide.First option and the second option are to push simultaneously to user, specifically
, dialog box can be popped up in the screen of the electronic equipment of user, display reminding information and option, exemplary in dialog box
, the dialog box popped up can be as shown in figure 4, the problems of dialog box prompt ownership goal file and reading be all female
Risk existing for version, deleting option is exactly the second option mentioned here, and retaining option is exactly the first option mentioned here.It is right
Described sequence can remove the mother matrix that do not use automatically and improve File Open speed in words frame, be not by file destination not by
The mother matrix used is deleted from file destination, but does not read the mother matrix being not used by, that is, is not had in the file destination after opening
Load the mother matrix being not used by.
S306: after receiving the second option, identified mother matrix is read from file destination.
When the user clicks after the second option, electronic equipment is received by the second option, at this point, reading institute from file destination
Determining mother matrix can greatly accelerate File Open speed, improve File Open efficiency.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, in destination number
In the case where greater than preset quantity, when the mother matrix used is only read in user's selection, identified mother matrix is only read, is reduced
The data volume of reading, and then reduce the time required for reading mother matrix, improve the efficiency for opening file, moreover it is possible to give full play to use
The initiative at family, provides a user reasonable proposal.
Fig. 5 is the 4th kind of flow diagram of method for reading data provided in an embodiment of the present invention, and method includes:
S501: the open instructions for being directed to file destination is obtained, wherein file destination includes lantern slide, mother matrix and format.
S502: the corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines target text
Mother matrix used in each lantern slide in part.
S503: destination number is obtained, wherein destination number is the number for the mother matrix not used by lantern slide in file destination
Amount.
S504: judging whether destination number is greater than preset quantity, if it does, execute S505, if it is less than or be equal to, hold
Row S507.
S505: the first option of push and the second option, wherein the first option is to read the mother matrix not used by lantern slide
Option, the second option are the option for only reading the mother matrix used by lantern slide;After receiving the first option, S507 is executed,
After receiving the second option, S506 is executed.
S506: mother matrix determined by being read from file destination.
It should be noted that S501-S506 is identical as S301-S306 in above-described embodiment respectively in the embodiment of the present invention,
Herein without repeating.
S507: all mother matrixs for being included are read from file destination.
When destination number be less than preset quantity, illustrate to read the mother matrix being not used by from file destination to File Open
Efficiency influence is not that especially greatly, in order to make to retain complete initial data in file destination, can read in file destination and own
Mother matrix.
When receiving the first option, illustrate that user needs complete initial data that can read to meet the needs of users
Take all mother matrixs in file destination.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, in destination number
In the case where greater than preset quantity, when the mother matrix used by lantern slide is only read in user's selection, identified mother matrix is only read,
Reduce the data volume of reading, and then reduce the time required for reading mother matrix, improves the efficiency for opening file, moreover it is possible to sufficiently
The initiative for playing user, provides a user reasonable proposal.It is less than or equal to preset quantity in destination number, or is receiving the
In the case where one option, all mother matrixs in file destination are read, can make to retain complete initial data in file destination.
Method for reading data is provided to the embodiment of the present invention below by Fig. 6 to be illustrated.In the opening for receiving file
After instruction, start to read file, collect the information of all lantern slides in file, the information of collected lantern slide is lantern slide
Corresponding relationship between mother matrix used in mark, lantern slide and lantern slide, while the information of all mother matrixs is also collected, it is collected
Mother matrix information can be mother matrix mark, when information collect complete after, traverse all slideshow informations, record each unreal
Mother matrix used in lamp piece determines unreal specifically, being the corresponding relationship between the mother matrix according to used in lantern slide and lantern slide
Mother matrix used in lamp piece simultaneously records;Then, each mother matrix is traversed, checks the service condition of the mother matrix, that is, judges that the mother matrix is
It is no to be used by lantern slide, if so, the mother matrix mark of the mother matrix is recorded, in the mother matrix mark for having recorded mother matrix, or in mother matrix
Not in the situation used in lantern slide, judge whether traversal terminates, if do not terminated, continues to execute above-mentioned traversal mother matrix
Step, if terminated, whether the quantity for judging to record the mother matrix not used in lantern slide is greater than 600, if it does, mentioning
Show that user selects, when user selects to delete, then read mother matrix used in lantern slide from file, when user selects to protect
When staying, then all mother matrixs are read from file, if it is lower, all mother matrixs are read from file, finally, continuing to read file
Other content.
Fig. 7 is the structural schematic diagram of reading data device provided in an embodiment of the present invention, and device includes:
First obtains module 701, for obtaining the open instructions for being directed to file destination, wherein file destination includes magic lantern
Piece and mother matrix;
Determining module 702, the corresponding relationship between mother matrix for being used according to pre-recorded lantern slide and lantern slide,
Determine mother matrix used in each lantern slide in file destination;
First read module 703, for reading identified mother matrix from file destination.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, only reads institute really
Fixed mother matrix, reduces the data volume of reading, and then reduces the time required for reading mother matrix, improves the effect for opening file
Rate.
In an embodiment of the invention, device can also include:
First obtains module, for obtaining destination number, wherein destination number is not used by lantern slide in file destination
Mother matrix quantity;
Judgment module, for judging whether destination number is greater than preset quantity;
First read module 703, specifically for the judging result of judgment module be greater than in the case where, from file destination
Mother matrix determined by middle reading.
In an embodiment of the invention, device can also include:
Pushing module, for the judging result of judgment module be greater than in the case where, push the first option and second choosing
, wherein the first option is the option for reading the mother matrix not used by lantern slide, and the second option is only to read to be used by lantern slide
Mother matrix option;
First read module 703, it is identified female specifically for being read from file destination after receiving the second option
Version.
In an embodiment of the invention, device can also include:
Second read module, the judging result for judgment module are or to connect less than or equal in the case where
In the case that PP174222 receives the first option, all mother matrixs for being included are read from file destination.
In an embodiment of the invention, second module is obtained, is specifically used for:
Obtain the total amount of mother matrix included in file destination;
By the difference of total amount obtained and the quantity of identified mother matrix, as destination number.
In an embodiment of the invention, second module is obtained, is specifically used for:
For each mother matrix included in file destination, judge whether the mother matrix is used by lantern slide;
If so, recording the mother matrix mark of the mother matrix;
After the completion of for the judgement of each mother matrix included in file destination, by the total of the mother matrix recorded mark
Number, as destination number.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 8, include processor 801, communication interface 802,
Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804
At mutual communication,
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes following steps:
Obtain the open instructions for being directed to file destination, wherein file destination includes lantern slide, mother matrix and format;
The corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines every in file destination
Mother matrix used in one lantern slide;
Mother matrix determined by being read from file destination.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, only reads institute really
Fixed mother matrix, reduces the data volume of reading, and then reduces the time required for reading mother matrix, improves the effect for opening file
Rate.
In another embodiment of the present invention, a kind of computer readable storage medium, computer-readable storage are additionally provided
Dielectric memory contains computer program, and reading data any in above-described embodiment is realized when computer program is executed by processor
Method.
It in embodiments of the present invention, can be after obtaining open instructions, according to pre-recorded lantern slide and lantern slide institute
The corresponding relationship of the mother matrix used determines mother matrix used in each lantern slide in file to be opened, then, only reads institute really
Fixed mother matrix, reduces the data volume of reading, and then reduces the time required for reading mother matrix, improves the effect for opening file
Rate.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device/
For electronic equipment/computer readable storage medium embodiment, since it is substantially similar to the method embodiment, so the ratio of description
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The above is merely preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.It is all in this hair
Any modification, equivalent replacement, improvement and so within bright spirit and principle, are included within the scope of protection of the present invention.
Claims (14)
1. a kind of method for reading data, which is characterized in that the described method includes:
Obtain the open instructions for being directed to file destination, wherein the file destination includes lantern slide and mother matrix;
The corresponding relationship between mother matrix used according to pre-recorded lantern slide and lantern slide determines every in the file destination
Mother matrix used in one lantern slide;
Mother matrix determined by being read from the file destination.
2. the method according to claim 1, wherein each lantern slide institute in the determination file destination
After the mother matrix used, the method also includes:
Obtain destination number, wherein the destination number is the quantity for the mother matrix not used by lantern slide in the file destination;
Judge whether destination number is greater than preset quantity;
If it does, executing the step of reading identified mother matrix from the file destination.
3. according to the method described in claim 2, it is characterized in that, judging the destination number greater than the preset quantity
In the case where, the method also includes:
Pushing the first option and the second option, wherein first option is the option for reading the mother matrix not used by lantern slide,
Second option is the option for only reading the mother matrix used by lantern slide;
After receiving second option, the step of identified mother matrix is read from the file destination is executed.
4. according to the method described in claim 3, it is characterized in that, being less than or equal to the present count in the destination number
Amount, or in the case where receiving first option, the method also includes:
All mother matrixs for being included are read from the file destination.
5. according to the method described in claim 2, it is characterized in that, the acquisition destination number, comprising:
Obtain the total amount of mother matrix included in the file destination;
By the difference of total amount obtained and the quantity of identified mother matrix, as destination number.
6. according to the method described in claim 2, it is characterized in that, the acquisition destination number, comprising:
For each mother matrix included in the file destination, judge whether the mother matrix is used by lantern slide;
If so, recording the mother matrix mark of the mother matrix;
After the completion of for the judgement of each mother matrix included in the file destination, by the total of the mother matrix recorded mark
Number, as destination number.
7. a kind of reading data device, which is characterized in that described device includes:
First obtain module, for obtains be directed to file destination open instructions, wherein the file destination include lantern slide with
Mother matrix;
Determining module, the corresponding relationship between mother matrix for being used according to pre-recorded lantern slide and lantern slide, determines institute
State mother matrix used in each lantern slide in file destination;
First read module, for reading identified mother matrix from the file destination.
8. device according to claim 7, which is characterized in that described device further include:
First obtains module, for obtaining destination number, wherein the destination number is in the file destination not by lantern slide
The quantity of the mother matrix used;
Judgment module, for judging whether destination number is greater than preset quantity;
First read module, specifically for the judging result of the judgment module be greater than in the case where, from target text
Mother matrix determined by being read in part.
9. device according to claim 8, which is characterized in that described device further include:
Pushing module, for the judging result of the judgment module be greater than in the case where, push the first option and second choosing
, wherein first option is the option for reading the mother matrix not used by lantern slide, and second option is that only reading is unreal
The option for the mother matrix that lamp piece uses;
First read module, specifically for reading identified mother matrix from the file destination after receiving the second option.
10. according to right want 9 described in device, which is characterized in that described device further include:
Second read module, the judging result for the judgment module are less than or equal in the case where, or receiving
In the case where stating the first option, the mother matrix that all mother matrixs for being included and each reading are read from the file destination is corresponding
Format.
11. device according to claim 8, which is characterized in that described second obtains module, is specifically used for:
Obtain the total amount of mother matrix included in the file destination;
By the difference of total amount obtained and the quantity of identified mother matrix, as destination number.
12. device according to claim 8, which is characterized in that described second obtains module, is specifically used for:
For each mother matrix included in the file destination, judge whether the mother matrix is used by lantern slide;
If so, recording the mother matrix mark of the mother matrix;
After the completion of for the judgement of each mother matrix included in the file destination, by the total of the mother matrix recorded mark
Number, as destination number.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-6.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-6 any method and step when the computer program is executed by processor.
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 true CN109977374A (en) | 2019-07-05 |
CN109977374B 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 (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060259875A1 (en) * | 2005-05-13 | 2006-11-16 | Microsoft Corporation | User interface for managing master and layout relationships |
US20060265659A1 (en) * | 2005-05-19 | 2006-11-23 | Microsoft Corporation | Inheritance model between masters, layouts and slides |
US20060294469A1 (en) * | 2005-06-24 | 2006-12-28 | Microsoft Corporation | Storage and utilization of slide presentation slides |
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 |
-
2017
- 2017-12-27 CN CN201711446758.8A patent/CN109977374B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060259875A1 (en) * | 2005-05-13 | 2006-11-16 | Microsoft Corporation | User interface for managing master and layout relationships |
US20060265659A1 (en) * | 2005-05-19 | 2006-11-23 | Microsoft Corporation | Inheritance model between masters, layouts and slides |
US20060294469A1 (en) * | 2005-06-24 | 2006-12-28 | Microsoft Corporation | Storage and utilization of slide presentation slides |
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 |
---|---|
CN109977374B (en) | 2023-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110286896B (en) | Visual editing method, device, equipment and storage medium | |
US8775472B2 (en) | Dynamic presentation framework | |
US7870477B2 (en) | Method and system for portable data aggregation | |
CN108259939B (en) | New video push control method and device and server | |
CN102915319B (en) | The technology gathered for information electronics | |
US20190158934A1 (en) | Video frame capturing method and device | |
US20150334068A1 (en) | Message processing method and apparatus | |
RU2322687C2 (en) | System and method for providing multiple reproductions of content of documents | |
JP2005092879A5 (en) | ||
CN109710753B (en) | Method and device for generating shortcut information based on personalized theme and electronic equipment | |
CN108241672A (en) | A kind of method and apparatus of online displaying PowerPoint | |
US8719690B2 (en) | Method and system for automatic data aggregation | |
CN109582882A (en) | Search result shows method, apparatus and electronic equipment | |
CN110012358A (en) | Review of a film by the censor information processing method, device | |
WO2007071183A1 (en) | Method for inserting and playing a slide in a file | |
US20160103796A1 (en) | Rich Formatting for a Data Label Associated with a Data Point | |
CN103049547B (en) | A kind of iOS page processing method based on IDF document format | |
US9262239B2 (en) | User-creatable custom workflows | |
JP2006197356A (en) | Information providing method and device, information providing program, and storage medium stored with information providing program | |
CN109977374A (en) | Method for reading data, device, electronic equipment and computer readable storage medium | |
CN110929472A (en) | Document editing method and device, computer storage medium and terminal | |
CN111104777A (en) | Document editing method and device, computer storage medium and terminal | |
CN104731824A (en) | Picture display method and picture display device | |
CN113395598A (en) | Video distribution method and device, electronic equipment and computer readable storage medium | |
US8014883B2 (en) | Templates and style sheets for audio broadcasts |
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 |