CN106126056B - PowerPoint-based slide automatic creation method and device - Google Patents

PowerPoint-based slide automatic creation method and device Download PDF

Info

Publication number
CN106126056B
CN106126056B CN201610420616.3A CN201610420616A CN106126056B CN 106126056 B CN106126056 B CN 106126056B CN 201610420616 A CN201610420616 A CN 201610420616A CN 106126056 B CN106126056 B CN 106126056B
Authority
CN
China
Prior art keywords
slide
command bar
newly
built
function
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
CN201610420616.3A
Other languages
Chinese (zh)
Other versions
CN106126056A (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.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology 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 Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201610420616.3A priority Critical patent/CN106126056B/en
Publication of CN106126056A publication Critical patent/CN106126056A/en
Application granted granted Critical
Publication of CN106126056B publication Critical patent/CN106126056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

A slide automatic creating method based on PowerPoint comprises the following steps of receiving a user creating request, obtaining a current active document window object, obtaining a command bar object through the document window object, traversing control object names in the command bar object, judging whether the slide object is a new slide object, and calling an execution interface of the new slide object if the slide object is judged to be the new slide object. The problem of automatic creation of slides is solved.

Description

PowerPoint-based slide automatic creation method and device
Technical Field
The invention relates to the field of software application, in particular to a PowerPoint slide automatic creation method and device.
Background
At present, in the automatic operation of newly building a slide in PowerPoint, the Index of the currently selected slide is obtained first, and then a page is newly built behind the selected slide through a slide set. This method has the following disadvantages: 1) if the middle position of the two pages of slides is selected, there is no way to insert the middle of the two pages of slides. 2) The newly created slide does not have the theme style of the current presentation document, but is a completely blank slide page.
Disclosure of Invention
Therefore, a new method for automatically creating slides based on PowerPoint needs to be provided, so that the problem of automatically creating slides is solved.
In order to achieve the above object, the inventor provides a PowerPoint-based slide automatic creation method, which includes the following steps of receiving a user creation request, obtaining a currently active document window object, obtaining a command bar object through the document window object, traversing a control object name in the command bar object, judging whether the slide object is a new slide object, and calling an execution interface of the new slide object if the slide object is the new slide object.
Further, the method comprises the following steps: obtaining a documentwindowPtr current document window object pointer by calling a function GetActiveWindow through a PowerPoint object pointer;
a function GetCommandBass is called by the document window object pointer to obtain a _ CommandBassPtr command bar object pointer;
calling a function GetCount through the command bar object pointer to obtain the total number of the current command bar controls;
traversing the command bar through a function GetItem to obtain a CommandBarControlPtr command bar control object;
and acquiring the name of the control object of the command bar through a function GetaccName, and judging whether the control object is a newly-built slide control.
Specifically, the method comprises the following steps of calling an Execute function of a command bar control object and executing new operation if the new slide control is judged to be in an available state.
A slide automatic creation device based on PowerPoint comprises an object acquisition module, a traversal judgment module and a call execution module, wherein the object acquisition module is used for acquiring a current active document window object after receiving a user creation request, and acquiring a command bar object through the document window object, the traversal judgment module is used for traversing a control object name in the command bar object and judging whether the object is a newly-built slide object, and the call execution module is used for calling an execution interface of the newly-built slide object when the object is judged to be the newly-built slide object.
Further, the object obtaining module is configured to obtain a DocumentWindowPtr current document window object pointer by calling a function GetActiveWindow through a PowerPoint object pointer, obtain a _ commandbackprr command bar object pointer by calling a function GetCommandBars through the document window object pointer, and obtain a commandbackprlcontroptr command bar control object by traversing a command bar through a function GetItem;
the traversal judging module is used for obtaining the name of the command bar control object through a function GetaccName and judging whether the command bar control object is a newly-built slide control or not;
the call execution module is used for calling an Execute function of the command bar control object.
Specifically, the system comprises a new building module, wherein the new building module is used for calling an Execute function of a command bar control object to Execute new building operation when the new building slide control is judged to be in an available state.
Different from the prior art, the technical scheme can call the creation interface in the PowerPoint command bar by receiving the creation request of the user, solve the problem of automatic creation of slides, and can obtain a newly-created presentation with a unified theme.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an apparatus according to an embodiment of the present invention.
Description of reference numerals:
300. an object acquisition module;
302. traversing judgment module;
304. calling an execution module;
306. and building a module.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1, the method for automatically creating a slide based on PowerPoint according to the present invention includes steps of S100 receiving a user creation request, S102 obtaining a currently active document window object, S104 obtaining a command bar object through the document window object, S106 traversing a control object name in the command bar object, determining whether the slide object is a new slide object, and if the slide object is determined to be a new slide object, S108 calling an execution interface of the new slide object. Specifically, the user creation request may be a command symbol, and the source of the command symbol may be a signal sent by a user to the automatic creation apparatus, where the signal is a signal sent by an object such as a mouse, a keyboard, a laser pointer, or the like (e.g., a click, a button, or the like) that is activated by the user, after the user creation request is received, a document window of the presentation that is currently in an active state is obtained, a document object is obtained, and objects of the command bar of the presentation are obtained through the document object, where each document window has a corresponding command bar object, and if the corresponding command bar object is not distinguished through the document window, it is possible to obtain command bar objects of other document windows. This results in an operational document window that is not active. The command bar generally comprises a plurality of instruction controls, the name is traversed after the control object is obtained, whether the control object is a newly-built slide control or not is judged, and when the judgment is met, an execution interface of the newly-built slide control is conveniently accessed, and a slide page is newly built. By the method, the effect of automatically creating the slides is achieved.
In some other further embodiments, as shown in fig. 2, the method comprises the steps of: obtaining a documentwindowPtr current document window object pointer by calling a function GetActiveWindow through a PowerPoint object pointer;
a function GetCommandBass is called by the document window object pointer to obtain a _ CommandBassPtr command bar object pointer;
calling a function GetCount through the command bar object pointer to obtain the total number of the current command bar controls;
traversing the command bar through a function GetItem to obtain a CommandBarControlPtr command bar control object;
and acquiring the name of the control object of the command bar through a function GetaccName, and judging whether the control object is a newly-built slide control.
In the embodiment shown in fig. 2, the method starts with initializing a document object in step, after the document is successfully opened, obtaining a DocumentWindowPtr pointer currently activated with a document window object, then judging whether the document window object is NULL, if so, ending the method, if not, obtaining a command bar object _ commandbackptr, then judging whether the command bar object is NULL, if yes, ending, otherwise, obtaining the number of object command controls in the command bar, performing traversal operation according to the number of controls so as to control the number of cycles of traversal, obtaining a command control object commandbackcontrolptr, detecting the name of the command control object, judging whether the slide control object is a newly-built slide control, if so, performing new creation, otherwise, returning to continue traversal. By the method, the problem of automatically creating the slides is solved.
In a specific embodiment, the method comprises the following steps of calling an Execute function of a command bar control object and executing a new operation if the new slide control is judged to be in an available state. The internal execution flow of the Execute function, 1) obtains the previous slide, obtains the slide position (a), and obtains the subject of the slide (B). 2) A new slide (C) is inserted behind position a. 3) Determine if B is NULL and apply to slide C if B is not NULL. Therefore, the association with the upper and lower page formats can be performed by executing a call to the Execute function interface. The execution function in the command control object is an execution interface, and new construction operation is carried out by calling the execution interface, so that the generation of program operation errors is avoided, and the practicability and the safety of the method are improved.
Referring to fig. 3, the apparatus for automatically creating a slide based on PowerPoint may be operated in a computer equipped with PowerPoint, and may be an application program or a multiple implementation manner such as an optimization plug-in, the apparatus includes an object obtaining module 300, a traversal judging module 302, and a call executing module 304, where the object obtaining module 300 is configured to obtain a currently active document window object after receiving a user creation request, obtain a command bar object through the document window object, the traversal judging module 302 is configured to traverse a control object name in the command bar object, and judge whether the slide object is a new slide object, and the call executing module 304 is configured to call an execution interface of the new slide object when the command bar object is judged to be the new slide object. The device design achieves the effect of automatically creating the slides. The problem of slide automatic creation is solved.
In a further embodiment, the object obtaining module 300 is configured to obtain a DocumentWindowPtr current document window object pointer by calling a function getactionwindow through a PowerPoint object pointer, obtain a _ commandbackpointer command bar object pointer by calling a function getcommandobjects through the document window object pointer, and obtain a commandbackcommand bar command bar control object by traversing a command bar through a function GetItem;
the traversal judging module 302 is configured to obtain a name of a command bar control object through a function GetaccName, and judge whether the command bar control object is a newly-built slide control;
the call execution module 304 is used for calling an Execute function of the command bar control object. By the method, the problem of automatically creating the slides is better solved.
Specifically, the system comprises a new creating module 306, and the new creating module 306 is configured to call an Execute function of the command bar control object to perform a new creating operation when the new slide control is determined to be in the available state. The new construction operation is carried out by calling the execution interface, so that the generation of program operation errors is avoided, and the practicability and the safety of the device are improved.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrases "comprising … …" or "comprising … …" does not exclude the presence of additional elements in a process, method, article, or terminal that comprises the element. Further, herein, "greater than," "less than," "more than," and the like are understood to exclude the present numbers; the terms "above", "below", "within" and the like are to be understood as including the number.
As will be appreciated by one skilled in the art, the above-described embodiments may be provided as a method, apparatus, or computer program product. These embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. All or part of the steps in the methods according to the embodiments may be implemented by a program instructing associated hardware, where the program may be stored in a storage medium readable by a computer device and used to execute all or part of the steps in the methods according to the embodiments. The computer devices, including but not limited to: personal computers, servers, general-purpose computers, special-purpose computers, network devices, embedded devices, programmable devices, intelligent mobile terminals, intelligent home devices, wearable intelligent devices, vehicle-mounted intelligent devices, and the like; the storage medium includes but is not limited to: RAM, ROM, magnetic disk, magnetic tape, optical disk, flash memory, U disk, removable hard disk, memory card, memory stick, network server storage, network cloud storage, etc.
The various embodiments described above are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a computer apparatus to produce a machine, such that the instructions, which execute via the processor of the computer apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer apparatus to cause a series of operational steps to be performed on the computer apparatus to produce a computer implemented process such that the instructions which execute on the computer apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the embodiments have been described, once the basic inventive concept is obtained, other variations and modifications of these embodiments can be made by those skilled in the art, so that the above embodiments are only examples of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes using the contents of the present specification and drawings, or any other related technical fields, which are directly or indirectly applied thereto, are included in the scope of the present invention.

