CN111831187B - Method and device for modifying presentation duration of presentation file and electronic equipment - Google Patents

Method and device for modifying presentation duration of presentation file and electronic equipment Download PDF

Info

Publication number
CN111831187B
CN111831187B CN201910320140.XA CN201910320140A CN111831187B CN 111831187 B CN111831187 B CN 111831187B CN 201910320140 A CN201910320140 A CN 201910320140A CN 111831187 B CN111831187 B CN 111831187B
Authority
CN
China
Prior art keywords
slide
duration
showing
time length
presentation
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
Application number
CN201910320140.XA
Other languages
Chinese (zh)
Other versions
CN111831187A (en
Inventor
区钺坚
黄志濠
刘耿介
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910320140.XA priority Critical patent/CN111831187B/en
Publication of CN111831187A publication Critical patent/CN111831187A/en
Application granted granted Critical
Publication of CN111831187B publication Critical patent/CN111831187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The embodiment of the invention provides a method and a device for modifying the showing duration of a presentation, and electronic equipment, comprising the following steps: receiving a showing time length modification instruction of a user; displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in a presentation; when new showing time length information of the target slide, which is input by a user in the showing time length modification interface, is received, the showing time length of the target slide is modified to be the new showing time length. In the embodiment of the invention, when the user needs to modify the showing time length of the specified slide in the presentation, new showing time length information can be directly input in the showing time length modification interface without performing the sparing showing operation again, so that the complexity of the user operation is reduced.

Description

Method and device for modifying presentation duration of presentation file and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for modifying a presentation duration of a presentation, and an electronic device.
Background
In the daily learning and communication process, in order to facilitate understanding and communication, the content of the document is usually presented in a presentation mode.
In the existing presentation making process, after a user performs a training and showing on slides in the presentation, the showing time length of each slide in the training and showing process can be recorded and displayed for the user to view.
In the existing method, the showing time length of each slide can be displayed only after the user performs the exercise showing on the slides in the presentation, and when the user needs to modify the showing time length of the specified slides in the presentation, the exercise showing operation can be performed again, so that the operation complexity of the user is high.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for modifying presentation duration of a presentation, and electronic equipment, so as to reduce the operation complexity of a user when modifying the presentation duration. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for modifying a presentation showing duration, where the method includes:
receiving a showing time length modification instruction of a user;
displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in a presentation;
when new showing time length information of the target slide, which is input by a user in the showing time length modification interface, is received, the showing time length of the target slide is modified to be the new showing time length.
Further, the step of receiving the instruction for modifying the showing duration of the user includes:
receiving a showing duration modification instruction given by a user in a mode of clicking a first preset button in a presentation editing page;
or receiving a showing duration modification instruction given by a mode of clicking a preset shortcut key of a keyboard by a user;
or receiving a showing duration modification instruction given by the user by clicking a second preset button in the right button menu of the mouse.
Further, the showing duration modification interface further includes: the total showing time length of the presentation is the sum of the showing time lengths of all slides in the presentation;
after the step of modifying the presentation duration of the target slide to the new presentation duration, the method further includes:
modifying the total showing duration of the presentation according to the difference between the showing duration of the target slide and the new showing duration;
after the step of displaying the show duration modification interface, the method further comprises:
when receiving a new showing total duration of the presentation, which is input by a user in the showing duration modification interface, calculating the new showing duration of each slide in the presentation according to a preset showing duration calculation method;
And modifying the showing time length of each slide to be the new showing time length of each slide.
Further, the showing duration modification interface further includes: page number information of each slide;
the step of calculating the new showing time length of each slide in the presentation according to the preset showing time length calculating method comprises the following steps:
acquiring the total number of pages of the slides in the presentation according to the page number information of each slide;
calculating a difference value between the new showing total duration of the presentation and the showing total duration of the presentation as a first difference value;
and according to a uniform distribution principle and a page number sequence principle from small to large, the first difference value is distributed to each slide in a scattered manner, and the new showing time length of each slide in the presentation file is obtained.
Further, the step of distributing the first difference value to each slide according to a uniform distribution principle and a page number from small to large order principle to obtain a new showing duration of each slide in the presentation file includes:
judging whether the first difference value is larger than 0;
when the first difference value is larger than 0, dividing the first difference value by the total number of pages to obtain a first quotient and a first remainder;
If the first remainder is 0, determining the sum of the showing time length of each slide and the first quotient as the new showing time length of each slide; if the first remainder is not 0, respectively distributing the first quotient to each slide, uniformly distributing the first remainder to part of slides according to the sequence of page numbers from small to large, and respectively obtaining new showing duration of each slide;
when the first difference value is smaller than 0, dividing the absolute value of the first difference value by the total number of pages to obtain a second quotient and a second remainder;
if the second remainder is 0, calculating a plurality of second differences between the showing time length of each slide and the second quotient, wherein each slide corresponds to one second difference; if the second difference value corresponding to each slide is greater than or equal to 0, determining the new showing duration of each slide as the second difference value corresponding to each slide;
if a first slide with a second difference less than 0 exists, determining a new showing duration of the first slide as 0; respectively distributing the second quotient to the second slides with the second difference value larger than 0, uniformly distributing the second difference value of the first slides to part of the second slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
If the second remainder is not 0, calculating a plurality of third differences between the showing duration of each slide and the second quotient; each slide corresponds to a third difference value; if the third difference value corresponding to each slide is greater than or equal to 0, respectively distributing the second quotient to each slide, uniformly distributing the second remainder to partial slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
if a third slide with a third difference less than 0 exists, determining a new showing duration of the third slide as 0; and respectively distributing the second quotient to the fourth slides with the third difference value larger than 0, uniformly distributing the second remainder and the third difference value of the third slides to part of the fourth slides according to the sequence of page numbers from small to large, and respectively obtaining the new showing duration of each slide.
Further, the showing duration modification interface further includes: and thumbnail images of the slides and title information of the slides.
In a second aspect, an embodiment of the present invention provides a device for modifying a presentation duration of a presentation, including:
The instruction receiving module is used for receiving a showing duration modification instruction of a user;
the interface display module is used for displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in the presentation;
and the first time length modification module is used for modifying the showing time length of the target slide into the new showing time length when receiving the new showing time length information of the target slide input by the user in the showing time length modification interface.
Further, the instruction receiving module is specifically configured to receive a showing duration modification instruction given by a user by clicking a first preset button in the presentation editing page; or receiving a showing duration modification instruction given by a mode of clicking a preset shortcut key of a keyboard by a user; or receiving a showing duration modification instruction given by the user by clicking a second preset button in the right button menu of the mouse.
Further, the showing duration modification interface further includes: the total showing time length of the presentation is the sum of the showing time lengths of all slides in the presentation;
the apparatus further comprises: the system comprises a total duration modification module, a duration calculation module and a second duration modification module;
The total duration modification module is configured to modify a total duration of the presentation according to a difference between the duration of the target slide and the new duration of the presentation after the duration of the target slide is modified to the new duration of the presentation;
the duration calculation module is used for calculating the new showing duration of each slide in the presentation according to a preset showing duration calculation method when receiving the new showing total duration of the presentation input by a user in the showing duration modification interface;
and the second duration modification module is used for modifying the showing duration of each slide to be the new showing duration of each slide.
Further, the showing duration modification interface further includes: page number information of each slide;
the duration calculation module comprises: the system comprises a total page number acquisition sub-module, a first difference value calculation sub-module and a projection duration acquisition sub-module;
the total page number acquisition sub-module is used for acquiring the total page number of the slides in the presentation according to the page number information of each slide;
the first difference calculating sub-module is used for calculating a difference value between the new showing total duration of the presentation and the showing total duration of the presentation as a first difference value;
And the showing time length obtaining submodule is used for distributing the first difference value to each slide according to a uniform distribution principle and a page number sequence principle from small to large so as to obtain new showing time length of each slide in the presentation.
Further, the projection duration obtaining submodule is specifically configured to:
judging whether the first difference value is larger than 0;
when the first difference value is larger than 0, dividing the first difference value by the total number of pages to obtain a first quotient and a first remainder;
if the first remainder is 0, determining the sum of the showing time length of each slide and the first quotient as the new showing time length of each slide; if the first remainder is not 0, respectively distributing the first quotient to each slide, uniformly distributing the first remainder to part of slides according to the sequence of page numbers from small to large, and respectively obtaining new showing duration of each slide;
when the first difference value is smaller than 0, dividing the absolute value of the first difference value by the total number of pages to obtain a second quotient and a second remainder;
if the second remainder is 0, calculating a plurality of second differences between the showing time length of each slide and the second quotient, wherein each slide corresponds to one second difference; if the second difference value corresponding to each slide is greater than or equal to 0, determining the new showing duration of each slide as the second difference value corresponding to each slide;
If a first slide with a second difference less than 0 exists, determining a new showing duration of the first slide as 0; respectively distributing the second quotient to the second slides with the second difference value larger than 0, uniformly distributing the second difference value of the first slides to part of the second slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
if the second remainder is not 0, calculating a plurality of third differences between the showing duration of each slide and the second quotient; each slide corresponds to a third difference value; if the third difference value corresponding to each slide is greater than or equal to 0, respectively distributing the second quotient to each slide, uniformly distributing the second remainder to partial slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
if a third slide with a third difference less than 0 exists, determining a new showing duration of the third slide as 0; and respectively distributing the second quotient to the fourth slides with the third difference value larger than 0, uniformly distributing the second remainder and the third difference value of the third slides to part of the fourth slides according to the sequence of page numbers from small to large, and respectively obtaining the new showing duration of each slide.
Further, the showing duration modification interface further includes: and thumbnail images of the slides and title information of the slides.
In a third aspect, an embodiment of the present invention 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 steps of any one of the presentation showing time length modification methods when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where instructions are stored, when the computer readable storage medium runs on a computer, to cause the computer to execute any one of the above-mentioned methods for modifying a presentation showing duration.
In a fifth aspect, embodiments of the present invention further provide a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the presentation showing duration modification methods described above.
The embodiment of the invention provides a method, a device and electronic equipment for modifying the showing duration of a presentation, which are used for receiving a showing duration modification instruction of a user; displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in a presentation; when new showing time length information of the target slide, which is input by a user in the showing time length modification interface, is received, the showing time length of the target slide is modified to be the new showing time length. In the embodiment of the invention, when the user needs to modify the showing time length of the specified slide in the presentation, new showing time length information can be directly input in the showing time length modification interface without performing the sparing showing operation again, so that the complexity of the user operation is reduced.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flow chart of a method for modifying presentation showing duration according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for modifying the showing duration of a presentation according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a playback duration modification interface in the embodiment of FIG. 2;
FIG. 4 is a flow chart of a method for obtaining a new length of a slide show in a presentation according to the embodiment shown in FIG. 2;
fig. 5 is a schematic structural diagram of a presentation showing time length modifying device according to an embodiment of the present invention;
fig. 6 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 reduce operation complexity when a user modifies the showing time length, the embodiment of the invention provides a method and a device for modifying the showing time length of a presentation and electronic equipment.
Referring to fig. 1, fig. 1 is a flowchart of a method for modifying a presentation showing duration, which specifically includes the following steps:
step 101, receiving a showing duration modification instruction of a user.
The user can give the modification instruction in different modes according to own habits, so that the method for receiving the projection duration modification instruction of the user can be various, and the method is not limited. For example, it may be:
receiving a showing duration modification instruction given by a user in a mode of clicking a first preset button in a presentation editing page; or receiving a showing duration modification instruction given by a mode of clicking a preset shortcut key of a keyboard by a user; or receiving a showing duration modification instruction given by the user by clicking a second preset button in the right button menu of the mouse.
Step 102, displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in the presentation.
The showing time length modification interface can comprise the showing time length of each slide in the presentation, the showing time length can be the showing time length in the last training showing process, the showing time length set by the user through the showing time length modification interface according to the self requirement, and the showing time length of the slides which are not set with the showing time length can be set to 0.
Further, to help the user quickly understand the content of each slide, so as to determine whether to modify the slide, and determine the modified showing duration, the showing duration modification interface may further include: thumbnail images of the slides, title information of the slides, and the like, for example: thumbnail images of each slide and main title content of each slide.
Step 103, when receiving new showing time length information of the target slide inputted by the user in the showing time length modification interface, modifying the showing time length of the target slide to be the new showing time length.
Specifically, the "confirm" and "cancel" buttons may be set in the show duration modification interface, when it is detected that the user inputs new show duration information of the target slide in the show duration modification interface and clicks the "confirm" button, the show duration modification interface disappears, and the new show duration information of the target slide input by the user is confirmed to be received, otherwise, the new show duration information input by the user is confirmed not to be received, and a specific manner for confirming the receipt of the new show duration information input by the user is not limited herein.
As can be seen from the above embodiments, when the user needs to modify the showing duration of the specified slide in the presentation, the embodiment of the present invention can directly input new showing duration information in the showing duration modification interface, without performing the sparing showing operation again, thereby reducing the complexity of the user operation.
In the embodiment of the invention, the showing time length modification interface can further comprise: when receiving the new total showing time length of the presentation file input by the user in the showing time length modification interface, the new showing time length of each slide in the presentation file can be calculated according to a preset showing time length calculation method, and the showing time length of each slide is modified to be the new showing time length of each slide.
Referring to fig. 2, fig. 2 is another flow chart of a method for modifying a presentation showing duration according to an embodiment of the present invention, and specific steps may include:
step 201, receiving a showing duration modification instruction of a user.
The content of step 201 is the same as that of step 101, and will not be described here again.
Step 202, displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in the presentation.
Referring to fig. 3, fig. 3 is a schematic diagram of a showing duration modification interface in this embodiment, where the showing duration modification interface includes, in addition to showing duration information of each slide, a total showing duration of a presentation, page number information of each slide, a thumbnail of each slide, and title information of each slide, where the total showing duration is a sum of showing durations of each slide in the presentation, and a duration unit is seconds(s).
Step 203, when receiving the new showing time length information of the target slide inputted by the user in the showing time length modification interface, modifying the showing time length of the target slide to the new showing time length.
The content of step 203 is the same as that of step 103, and will not be described here again.
Step 204, modifying the total presentation duration of the presentation according to the difference between the presentation duration of the target slide and the new presentation duration.
Taking fig. 3 as an example, when the user increases the showing time length of the 1 st slide from 3s to 5s and the 4 th slide from 0s to 1s, namely: the difference between the showing time length of the target slides 1 and 4 and the new showing time length is 3s, and accordingly, the showing total time length of the presentation is increased by 3s from 12s to 15s.
Step 205, when receiving a new total showing duration of the presentation, which is input by the user in the showing duration modification interface, the total number of pages of the slides in the presentation is obtained according to the page number information of each slide.
Step 206, calculating the difference between the new total duration of the presentation and the total duration of the presentation as a first difference.
Step 207, according to the uniform distribution principle and the order principle that the page numbers are from small to large, the first difference values are distributed to the slides in a scattered manner, and the new showing time length of each slide in the presentation is obtained.
Specifically, a ratio of the first difference value to the total duration of the presentation may be calculated, and then the duration of the presentation of each slide may be adjusted according to the ratio, so as to obtain a new duration of the presentation of each slide in the presentation, or may be: the method comprises the steps of firstly, uniformly distributing part of time lengths in a first difference value to each slide, and then distributing the rest part of time lengths which cannot be uniformly distributed to the part of slides according to the sequence of page numbers from small to large, so that new showing time lengths of the slides are obtained, and the specific method for obtaining the new showing time lengths of the slides in the presentation is not limited.
Step 208, modifying the length of the slide show to a new length of the slide show.
In the embodiment of the invention, when the user needs to modify the showing time length of the specified slide in the presentation, new showing time length information can be directly input in the showing time length modification interface without performing the sparing showing operation again, so that the complexity of the user operation is reduced. Meanwhile, when the user modifies the total duration of the presentation, the difference between the new total duration of the presentation and the original total duration of the presentation can be uniformly distributed to each slide according to the uniform distribution principle and the order principle of the page numbers from small to large, so that the variation range of the duration of the presentation of each slide is more uniform before and after the duration of the presentation is modified, and the use experience of the user is further improved.
Referring to fig. 4, in the embodiment shown in fig. 2, the new showing duration of each slide in the presentation may be obtained by:
in step 401, it is determined whether the first difference is greater than 0. When the first difference is greater than 0, step 402 is performed; when the first difference is not greater than 0, step 405 is performed;
step 402, dividing the first difference value by the total number of pages to obtain a first quotient and a first remainder. If the first remainder is 0, go to step 403; if the first remainder is not 0, step 404 is performed.
Step 403, determining the sum of the showing time length and the first quotient value of each slide as the new showing time length of each slide.
Step 404, a first quotient is respectively allocated to each slide, and the first remainder is uniformly allocated to part of the slides according to the order of the page numbers from small to large, so that new showing time lengths of the slides are respectively obtained.
For example, taking fig. 3 as an example, when the total duration increases by 14s, the first difference is 14s, the total number of pages of the slides is 4, the first quotient is 3, and the first remainder is 2s, at this time, 3 may be first allocated to each slide, that is, each slide showing duration increases by 3s, and then the first remainder 3 may be uniformly allocated to part of slides in order of page numbers from small to large: uniformly distributing 3s to the slides on the 1 st page, the 2 nd page and the 3 rd page, and finally obtaining the new showing duration of each slide as follows: page 1: 7s; page 2: 8s; page 3: 8s; page 4: 3s.
Step 405, dividing the absolute value of the first difference value by the total number of pages to obtain a second quotient and a second remainder. If the second remainder is 0, execute step 406; if the second remainder is not 0, step 409 is performed.
Step 406, calculating a plurality of second differences between the showing duration of each slide and the second quotient, wherein each slide corresponds to one second difference. If the second difference value corresponding to each slide is greater than or equal to 0, step 407 is executed; if there is a first slide with a second difference less than 0, step 408 is performed.
Step 407, determining the new showing duration of each slide as the second difference value corresponding to each slide.
Step 408, determining a new showing duration of the first slide to be 0; and respectively distributing the second quotient to the second slides with the second difference value larger than 0, uniformly distributing the second difference value of the first slides to part of the second slides according to the sequence of page numbers from small to large, and respectively obtaining new showing time lengths of the slides.
Also taking fig. 3 as an example, when the total duration decreases by 8s, the first difference is-8, the second quotient is 2s, and the second differences corresponding to the slides are sequentially: 1s, 2s, 3s and-2 s, wherein the first slides are the 4 th slide, the new showing time length of the 4 th slide is determined to be 0, the second quotient 2 is respectively allocated to the second slide with the second difference value larger than 0, namely the 1 st slide, the 2 nd slide and the 3 rd slide, the second difference value-2 of the first slide is uniformly allocated to part of the second slide, namely the 1 st slide and the 2 nd slide according to the sequence of page numbers from small to large, and the new showing time length of each slide is sequentially: 0s, 1s, 3s and 0s.
Step 409, calculating a plurality of third differences between the showing time length of each slide and the second quotient; each slide corresponds to a third difference value. If the third difference value corresponding to each slide is greater than or equal to 0, step 410 is executed; if there is a third slide with a third difference less than 0, step 411 is performed.
In step 410, the second quotient is respectively assigned to each slide, and the second remainder is uniformly assigned to part of the slides in the order of from the small page number to the large page number, so as to respectively obtain the new showing duration of each slide.
For example: the total 4 pages of slides of the demonstration document are displayed, and the showing duration of each page is as follows in sequence: 3s, 4s, 5s, 3s, when the total duration is reduced by 10s, the first difference value is-10 s, the second quotient value is 2, the second remainder is 2s, the second quotient value 2 is respectively allocated to each slide, the second remainder 2s is uniformly allocated to part of second slides, namely the 1 st slide and the 2 nd slide according to the sequence of page numbers from small to large, and the new showing duration of each slide is obtained by sequentially: 0s, 1s, 3s and 1s.
Step 411, determining a new showing duration of the third slide to be 0; and respectively distributing the second quotient to a fourth slide with a third difference value greater than 0, uniformly distributing the second remainder and the third difference value of the third slide to a part of the fourth slides according to the sequence of page numbers from small to large, and respectively obtaining new showing duration of each slide.
For example: the total 4 pages of slides of the demonstration document are displayed, and the showing duration of each page is as follows in sequence: 4s, 5s, 1s, when the total duration is reduced by 10s, the first difference is-10 s, the second quotient is 2, the second remainder is 2s, and the third difference corresponding to each slide is respectively: 2s, 3s and-1 s, at which point a third slide exists with a third difference less than 0: and 4 th slide, at this time, determining a new showing time length of the 4 th slide as 0s, and respectively assigning a second quotient value of 2 to the fourth slide with a third difference value of more than 0: the 1 st slide, the 2 nd slide and the 3 rd slide, and uniformly distributing the second remainder 2s and the third difference value-1 s of the third slide to part of the fourth slide in the order from small page number to large page number: the slide on page 1 obtains the new showing duration of each slide as follows: 1s, 2s, 3s and 0s.
When the user modifies the total showing time length of the presentation, the difference between the new total showing time length and the original total showing time length can be uniformly distributed to each slide according to the calculation method shown in fig. 4, so that the variation amplitude of the showing time length of each slide is more uniform before and after the modification of the showing time length, and the use experience of the user is further improved.
Based on the same inventive concept, according to the method for modifying the presentation showing time length provided by the above embodiment of the present invention, correspondingly, an embodiment of the present invention further provides a device for modifying the presentation showing time length, where a schematic structural diagram of the device is shown in fig. 5, and the device includes:
an instruction receiving module 501, configured to receive a projection duration modification instruction of a user;
the interface display module 502 is configured to display a presentation time length modification interface, where the presentation time length modification interface includes presentation time length information of each slide in the presentation;
a first duration modification module 503, configured to modify the duration of the presentation of the target slide to a new duration of the presentation when receiving new duration of the presentation of the target slide information input by the user in the duration of the presentation modification interface.
Further, the instruction receiving module is specifically configured to receive a showing duration modification instruction given by a user by clicking a first preset button in the presentation editing page; or receiving a showing duration modification instruction given by a mode of clicking a preset shortcut key of a keyboard by a user; or receiving a showing duration modification instruction given by the user by clicking a second preset button in the right button menu of the mouse.
Further, the showing duration modification interface further includes: the total showing time length of the presentation is the sum of the showing time lengths of all slides in the presentation;
the apparatus further comprises: the system comprises a total duration modification module, a duration calculation module and a second duration modification module;
the total duration modification module is used for modifying the showing duration of the target slide to be a new showing duration, and then modifying the showing total duration of the presentation according to the difference between the showing duration of the target slide and the new showing duration;
the time length calculation module is used for calculating the new showing time length of each slide in the presentation according to a preset showing time length calculation method when receiving the new showing total time length of the presentation input by a user in the showing time length modification interface;
and the second duration modification module is used for modifying the showing duration of each slide to be the new showing duration of each slide.
Further, the showing duration modification interface further includes: page number information of each slide;
the duration calculation module comprises: the system comprises a total page number acquisition sub-module, a first difference value calculation sub-module and a projection duration acquisition sub-module;
the total page number acquisition sub-module is used for acquiring the total page number of the slides in the presentation according to the page number information of each slide;
The first difference value calculating sub-module is used for calculating the difference value between the new showing total duration of the presentation and the showing total duration of the presentation as a first difference value;
and the showing time length obtaining sub-module is used for distributing the first difference value to each slide according to the uniform distribution principle and the page number sequence principle from small to large so as to obtain the new showing time length of each slide in the presentation.
Further, the projection duration obtaining submodule is specifically configured to:
judging whether the first difference value is larger than 0;
when the first difference value is larger than 0, dividing the first difference value by the total number of pages to obtain a first quotient and a first remainder;
if the first remainder is 0, determining the sum of the showing time length and the first quotient of each slide as the new showing time length of each slide; if the first remainder is not 0, respectively distributing the first quotient to each slide, uniformly distributing the first remainder to part of slides according to the sequence of page numbers from small to large, and respectively obtaining new showing time length of each slide;
when the first difference value is smaller than 0, dividing the absolute value of the first difference value by the total number of pages to obtain a second quotient and a second remainder;
if the second remainder is 0, calculating a plurality of second differences between the showing time length of each slide and the second quotient, wherein each slide corresponds to one second difference; if the second difference value corresponding to each slide is greater than or equal to 0, determining the new showing time length of each slide as the second difference value corresponding to each slide;
If there is a first slide with a second difference less than 0, determining a new showing duration of the first slide as 0; respectively distributing second quotient values to second slides with second difference values larger than 0, uniformly distributing the second difference values of the first slides to part of the second slides according to the sequence from small page numbers to large page numbers, and respectively obtaining new showing time lengths of the slides;
if the second remainder is not 0, calculating a plurality of third differences between the showing time length of each slide and the second quotient; each slide corresponds to a third difference value; if the third difference value corresponding to each slide is greater than or equal to 0, respectively distributing a second quotient to each slide, uniformly distributing a second remainder to part slides according to the sequence from the small page number to the large page number, and respectively obtaining new showing time length of each slide;
if there is a third slide with a third difference less than 0, determining a new showing duration of the third slide as 0; and respectively distributing the second quotient to a fourth slide with a third difference value greater than 0, uniformly distributing the second remainder and the third difference value of the third slide to a part of the fourth slides according to the sequence of page numbers from small to large, and respectively obtaining new showing duration of each slide.
Further, the showing duration modification interface further includes: thumbnail images of the respective slides and title information of the respective slides.
In the embodiment of the invention, when the user needs to modify the showing time length of the specified slide in the presentation, new showing time length information can be directly input in the showing time length modification interface without performing the sparing showing operation again, so that the complexity of the user operation is reduced.
Based on the same inventive concept, according to the method for modifying the presentation showing time length provided by the above embodiment of the present invention, correspondingly, the embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
receiving a showing time length modification instruction of a user;
displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in the presentation;
When new showing time length information of the target slide, which is input by a user in the showing time length modification interface, is received, the showing time length of the target slide is modified to be the new showing time length.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. 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 non-volatile memory (non-volatile memory), 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 for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the presentation showing duration modification method according to any one of the above embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the presentation duration modification method of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
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 the 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 the apparatus and electronic device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and references to the parts of the description of the method embodiments are only required.
The foregoing description is only 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 (13)

1. A method for modifying presentation duration of a presentation, comprising:
receiving a showing time length modification instruction of a user;
displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in a presentation;
when receiving new showing time length information of a target slide inputted by a user in the showing time length modification interface, modifying the showing time length of the target slide into the new showing time length;
after the step of modifying the presentation duration of the target slide to the new presentation duration, the method further includes:
and modifying the total showing duration of the presentation according to the difference between the showing duration of the target slide and the new showing duration.
2. The method of claim 1, wherein the step of receiving a presentation duration modification instruction of the user comprises:
Receiving a showing duration modification instruction given by a user in a mode of clicking a first preset button in a presentation editing page;
or receiving a showing duration modification instruction given by a mode of clicking a preset shortcut key of a keyboard by a user;
or receiving a showing duration modification instruction given by the user by clicking a second preset button in the right button menu of the mouse.
3. The method of claim 1, wherein the show duration modification interface further comprises: the total showing time length of the presentation is the sum of the showing time lengths of all slides in the presentation;
after the step of displaying the show duration modification interface, the method further comprises:
when receiving a new showing total duration of the presentation, which is input by a user in the showing duration modification interface, calculating the new showing duration of each slide in the presentation according to a preset showing duration calculation method;
and modifying the showing time length of each slide to be the new showing time length of each slide.
4. The method of claim 3, wherein the show duration modification interface further comprises: page number information of each slide;
The step of calculating the new showing time length of each slide in the presentation according to the preset showing time length calculating method comprises the following steps:
acquiring the total number of pages of the slides in the presentation according to the page number information of each slide;
calculating a difference value between the new showing total duration of the presentation and the showing total duration of the presentation as a first difference value;
and according to a uniform distribution principle and a page number sequence principle from small to large, the first difference value is distributed to each slide in a scattered manner, and the new showing time length of each slide in the presentation file is obtained.
5. The method of claim 4, wherein the step of distributing the first difference values to the slides in a uniform distribution manner and a page number order from small to large to obtain new showing durations of the slides in the presentation comprises:
judging whether the first difference value is larger than 0;
when the first difference value is larger than 0, dividing the first difference value by the total number of pages to obtain a first quotient and a first remainder;
if the first remainder is 0, determining the sum of the showing time length of each slide and the first quotient as the new showing time length of each slide; if the first remainder is not 0, respectively distributing the first quotient to each slide, uniformly distributing the first remainder to part of slides according to the sequence of page numbers from small to large, and respectively obtaining new showing duration of each slide;
When the first difference value is smaller than 0, dividing the absolute value of the first difference value by the total number of pages to obtain a second quotient and a second remainder;
if the second remainder is 0, calculating a plurality of second differences between the showing time length of each slide and the second quotient, wherein each slide corresponds to one second difference; if the second difference value corresponding to each slide is greater than or equal to 0, determining the new showing duration of each slide as the second difference value corresponding to each slide;
if a first slide with a second difference less than 0 exists, determining a new showing duration of the first slide as 0; respectively distributing the second quotient to the second slides with the second difference value larger than 0, uniformly distributing the second difference value of the first slides to part of the second slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
if the second remainder is not 0, calculating a plurality of third differences between the showing duration of each slide and the second quotient; each slide corresponds to a third difference value; if the third difference value corresponding to each slide is greater than or equal to 0, respectively distributing the second quotient to each slide, uniformly distributing the second remainder to partial slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
If a third slide with a third difference less than 0 exists, determining a new showing duration of the third slide as 0; and respectively distributing the second quotient to the fourth slides with the third difference value larger than 0, uniformly distributing the second remainder and the third difference value of the third slides to part of the fourth slides according to the sequence of page numbers from small to large, and respectively obtaining the new showing duration of each slide.
6. The method of claim 1, wherein the show duration modification interface further comprises: and thumbnail images of the slides and title information of the slides.
7. A presentation showing time length modifying apparatus, comprising:
the instruction receiving module is used for receiving a showing duration modification instruction of a user;
the interface display module is used for displaying a showing time length modification interface, wherein the showing time length modification interface comprises showing time length information of each slide in the presentation;
the first time length modification module is used for modifying the showing time length of the target slide into the new showing time length when receiving new showing time length information of the target slide input by a user in the showing time length modification interface;
The apparatus further comprises: a total duration modification module;
and the total duration modification module is used for modifying the total duration of the presentation according to the difference between the duration of the target slide and the new duration of the presentation after the duration of the target slide is modified to the new duration of the presentation.
8. The apparatus of claim 7, wherein the instruction receiving module is specifically configured to receive a show duration modification instruction given by a user by clicking a first preset button in a presentation editing page; or receiving a showing duration modification instruction given by a mode of clicking a preset shortcut key of a keyboard by a user; or receiving a showing duration modification instruction given by the user by clicking a second preset button in the right button menu of the mouse.
9. The apparatus of claim 7, wherein the show duration modification interface further comprises: the total showing time length of the presentation is the sum of the showing time lengths of all slides in the presentation;
the apparatus further comprises: a duration calculation module and a second duration modification module;
The duration calculation module is used for calculating the new showing duration of each slide in the presentation according to a preset showing duration calculation method when receiving the new showing total duration of the presentation input by a user in the showing duration modification interface;
and the second duration modification module is used for modifying the showing duration of each slide to be the new showing duration of each slide.
10. The apparatus of claim 9, wherein the show duration modification interface further comprises: page number information of each slide;
the duration calculation module comprises: the system comprises a total page number acquisition sub-module, a first difference value calculation sub-module and a projection duration acquisition sub-module;
the total page number acquisition sub-module is used for acquiring the total page number of the slides in the presentation according to the page number information of each slide;
the first difference calculating sub-module is used for calculating a difference value between the new showing total duration of the presentation and the showing total duration of the presentation as a first difference value;
and the showing time length obtaining submodule is used for distributing the first difference value to each slide according to a uniform distribution principle and a page number sequence principle from small to large so as to obtain new showing time length of each slide in the presentation.
11. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
the projection duration obtaining submodule is specifically configured to:
judging whether the first difference value is larger than 0;
when the first difference value is larger than 0, dividing the first difference value by the total number of pages to obtain a first quotient and a first remainder;
if the first remainder is 0, determining the sum of the showing time length of each slide and the first quotient as the new showing time length of each slide; if the first remainder is not 0, respectively distributing the first quotient to each slide, uniformly distributing the first remainder to part of slides according to the sequence of page numbers from small to large, and respectively obtaining new showing duration of each slide;
when the first difference value is smaller than 0, dividing the absolute value of the first difference value by the total number of pages to obtain a second quotient and a second remainder;
if the second remainder is 0, calculating a plurality of second differences between the showing time length of each slide and the second quotient, wherein each slide corresponds to one second difference; if the second difference value corresponding to each slide is greater than or equal to 0, determining the new showing duration of each slide as the second difference value corresponding to each slide;
If a first slide with a second difference less than 0 exists, determining a new showing duration of the first slide as 0; respectively distributing the second quotient to the second slides with the second difference value larger than 0, uniformly distributing the second difference value of the first slides to part of the second slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
if the second remainder is not 0, calculating a plurality of third differences between the showing duration of each slide and the second quotient; each slide corresponds to a third difference value; if the third difference value corresponding to each slide is greater than or equal to 0, respectively distributing the second quotient to each slide, uniformly distributing the second remainder to partial slides according to the sequence from the small page number to the large page number, and respectively obtaining the new showing duration of each slide;
if a third slide with a third difference less than 0 exists, determining a new showing duration of the third slide as 0; and respectively distributing the second quotient to the fourth slides with the third difference value larger than 0, uniformly distributing the second remainder and the third difference value of the third slides to part of the fourth slides according to the sequence of page numbers from small to large, and respectively obtaining the new showing duration of each slide.
12. The apparatus of claim 7, wherein the show duration modification interface further comprises: and thumbnail images of the slides and title information of the slides.
13. 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-6 when executing a program stored on a memory.
CN201910320140.XA 2019-04-19 2019-04-19 Method and device for modifying presentation duration of presentation file and electronic equipment Active CN111831187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910320140.XA CN111831187B (en) 2019-04-19 2019-04-19 Method and device for modifying presentation duration of presentation file and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910320140.XA CN111831187B (en) 2019-04-19 2019-04-19 Method and device for modifying presentation duration of presentation file and electronic equipment

Publications (2)

Publication Number Publication Date
CN111831187A CN111831187A (en) 2020-10-27
CN111831187B true CN111831187B (en) 2024-03-26

Family

ID=72912138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910320140.XA Active CN111831187B (en) 2019-04-19 2019-04-19 Method and device for modifying presentation duration of presentation file and electronic equipment

Country Status (1)

Country Link
CN (1) CN111831187B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033550A (en) * 2006-07-27 2008-02-14 Canon Software Inc Information processor, content output method, program, and recording medium
KR20090013344A (en) * 2007-08-01 2009-02-05 삼성전자주식회사 Portable terminal and method for composing and playing slide show thereof
CN101523392A (en) * 2006-10-11 2009-09-02 惠普开发有限公司 Personalized slide show generation
CN103019546A (en) * 2012-12-17 2013-04-03 珠海金山办公软件有限公司 Method and system for projecting slide and demonstration device
CN104376001A (en) * 2013-08-13 2015-02-25 腾讯科技(深圳)有限公司 PPT (PowerPoint) playing method and PPT playing device
CN105376651A (en) * 2014-08-29 2016-03-02 北京金山安全软件有限公司 Method and device for generating video slides
CN108040043A (en) * 2017-12-06 2018-05-15 中国地质大学(武汉) A kind of lantern slide control of authority plays new method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033550A (en) * 2006-07-27 2008-02-14 Canon Software Inc Information processor, content output method, program, and recording medium
CN101523392A (en) * 2006-10-11 2009-09-02 惠普开发有限公司 Personalized slide show generation
KR20090013344A (en) * 2007-08-01 2009-02-05 삼성전자주식회사 Portable terminal and method for composing and playing slide show thereof
CN103019546A (en) * 2012-12-17 2013-04-03 珠海金山办公软件有限公司 Method and system for projecting slide and demonstration device
CN104376001A (en) * 2013-08-13 2015-02-25 腾讯科技(深圳)有限公司 PPT (PowerPoint) playing method and PPT playing device
CN105376651A (en) * 2014-08-29 2016-03-02 北京金山安全软件有限公司 Method and device for generating video slides
CN108040043A (en) * 2017-12-06 2018-05-15 中国地质大学(武汉) A kind of lantern slide control of authority plays new method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王国胜.《OFFICE实战技巧精粹辞典》.中国青年出版,2019,第578-579页. *

Also Published As

Publication number Publication date
CN111831187A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111026392B (en) Method and device for generating guide page and electronic equipment
US10908928B2 (en) Rules-based workflow messaging
CN106888236B (en) Session management method and session management device
CN105812941A (en) Video playing method and device and electronic equipment
CN109492607B (en) Information pushing method, information pushing device and terminal equipment
CN109086105B (en) Page layout conversion method and device and electronic equipment
US9280401B2 (en) Type agnostic data engine
CN111831187B (en) Method and device for modifying presentation duration of presentation file and electronic equipment
CN110083355B (en) APP page processing method and device
CN110020264B (en) Method and device for determining invalid hyperlinks
TW201931178A (en) Impedance calculation method for circuit layout pattern and layout detection system
CN109358853B (en) Control showing method and device and readable storage medium
CN111246214B (en) Video decoding method and device
WO2019242287A1 (en) Information display method, and a terminal device and a network device thereof
CN110879738B (en) Operation step display method and device and electronic equipment
CN112835494A (en) Voice recognition result error correction method and device
US10614104B2 (en) Processing of data relating to entities
CN115645905B (en) Cursor display method and device, electronic equipment and storage medium
CN110049374A (en) A kind of focus frame determines method and device
CN109815469B (en) Text editing method, text editing device, medium and electronic equipment
CN114442880B (en) List scrolling method, device, electronic equipment and readable medium
CN112445390B (en) Submenu selection method and device and terminal equipment
CN111104626B (en) Information storage method and device
CN111079061B (en) Data processing method and electronic equipment
CN111144973B (en) Question ranking method and computer-readable storage medium

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