Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention is by big or small according to current display window, self-adaptation is obtained opened file and is cut apart the page after demonstration sum, and then according to this page sum, generate and show a plurality of page-turning button, realize the selected page-turning button according to this user, navigated to accurately, fast, neatly the object of corresponding display page.
Below in conjunction with specific embodiment, specific implementation of the present invention is described in detail:
embodiment mono-:
Fig. 2 shows the realization flow of the display page update method that first embodiment of the invention provides, and details are as follows:
In step S201, according to current display window size, current opening file cut apart, obtain the page sum after cutting apart.
Particularly, when a certain file is opened, after if current display window dwindles, the content that cannot simultaneously show whole file, need front opening file division to become a plurality of pages to show, if or this document excessive, this current display window has been while being amplified to maximum indication range, still the content of whole file cannot be shown simultaneously, according to step S201, the page sum of this document after divided can be obtained.While showing in the display window of different sizes for identical file in addition, corresponding page sum can self-adaptation adjustment, this page sum is obtained and there is dirigibility, certainly for the file that can represent with the page number, this page sum also can represent with total page number of whole file, and in the ordinary course of things, this page sum is at least three pages, otherwise do not need to carry out the processes such as generation of page-turning button, the embodiment of the present invention is more conducive to be at least in the situations such as browsing of carrying out for 3 o'clock, editor and use at file page sum.
In step S202, generate and show that page turning number is at least a plurality of page-turning button of two pages.
Wherein, the plurality of page-turning button at least comprises a upper page-turning button or a lower page-turning button, and on this, page-turning button page turning number corresponding with this lower page-turning button is all at least two pages, the concrete page-turning button number that generates and show can be determined with the relation of page-turning button number according to predefined page sum, such as when the page adds up to 50, 5 upper page-turning button and 5 lower page-turning button can be set, number of pages corresponding to each page-turning button of default setting is less than 5 etc., at this, no longer limit, and in subsequent operation process, user can revise as required voluntarily.
In embodiments of the present invention, after carrying out this step S202, this display page update method also comprises:
The attribute information of page-turning button is set, and wherein, this attribute information comprises size, shape, position, color or the corresponding page turning number of each page-turning button.
Particularly, when using laptop computer, PAD etc. carry out word, during the Document Editing of image etc., often need to browse the file of larger length, such as opening after a larger excel form document (at least three pages), the scroll bar of this excel form document has the rolling scope of super large, extremely inconvenient user carries out the quick location of content, user's browsing document is also directly perceived not, now, can be according to the total page number after the divided demonstration of this excel form document, dynamically generate a plurality of page-turning button, for different range, lower page turning, and can show in original guide rail Shang any position, wherein, page turning number corresponding to each page-turning button can arrange identical or not identical according to actual needs, as Fig. 3, 4 are depicted as and comprise respectively 6, 4 page-turning button (on, lower page-turning button number is identical) the schematic diagram of same excel form.It should be noted that the plurality of page-turning button must at least comprise a upper page-turning button and/or a lower page-turning button, and on this, page-turning button page turning number corresponding with this lower page-turning button is all at least two pages.In addition, after showing the plurality of page-turning button, the attribute information of the plurality of page-turning button can also be set according to actual needs, such as the information such as page turning number corresponding to size, shape, position, color and each page-turning button of each page-turning button, with more directly perceived, hommization, strengthen user's experience effect.
In step S203, when arbitrary page-turning button is chosen, the page turning number that the sequence according to current display page in this page sum and this arbitrary page-turning button are corresponding, obtains the page-ranking of next page in this page sum.
Wherein, this step S203 specifically comprises following:
Judge whether this arbitrary page-turning button is upper page-turning button;
The page-ranking of next page in this page sum to be set and for the sequence of this current display page in this page sum page turning corresponding with this arbitrary page-turning button, to count sum; No, poor that the page-ranking of next page in this page sum is the sequence of this current display page in this page sum page turning number corresponding with this arbitrary page-turning button is set.
Particularly, when demonstrate a plurality of page-turning button in current display page after, user can wait operation to select a certain page-turning button by click, first can obtain page turning number corresponding to this certain page-turning button, such as, the page of the file after a certain cutting apart adds up to the word document of 80 pages on interface of mobile terminal, open after, current display page is the 4th page of this word document, cursor location is set to the 4th page of a certain position of the document in other words, can click a certain page-turning button above guide rail, page turning number corresponding to this page-turning button is 3, and the type of judging this page-turning button is lower page-turning button, the next page sequence of obtaining is 7, also be 3+4, if upper page-turning button, the previous page sequence of obtaining is 1, also be 4-3.
In embodiments of the present invention, this display page update method also comprises:
Judge whether the page-ranking of this next page in this page sum is greater than this page sum N, be, upgrading the page-ranking of this next page in this page sum is N, no, continue to judge whether the page-ranking of this next page in this page sum is less than 1, be, upgrading the page-ranking of this next page in this page sum is 1, otherwise keeps the page-ranking of this next page in this page sum constant.
Particularly, the a certain excel form document that comprises 10000 line items of take is example, if while showing in current display window, it is 200 to be example that this document is cut apart the page after demonstration sum N, if the sequence of current display page in this page sum in other words current display page is the 10th page, if user is the page-turning button of 5 pages by the corresponding page turning number of adopting consecutive click chemical reaction, the page-ranking number of the next page obtaining in this page sum is 0, now judge that the page-ranking of this next page in this page sum is less than 1, upgrading the page-ranking of this next page in this page sum is 1, thereby more reasonable while the page-ranking of this page in this page sum being obtained by judgement.
In step S204, the page-ranking according to this next page in this page sum, is updated to display page corresponding to page-ranking of this next page in this page sum by this current display page.
Particularly, page-ranking according to the next page obtaining in this page sum, can obtain equally the content of the display page that the page-ranking of this next page in this page sum is corresponding, and then the content of this corresponding display page is shown in current display window.
In embodiments of the present invention, due to big or small according to current display window, can self-adaptation obtain opened file and cut apart the page sum after demonstration, make the display page update method that the embodiment of the present invention provides have more dirigibility, and can generate and show that page turning number is at least a plurality of page-turning button of two pages, user can be by handling page-turning button arbitrarily, by current display page quickly and accurately positioned update be needed display page, convenient, offer user intuitively and browse etc.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
embodiment bis-:
Fig. 5 shows the structure of the display page updating device that second embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
This display page updating device can be for having the mobile terminal of browsing file function, in mobile phone etc., it can be the software unit running in these mobile terminals, also can be used as independently suspension member and be integrated in these mobile terminals or run in the application system of these mobile terminals, wherein this display page updating device comprises page sum acquiring unit 51, page-turning button display unit 52, sequence acquiring unit 53 and renewal of the page unit 54:
Page sum acquiring unit 51, for current opening file being cut apart according to current display window size, obtains the page sum after cutting apart.
In embodiments of the present invention, when a certain file is opened, after if current display window dwindles, the content that cannot simultaneously show whole file, need current opening file to be divided into a plurality of pages and to show, if or this document excessive, this current display window has been while being amplified to maximum indication range, still cannot show the content of whole file simultaneously, can obtain the page sum after the divided demonstration of this document according to page sum acquiring unit 51.While showing in the display window of different sizes for identical file in addition, corresponding page sum can self-adaptation adjustment, this page sum is obtained and there is dirigibility, certainly for the file that can represent with the page number, this page sum also can represent with total page number of whole file, and in the ordinary course of things, this page sum is at least three pages.
Page-turning button display unit 52, for generating and showing that page turning number is at least a plurality of page-turning button of two pages.
Wherein, the plurality of page-turning button at least comprises a upper page-turning button and/or a lower page-turning button.
Sequence acquiring unit 53, for when arbitrary page-turning button is chosen, the page turning number that the page-ranking according to current display page in this page sum and this arbitrary page-turning button are corresponding, obtains the page-ranking of next page in this page sum.
Wherein, this sequence acquiring unit 53 specifically comprises:
Type judging unit 531, for judging whether this arbitrary page-turning button is upper page-turning button;
The first sequence acquiring unit 532, for when the type judging unit Output rusults is when being, the page-ranking of next page in this page sum is set and for the page turning corresponding with this arbitrary page-turning button of the page-ranking of this current display page in this page sum, counts sum; And
The second sequence acquiring unit 533, for when the type judging unit Output rusults is while being no, the page-ranking of next page in this page sum be set be the poor of page turning number that the page-ranking of this current display page in this page sum is corresponding with this arbitrary page-turning button.
In embodiments of the present invention, when demonstrate a plurality of page-turning button on display page after, user waits operation to select a certain page-turning button by click, according to type judging unit 531 these buttons of judgement, it is the upper page-turning button of corresponding 2 pages of page turning numbers, by the first sequence acquiring unit 532, just can know the page-ranking of next page in this page sum, also obtain the number of pages at the page place of redirect.
Further, this sequence acquiring unit 53 can also comprise:
Size judging unit, for judging whether this next page is greater than this page sum N at the page-ranking of this page sum;
The first result treatment unit, for when this size judging unit Output rusults is when being, upgrading the page-ranking of this next page in this page sum is N;
Size judgment sub-unit, when being no when this size judging unit Output rusults, continuation judges whether the page-ranking of this next page in this page sum is less than 1; And
The second result treatment unit, for when this size judgment sub-unit Output rusults is when being, upgrading the page-ranking of this next page in this page sum is 1, otherwise, keep the page-ranking of this next page in this page sum constant.
In embodiments of the present invention, by this size judging unit, the first result treatment unit, big or small judgment sub-unit, the second result treatment unit, the sequence of next jump page in total page number of this document be can more accurately, reasonably obtain, acquisition process hommization more, intellectuality also made.
Renewal of the page unit 54, for the page-ranking at this page sum according to this next page, is updated to display page corresponding to page-ranking of this next page in this page sum by this current display page.
In addition, this display page updating device also comprises:
Page-turning button setting unit, for the attribute information of page-turning button is set, wherein, this attribute information comprises size, shape, position, color or the corresponding page turning number of each page-turning button.
In embodiments of the present invention, after utilizing this page-turning button display unit 52 to generate and showing that page turning number is at least a plurality of page-turning button of two pages, the attribute information of page-turning button can be set at any time by this page-turning button setting unit, also make this display page updating device have more dirigibility, user's experience effect is better.
The embodiment of the present invention provides a kind of display page updating device that comprises page sum acquiring unit 51, page-turning button display unit 52, sequence acquiring unit 53 and renewal of the page unit 54, by this display page updating device, make when the file of browsing compared with multi-page or more content, user can carry out rapidly, neatly, accurately drip page location, is very easy to user's use.
The embodiment of the present invention is by cutting apart current opening file according to current display window size, page sum after self-adaptation is obtained and cut apart, and generate and show that page turning number is at least a plurality of page-turning button of two pages, and when arbitrary page-turning button is chosen, the page turning number that sequence according to current display page in this page sum and this arbitrary page-turning button are corresponding, obtain the page-ranking of next page in this page sum, thereby realized the object that this current display page is updated to the display page that the page-ranking of this next page in this page sum is corresponding, solved while utilizing prior art to browse the file compared with multi-page, exist page locating speed slow, the problem of very flexible, make browsing file operation have more intelligent, more flexible, more accurate, the advantage such as quicker.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.