Claims (2)

1. An application program or an optimization plug-in running in a computer with PowerPoint receives a user creation request, acquires a current active document window object, acquires a command bar object through the document window object, traverses a control object name in the command bar object, judges whether the object is a newly-built slide object, and calls an execution interface of the newly-built slide object if the object is judged to be the newly-built slide object;
obtaining a document window object pointer of document window by calling function GetActiveWindow through PowerPoint object pointer;
a function GetCommandBass is called by the document window object pointer to obtain a _ CommandBassPtr command bar object pointer;
calling a function GetCount through the command bar object pointer to obtain the total number of the current command bar controls;
traversing the command bar through a function GetItem to obtain a CommandBarControlPtr command bar control object;
acquiring the name of the command bar control object through a function GetaccName, judging whether the command bar control object is a newly-built slide control or not, calling an Execute function of the command bar control object if the command bar control object is judged to be the newly-built slide control in an available state, and executing a newly-built operation;
the internal execution flow of the Execute function comprises the following steps: obtaining a previous slide, obtaining the position of the slide and obtaining the theme of the slide;
inserting a new slide at the back of the slide position, judging whether the theme of the slide is NULL or not, and if not, applying the theme of the slide to the new slide.
2. A slide automatic creation device based on PowerPoint is characterized in that the slide automatic creation device is an application program or an optimization plug-in running in a computer with PowerPoint, and comprises an object acquisition module, a traversal judgment module and a call execution module, wherein the object acquisition module is used for acquiring a currently active document window object after receiving a user creation request, acquiring a command bar object through the document window object, the traversal judgment module is used for traversing a control object name in the command bar object and judging whether the command bar object is a newly-built slide object, and the call execution module is used for calling an execution interface of the newly-built slide object when the command bar object is judged to be the newly-built slide object;
the object acquisition module is used for acquiring a documentwindowPtr current document window object pointer by calling a function GetActiveWindow through a PowerPoint object pointer, acquiring a _ CommandBasPtr command bar object pointer by calling a function GetCommandBass through a document window object pointer, and acquiring a CommandBarControlPtr command bar control object by traversing a command bar through a function GetItem;
the traversal judging module is used for obtaining the name of the command bar control object through a function GetaccName and judging whether the command bar control object is a newly-built slide control or not;
the call execution module is used for calling an Execute function of the command bar control object;
the system further comprises a newly-built module, wherein the newly-built module is used for calling an Execute function of a command bar control object and executing a newly-built operation when the newly-built slide control is judged to be in an available state;
the internal execution flow of the Execute function comprises the following steps: obtaining a previous slide, obtaining the position of the slide and obtaining the theme of the slide;
inserting a new slide at the back of the slide position, judging whether the theme of the slide is NULL or not, and if not, applying the theme of the slide to the new slide.
CN201610420616.3A 2016-06-13 2016-06-13 PowerPoint-based slide automatic creation method and device Active CN106126056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610420616.3A CN106126056B (en) 2016-06-13 2016-06-13 PowerPoint-based slide automatic creation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610420616.3A CN106126056B (en) 2016-06-13 2016-06-13 PowerPoint-based slide automatic creation method and device

Publications (2)

Publication Number Publication Date
CN106126056A CN106126056A (en) 2016-11-16
CN106126056B true CN106126056B (en) 2021-01-26

Family

ID=57270547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610420616.3A Active CN106126056B (en) 2016-06-13 2016-06-13 PowerPoint-based slide automatic creation method and device

Country Status (1)

Country Link
CN (1) CN106126056B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241600A (en) * 2016-12-23 2018-07-03 珠海金山办公软件有限公司 The pattern setting method and device of a kind of newly-built lantern slide
CN107562887B (en) * 2017-09-05 2020-09-04 北京华乐思教育科技有限公司 Resource reference system and method for assisting PPT course preparation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455843A (en) * 2010-10-21 2012-05-16 浪潮乐金数字移动通信有限公司 Method and device for operating and controlling power point (PPT) file
CN105528332A (en) * 2014-10-23 2016-04-27 珠海金山办公软件有限公司 A presentation file processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8977958B2 (en) * 2007-11-20 2015-03-10 Microsoft Technology Licensing, Llc Community-based software application help system
US8520000B2 (en) * 2008-07-02 2013-08-27 Icharts, Inc. Creation, sharing and embedding of interactive charts

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455843A (en) * 2010-10-21 2012-05-16 浪潮乐金数字移动通信有限公司 Method and device for operating and controlling power point (PPT) file
CN105528332A (en) * 2014-10-23 2016-04-27 珠海金山办公软件有限公司 A presentation file processing method and device

