The content of the invention
The purpose of the embodiment of the present invention is the jump method and device for providing a kind of document file page, to simplify user behaviour
Make, improve Consumer's Experience.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of jump method of document file page, applied to electronics text
Shelves, method include:
In the current document page, show progress bar and redirect page number input frame;
If detecting, the sliding block on progress bar is dragged, obtains sliding block trailing final position in progress bar;
According to default progress bar position and the corresponding relation of the document page number, the page number corresponding to the final position is shown
Page number input frame is redirected described;
If receive user it is described redirect the page number input frame input the page number, according to default progress bar position with text
The corresponding relation of the shelves page number, position corresponding to the page number is moved to by sliding block;
User's jump instruction is received, document is jumped into the page corresponding to the page number redirected in page number input frame.
Optionally, in the current document page, display progress bar and the step of redirecting page number input frame, including:
By progress bar and redirect page number input frame and continuously arrange, in the predeterminable area of currently displayed document file page.
Optionally, the corresponding relation of the predeterminated position and the page number, including:
Previously according to page number sum, the progress bar is divided into the subsegment equal with page number sum, each subsegment pair
Answer a page number;
The corresponding relation according to default progress bar position and the document page number, by the page number corresponding to the final position
The step redirected in page number input frame is shown in, including:
Determine the first subsegment belonging to the final position;
The page number corresponding to first subsegment is included to redirect page number input frame described.
Optionally, it is described total previously according to the page number, the progress bar is divided into the subsegment equal with page number sum,
Each subsegment corresponds to the step of page number, including:
Previously according to page number sum, the length of the progress bar is divided into the subsegment equal with page number sum, according to
The order of the page number from small to large, by the storage corresponding with a page number of the original position of each subsegment and final position;
It is described determine belonging to the final position the first subsegment the step of, including:By the final position and every height
Section original position and final position are compared, and determine the first subsegment belonging to the final position.
Optionally, it is described to obtain sliding block in progress bar the step of trailing final position, including:
When sliding block residence time is more than predetermined threshold value, determine that the position that sliding block stops is final position;
Reception user's jump instruction, document is jumped into the page corresponding to the page number redirected in page number input frame
The step of, including:
When detecting the user's operation for discharging the sliding block, it is determined that receiving user's jump instruction, document is jumped into institute
State and redirect the page corresponding to the page number in page number input frame;Or,
User is being received after the page number for redirecting the input of page number input frame, is detecting the confirmation on the keyboard of display
When key is pressed, it is determined that receiving user's jump instruction, it is corresponding that document is jumped into the page number redirected in page number input frame
The page.
To reach above-mentioned purpose, device is redirected the embodiment of the invention also discloses a kind of document file page, applied to electronics
Document, device include:
First display module, in the current document page, showing progress bar and redirecting page number input frame;
Module is obtained, for when the sliding block on detecting progress bar is dragged, it is dragged in progress bar to obtain sliding block
Final position;
Second display module, will be described final for the corresponding relation according to default progress bar position and the document page number
The page number of position correspondence is shown in described redirect in page number input frame;
Mobile module, for receive user it is described redirect the page number input frame input the page number when, according to default
Progress bar position and the corresponding relation of the document page number, position corresponding to the page number is moved to by sliding block;
Jump module, for when receiving user's jump instruction, document to be jumped into described redirect in page number input frame
The page number corresponding to the page.
Optionally, first display module, is specifically used for:
By progress bar and redirect page number input frame and continuously arrange, in the predeterminable area of currently displayed document file page.
Optionally, described device also includes:
Corresponding relation presetting module, for previously according to page number sum, the progress bar to be divided into and page number sum
Equal subsegment, the corresponding page number of each subsegment;
Second display module, including:
Determination sub-module, for determining the first subsegment belonging to the final position;
Display sub-module, for including the page number corresponding to first subsegment to redirect page number input frame described.
Optionally, the corresponding relation presetting module, including:
Sub-module stored, for previously according to page number sum, the length of the progress bar to be divided into and page number sum
Equal subsegment, according to the order of the page number from small to large, by the original position of each subsegment and final position and a page number pair
It should store;
The determination sub-module, is specifically used for:
By the final position compared with each subsegment original position and final position, the final position institute is determined
First subsegment of category.
Optionally, the acquisition module, including:
First determination sub-module, the position stopped for when sliding block residence time is more than predetermined threshold value, determining sliding block
For final position;
The jump module, including:
First redirects submodule, when user's operation of the sliding block is discharged for detecting, is redirected it is determined that receiving user
Instruction, document is jumped into the page corresponding to the page number redirected in page number input frame;With,
Second redirects submodule, for receiving user after the page number for redirecting the input of page number input frame, detection
When acknowledgement key on to the keyboard of display is pressed, it is determined that receive user's jump instruction, document is jumped to and described redirects page
The page corresponding to the page number in code input frame.
As seen from the above technical solutions, the jump method and device of document file page provided in an embodiment of the present invention, application
In electronic document, in the current document page, show progress bar and redirect page number input frame;If detect the sliding block on progress bar
It is dragged, then obtain sliding block trailing final position in progress bar;According to default progress bar position and the document page number
Corresponding relation, the page number corresponding to the final position is included to redirect page number input frame described;If user is received in institute
The page number for redirecting the input of page number input frame is stated, then according to default progress bar position and the corresponding relation of the document page number, by sliding block
It is moved to position corresponding to the page number;User's jump instruction is received, document is jumped into described redirect in page number input frame
The page corresponding to the page number.
Using the embodiment of the present invention, user need not repeatedly adjust slide position, with regard to the page for it is expected to redirect can be navigated to,
User's operation is simplified, improves Consumer's Experience.
Certainly, any product or method for implementing the present invention must be not necessarily required to reach all the above excellent simultaneously
Point.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of jump method of document file page and device, applied to electronic document, divides below
It is not described in detail.
Referring to Fig. 2, Fig. 2 is a kind of schematic flow sheet of the jump method of document file page provided in an embodiment of the present invention, bag
Include following steps:
S201, in the current document page, show progress bar and redirect page number input frame.
Specifically, by progress bar and redirect page number input frame and continuously arrange, the predeterminable area of currently displayed document file page
In.In actual applications, document file page can be the electronic documents such as TXT document file pages, the Word document page, WPS document file pages
The page.Progress bar and redirect page number input frame and can be joined directly together, can also be connected by connecting line.
Exemplary, the current document page is WPS document file pages, and progress bar and jump page input frame are joined directly together,
The top of WPS document file pages is shown in, or, progress bar and jump page input frame are joined directly together, are shown in WPS documentation pages
The lower section in face.As shown in figure 3, progress bar and jump page input frame are continuously arranged, left side is progress bar, and right side is to redirect page
Face input frame.
S202, if detecting, the sliding block on progress bar is dragged, obtains sliding block trailing most final position in progress bar
Put.
Specifically, sliding block is obtained in progress bar the step of trailing final position, including:When sliding block residence time
During more than predetermined threshold value, determine that the position that sliding block stops is final position.
Exemplary, predetermined threshold value 2s, when the sliding block on progress bar is dragged, and sliding block rests on some position
Time be more than 2s, then it is sliding block trailing final position in progress bar that can determine the position.
S203, according to default progress bar position and the corresponding relation of the document page number, the page number corresponding to final position is shown
Show in page number input frame is redirected.
Specifically, the corresponding relation of predeterminated position and the page number, including:Previously according to page number sum, by progress bar average mark
Into the subsegment equal with page number sum, the corresponding page number of each subsegment.
In actual applications, previously according to page number sum, the progress bar is divided into the son equal with page number sum
Section, the step of each subsegment corresponding page number, including:Previously according to the page number sum, by the length of progress bar be divided into
The equal subsegment of page number sum, according to the order of the page number from small to large, by the original position of each subsegment and final position and one
The individual page number is corresponding to be stored.
Further, according to default progress bar position and the corresponding relation of the document page number, by page corresponding to final position
Code is shown in the step redirected in page number input frame, including:Determine the first subsegment belonging to final position;First subsegment is corresponding
The page number be shown in and redirect in page number input frame.
In actual applications, the step of determining the first subsegment belonging to the final position, including:By final position and often
Individual subsegment original position and final position are compared, and determine the first subsegment belonging to final position.
It is assumed that document page number sum is 100, then progress bar is divided into 100 subsegments, according to the page number from small to large
Sequentially, the storage corresponding with the page number 1 of the original position of the 1st subsegment of progress bar and final position, the 2nd subsegment of progress bar are risen
Beginning position and final position it is corresponding with the page number 2 storage ... ..., by that analogy, the original position of the 100th subsegment of progress bar and end
The storage corresponding with the page number 100 of point position.Such as:The original position of the 21st subsegment of progress bar and final position are corresponding with the page number 21
Storage, then the position between the original position in the 21st subsegment and final position, belongs to the page number 21.According to step S202
Obtain final position, it is assumed that determine that final position belongs to the 5th subsegment, then include 5 in page number input frame is redirected, therefore,
User can know the page number corresponding to sliding block present position according to the page number in page number input frame is redirected.
S204, if receive user redirecting the page number input frame input the page number, according to default progress bar position with
The corresponding relation of the document page number, sliding block is moved to position corresponding to the page number.
It should be noted that user is redirecting the page number of page number input frame input, can be the effective range for belonging to the page number
Any one number, effective range be according to the document page number sum determine.
It is assumed that document page number sum is 100, then the effective range of the page number is 1-100, and user is to redirect page number input frame defeated
The page number entered can be any one number between 1-100, such as:User redirect the page number input frame input the page number be 21,
Then according to the corresponding relation of default progress bar position in S203 and the document page number, sliding block will be moved into the 21st subsegment
Any one position between original position and final position.
S205, user's jump instruction is received, document is jumped to the page corresponding to the page number redirected in page number input frame.
Specifically, receiving user's jump instruction, document is jumped to the page corresponding to the page number redirected in page number input frame
The step of, including:When detecting user's operation of release slider, it is determined that receiving user's jump instruction, document is jumped to
The page corresponding to the page number in blade-rotating code input frame, or, user is being received in the page for redirecting the input of page number input frame
After code, when detecting that the acknowledgement key on the keyboard of display is pressed, it is determined that receiving user's jump instruction, document is jumped into jump
The page corresponding to the page number in blade-rotating code input frame.
Exemplary, mobile terminal is touch-screen mobile phone, and document is WPS documents, if detecting, sliding block is dragged, and most final position
The page number corresponding to putting is 5, then the page number shown in input frame is 5;When detecting user's release slider, it is determined that receiving user
Jump instruction, WPS documents are jumped into the page corresponding to the page number 5;Or detect that the acknowledgement key in cellphone inputting method is pressed
When, it is determined that receiving user's jump instruction, WPS documents are jumped into the page corresponding to the page number 5.
It can be seen that using the embodiment of the present invention, user need not repeatedly adjust slide position, it is expected what is redirected with regard to that can navigate to
The page, user's operation is simplified, improves Consumer's Experience.
Corresponding with above-mentioned embodiment of the method, what the embodiment of the present invention also provided a kind of document file page redirects device.
Referring to Fig. 4, a kind of structural representation for redirecting device for document file page that Fig. 4 is provided by the embodiment of the present invention,
It is corresponding with the schematic flow sheet shown in Fig. 2, including:
First display module 401, in the current document page, showing progress bar and redirecting page number input frame;
Module 402 is obtained, is dragged for when the sliding block on detecting progress bar is dragged, obtaining sliding block in progress bar
Dynamic final position;
Second display module 403, will most final position for the corresponding relation according to default progress bar position and the document page number
The page number corresponding to putting, which is shown in, to be redirected in page number input frame;
Mobile module 404, in the page number for receiving user and redirecting the input of page number input frame described, according to default
Progress bar position and the document page number corresponding relation, sliding block is moved to position corresponding to the page number;
Jump module 405, for when receiving user's jump instruction, document being jumped to and redirected in page number input frame
The page corresponding to the page number.
Wherein, the first display module 401, is specifically used for:
By progress bar and redirect page number input frame and continuously arrange, in the predeterminable area of currently displayed document file page.
In actual applications, module 402 is obtained, including:
First determination sub-module, the position stopped for when sliding block residence time is more than predetermined threshold value, determining sliding block
For final position.
Second display module 403, including:Determination sub-module and display sub-module (not shown in Fig. 4).
Determination sub-module, for determining the first subsegment belonging to final position;
Display sub-module, for including the page number corresponding to the first subsegment to redirect page number input frame described.
Wherein it is determined that submodule, is specifically used for:
By final position compared with each subsegment original position and final position, first belonging to final position is determined
Subsegment.
In actual applications, the device can also include:Corresponding relation presetting module (not shown in Fig. 4).
Corresponding relation presetting module, for previously according to page number sum, progress bar being divided into equal with page number sum
Subsegment, the corresponding page number of each subsegment;
Specifically, corresponding relation presetting module, including:
Sub-module stored, for previously according to page number sum, the length of the progress bar to be divided into and page number sum
Equal subsegment, according to the order of the page number from small to large, by the original position of each subsegment and final position and a page number pair
It should store.
Wherein, jump module 405, including:First, which redirects submodule and second, redirects submodule (not shown in Fig. 4).
First redirects submodule, when user's operation of the sliding block is discharged for detecting, is redirected it is determined that receiving user
Instruction, document is jumped to the page corresponding to the page number redirected in page number input frame;
Second redirects submodule, for receiving user after the page number for redirecting the input of page number input frame, detection
When acknowledgement key on to the keyboard of display is pressed, it is determined that receive user's jump instruction, document jumps to to redirect the page number defeated
Enter the page corresponding to the page number in frame.
It can be seen that using embodiment illustrated in fig. 4 of the present invention, user need not repeatedly adjust slide position, can just position and expire
The page redirected is hoped, user's operation is simplified, improves Consumer's Experience.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is
To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.