Content of the invention
Present invention is primarily targeted at providing a kind of control adding method of application program and device, to solve existing skill
When user does not upgrade to level application it is impossible to add the problem of the control that user increases newly in art.
To achieve these goals, according to an aspect of the invention, it is provided a kind of control interpolation side of application program
Method.The control adding method of application according to the present invention program includes:In application program launching, obtain the control of user's request
Attribute information;And by the attribute information of control being added to the control that user's request is added on the user interface of application program
Part.
Further, the attribute information obtaining the control of user's request includes:The interpolation of the control of receive user demand please
Ask, add the control that user's request is added in request for request;The service interface of access application;And pass through service interface
Obtain the attribute information of the control of user's request.
Further, in application program launching, the control adding method of application program is additionally included in the use of application program
Conformation function area on the interface of family, functional areas are used for adding the control of user's request, wherein, by adding the attribute information of control
The control adding user's request in the user interface of application program includes:The attribute information of the control of user's request is added to
Functional areas;And by functional areas, the attribute information of control is added in the user interface of application program.
Further, application program is Office program, wherein, in application program launching, obtains the control of user's request
The attribute information of part includes:The interpolation request of the control of receive user demand, adds request and adds user's request for request
Control;Call the web Service interface of Office program;And the control of user's request is obtained by web Service interface
Attribute information.
Further, when Office program starts, the control adding method of application program is additionally included in Office program
User interface on construct Ribbon functional areas, wherein, by the attribute information of control being added to user circle of application program
The control adding user's request on face includes:The attribute information of the control of user's request is added to Ribbon functional areas;Pass through
Ribbon functional areas load the control of user's request;And the control of user's request is added to the self-defined boundary of Office program
Face.
To achieve these goals, according to a further aspect in the invention, there is provided a kind of control of application program adds dress
Put.The control adding set of application according to the present invention program includes:Acquiring unit, in application program launching, obtaining
The attribute information of the control of user's request;And adding device, for by the attribute information of control is added to application program
User interface on add user's request control.
Further, acquiring unit includes:First receiver module, for the interpolation request of the control of receive user demand,
Add the control that user's request is added in request for request;Access modules, for the service interface of access application;And the
One acquisition module, for obtaining the attribute information of the control of user's request by service interface.
Further, the control adding set of application program also includes the first structural unit, and the first structural unit is used for
During application program launching, conformation function area in the user interface of application program, functional areas are used for adding the control of user's request,
Wherein, adding device includes:First add module, for being added to functional areas by the attribute information of the control of user's request;With
And second add module, for the attribute information of control being added to by functional areas the user interface of application program.
Further, application program is Office program, and wherein, acquiring unit includes:Second receiver module, for receiving
The interpolation request of the control of user's request, adds the control that user's request is added in request for request;Calling module, is used for calling
The web Service interface of Office program;And second acquisition module, need for user is obtained by web Service interface
The attribute information of the control asked.
Further, the control adding set of application program also includes the second structural unit, for opening in Office program
When dynamic, the user interface of Office program constructs Ribbon functional areas, wherein, adding device includes:3rd add module,
For the attribute information of the control of user's request is added to Ribbon functional areas;Load-on module, for by Ribbon function
Area loads the control of user's request;And the 4th add module, for the control of user's request is added to Office program
Defined interface
By the present invention, the control adding method using application program includes:In application program launching, obtaining user needs
The attribute information of the control asked;And add user by being added to the attribute information of control in the user interface of application program
The control of demand, by application program launching, obtaining the attribute information of the control of user's request, and the attribute by this control
Information adds corresponding control in the user interface of application program, application program need not be upgraded, solve in user
It is impossible to add the problem of the control that user increases newly, thus having reached in application program launching when not upgrading to application program
The effect of the control of Shi Tianjia user's request.
Specific embodiment
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases
Mutually combine.To describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Embodiments provide a kind of control adding set of application program, this device can pass through computer equipment
Realize its function.
Fig. 1 is the structural representation of the control adding set of application program according to a first embodiment of the present invention.As Fig. 1 institute
Show, the control adding set of this application program includes acquiring unit 10 and adding device 20.
Acquiring unit 10 is used for obtaining the attribute information of the control of user's request in application program launching.
When user's degree has new demand to application program, then be accomplished by new control being added on application program with full
The current new demand of sufficient user.In application program launching, obtain the attribute information of the control of user's request, the attribute of this control
Information is exactly the description information of the control meeting application program loading.The attribute information obtaining the control of user's request can be logical
The service interface crossing application program obtains the attribute information of this control.For example, application program is Office office software, when
When Office starts, the attribute information of control can be obtained it is also possible to pass through other softwares circle by web Service interface
The service interface of surface rear end obtains.The attribute information obtaining control is in order to add this control.
Adding device 20 for by being added to interpolation user in the user interface of application program by the attribute information of control
The control of demand.
In application program launching, and after the attribute information of the control obtaining user's request, by by this attribute information
It is added in the user interface of application program, thus realizing the interpolation of the control to user's request.The attribute information of control is added
Being added in the user interface of application program can be this functional areas by being added to the attribute information of control in One function area
Can be the subregion on Application Program Interface, realize the interpolation to control by this functional areas.For example, Office office is soft
In part, can pass through to construct Ribbon functional areas, by the attribute information of control is added in this Ribbon functional areas,
To add the control of user's request.
According to embodiments of the present invention, by application program launching, obtaining the attribute information of the control of user's request, and
Corresponding control is added in the user interface of application program by the attribute information of this control, application program need not be risen
Level, solves the problems, such as when user does not upgrade to application program it is impossible to add the control that user increases newly, thus reaching
Add the effect of the control of user's request in application program launching.Control due to the application program of the embodiment of the present invention adds
Method can add control in application program launching, it is achieved thereby that dynamically adding the effect of control.
Fig. 2 is the structural representation of the control adding set of application program according to a second embodiment of the present invention.This enforcement
Example as shown in Fig. 2 the control adding set of this application program includes acquiring unit 10 and adding device 20, wherein, obtain single
Unit 10 includes the first receiver module 101, access modules 102 and the first acquisition module 103.The adding device 20 of this embodiment and figure
Adding device 20 function phase of 1 illustrated embodiment is same, does not repeat here.
First receiver module 101 is used for the interpolation request of the control of receive user demand, adds request and adds for request
The control of user's request.
When user has new demand to the function of application program, need to propose the interpolation request of control to application program,
In order to ask to add the control of user's request.For example, the interface of application program only has " checking weather " and " checking news "
Control, when user needs " checking physical culture ", proposes the interpolation request of control to application program.The control of receive user demand
Add request, to respond the demand of user.
Access modules 102 are used for the service interface of access application.
After the interpolation request of the control of receive user demand, the service interface of access application, this service interface
Can be the data-interface of the rear end that application program provides, in order to obtain the genus of the control of user's request from this service interface
Property information.
First acquisition module 103 is used for obtaining the attribute information of the control of user's request by service interface.
It is possible to pass through the attribute of the control of this interface captures user demand after the service interface of application program accesses success
Information.For example application program is Office office software, when Office starts, can obtain control by web Service interface
The attribute information of part is it is also possible to be obtained by the service interface of other software interface rear ends.Obtain control attribute information with
It is easy to add this control.
Fig. 3 is the structural representation of the control adding set of application program according to a third embodiment of the present invention.This enforcement
Example as shown in figure 3, the control adding set of this application program includes acquiring unit 10, the first structural unit 30 and adding device
20, wherein, adding device 20 includes the first add module 201 and the second add module 202.The acquiring unit 10 of this embodiment with
Acquiring unit 10 function phase of embodiment illustrated in fig. 1 is same, does not repeat here.
First structural unit 30 is used in application program launching, conformation function area in the user interface of application program,
Functional areas are used for adding the control of user's request.
Functional areas can be the subregion on Application Program Interface, can realize control is added by this functional areas
Plus.For example, in Office office software, need to add during control it is necessary to Ribbon work(is constructed on the user interface of Office
Energy area, in order to load the control of user's request.
First add module 201 is used for for the attribute information of the control of user's request being added to functional areas.
After obtaining the attribute information of control of user's request, the control of user's request is added in functional areas, thus
Be easy to by this functional areas by the attribute information layout of control in the user interface of application program.
Second add module 202 is used for the attribute information of control is added to the user interface of application program by functional areas
On.
Because functional areas are a part of region in the user interface of application program, by the attribute of the control of user's request
After information is added to functional areas it is possible to by functional areas by the attribute information layout of control application program user interface
On, thus realizing the dynamic interpolation to control.
Preferably, application program is Office program, and wherein, acquiring unit 10 includes the second receiver module, calling module
With the second acquisition module.
Second receiver module is used for the interpolation request of the control of receive user demand, adds request and adds user for request
The control of demand.
When application program is for Office program (that is to say Office office software program), when user is to Office program
Function when having new demand, need to propose the interpolation request of control to Office program, in order to ask to add user's request
Control.By the interpolation request of the control of receive user demand, to respond the demand of user.
Calling module is used for calling the web Service interface of Office program.
For Office program, its rear end service interface has a lot, here can by calling web Service interface, and
Access this web Service interface, it is possible to obtain the attribute letter of control from web Service interface after accessing checking
Breath.
Second acquisition module is used for obtaining the attribute information of the control of user's request by web Service interface.
After calling web Service interface, by accessing this interface, obtain control from web Service interface
Attribute information, adds corresponding control in order to dynamic.
Preferably, the control adding set of application program also includes the second structural unit, and this second structural unit is used for
When Office program starts, Ribbon functional areas are constructed on the user interface of Office program.Functional areas can be application journey
Subregion on sequence interface, can realize the interpolation to control by this functional areas.For example, in Office office software, need
Add during control it is necessary to construct Ribbon functional areas in the user interface of Office, in order to load the control of user's request.
Wherein, adding device 20 includes the 3rd add module, load-on module and the 4th add module.
3rd add module is used for for the attribute information of the control of user's request being added to Ribbon functional areas.
After obtaining the attribute information of control of user's request, the control of user's request is added to Ribbon functional areas
In, consequently facilitating by this Ribbon functional areas by the attribute information layout of control to the user interface of Office program.
Load-on module is used for loading the control of user's request by Ribbon functional areas.
The a part of region in user interface being Office program due to Ribbon functional areas, by the control of user's request
It is possible to the attribute information layout of control be existed by Ribbon functional areas after the attribute information of part is added to functional areas
In the user interface of Office program, thus realizing the dynamic interpolation to control.
4th add module is used for the control of user's request is added to the defined interface of Office program.
The defined interface of Office program is the part in the user interface of Office program, by Ribbon function
After area loads the control of user's request, realized by Ribbon functional areas the defined interface of Office program control dynamic
State is added.
The embodiment of the present invention additionally provides a kind of control adding method of application program.The method may operate in computer
On equipment.It should be noted that the control adding method of the application program of the embodiment of the present invention can pass through the embodiment of the present invention
The control adding set of the application program being provided executing, also may be used by the control adding set of the application program of the embodiment of the present invention
The control adding method of the application program being provided for the execution embodiment of the present invention.
Fig. 4 is the flow chart of the control adding method of application program according to a first embodiment of the present invention.As shown in figure 4,
It is as follows that the control adding method of this application program includes step:
Step S101, in application program launching, obtains the attribute information of the control of user's request.
When user's degree has new demand to application program, then be accomplished by new control being added on application program with full
The current new demand of sufficient user.In application program launching, obtain the attribute information of the control of user's request, the attribute of this control
Information is exactly the description information of the control meeting application program loading.The attribute information obtaining the control of user's request can be logical
The service interface crossing application program obtains the attribute information of this control.For example, application program is Office office software, when
When Office starts, the attribute information of control can be obtained it is also possible to pass through other softwares circle by web Service interface
The service interface of surface rear end obtains.The attribute information obtaining control is in order to add this control.
Step S102, adds user's request by being added to the attribute information of control in the user interface of application program
Control.
In application program launching, and after the attribute information of the control obtaining user's request, by by this attribute information
It is added in the user interface of application program, thus realizing the interpolation of the control to user's request.The attribute information of control is added
Being added in the user interface of application program can be this functional areas by being added to the attribute information of control in One function area
Can be the subregion on Application Program Interface, realize the interpolation to control by this functional areas.For example, Office office is soft
In part, can pass through to construct Ribbon functional areas, by the attribute information of control is added in this Ribbon functional areas,
To add the control of user's request.
According to embodiments of the present invention, by application program launching, obtaining the attribute information of the control of user's request, and
Corresponding control is added in the user interface of application program by the attribute information of this control, application program need not be risen
Level, solves the problems, such as when user does not upgrade to application program it is impossible to add the control that user increases newly, thus reaching
Add the effect of the control of user's request in application program launching.Control due to the application program of the embodiment of the present invention adds
Method can add control in application program launching, it is achieved thereby that dynamically adding the effect of control.
Fig. 5 is the flow chart of the control adding method of application program according to a second embodiment of the present invention.This embodiment
The control adding method of application program can be preferably real as one kind of the control adding method of the application program of above-described embodiment
Apply mode.As shown in figure 5, the control adding method of this application program to include step as follows:
Step S201, the interpolation request of the control of receive user demand, this interpolation asks to add user's request for request
Control.
When user has new demand to the function of application program, need to propose the interpolation request of control to application program,
In order to ask to add the control of user's request.For example, the interface of application program only has " checking weather " and " checking news "
Control, when user needs " checking physical culture ", proposes the interpolation request of control to application program.The control of receive user demand
Add request, to respond the demand of user.
Step S202, the service interface of access application.
After the interpolation request of the control of receive user demand, the service interface of access application, this service interface
Can be the data-interface of the rear end that application program provides, in order to obtain the genus of the control of user's request from this service interface
Property information.
Step S203, obtains the attribute information of the control of user's request by service interface.
It is possible to pass through the attribute of the control of this interface captures user demand after the service interface of application program accesses success
Information.For example application program is Office office software, when Office starts, can obtain control by web Service interface
The attribute information of part is it is also possible to be obtained by the service interface of other software interface rear ends.Obtain control attribute information with
It is easy to add this control.
Step S204, adds user's request by being added to the attribute information of control in the user interface of application program
Control.
In application program launching, and after the attribute information of the control obtaining user's request, by by this attribute information
It is added in the user interface of application program, thus realizing the interpolation of the control to user's request.The attribute information of control is added
Being added in the user interface of application program can be this functional areas by being added to the attribute information of control in One function area
Can be the subregion on Application Program Interface, realize the interpolation to control by this functional areas.For example, Office office is soft
In part, can pass through to construct Ribbon functional areas, by the attribute information of control is added in this Ribbon functional areas,
To add the control of user's request.
Fig. 6 is the flow chart of the control adding method of application program according to a third embodiment of the present invention.This embodiment
The control adding method of application program can be preferably real as one kind of the control adding method of the application program of above-described embodiment
Apply mode.As shown in fig. 6, the control adding method of this application program to include step as follows:
Step S301, in application program launching, conformation function area in the user interface of application program, this functional areas is used
In the control adding user's request.
Functional areas can be the subregion on Application Program Interface, can realize control is added by this functional areas
Plus.For example, in Office office software, need to add during control it is necessary to Ribbon work(is constructed on the user interface of Office
Energy area, in order to load the control of user's request.
Step S302, obtains the attribute information of the control of user's request.
When user's degree has new demand to application program, then be accomplished by new control being added on application program with full
The current new demand of sufficient user.In application program launching, obtain the attribute information of the control of user's request, the attribute of this control
Information is exactly the description information of the control meeting application program loading.The attribute information obtaining the control of user's request can be logical
The service interface crossing application program obtains the attribute information of this control.For example, application program is Office office software, when
When Office starts, the attribute information of control can be obtained it is also possible to pass through other softwares circle by web Service interface
The service interface of surface rear end obtains.The attribute information obtaining control is in order to add this control.
Step S303, the attribute information of the control of user's request is added to functional areas.
After obtaining the attribute information of control of user's request, the control of user's request is added in functional areas, thus
Be easy to by this functional areas by the attribute information layout of control in the user interface of application program.
Step S304, by functional areas, the attribute information of control is added in the user interface of application program.
Because functional areas are a part of region in the user interface of application program, by the attribute of the control of user's request
After information is added to functional areas it is possible to by functional areas by the attribute information layout of control application program user interface
On, thus realizing the dynamic interpolation to control.
Fig. 7 is the flow chart of the control adding method of application program according to a fourth embodiment of the present invention.This embodiment
The control adding method of application program can be preferably real as one kind of the control adding method of the application program of above-described embodiment
Apply mode.As shown in fig. 7, the control adding method of this application program to include step as follows:
Step S401, the interpolation request of the control of receive user demand, add request and add user's request for request
Control.When application program is for Office program (that is to say Office office software program), when user is to Office program
When function has new demand, need to propose the interpolation request of control to Office program, in order to ask to add the control of user's request
Part.By the interpolation request of the control of receive user demand, to respond the demand of user.
Step S402, calls the web Service interface of Office program.
For Office program, its rear end service interface has a lot, here can by calling web Service interface, and
Access this web Service interface, it is possible to obtain the attribute letter of control from web Service interface after accessing checking
Breath.
Step S403, obtains the attribute information of the control of user's request by web Service interface.
After calling web Service interface, by accessing this interface, obtain control from web Service interface
Attribute information, adds corresponding control in order to dynamic.
Step S404, adds user's request by being added to the attribute information of control in the user interface of application program
Control.
In application program launching, and after the attribute information of the control obtaining user's request, by by this attribute information
It is added in the user interface of application program, thus realizing the interpolation of the control to user's request.The attribute information of control is added
Being added in the user interface of application program can be this functional areas by being added to the attribute information of control in One function area
Can be the subregion on Application Program Interface, realize the interpolation to control by this functional areas.For example, Office office is soft
In part, can pass through to construct Ribbon functional areas, by the attribute information of control is added in this Ribbon functional areas,
To add the control of user's request.
It should be noted that the Office program in the embodiment of the present invention can be arbitrary Office office software journey
Sequence, such as Word, Excel etc..Certainly the control adding method of the embodiment of the present invention can also be applied in any application
On, the present embodiment does not have improper restriction to the present invention.
Preferably, when Office program starts, the control adding method of application program is additionally included in Office program
Ribbon functional areas are constructed, functional areas can be the subregion on Application Program Interface, can pass through this work(in user interface
The interpolation to control can be realized in area.For example, in Office office software, need to add during control it is necessary to user in Office
Ribbon functional areas are constructed, in order to load the control of user's request on interface.
Wherein, step S204 includes step S2041 and step S2042:
Step S2041, the attribute information of the control of user's request is added to Ribbon functional areas.
After obtaining the attribute information of control of user's request, the control of user's request is added to Ribbon functional areas
In, consequently facilitating by this Ribbon functional areas by the attribute information layout of control to the user interface of Office program.
Step S2042, loads the control of user's request by Ribbon functional areas.
The a part of region in user interface being Office program due to Ribbon functional areas, by the control of user's request
It is possible to the attribute information layout of control be existed by Ribbon functional areas after the attribute information of part is added to functional areas
In the user interface of Office program, thus realizing the dynamic interpolation to control.
Step S2042, the control of user's request is added to the defined interface of Office program.
The defined interface of Office program is the part in the user interface of Office program, by Ribbon function
After area loads the control of user's request, realized by Ribbon functional areas the defined interface of Office program control dynamic
State is added.
It should be noted that the step that illustrates of flow process in accompanying drawing can be in such as one group of computer executable instructions
Execute in computer system, and although showing logical order in flow charts, but in some cases, can be with not
It is same as the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general
Computing device realizing, they can concentrate on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored
To be executed by computing device in the storage device, or they be fabricated to each integrated circuit modules respectively, or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention be not restricted to any specific
Hardware and software combines.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.