Also Published As

Publication number Publication date
CN106126056A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US10565293B2 (en) Synchronizing DOM element references
WO2019000630A1 (en) Multi-task scheduling method and system, application server and computer-readable storage medium
US10033835B2 (en) System, method, and device for remotely operating a server
CN109918055B (en) Application program generation method and device
US20170343983A1 (en) System and method for generating machining control data of numerical control machine tool
CN108304676B (en) Automatic reconstruction method for three-dimensional model of assembly body, terminal device and storage medium
WO2017113732A1 (en) Layout method and system for user interface control, and control method and system therefor
US20220350581A1 (en) Generating applications for versatile platform deployment
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
CN106126056B (en) PowerPoint-based slide automatic creation method and device
CN106557223B (en) Mobile terminal shortcut operation method and device
CN111127601A (en) Animation switching method and device, electronic equipment and storage medium
CN109086077A (en) A kind of operation method and device of application program
CN109558118B (en) Method, apparatus, device and storage medium for creating native components of a smart applet
CN116028035A (en) Code processing method, front-end page development system and electronic equipment
CN112783441B (en) Method and device for adjusting read-write speed limit of virtual machine disk and computing equipment
CN110221952B (en) Service data processing method and device and service data processing system
CN111913710A (en) Method and device for setting navigation bar
CN109542300B (en) Method and device for updating web directory, electronic equipment and storage medium
CN112287021A (en) Data real-time synchronization parameter generation method, data real-time synchronization parameter synchronization method, data real-time synchronization parameter generation device, data real-time synchronization parameter synchronization device, storage medium and terminal
CN109508370A (en) Opinions Extraction method, equipment and storage medium
CN103544017A (en) Method and device for achieving LAMMPS calculation tasks
CN114500718B (en) Cloud mobile phone management method and device
CN114385054B (en) Form filling method and device, electronic equipment and storage medium
CN113791856B (en) Method and device for long screen capture annotation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant