Summary of the invention
Embodiments provide a kind of document header footer method of adjustment and device, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced。
A kind of document header footer method of adjustment that the embodiment of the present invention provides, it is characterised in that including:
After response headerfooter pattern, the positional information foundation generating the headerfooter regional frame of rectangular frame form, the border of described regional frame and headerfooter has annexation;
The described border of described regional frame is stretched/shrinks adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the described regional frame after stretching/contraction。
Alternatively,
After response headerfooter pattern, the positional information foundation generating the headerfooter regional frame of rectangular frame form, the border of described regional frame and headerfooter has annexation to specifically include:
The described headerfooter pattern of response is judged, if newly inserted pattern, then generate regional frame described in the one of blank described rectangular frame form, if headerfooter edit pattern, then generate another described regional frame based on the described positional information of presently described headerfooter。
Alternatively,
Stretch/shrink adjustment to the described border of described regional frame so that the zone position information of headerfooter carry out with stretch/shrink after the positional information on described border of described regional frame carry out corresponding adjustment and specifically include:
By mouse action cursor, the four edges on described border is pulled adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the described border of the described regional frame after stretching/contraction。
Alternatively,
The described border of described regional frame is stretched/shrinks adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the described border of the described regional frame after stretching/contraction and specifically includes:
By touch operation cursor, the four edges on described border is pulled adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the described border of the described regional frame after stretching/contraction。
Alternatively,
Described positional information includes margin, described apical position, described bottom position。
Alternatively,
The described border of described regional frame is stretched/shrinks and is adjusted to upper and lower, left and right four direction。
A kind of document header footer adjusting apparatus that the embodiment of the present invention provides, including:
Generation module, after being used for responding headerfooter pattern, the positional information foundation generating the headerfooter regional frame of rectangular frame form, the border of described regional frame and headerfooter has annexation;
Region adjusting module, for stretching/shrink adjustment to the described border of described regional frame so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the described regional frame after stretching/contraction。
Alternatively,
Described generation module, specifically for the described headerfooter pattern of response is judged, if newly inserted pattern, then generate regional frame described in the one of blank described rectangular frame form, if headerfooter edit pattern, then generate another described regional frame based on the described positional information of presently described headerfooter。
Alternatively,
Described region adjusting module specifically includes:
First adjusts submodule, for the four edges on described border being pulled adjustment by mouse action cursor so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the described border of the described regional frame after stretching/contraction。
Alternatively,
Described region adjusting module specifically includes:
Second adjusts submodule, for the four edges on described border being pulled adjustment by touch operation cursor so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the described border of the described regional frame after stretching/contraction。
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of document header footer method of adjustment provided in the embodiment of the present invention and device, wherein method includes: after response headerfooter pattern, the positional information foundation generating the headerfooter regional frame of rectangular frame form, the border of regional frame and headerfooter has annexation;The border of regional frame is stretched/shrinks adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the regional frame after stretching/contraction。In the present embodiment, the headerfooter regional frame of the rectangular frame form having annexation is set up by generating the positional information on its border and headerfooter, and the border of regional frame is stretched/shrinks adjustment, just the region adjustment of headerfooter can be directly realized by, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced。
Detailed description of the invention
Embodiments provide a kind of document header footer method of adjustment and device, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced。
For making the goal of the invention of the present invention, feature, the advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only a part of embodiment of the present invention, and not all embodiment。Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
Referring to Fig. 1, an embodiment of a kind of document header footer method of adjustment provided in the embodiment of the present invention includes:
101, after response headerfooter pattern, the positional information foundation generating the headerfooter regional frame of rectangular frame form, the border of regional frame and headerfooter has annexation;
In the present embodiment, after user opens document by control end, such as WPS document etc., user triggers headerfooter pattern, after then controlling end response headerfooter pattern, generate the headerfooter regional frame of rectangular frame form, and the positional information foundation of the border of regional frame and headerfooter has annexation, aforesaid positional information includes margin, the margin of such as document, apical position, bottom position, the positional information of the left and right end of headerfooter is consistent with the margin of document under normal circumstances。
It should be noted that, the positional information of the border of aforesaid regional frame and headerfooter set up have annexation can be with margin, apical position, bottom position four apex coordinates, the headerfooter regional frame that modeling is formed, the wire frame of this regional frame can be solid box, it is also possible to be broken box。
It is understood that aforesaid control end can be the PC end being mounted with documentation program, or intelligent terminal, for instance panel computer etc., does not specifically limit herein。
102, the border of regional frame is stretched/shrinks adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the regional frame after stretching/contraction。
When response headerfooter pattern, and after generating the headerfooter regional frame of rectangular frame form, need to stretch/shrink adjustment to the border of regional frame, the zone position information making headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the regional frame after stretching/contraction, further, it can be the adjustment for the one or more directions in the four direction of upper and lower, left and right that the border of regional frame stretches/shrink adjustment。
It should be noted that the mode that the aforesaid border to regional frame stretched/shrank adjustment will specifically be described in subsequent embodiment, repeat no more herein。
In the present embodiment, the headerfooter regional frame of the rectangular frame form having annexation is set up by generating the positional information on its border and headerfooter, and the border of regional frame is stretched/shrinks adjustment, just the region adjustment of headerfooter can be directly realized by, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced。
The above is that the process to document header footer method of adjustment is described in detail, book is searched below by the mode that the border of regional frame stretches/shrinks adjustment is carried out detailed face, referring to Fig. 2, another embodiment of a kind of document header footer method of adjustment provided in the embodiment of the present invention includes:
201, the headerfooter pattern of response is judged, if newly inserted pattern, then perform step 202, if headerfooter edit pattern, then perform step 203;
In the present embodiment, after user opens document by control end, for instance WPS document etc., user triggers headerfooter pattern, then control the end headerfooter pattern to response and judge, if newly inserted pattern, then perform step 202, if headerfooter edit pattern, then perform step 203。
It should be noted that aforesaid control end can be the PC end being mounted with documentation program, or intelligent terminal, for instance panel computer etc., does not specifically limit herein。
202, a regional frame of blank rectangular frame form is generated;
After the headerfooter pattern judging response is newly inserted pattern, a regional frame of the rectangular frame form that generation is blank, the positional information of the border of regional frame and headerfooter is set up annexation;
In the present embodiment, after user opens document by control end, such as WPS document etc., user triggers headerfooter pattern and inserts new header or footer, after then controlling the end response new header of insertion or footer pattern, generate a regional frame of blank rectangular frame form, and the positional information foundation of the border of regional frame and headerfooter has annexation, aforesaid positional information includes margin, the margin of such as document, apical position, bottom position, the positional information of the left and right end of headerfooter is consistent with the margin of document under normal circumstances。
It should be noted that, the positional information of the border of aforesaid regional frame and headerfooter set up have annexation can be with margin, apical position, bottom position four apex coordinates, the headerfooter regional frame that modeling is formed, the wire frame of this regional frame can be solid box, it is also possible to be broken box。
203, another regional frame is generated based on the positional information of current headerfooter;
After the headerfooter pattern judging response is headerfooter edit pattern, then generating another regional frame based on the positional information of current headerfooter, the positional information of the border of regional frame and headerfooter is set up annexation。
In the present embodiment, after user opens document by control end, such as WPS document etc., user triggers the pattern that the headerfooter to current document is edited, after then controlling the headerfooter edit pattern of end response current document, the positional information based on current headerfooter generates another regional frame, and the positional information of the border of regional frame and headerfooter is set up and had annexation, aforesaid positional information includes margin, for instance the margin of document, apical position, bottom position。It is understood that while another regional frame of aforesaid generation, the content information of current headerfooter is also correspondingly moved in another regional frame generated。
It should be noted that, the positional information of the border of aforesaid regional frame and headerfooter set up have annexation can be with margin, apical position, bottom position four apex coordinates, the headerfooter regional frame that modeling is formed, the wire frame of this regional frame can be solid box, it is also possible to be broken box。
204, by mouse/touch operation cursor, the four edges on border is pulled adjustment so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the border of the regional frame after stretching/contraction。
A blank regional frame of rectangular frame form is generated or after the positional information based on current headerfooter of step 203 generates another regional frame when step 202, require over mouse/touch operation cursor and the four edges on border is pulled adjustment, the zone position information making headerfooter carries out carrying out corresponding adjustment with the positional information on the border of the regional frame after stretching/contraction, further, stretching/shrink adjustment to the border of regional frame can be for upper, under, left, the adjustment in the one or more directions in right four direction, aforesaid touch operation cursor can be when the operation having on the intelligent terminal of touch screen functionality。
It should be noted that the adjustment that aforesaid upper and lower, left and right four direction can be the one or more directions in four direction carries out stretching/shrinking。
In the present embodiment, the headerfooter regional frame of the rectangular frame form having annexation is set up by generating the positional information on its border and headerfooter, and the border of regional frame is stretched/shrinks adjustment, just the region adjustment of headerfooter can be directly realized by, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced, simultaneously, the headerfooter pattern of response is judged, and according to judging to generate corresponding regional frame, compatible all documentation program, and the design that the region of perfect headerfooter adjusts。
Referring to Fig. 3, an embodiment of a kind of document header footer adjusting apparatus provided in the embodiment of the present invention includes:
Generation module 301, after being used for responding headerfooter pattern, the positional information foundation generating the headerfooter regional frame of rectangular frame form, the border of regional frame and headerfooter has annexation;
Region adjusting module 302, for stretching/shrink adjustment to the border of regional frame so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the regional frame after stretching/contraction。
In the present embodiment, generation module 301 sets up the headerfooter regional frame of the rectangular frame form having annexation by generating the positional information on its border and headerfooter, the border of regional frame is stretched/shrinks adjustment by region adjusting module 302, just the region adjustment of headerfooter can be directly realized by, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced。
The above is that each module to document header footer adjusting apparatus is described in detail, the submodule of region adjusting module will be described in detail below, referring to Fig. 4, another embodiment of a kind of document header footer adjusting apparatus provided in the embodiment of the present invention includes:
Generation module 401, after responding headerfooter pattern, generate the headerfooter regional frame of rectangular frame form, the positional information of the border of regional frame and headerfooter is set up annexation, generation module 401, specifically for the headerfooter pattern of response is judged, if newly inserted pattern, then generate a regional frame of the rectangular frame form of blank, if headerfooter edit pattern, then generate another regional frame based on the positional information of current headerfooter;
Region adjusting module 402, for stretching/shrink adjustment to the border of regional frame so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on four limits of the regional frame after stretching/contraction;
Region adjusting module 402 can further include:
First adjusts submodule 4021, for the four edges on border being pulled adjustment by mouse action cursor so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the border of the regional frame after stretching/contraction。
And/or
Second adjusts submodule 4022, for the four edges on border being pulled adjustment by touch operation cursor so that the zone position information of headerfooter carries out carrying out corresponding adjustment with the positional information on the border of the regional frame after stretching/contraction。
In the present embodiment, generation module 401 sets up the headerfooter regional frame of the rectangular frame form having annexation by generating the positional information on its border and headerfooter, the border of regional frame is stretched/shrinks adjustment by region adjusting module 402, just the region adjustment of headerfooter can be directly realized by, solve the existing two ends needing to adjust headerfooter, when top and apical position, require over margin to regulate, and enter in headerfooter adjustment option two ends, the design that top and apical position are adjusted, and the technical problem that the user experience caused is substantially reduced, simultaneously, the headerfooter pattern of response is judged by generation module 401, and according to judging to generate corresponding regional frame, compatible all documentation program, and the design that the region of perfect headerfooter adjusts。
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and module, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here。
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way。Such as, device embodiment described above is merely schematic, such as, the division of described module, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple modules or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform。Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or module, it is possible to be electrical, machinery or other form。
The described module illustrated as separating component can be or may not be physically separate, and the parts shown as module can be or may not be physical module, namely may be located at a place, or can also be distributed on multiple mixed-media network modules mixed-media。Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme。
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, it is also possible to be that modules is individually physically present, it is also possible to two or more modules are integrated in a module。Above-mentioned integrated module both can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes。
If described integrated module is using the form realization of software function module and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium。Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention。And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD。
The above, above example only in order to technical scheme to be described, is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme。