A control method, control device and storage medium for electronic document view

By changing the display size value of the electronic document file view to control the opening or closing of the functional view, the problem of cumbersome functional view control process in the prior art is solved, and operation efficiency and user experience are improved.

CN115016879BActive Publication Date: 2025-02-25INT DIGITAL ECONOMY ACAD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210608383.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-02-25
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

The control process of the functional view in the prior art is relatively cumbersome, and users need to find the switch buttons of the functional view among the numerous functional buttons, which increases the cumbersome operation.

Method used

By obtaining control instructions for the file view of electronic documents, the display size value of the file view is changed, and the opening or closing of the functional view is controlled according to the size value, including adjustment of transparency.

Benefits of technology

It reduces the operation process caused by the control function view, reduces the cumbersomeness of operation, and improves the user's reading experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115016879B_ABST
    Figure CN115016879B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electronic document technology, and in particular to a control method, a control device and a storage medium for an electronic document view. The degree of control of the functional view of the present invention changes with the size of the file view, so that the control of the functional view can be changed by changing the size of the file view when the user is reading the file view. From the above analysis, it can be seen that the control of the functional view of the present invention can be carried out synchronously with the reading of the file view, and the control of the functional view can be achieved without adding additional control buttons, thereby reducing the operation process generated by controlling the functional view, that is, reducing the complexity of the operation. In addition, when the present invention controls the functional view, the user does not need to stop reading the file view, thereby increasing the user's reading experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic documents, and in particular to a control method, a control device and a storage medium for an electronic document view. Background Art

[0002] When reading the content of an electronic document, a functional view, such as a directory or thumbnail, is opened in order to quickly browse the document content. The prior art controls the opening and closing of the functional view by setting a switch of the functional view at the primary entrance of the view interface where the electronic document is located, or by setting a switch of the functional view at the secondary entrance of the view interface. Since there are other functional buttons on the interface where the primary entrance is located in addition to the document itself, if a switch button of the functional view is added, when the user needs to open or close the functional view, the user needs to find the switch button of the functional view from the numerous function buttons, thereby increasing the complexity of the operation. Setting the switch of the functional view at the secondary entrance of the interface will make it difficult for the user to find the switch button of the functional view, which will also increase the complexity of the operation.

[0003] In summary, the control process of the functional view in the prior art is relatively complicated.

[0004] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a control method, a control device and a storage medium for an electronic document view, which solves the problem that the control process of the functional view in the prior art is relatively complicated.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for controlling an electronic document view, wherein the control method comprises:

[0008] Get control instructions for the file view of the electronic document;

[0009] According to the control instruction, changing the display size value of the file view;

[0010] According to the changed display size value, the opening or closing of the function view of the electronic document is controlled, and the function view is used to assist in reading the document view.

[0011] In one implementation, changing the display size value of the file view according to the control instruction includes:

[0012] According to the control instruction, obtaining a reduction instruction in the control instruction;

[0013] According to the reduction instruction, the reduced size of the file in the display size value is obtained, and the reduced size of the file is used to represent the size of the file view after it is reduced.

[0014] In one implementation, controlling the opening or closing of a functional view of an electronic document includes: during the opening or closing of the functional view, controlling the transparency of the functional view according to the display size value includes:

[0015] Acquire a first set size and a second set size, wherein the first set size is larger than the second set size;

[0016] When the file view is reduced to the first set size, opening the function view;

[0017] In the process of reducing the size of the file from the first set size to the second set size, the transparency of the functional view after it is turned on is controlled.

[0018] In one implementation, during the process of reducing the size of the file from the first set size to the second set size, controlling the transparency of the functional view after it is turned on includes:

[0019] In the process of reducing the size of the file from the first set size to the second set size, calculating the real-time reduced size of the file view;

[0020] According to the real-time reduction in size, the transparency of the functional view after it is turned on is controlled.

[0021] In one implementation, controlling the transparency of the functional view after it is turned on according to the real-time reduction in size includes:

[0022] Get the original size of the file view, where the original size is the size of the file view before it starts to shrink;

[0023] Get the size of the function window where the function view is located;

[0024] The transparency of the function view after opening is controlled according to the real-time reduced size, the original size, and the size of the function window.

[0025] In one implementation, controlling the transparency of the functional view after it is opened according to the real-time reduced size, the original size, and the size of the functional window includes:

[0026] According to the real-time reduced size, a real-time width in the real-time reduced size is obtained;

[0027] According to the original size, obtaining the original width in the original size;

[0028] According to the size of the function window, obtaining the width of the function window;

[0029] Subtract the real-time width from the original width to obtain a width difference;

[0030] Divide the width difference by a set value to obtain a calculation result;

[0031] The calculation result is divided by the width of the functional window to obtain the transparency of the functional view.

[0032] In one implementation, the control method further includes:

[0033] When the file view is reduced to the second set size, if the file view is further reduced, the transparency of the function view is set to a fixed value;

[0034] Alternatively, when the file view is reduced to the second set size, when the reduction of the file view stops, the transparency of the function view is set to a fixed value.

[0035] In one implementation, the control instruction is a zoom-out instruction, and the function view of the electronic document is controlled according to the changed display size value, wherein the function view is used to assist in reading the document view, and includes:

[0036] According to the display size value, obtain the side size in the display size value, where the side size is the side size of the file view;

[0037] According to the edge size, a distance between the file view and a view window is obtained, and the view window is used to display the file view and the function view;

[0038] The functional view is controlled via the distance.

[0039] In one implementation, controlling the opening or closing of a functional view of the electronic document according to the display size value, wherein the functional view is used to assist in reading the document view, includes:

[0040] Calculating size change trend data in the displayed size value according to the displayed size value;

[0041] The functional view is controlled according to the size change trend data.

[0042] In one implementation, changing the display size value of the file view according to the control instruction includes:

[0043] According to the control instruction, obtaining an amplification instruction in the control instruction;

[0044] Under the control of the zoom-in instruction, the display size value of the file view is enlarged.

[0045] In one implementation, controlling the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view, includes:

[0046] Get the size threshold;

[0047] When the enlarged size of the file is greater than the size threshold, if the file view continues to be enlarged, the transparency of the function view is set to a specified value;

[0048] Alternatively, when the enlarged size of the file is greater than the size threshold, if the file view is stopped from being enlarged, the transparency of the function view is set to a specified value.

[0049] In one implementation, controlling the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view, includes:

[0050] According to the enlarged size of the document, obtaining a coordinate enlarged value of the document view in the enlarged size of the document;

[0051] Obtaining coordinate values ​​of the functional view;

[0052] The functional view is controlled according to the coordinate value of the functional view and the coordinate magnification value of the document view.

[0053] In one implementation, the control method further includes:

[0054] The functional view includes a directory bar view and a thumbnail view, wherein the directory bar view is used to display the directory corresponding to the file view, and the thumbnail view is a reduced view of the file view;

[0055] The directory bar view and the thumbnail view are switched by switching tabs.

[0056] In a second aspect, an embodiment of the present invention further provides a device for controlling an electronic document view, wherein the device includes the following components:

[0057] An instruction collection module, used to obtain control instructions for the file view of the electronic document;

[0058] A size calculation module, used to change the display size value of the file view according to the control instruction;

[0059] The control module is used to control the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document.

[0060] In a third aspect, an embodiment of the present invention further provides a terminal device, wherein the terminal device includes a memory, a processor, and a control program for an electronic document view stored in the memory and executable on the processor, and when the processor executes the control program for the electronic document view, the steps of the above-mentioned method for controlling the electronic document view are implemented.

[0061] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a control program for an electronic document view is stored. When the control program for an electronic document view is executed by a processor, the steps of the above-mentioned method for controlling an electronic document view are implemented.

[0062] Beneficial effect: The present invention starts to calculate the size of the file view after the user issues a control instruction, and implements control over the functional view according to the size of the file view. That is, the degree of control over the functional view of the present invention changes with the size of the file view, so that the control over the functional view can be changed by changing the size of the file view while the user is reading the file view. From the above analysis, it can be seen that the control over the functional view of the present invention can be performed synchronously when operating the file view, and the control over the functional view can be achieved without adding additional control buttons or page jumps, thereby reducing the operation process generated by controlling the functional view, that is, reducing the complexity of the operation. In addition, while controlling the functional view, the present invention does not need to stop reading the file view, thereby increasing the user's reading experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is the overall flow chart of the present invention;

[0064] Figure 2 A schematic diagram of switching from an enlarged file view to a thumbnail view of the present invention;

[0065] Figure 3 A multi-layer functional view of the present invention;

[0066] Figure 4 A schematic diagram of switching to a directory bar view when zooming out the file view of the present invention;

[0067] Figure 5 This is a block diagram of the internal structure principle of the terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The following is a clear and complete description of the technical solution of the present invention in combination with the embodiments and the accompanying drawings. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0069] In one embodiment, an electronic document includes an electronic document body (the electronic document body is recorded in the form of a file view) and a directory corresponding to the electronic document body (the electronic document itself comes with the electronic document, and the directory can be obtained through the reading software; or the directory is generated by the reading software). The electronic document body and the directory constitute the electronic document, and a thumbnail for assisting in reading the electronic document body is also provided in the electronic product. The thumbnail and the directory constitute a functional view. When reading the content of the electronic document, a functional view, such as a directory or a thumbnail, is opened in order to quickly browse the document content. The prior art controls the opening and closing of the functional view by setting a switch of the functional view at the primary entrance of the view interface where the electronic document is located, or setting a switch of the functional view at the secondary entrance of the view interface. Since there are other function buttons on the interface where the primary entrance is located in addition to the document itself, if a switch button of the functional view is added, when the user needs to open or close the functional view, it is necessary to find the switch button of the functional view from the numerous function buttons, thereby increasing the complexity of the operation. Setting the switch of the functional view at the secondary entrance of the interface will make it difficult for the user to find the switch button of the functional view, which will also increase the complexity of the operation.

[0070] In order to solve the above technical problems, the present invention provides a control method, a control device and a storage medium for an electronic document view, which solves the problem that the control process of the functional view in the prior art is relatively cumbersome. In specific implementation, a control instruction for the file view of the electronic document is obtained; according to the control instruction, the display size value of the file view is changed; according to the changed display size value, the functional view of the electronic document is controlled, and the functional view is used to assist in reading the file view. The present invention can reduce the cumbersomeness of the operation caused by controlling the functional view.

[0071] For example, when reading electronic documents on a tablet, the functional view is used to assist in reading the file view. When the tablet receives a control instruction A from the user for the file view (a control instruction for the user to change the size of the file view), the size of the file view will change according to the control instruction A, and the size after the change is recorded as size a. The state of the functional view is controlled according to size a, so that the functional view is in state a'. When the tablet receives a control instruction B from the user for the file view again, the size of the file view will change according to the control instruction B, and the size after the change is recorded as size b. The state of the functional view is controlled according to size b, so that the functional view is in state b'. From the above analysis, it can be seen that in this implementation, if the state of the functional view needs to be changed from state a' to state b', the user controls the file view, and the state of the functional view can be changed according to the size of the file view, without requiring too many cumbersome operations. Moreover, when the user changes the size of the file view to control the functional view, the user does not need to divert his attention to other operation interfaces, which increases the user's reading experience.

[0072] Exemplary Methods

[0073] The control method of the electronic document view of this embodiment can be applied to a terminal device, which can be a terminal product with a document display function, such as a pad, a touch-screen mobile phone, a touch-screen computer, a laptop computer, a display screen, etc. In this embodiment, if Figure 1 As shown in , the control method of the electronic document view specifically includes the following steps S100, S200, S300:

[0074] S100, obtaining a control instruction for a file view of an electronic document.

[0075] like Figure 2 As shown, Figure 2 The right side of the document reading window is the file view, and the left side of the document reading window is the function view. In other embodiments, the positions of the file view and the function view can be adjusted according to actual conditions, and are not limited here. The file view and the function view can be on the left, right, top, or bottom of the document reading window. The function view also includes a directory bar view and a thumbnail view. The directory bar view is used to display the directory corresponding to the file view, and the thumbnail view is a reduced view of the file view. Figure 2 As shown, a one-page file view is displayed on the right side of the document reading window, while a thumbnail view is displayed on the left side of the document reading window. Since it is a reduced file view, multiple pages of reduced file views can be displayed on the left side, so that users can quickly browse the file content through thumbnails and locate the target page of the file through thumbnails.

[0076] The control instructions of this embodiment include amplification Figure 2In this embodiment, the user controls the file view by touching the tablet. When the two fingers touching the tablet are spread apart, the corresponding command is a zoom-in command; when the two fingers are brought together, the corresponding command is a zoom-out command. The control command can also be implemented on different terminals through other control methods, which will not be described in detail here.

[0077] S200: Change the display size value of the file view according to the control instruction.

[0078] The control instructions of this embodiment include zoom-in instructions and zoom-out instructions. Step S200 includes two situations. The first situation: when the user inputs a zoom-out instruction on the reading device for reading electronic documents, the size of the file view becomes smaller (the file view is zoomed out); the second situation: when the user inputs a zoom-in instruction on the reading device for reading electronic documents, the size of the file view becomes larger (the file view is zoomed in). The first situation: when the user issues a zoom-out instruction, the reading device will zoom out the size of the file view. In this embodiment, the file zoom-out size is used to represent the size of the file view after it is zoomed out. In this embodiment, the file zoom-out size is the zoom-out multiple, and the zoom-out multiple is the ratio of the size of the file view after it is zoomed out to the original size of the file view. The second situation: when the user issues a zoom-in instruction to the reading device, the reading device will zoom in the size of the file view. In this embodiment, the file zoom-in size is used to represent the size of the file view after it is zoomed in. In this embodiment, the file zoom-in size is the zoom-in multiple, and the zoom-in multiple is the ratio of the size of the file view after it is zoomed in to the original size of the file view.

[0079] S300, controlling a functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view.

[0080] According to the two cases of step S200, step S300 also includes two cases. In the first case, when the file view is reduced, the function view is controlled according to the degree of reduction of the file view; in the second case, when the file view is enlarged, the function view is controlled according to the degree of enlargement of the file view. When step S300 is the first case, step S300 includes the following steps S301, S302, S303, S304, S305, S306, S307, S308:

[0081] S301, obtaining a first set size and a second set size, wherein the first set size is larger than the second set size.

[0082] In this embodiment, the first set size and the second set size are both reduction factors, where the reduction factor is the ratio of the reduced size of the file view to the original size of the file view. The first set size is 0.9, and the second set size is 0.7.

[0083] S302: When the file is reduced in size to the first set size, the functional view is opened.

[0084] In this embodiment, when the file view is reduced to the first set size (0.9), the reading device will open the function view so that the function view is placed in the Figure 2 In the view window shown, both the function view and the file view are in the view window. Although the function view is opened at this time, the transparency of the function view is zero, that is, the user cannot see any text information from the function view. The reason why when the file view is reduced to 0.9, only the function view is opened, but no text information is displayed on the function view is to prevent the file view from being reduced due to the user's misoperation. If the user sees the text information on the function view due to misoperation, it will affect the user's reading of the text on the file view. Moreover, the file view is reduced by misoperation, which means that the user does not need to display the text on the function view by reducing the file view to perform corresponding operations according to the displayed text. In addition, even if the file view is not reduced and the function view is opened due to the user's misoperation, the transparency of the function view remains zero before the file view is reduced to 0.9, so that the change process of the transparency of the function view can be a gradual change, which can improve the user's reading experience.

[0085] S303: Calculate the real-time reduced size of the file view during the process of reducing the file size from the first set size to the second set size.

[0086] S304: Acquire the original size of the file view, where the original size is the size of the file view before it starts to shrink.

[0087] S304: Obtain the size of the function window where the function view is located.

[0088] S306: Subtract the real-time width from the original width to obtain a width difference.

[0089] S307: Divide the width difference by a set value to obtain a calculation result.

[0090] S308: Divide the calculation result by the width of the functional window to obtain the transparency of the functional view.

[0091] The original size of this embodiment is the original width of the file view, and the function window is Figure 2In the window in which the user displays the function view and the file view, the size of the function window is the width of the function window, and the real-time reduction size is the real-time width of the file view after it is reduced. In this embodiment, the width change value of the file view is used to adjust the transparency of the function view. Since the width of the file view is controlled by the user, if the user urgently needs to use the function view, the width of the file view can be quickly reduced. In this way, the transparency of the function view can be quickly increased to see the text content on the function view, so that the user can perform subsequent operations according to the text content. In this embodiment, the transparency of the function view can also be adjusted by adjusting the position of the file view. For example, when the file view moves away from the function view, the transparency of the function view becomes larger, and when the file view moves closer to the function view, the transparency of the function view becomes smaller. In this way, the size of the function view does not change during the process of adjusting the transparency, which can provide users with a better reading experience.

[0092] The purpose of S303 to S308 in this embodiment is to adjust the transparency of the function view when the file view is reduced from the first set size (0.9) to the second set size (0.7), so that the user can gradually see the text on the function view while reducing the file view, so as to perform corresponding operations on the file view according to the text on the function view. For example, if the function view is a directory bar, when the user clicks on a certain place on the target bar, the file view jumps to the corresponding page.

[0093] S303 to S308 adjust the transparency T of the functional view based on the following formula:

[0094]

[0095] Where W is the original width of the file view, W′ is the real-time width of the file view after it is reduced, d is the width of the function window, and 2 is the set value.

[0096] After the file view is reduced to 0.7, no matter the user stops reducing the file view or continues to reduce the file view, the reading device directly sets the transparency of the function view to 100% (fixed value), that is, the text on the function view is displayed completely and clearly.

[0097] In the process of reducing the file view, the present embodiment can also control the functional view according to the positional relationship between the file view and the view window. The specific process is: according to the display size value, obtain the edge size in the display size value, and the edge size is the edge size of the file view; according to the edge size, obtain the distance between the file view and the view window, and the view window is used to display the file view and the functional view; and control the functional view through the distance.

[0098] The view window of this embodiment is located at the outermost layer of the reading device, as shown in 3, and after the outermost layer are various functional views. When a file view is opened, the file view is displayed in the view window, and when a functional view is opened, the functional view is also displayed in the view window.

[0099] For example, Figure 2 As shown, when the file view is reduced to 0.9 during the process of reducing the file view, the function view is opened and placed in the view window. Then the file view is further reduced, and when the distance between the left side of the file view and the left side of the view window is equal to the width of the function view (the function view also has its own window, and the width of the function view in this embodiment is the width of the function view window), the transparency of the function view located at the left side of the file view and the left side of the view window is adjusted to 100% (full display).

[0100] In this embodiment, a switch button can also be set on the functional view, and the switch button and the reduced file view cooperate with each other to control the opening and closing of the functional view, as well as the transparency of the functional view. This can meet the needs of users who just want to reduce the file view without opening the functional view. The specific process is: based on the functional view, a button (switch button) corresponding to the functional view is obtained, and the button is used to control the opening and closing state of the functional view; based on the display size value (file view reduction multiple), the size change trend data in the display size value is obtained (whether the size is developing in the direction of increasing or decreasing); based on the size change trend data and the button, the functional view is controlled.

[0101] For example: When the user closes the function view layer of the thumbnail (function view) and then performs a zoom-out operation, the thumbnail will no longer be displayed. You must first zoom in on the PDF (file view). When you zoom in to 90% and then zoom out of the PDF, you can control the thumbnail according to the reduction degree of the PDF.

[0102] When step S300 is the second case, that is, the file view is enlarged, step S300 includes the following steps S309, S3010, and S3011:

[0103] S309: Obtain a coordinate magnification value of the file view in the file magnification size according to the file magnification size.

[0104] In this embodiment, the coordinate magnification value is the coordinate value x of the horizontal coordinate of the edge of the file view close to the function view after the file view is magnified.

[0105] S3010: Obtain the coordinate value of the functional view.

[0106] Whether the file view is enlarged or reduced, as long as the size of the file view is 90%, the function view is opened and fixed in the view window, so that the view window has a coordinate value. Figure 2 As shown, the horizontal coordinate of the middle position of the view window is used as the coordinate value of the functional view.

[0107] S3011: Control the functional view according to the coordinate value of the functional view and the coordinate magnification value of the document view.

[0108] like Figure 2 As shown, with the upper left corner of the view window as the coordinate origin (0,0), the horizontal direction as the x coordinate, and the vertical direction as the y coordinate, when the file view is enlarged, the left side of the file view reaches the middle position of the function view (d / 2), and the file view continues to be enlarged. When the left side of the file view exceeds d / 2, the transparency of the function view is set to zero, that is, the function view is in a hidden state.

[0109] When the file view is enlarged, the transparency of the function view can be adjusted according to the file enlargement size of the file view, just like adjusting the transparency of the function view when the file view is reduced. The specific process is: when the file enlargement size is greater than the size threshold (0.7, i.e., enlarged to 0.7 times the original size of the file view), the file view is continued to be enlarged, and the transparency of the function view is set to a specified value; or, when the file enlargement size is greater than the size threshold, the file view is stopped from being enlarged, and the transparency of the function view is set to a specified value. When the file enlargement size is greater than the size threshold, the file view is continued to be enlarged, and the transparency of the function view is set to a specified value (the specified value is 0).

[0110] The overall process of implementing the control function view through steps S100, S200, and S300 in this embodiment is as follows:

[0111] 1: The user opens the PDF view window on a reading device (such as a tablet).

[0112] 2: When the user touches to reduce the file view (i.e., the user sends a command to the reading device to reduce the file view), when the size of the PDF view (file view) is reduced to a certain range (the distance between the left margin of the PDF view and the left margin of the view window is equal to the thumbnail window width), the thumbnail interface pops up from the view window.

[0113] In this embodiment, the functional view includes at least a directory bar view and a thumbnail view, and the directory bar view and the thumbnail view can be switched between each other. Figure 2 The thumbnail view is displayed. Figure 4It switches the thumbnail view to the directory bar view. The width of the thumbnail view and the directory bar view are the same. By switching, the reading device can have two functions, and the directory bar view and the thumbnail view share the same space position of the view window, which can save space for the file view, so that there is more space for displaying the file view, which makes it easier for users to read the text on the file view.

[0114] In another embodiment, the file view is opened by default in the document reading window, and the function view is in a hidden state. When switching to the directory bar view, the directory bar needs to be rendered and then opened.

[0115] 3: After the thumbnail interface pops up, if the user does not click the close button of the thumbnail, the thumbnail is displayed during the current touch-enlarged file view, and the thumbnail is hidden when the PDF view is enlarged to the right of the thumbnail. If the thumbnail is hidden during the touch-enlarged file view, the display and hiding of the thumbnail view is controlled by step 2.

[0116] 4: If the thumbnail is displayed during the current touch-down process of zooming out the file view, and the thumbnail close button is clicked, if the PDF zoom ratio is not greater than 90%, the thumbnail will not be displayed during the current touch-down process no matter how the PDF view is zoomed out. The PDF zoom ratio needs to be enlarged to greater than 90% and then zoomed out to re-display the thumbnail, which will reset the record of the previous state (re-execute the thumbnail display and hiding logic according to the second and third methods).

[0117] In summary, the present invention starts to calculate the size of the file view after obtaining the control instruction for the file view of the electronic document, and realizes the control of the functional view according to the size of the file view. That is, the degree of control of the functional view of the present invention changes with the size of the file view, so that the control of the functional view can be changed by changing the size of the file view when the user is reading the file view. From the above analysis, it can be seen that the control of the functional view of the present invention can be carried out simultaneously with the reading of the file view, and the control of the functional view can be realized without adding additional control buttons, thereby reducing the operation process generated by controlling the functional view, that is, reducing the cumbersomeness of the operation. In addition, when the present invention controls the functional view, the user does not need to stop reading the file view, thereby increasing the user's reading experience.

[0118] Moreover, the present invention binds the interactive operation of "expanding and hiding the directory bar / thumbnail" with the interactive operation of "touch to zoom in and out the file view", so that the user can expand the directory bar while touching and zooming in the document to switch the document content / locate the directory, etc.

[0119] Exemplary Devices

[0120] This embodiment also provides a device for controlling an electronic document view, the device comprising the following components:

[0121] An instruction collection module, used to obtain control instructions for the file view of the electronic document;

[0122] A size calculation module, used to change the display size value of the file view according to the control instruction;

[0123] The control module is used to control the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document.

[0124] Based on the above embodiments, the present invention further provides a terminal device, whose principle block diagram can be shown as follows: Figure 5 As shown. The terminal device includes a processor, a memory, a network interface, and a display screen connected via a system bus. The processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for controlling an electronic document view is implemented. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen.

[0125] Those skilled in the art will understand that Figure 5 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal device to which the scheme of the present invention is applied. The specific terminal device may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0126] In one embodiment, a terminal device is provided. The terminal device includes a memory, a processor, and a control program for an electronic document view stored in the memory and executable on the processor. When the processor executes the control program for the electronic document view, the following operation instructions are implemented:

[0127] Get control instructions for the file view of the electronic document;

[0128] According to the control instruction, changing the display size value of the file view;

[0129] According to the changed display size value, a functional view of the electronic document is controlled, wherein the functional view is used to assist in reading the document view.

