A kind of document display method and device
Technical field
The present invention relates to document function software field, in particular to a kind of document display method and device.
Background technique
With computer hardware, software development, user more and more continually using portable electronic device (such as mobile phone,
Tablet computer etc.) operation document function software, read and operate electronic document.It is currently running on portable electronic device
Document function software, the textual content and when annotation content in displaying target document, generallys use following methods:
Method one at original text of the destination document currently shown with annotation, shows annotation content mark in the operation interface
Note on original text corresponding with comment mark region, annotates region when annotation content label is selected with pop-up window
Formal expansion is shown;The shortcomings that this display methods, is that the annotation region after expansion is possible to that textual content can be sheltered from;Such as
Fruit user needs to check the textual content being blocked, it is necessary to close annotation region;As it can be seen that using this mode of operation, it can not
Show textual content and annotation content simultaneously in same operation interface.
Method two, in the operation interface, with the whole annotation of tabular form displaying target document, when some in list
When annotation item is selected, the operation interface of document function software can jump the corresponding textual content of annotation item for navigating to and being selected
Place, and the annotation item is packed up, show that annotation content marks at the corresponding textual content of annotation item changing;When display is unfolded in needs
When the annotation content of the annotation item, need to show after annotation content label is selected by the method in method one;It can be seen that adopting
With this mode of operation, operating procedure is tedious, and can not equally show simultaneously textual content in same operation interface and criticize
Infuse content.
Therefore, it is necessary to a kind of document display methods, enable document function software in same operation interface while showing
Textual content and annotation content.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of document display method and device, simplifies the operation of user's profile
Operation when software facilitates user while checking the original text in destination document and its corresponding annotation.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of document display methods, are applied to operation document function
The portable electronic device of software, method includes the following steps:
In the document areas of the operation interface of the document function software, the first of displaying target document is literary laterally side by side
Shelves region, and the second document areas corresponding with first document areas;It include one in first document areas
Above first kind document block includes respectively and included by first document areas in second document areas
The corresponding second class document block of each first kind document block;
If receiving first kind document block selection operation from the operation interface, it is determined that the first kind text selected
Relative position of the shelves block on the vertical direction in the document areas;
Relative position of second document areas in the document areas is kept, to the second class document block vertical
Relative position on direction is adjusted, and the first kind document block selected is made to exist with corresponding second class document block
Relative position on vertical direction is consistent;
Wherein, any type block in the first kind document block and the second class document block is for showing original
Text, another kind of block is for showing annotation.
In addition, the portable electric disclosed herein as well is a kind of document display device, applied to operation document function software
Sub- equipment, described device include:
Document block display module, in the document areas of the operation interface of the document function software, transverse direction to be simultaneously
Arrange the first document areas of displaying target document, and the second document areas corresponding with first document areas;Described
Include more than one first kind document block in one document areas, in second document areas, include respectively with
The corresponding second class document block of each first kind document block included by first document areas;
First kind document block locations determining module, for receiving the choosing of first kind document block from the operation interface
In the case where selecting operation, opposite position of the first kind document block selected on the vertical direction in the document areas is determined
It sets;
Second class document block locations adjust module, for keeping second document areas in the document areas
Relative position is adjusted the relative position of the second class document block in the vertical direction, makes the first kind selected
Document block is consistent with the relative position of corresponding second class document block in the vertical direction;
Wherein, any type block in the first kind document block and the second class document block is for showing original
Text, another kind of block is for showing annotation.
Technical solution provided by the present application is first to select first kind document block, and determine the first kind document block
The relative position of vertical direction;Then in the operation interface, according on the vertical direction of the first kind document block of selection
Relative position, adjust the relative position on the vertical direction of second document areas, make the first kind document block with
Corresponding second class document block is in the relative position on same vertical direction;Thus, it can be achieved that in document function software
Textual content and its corresponding annotation content are shown simultaneously at the relative position of the same vertical direction of portable electronic device
Show, facilitates user according to original read content and annotation content, improve the efficiency of document function.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of document display method in the embodiment of the present application 1;
Fig. 2 be textual content block 212 with annotation content block 222 when the relative position of vertical direction is consistent, electronics
The screenshot of equipment display interface;
Fig. 3 is the method stream that the first document block and corresponding second document block are highlighted in the embodiment of the present application 2
Cheng Tu;
When Fig. 4 is that textual content block 216 and annotation content block 226 highlight, electronic equipment display interface
Screenshot;
Fig. 5 is that annotation content label or the method flow diagram without annotation content label are shown in the embodiment of the present application 3;
Fig. 6 is the method flow diagram of expansion display annotation content in the embodiment of the present application 4;
Fig. 7 is the method flow diagram that annotation column is deleted in the embodiment of the present application 5;
Fig. 8 is the structural schematic diagram of document display device in the embodiment of the present application 6;
Fig. 9 is the structural schematic diagram of document display device in the embodiment of the present application 7;
Figure 10 is the structural schematic diagram of document display device in the embodiment of the present application 8;
Figure 11 is the structural schematic diagram of document display device in the embodiment of the present application 9;
Figure 12 is the structural schematic diagram of document display device in the embodiment of the present application 10.
Specific embodiment
According to the prior art, the textual content and when annotation content in displaying target document generallys use following methods:
Method one at original text of the destination document currently shown with annotation, shows annotation content mark in the operation interface
Note on original text corresponding with comment mark region, annotates region when annotation content label is selected with pop-up window
Formal expansion is shown;The shortcomings that this display methods, is that the annotation region after expansion is possible to that textual content can be sheltered from;Such as
Fruit user needs to check the textual content being blocked, it is necessary to close annotation region;As it can be seen that using this mode of operation, it can not
Show textual content and annotation content simultaneously in same operation interface.
Method two, in the operation interface, with the whole annotation of tabular form displaying target document, when some in list
When annotation item is selected, the operation interface of document function software can jump the corresponding textual content of annotation item for navigating to and being selected
Place, and the annotation item is packed up, show that annotation content marks at the corresponding textual content of annotation item changing;When display is unfolded in needs
When the annotation content of the annotation item, need to show after annotation content label is selected by the method in method one;It can be seen that adopting
With this mode of operation, operating procedure is tedious, and can not equally show simultaneously textual content in same operation interface and criticize
Infuse content.
Therefore, it is necessary to a kind of document display methods, enable document function software in same operation interface while showing
Textual content and annotation content.
In order to realize the above object, the embodiment of the invention provides a kind of document display methods, are applied to operation document
The portable electronic device of operating software, which comprises
In the document areas of the operation interface of the document function software, the first of displaying target document is literary laterally side by side
Shelves region, and the second document areas corresponding with first document areas;It include one in first document areas
Above first kind document block includes respectively and included by first document areas in second document areas
The corresponding second class document block of each first kind document block;
If receiving first kind document block selection operation from the operation interface, it is determined that the first kind text selected
Relative position of the shelves block on the vertical direction in the document areas;
Relative position of second document areas in the document areas is kept, to the second class document block vertical
Relative position on direction is adjusted, and the first kind document block selected is made to exist with corresponding second class document block
Relative position on vertical direction is consistent;
Wherein, any type block in the first kind document block and the second class document block is for showing original
Text, another kind of block is for showing annotation.
In order to make those skilled in the art more fully understand the technical solution in the present invention, implement below in conjunction with the present invention
Attached drawing in example, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment
Only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It is soft to be applied to operation document function referring to FIG. 1, being a kind of document display method of the present patent application for embodiment 1
The portable electronic device of part, the described method comprises the following steps:
S101, in the document areas of the operation interface of the document function software, displaying target document laterally side by side
First document areas, and the second document areas corresponding with first document areas;Include in first document areas
Have more than one first kind document block, in second document areas, include respectively with first document areas
The corresponding second class document block of included each first kind document block;
S102, if receiving first kind document block selection operation from the operation interface, it is determined that selected
Relative position of a kind of document block on the vertical direction in the document areas;
S103 keeps relative position of second document areas in the document areas, to the second class document block
Relative position in the vertical direction is adjusted, and makes the first kind document block selected and corresponding second class document
The relative position of block in the vertical direction is consistent;
Wherein, any type block in the first kind document block and the second class document block is for showing original
Text, another kind of block is for showing annotation.
It wherein include original in original text region 210 referring to FIG. 2, including original text region 210 and annotation region 220 in Fig. 2
Literary content block 212 and textual content block 214 have annotation corresponding with textual content block 212 in annotation region 220
Content block 222, and annotation content block 224 corresponding with textual content block 214.
When user has selected textual content block 212, then the textual content block 212 selected is i.e. as first kind text
Shelves block, annotation content block 222 corresponding with textual content block 212 are used as the second class document block;It keeps in original text
It is constant to hold position of the original text region 210 at 212 place of block in the display interface of portable electronic device, adjustment region 220
Position in display interface so that annotation content block 222 corresponding with textual content block 212 adjust to textual content
Block 212 is consistent in the relative position of vertical direction;In this way, user is selecting the textual content as first kind document block
After block 212, it laterally can easily observe as the annotation content block 222 of the second class document block, check original
Annotation content can be easily observed when literary content simultaneously.
The technical solution of the application is not limited to position of the adjustment annotation region 220 in display interface, selects in user
In the case where annotating some annotation content block in region 220, according to the opposite of the vertical direction of the document block selected
Position adjusts the position in original text region 210.For example, when user has selected annotation content block 222, then the annotation that is selected
Content block 222 is used as first kind document block, and textual content block 212 corresponding with annotation content block 222 is as the
Two class document blocks;Keep the original text region 220 at 222 place of annotation content block in the display interface of portable electronic device
Position it is constant, position of the adjustment region 210 in display interface, so that textual content corresponding with annotation content block 222
Block 212 is adjusted to consistent in the relative position of vertical direction with annotation content block 222;In this way, on the one hand can keep using
Position when the annotation content block 222 of family selection is selected still in user, on the other hand can make annotation content block 222 right
The textual content block 212 answered is adjusted to consistent with the relative position of the vertical direction of annotation content block 222, and user can be horizontal
To easily observing textual content and corresponding annotation content simultaneously.
Technical solution in embodiment 1 is first to select first kind document block, and determine the perpendicular of the first kind document block
Histogram to relative position;Then in the operation interface, according on the vertical direction of the first kind document block of selection
Relative position adjusts the relative position on the vertical direction of second document areas, make the first kind document block with it is right
The the second class document block answered is in the relative position on same vertical direction;Thus, it can be achieved that original in document function software
Literary content and its corresponding annotation content show simultaneously at the relative position of the same vertical direction of portable electronic device,
Facilitate user according to original read content and annotation content, improves the efficiency of document function.
In order to highlight the corresponding relationship of body matter and annotation content, on the basis of the embodiment of the present application 1, this Shen
Embodiment 2 please gives another technical solution, shown in Figure 3, method includes the following steps:
S104 highlights the quilt after receiving first kind document block selection operation in the document areas
The first kind document block of selection and its corresponding second class document block.
Referring to FIG. 4, when user selects the textual content block 216 in Fig. 4, textual content block 216 and with original
The corresponding annotation content block 226 of literary content block 216 is highlighted with background colour outstanding;In this way, user can be with
The textual content block 216 as first kind document block is recognized easily by the difference of color and corresponding is used as
The annotation content block 226 of two class document blocks.It should be noted that document block carry out highlighted method include but
It is not limited to increase color shading, text overstriking etc. to text.
Due to showing the first kind document block selected and its corresponding second class document using highlighted mode
Block, therefore, user can easily find the first kind document block selected and its corresponding second from operation interface
Class document block.
In the operation interface, there may be annotation content in annotation content block, may not also have in annotation content block
There is annotation content, therefore, in order to distinguish in annotation content block whether there is annotation content, on the basis of the embodiment of the present application 1
On, another technical solution is given in embodiments herein 3, it is shown in Figure 5, method includes the following steps:
S105, after showing first document areas and the second document areas laterally side by side,
If it is determined that without annotation content in the annotation content block, then in the document areas, the annotation content area
At the corresponding textual content block of block, display is marked without annotation content;
If it is determined that having annotation content in the annotation content block, then in the document areas, the annotation column is corresponding
Textual content block at, show annotation content label.
Referring to FIG. 2, there is annotation content in the corresponding annotation content block 222 of textual content block 212 in Fig. 2,
Therefore, annotation content label 213 is shown at textual content block 212;The corresponding annotation of textual content block 214 in Fig. 2
There is no annotation content in content block 224, therefore shows at textual content block 214 without annotation content label 215.In this way, with
Family, which only needs to observe to be shown at textual content block, has annotation content label 213 still without annotation content label 215,
To know whether there is annotation content in the annotation content block corresponding to textual content block;Without passing through selection textual content area
Block, to adjust the relative position of vertical direction in document areas in annotation region 220.
After using the above technical scheme in embodiment 3, user can observe together when checking body matter
Know in the annotation column corresponding to body matter whether there is annotation content.
In addition, in order to guarantee that user views the annotation content in the annotation column of selection, and view selection
The corresponding annotation content of body matter gives another kind in embodiments herein 4 on the basis of the embodiment of the present application 1
Technical solution, it is shown in Figure 6, method includes the following steps:
S106, after being adjusted to the relative position of the second class document block in the vertical direction,
If the first kind document block selected is the annotation column of destination document, in the document areas,
Expansion shows whole annotation contents in the annotation content block selected;
If the first kind document block selected includes the textual content of destination document, in the document areas
In, expansion shows whole annotation contents in the corresponding annotation content block of textual content block selected.
Pass through expansion display remarks content as a result, it is ensured that user views whole annotations in the annotation column of selection
Content, and view the corresponding whole annotation contents of body matter of selection.
In addition, deleting the content on annotation column, on the basis of the embodiment of the present application 1, embodiments herein 5 for convenience
In provide a kind of technical solution, please refer to shown in Fig. 7, method includes the following steps:
S107, after being adjusted to the relative position of the second class document block in the vertical direction,
If the first kind document block selected is the annotation column of destination document, in the operation interface,
Show that the first operation interface, first operation interface are used to receive the removal request for the annotation content block selected;
If receiving the request for deleting the annotation content block selected from first operation interface, in the target text
In shelves, the annotation content block selected is deleted;
Referring to FIG. 4, in a kind of specific embodiment, if the first kind document block selected is destination document
Annotation content block 226, then in the operation interface, display annotation column delete operation interface 227, annotate column delete operation
Interface 227 is used to receive the removal request for the annotation content block 226 selected;If from annotation column delete operation interface
227 receive the request of annotation content block 226 deleted and selected, then in the destination document, the annotation that will be selected
Content block 226 is deleted;
Thus, it is possible to which display is for deleting annotation column in the operation interface after user has selected annotation content block
The first operation interface, user can pass through the first operation interface 226 delete annotation content block.
If the first kind document block selected includes the textual content of destination document, in the operation interface
On, show the second operation interface, second operation interface is for receiving and the annotation of the textual content block selected
The removal request of content block;If being received from second operation interface and deleting asking for the corresponding annotation content block
It asks, then in the destination document, the corresponding annotation content block is deleted.
Referring to FIG. 4, in a kind of specific embodiment, if the first kind document block selected for including
The textual content block 216 of the textual content of destination document, then in the operation interface, display annotation column delete operation is connect
Mouth 227, annotation column delete operation interface 227 are all annotations for receiving corresponding with the textual content block 216 selected
The removal request of content block 226;If being received from annotation column delete operation interface 227 and deleting the corresponding annotation content
The request of block 226 deletes the corresponding annotation content block 226 of delete operation interface 227 then in destination document.
Thus, it is possible to which display is for deleting the original selected in the operation interface after user has selected textual content
Second operation interface of the corresponding annotation content block of literary content, the original text that user can will be selected by the second operation interface
The corresponding annotation content block of content is deleted.
Corresponding to above method embodiment, embodiments herein 6 also provides a kind of document display device, is applied to fortune
The portable electronic device for shelves operating software of composing a piece of writing, referring to FIG. 8, the device includes:
Document block display module 110, in the document areas of the operation interface of the document function software, laterally
It is displayed side by side the first document areas of destination document, and the second document areas corresponding with first document areas;It is described
Include more than one first kind document block in first document areas, includes difference in second document areas
The second class document block corresponding with each first kind document block included by first document areas;
First kind document block locations determining module 120, for receiving first kind document area from the operation interface
In the case where block selection operation, phase of the first kind document block selected on the vertical direction in the document areas is determined
To position;
Second class document block locations adjust module 130, for keeping second document areas in the document areas
In relative position, the relative position of the second class document block in the vertical direction is adjusted, selected is made
A kind of document block is consistent with the relative position of corresponding second class document block in the vertical direction;
Wherein, any type block in the first kind document block and the second class document block is for showing original
Text, another kind of block is for showing annotation.
Embodiment 7, referring to FIG. 9, on the basis of the embodiment of the present application 6, document display device further include:
Module 140 is highlighted, for after receiving first kind document block selection operation, in the document areas
Highlight the first kind document block selected and its corresponding second class document block.
In embodiment 8, referring to FIG. 10, on the basis of the embodiment of the present application 6, document display device further include:
Annotation content marks generation unit 150, for showing first document areas and the second text laterally side by side
After shelves region, if it is decided that without annotation content in the annotation content block, then in the document areas, the annotation content
At the corresponding textual content block of block, display is marked without annotation content;
After showing first document areas and the second document areas laterally side by side, if it is decided that in the annotation
Holding in block has annotation content, then in the document areas, at the corresponding textual content block in the annotation column, shows annotation
Content-label.
Embodiment 9, please refers to Figure 11, on the basis of the embodiment of the present application 6, document display device further include:
Annotation expansion unit 160, for being adjusted to the relative position of the second class document block in the vertical direction
Later, if the first kind document block selected includes the annotation column of destination document, in the document areas, exhibition
Open the whole annotation contents shown in the annotation content block selected;
After be adjusted to the relative position of the second class document block in the vertical direction, selected if described
First kind document block includes the textual content of destination document, then in the document areas, expansion shows the original text selected
Whole annotation contents in the corresponding annotation content block of content block.
Embodiment 10, please refers to Figure 12, on the basis of the embodiment of the present application 6, document display device further include:
Annotation deletes unit 170, for being adjusted to the relative position of the second class document block in the vertical direction
Later, it if the first kind document block selected includes the annotation column of destination document, in the operation interface, shows
Show that the first operation interface, first operation interface are used to receive the removal request for the annotation content block selected;Such as
Fruit receives the request for deleting the annotation content block selected from first operation interface, then in the destination document
In, the annotation content block selected is deleted;
After be adjusted to the relative position of the second class document block in the vertical direction, selected if described
First kind document block includes the textual content of destination document, then in the operation interface, shows the second operation interface, described
Second operation interface is for receiving and the removal request of the annotation content block of the textual content block selected;If from
Second operation interface receives the request for deleting the corresponding annotation content block, then, will in the destination document
The corresponding annotation content block is deleted.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, term " includes ", " comprising " or its any other variant are intended to
Nonexcludability includes, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium,
The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
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 replacement, improvement and so within the spirit and principles in the present invention, are included in protection scope of the present invention
It is interior.