[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for controlling an electronic document view, characterized in that: The control method comprises: Get control instructions for the file view of the electronic document; According to the control instruction, changing the display size value of the file view; According to the changed display size value, a functional view of the electronic document is controlled, wherein the functional view is used to assist in reading the document view, and the control of the functional view and the reading of the document view are performed synchronously; Controlling the functional view of the electronic document includes controlling the opening or closing of the functional view. During the opening or closing of the functional view, controlling the transparency of the functional view according to the changed display size value, including: Acquire a first set size and a second set size, wherein the first set size is larger than the second set size; When the file view is reduced to the first set size, opening the function view; In the process of reducing the file view from the first set size to the second set size, controlling the transparency of the function view after it is turned on, so that the text on the function view can be gradually seen; The control method further comprises: The functional view includes a directory bar view and a thumbnail view, wherein the directory bar view is used to display the directory corresponding to the file view, and the thumbnail view is a reduced view of the file view; The directory bar view and the thumbnail view are switched by switching tabs, and the directory bar view and the thumbnail view share the same spatial position of the view window.

2. The method for controlling an electronic document view according to claim 1, characterized in that: The step of changing the display size value of the file view according to the control instruction includes: According to the control instruction, obtaining a reduction instruction in the control instruction; According to the reduction instruction, the reduced size of the file in the display size value is obtained, and the reduced size of the file is used to represent the size of the file view after it is reduced.

3. The method for controlling an electronic document view according to claim 1, characterized in that: In the process of reducing the size of the file from the first set size to the second set size, controlling the transparency of the functional view after it is turned on includes: In the process of reducing the size of the file from the first set size to the second set size, calculating the real-time reduced size of the file view; According to the real-time reduction in size, the transparency of the functional view after it is turned on is controlled.

4. The method for controlling an electronic document view according to claim 3, characterized in that: The controlling the transparency of the functional view after it is turned on according to the real-time reduction in size includes: Get the original size of the file view, where the original size is the size of the file view before it starts to shrink; Get the size of the function window where the function view is located; The transparency of the function view after opening is controlled according to the real-time reduced size, the original size, and the size of the function window.

5. The method for controlling the electronic document view according to claim 4, characterized in that: The controlling the transparency of the functional view after it is opened according to the real-time reduced size, the original size, and the size of the functional window includes: According to the real-time reduced size, a real-time width in the real-time reduced size is obtained; According to the original size, obtaining the original width in the original size; According to the size of the function window, obtaining the width of the function window; Subtract the real-time width from the original width to obtain a width difference; Divide the width difference by a set value to obtain a calculation result; The calculation result is divided by the width of the functional window to obtain the transparency of the functional view.

6. The method for controlling an electronic document view according to claim 1, characterized in that: The control method further comprises: When the file view is reduced to the second set size, if the file view is further reduced, the transparency of the function view is set to a fixed value; Alternatively, when the file view is reduced to the second set size, when the reduction of the file view stops, the transparency of the function view is set to a fixed value.

7. The method for controlling an electronic document view according to claim 1, characterized in that: The control instruction is a zoom-out instruction, and the function view of the electronic document is controlled according to the changed display size value, and the function view is used to assist in reading the document view, including: According to the display size value, obtain the side size in the display size value, where the side size is the side size of the file view; According to the edge size, a distance between the file view and a view window is obtained, and the view window is used to display the file view and the function view; The functional view is controlled via the distance.

8. The method for controlling an electronic document view according to claim 1, characterized in that: The method of controlling the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view, includes: Calculating size change trend data in the displayed size value according to the displayed size value; The functional view is controlled according to the size change trend data.

9. The method for controlling an electronic document view according to claim 1, characterized in that: The step of changing the display size value of the file view according to the control instruction includes: According to the control instruction, obtaining an amplification instruction in the control instruction; Under the control of the zoom-in instruction, the display size value of the file view is zoomed in to obtain the file zoom-in size of the file view.

10. The method for controlling an electronic document view according to claim 9, characterized in that: The method of controlling the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view, includes: Get the size threshold; When the enlarged size of the file is greater than the size threshold, if the file view continues to be enlarged, the transparency of the function view is set to a specified value; Alternatively, when the enlarged size of the file is greater than the size threshold, if the enlargement of the file is stopped view, the transparency of the functional view is set to the specified value.

11. The method for controlling an electronic document view according to claim 9, characterized in that: The method of controlling the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view, includes: According to the enlarged size of the document, obtaining a coordinate enlarged value of the document view in the enlarged size of the document; Obtaining coordinate values ​​of the functional view; The functional view is controlled according to the coordinate value of the functional view and the coordinate magnification value of the document view.

12. A control device for an electronic document view, characterized in that: The device comprises the following components: An instruction collection module, used to obtain control instructions for the file view of the electronic document; A size calculation module, used to change the display size value of the file view according to the control instruction; A control module, used for controlling the functional view of the electronic document according to the changed display size value, wherein the functional view is used to assist in reading the document view, and the control of the functional view and the reading of the document view are performed synchronously; Controlling the functional view of the electronic document includes controlling the opening or closing of the functional view. During the opening or closing of the functional view, controlling the transparency of the functional view according to the changed display size value, including: Acquire a first set size and a second set size, wherein the first set size is larger than the second set size; When the file view is reduced to the first set size, opening the function view; In the process of reducing the file view from the first set size to the second set size, controlling the transparency of the function view after it is turned on, so that the text on the function view can be gradually seen; The control method further comprises: The functional view includes a directory bar view and a thumbnail view, wherein the directory bar view is used to display the directory corresponding to the file view, and the thumbnail view is a reduced view of the file view; The directory bar view and the thumbnail view are switched by switching tabs, and the directory bar view and the thumbnail view share the same spatial position of the view window.

13. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a control program for an electronic document view stored in the memory and executable on the processor. When the processor executes the control program for the electronic document view, the steps of the method for controlling an electronic document view as described in any one of claims 1 to 11 are implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for an electronic document view. When the control program for an electronic document view is executed by a processor, the steps of the method for controlling an electronic document view according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Semantic zoom of a document

    CN102955655A

  • Map display method, apparatus and device, and storage medium

    CN108460725A