[go: up one dir, main page]

CN119337819A - Method, device, electronic device and storage medium for displaying table in document - Google Patents

Method, device, electronic device and storage medium for displaying table in document Download PDF

Info

Publication number
CN119337819A
CN119337819A CN202411461577.2A CN202411461577A CN119337819A CN 119337819 A CN119337819 A CN 119337819A CN 202411461577 A CN202411461577 A CN 202411461577A CN 119337819 A CN119337819 A CN 119337819A
Authority
CN
China
Prior art keywords
document
mode
displayed
target
width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411461577.2A
Other languages
Chinese (zh)
Inventor
刘沛
关基荣
罗谢瀚
刘欢
王中秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202411461577.2A priority Critical patent/CN119337819A/en
Publication of CN119337819A publication Critical patent/CN119337819A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例涉及一种文档中表格的显示方法、装置、电子设备及存储介质,上述方法包括:以第一模式显示所述文档,其中,以所述第一模式显示的所述文档中显示的所述表格的宽度大于所述文档的版心宽度;接收针对所述文档的第一指令;其中,所述第一指令指示以第二模式显示所述文档,以所述第二模式显示的所述文档的视区范围大于以所述第一模式显示的所述文档的版心范围;响应于所述第一指令,在以所述第二模式显示所述文档的情况下,在所述文档的所述视区范围内完整显示所述表格。由此,可以提高用户等对象浏览第二模式下的文档中的表格的观看体验。

The embodiment of the present application relates to a method, device, electronic device and storage medium for displaying a table in a document, the method comprising: displaying the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is greater than the width of the document; receiving a first instruction for the document; wherein the first instruction instructs to display the document in a second mode, and the viewing area of the document displayed in the second mode is greater than the width of the document displayed in the first mode; in response to the first instruction, when the document is displayed in the second mode, the table is fully displayed within the viewing area of the document. Thus, the viewing experience of users and other objects browsing the table in the document in the second mode can be improved.

Description

Method and device for displaying tables in document, electronic equipment and storage medium
Technical Field
The present application relates to the field of document processing technologies, and in particular, to a method and apparatus for displaying a table in a document, an electronic device, and a storage medium.
Background
In the related art for displaying a form in a document, when the form is too much, particularly when the number of columns is out of view, one way is that the user typically needs to find a horizontal scroll bar and manually adjust the position of the scroll bar to view the entire contents of the form. However, this manner of operation greatly affects the viewing experience of the user. Another way is that if the table content exceeds the view area of the document, the exceeding part is not displayed, resulting in the deletion of the display content.
It can be seen that how to improve the viewing experience of objects such as users to browse forms in documents is a technical problem of interest.
Disclosure of Invention
In view of this, in order to solve some or all of the above technical problems, embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for displaying a table in a document.
In a first aspect, an embodiment of the present application provides a method for displaying a table in a document, where the method includes:
displaying the document in a first mode, wherein a width of the form displayed in the document displayed in the first mode is greater than a width of a centroid of the document;
Receiving a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and the visual area range of the document displayed in the second mode is larger than the plate center range of the document displayed in the first mode;
in response to the first instruction, the form is displayed in its entirety within the view region of the document with the document displayed in the second mode.
In one possible embodiment, the method further comprises:
In response to the first instruction, displaying the document in the second mode in the following manner:
Determining screen information of a screen for displaying the document, and an initial scaling of the view region relative to the centroid region, wherein the screen information includes at least one of resolution and aspect ratio;
determining a target scale of the view region range relative to the plate center range based on the screen information and the initial scale;
And scaling and displaying the document content in the document at the target scaling scale so as to display the document in the second mode.
In one possible embodiment, the second mode is a demonstration mode, and
After said displaying said document in said second mode, said method further comprises:
Receiving a second instruction for the document, wherein the second instruction indicates that the form in the document is displayed at the initial scale in the second mode;
in response to the second instruction, the form in the document is displayed at the initial scale in the second mode.
In one possible implementation, the displaying the table in its entirety within the view region of the document includes:
determining whether a target column exists in the table, wherein the column blank width of the target column is larger than or equal to a preset threshold value;
in the case where the table has the target column, the width of the target column is compressed to completely display the table within the view region of the document.
In one possible implementation, before the determining whether the table has a target column, the method further includes:
determining whether the table displayed at a target scale is within the view region;
in the event that the table displayed at the target scale is not within the view region, determining whether a target column exists for the table.
In one possible implementation, the displaying the table in its entirety within the view region of the document includes:
determining whether the table displayed at a target scale is within the view region;
Determining a first width of the view region range and a second width of the table displayed at the target scale in the case that the table displayed at the target scale is not located within the view region range;
determining a quotient of the second width and the first width to obtain a target multiple;
determining a quotient of the target scaling and the target multiple to obtain a new scaling;
The form is scaled according to the new scaling to completely display the form within the view region of the document.
In one possible embodiment, the second mode is a demonstration mode, and
In the case of displaying the document in the second mode, the method further comprises:
Receiving a zoom operation for the form in the document;
And scaling the table in the document displayed in the second mode according to the scaling scale indicated by the scaling operation.
In one possible embodiment, the size of the form in the document displayed in the first mode is recorded as an initial size, and
After said scaling said form in said document displayed in said second mode, said method further comprises:
receiving a third instruction for the document, wherein the third instruction instructs the document to be displayed in the first mode;
in response to the third instruction, the form in the document is displayed in the first mode at the initial size.
In one possible embodiment, the method further comprises:
Receiving a resizing operation for the form in the document displayed in the second mode;
Determining a target table size for which the resizing operation indicates an adjustment;
based on the target table size, a target or initial scale for the view region range relative to the centroid region is determined.
In one possible embodiment, cells of the table displayed in the first mode are denoted as first cells;
the cells corresponding to the first cells in the table displayed in the second mode are marked as second cells;
The content line number of the first cell is equal to the content line number of the second cell.
In one possible embodiment, the contents of each row of the first cell are respectively identical to the contents of each row of the second cell.
In a second aspect, an embodiment of the present application provides a display apparatus for a form in a document, the apparatus including:
A first display unit configured to display the document in a first mode, wherein a width of the form displayed in the document displayed in the first mode is larger than a centroid width of the document;
A first receiving unit configured to receive a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and a view area range of the document displayed in the second mode is larger than a centroid range of the document displayed in the first mode;
and a second display unit configured to, in response to the first instruction, completely display the form within the view area of the document in a case where the document is displayed in the second mode.
In one possible embodiment, the apparatus further comprises:
A third display unit configured to display the document in the second mode in response to the first instruction in the following manner:
Determining screen information of a screen for displaying the document, and an initial scaling of the view region relative to the centroid region, wherein the screen information includes at least one of resolution and aspect ratio;
determining a target scale of the view region range relative to the plate center range based on the screen information and the initial scale;
And scaling and displaying the document content in the document at the target scaling scale so as to display the document in the second mode.
In one possible embodiment, the second mode is a demonstration mode, and
After said displaying said document in said second mode, said apparatus further comprises:
A second receiving unit configured to receive a second instruction for the document, wherein the second instruction instructs to display the table in the document at the initial scale in the second mode;
and a fourth display unit configured to display the form in the document at the initial scale in the second mode in response to the second instruction.
In one possible implementation, the displaying the table in its entirety within the view region of the document includes:
determining whether a target column exists in the table, wherein the column blank width of the target column is larger than or equal to a preset threshold value;
in the case where the table has the target column, the width of the target column is compressed to completely display the table within the view region of the document.
In one possible embodiment, before said determining whether the table has a target column, the apparatus further comprises:
A first determining unit configured to determine whether the table displayed at a target scale is located within the view region;
And a second determining unit configured to determine whether a target column exists in the table in a case where the table displayed at the target zoom scale is not located within the view region.
In one possible implementation, the displaying the table in its entirety within the view region of the document includes:
determining whether the table displayed at a target scale is within the view region;
Determining a first width of the view region range and a second width of the table displayed at the target scale in the case that the table displayed at the target scale is not located within the view region range;
determining a quotient of the second width and the first width to obtain a target multiple;
determining a quotient of the target scaling and the target multiple to obtain a new scaling;
The form is scaled according to the new scaling to completely display the form within the view region of the document.
In one possible embodiment, the second mode is a demonstration mode, and
In the case of displaying the document in the second mode, the apparatus further includes:
a third receiving unit configured to receive a scaling operation for the table in the document;
And a scaling unit configured to scale the table in the document displayed in the second mode according to the scaling indicated by the scaling operation.
In one possible embodiment, the size of the form in the document displayed in the first mode is recorded as an initial size, and
After said scaling said form in said document displayed in said second mode, said apparatus further comprises:
A fourth receiving unit configured to receive a third instruction for the document, wherein the third instruction instructs to display the document in the first mode;
And a fifth display unit configured to display the form in the document in the initial size in the first mode in response to the third instruction.
In one possible embodiment, the apparatus further comprises:
a fifth receiving unit configured to receive a resizing operation for the form in the document displayed in the second mode;
a third determining unit configured to determine a target table size adjusted by the resizing operation instruction;
And a fourth determining unit configured to determine a target scale or an initial scale of the view area range with respect to the plate center range based on the target table size.
In one possible embodiment of the present invention,
The cells of the table displayed in the first mode are noted as first cells;
the cells corresponding to the first cells in the table displayed in the second mode are marked as second cells;
The content line number of the first cell is equal to the content line number of the second cell.
In one possible embodiment, the contents of each row of the first cell are respectively identical to the contents of each row of the second cell.
In a third aspect, an embodiment of the present application provides an electronic device, including:
A memory for storing a computer program;
and a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the method of any embodiment of the method for displaying a table in a document according to the first aspect of the present application.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the embodiments of the method for displaying a table in a document of the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product comprising computer readable code which, when run on a device, causes a processor in the device to implement a method as in any of the embodiments of the method of displaying a table in a document of the first aspect above.
The method for displaying the table in the document, which is provided by the embodiment of the application, can firstly display the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is larger than the width of the center of the document, and then receive a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, the visual area range of the document displayed in the second mode is larger than the center of the document displayed in the first mode, and then respond to the first instruction, and the table is completely displayed in the visual area range of the document under the condition that the document is displayed in the second mode. Therefore, the table with the width larger than the width of the document center displayed in the first mode can be ensured to be completely displayed in the visual area range of the document when displayed in the second mode, and further, the viewing experience of a user and other objects for browsing the table in the document in the second mode can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a schematic flow chart of a method for displaying a form in a document according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for displaying a table in a document according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for displaying a table in a document according to another embodiment of the present application;
Fig. 4A to fig. 4C are schematic diagrams illustrating a calculation mode of a column blank width in a method for displaying a table in a document according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for displaying a table in a document according to another embodiment of the present application;
FIG. 6 is a schematic diagram of a display effect of a method for displaying a table in a document according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a width of a compressed target column of a method for displaying a table in a document according to an embodiment of the present application;
FIG. 8A is a schematic diagram of a low-resolution screen displaying a form in a document in a first mode in a method for displaying a form in a document according to an embodiment of the present application;
FIG. 8B is a schematic diagram of a low-resolution screen displaying a form in a document in a second mode according to an embodiment of the present application;
FIG. 9A is a schematic diagram of a common split screen displaying a table in a document in a first mode in a method for displaying a table in a document according to an embodiment of the present application;
FIG. 9B is a schematic diagram of a common split screen displaying a table in a document in a second mode in a method for displaying a table in a document according to an embodiment of the present application;
FIG. 10A is a schematic diagram of a high-resolution screen displaying a form in a document in a first mode in a method for displaying a form in a document according to an embodiment of the present application;
FIG. 10B is a schematic diagram of a high-resolution screen displaying a form in a document in a second mode in a method for displaying a form in a document according to an embodiment of the present application;
FIG. 11 is a schematic diagram showing the effect of displaying a form in a document in a second mode in a method for displaying a form in a document according to an embodiment of the present application;
FIG. 12 is a schematic view of the effect of clicking on the adaptation screen;
FIG. 13 is a schematic of the effect of reverting from the adaptive screen to the default scale;
FIG. 14 is a schematic view showing the effect of click zoom-out;
FIG. 15 is a schematic diagram of a display device for a form in a document according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the application will now be described in detail with reference to the accompanying drawings, it being apparent that the described embodiments are some, but not all embodiments of the application. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
It will be appreciated by those skilled in the art that terms such as "first," "second," and the like in the embodiments of the present application are used merely to distinguish between different steps, devices or modules and the like, and do not represent any particular technical meaning or logical sequence therebetween.
It should also be understood that in this embodiment, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in an embodiment of the application may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in the present application is merely an association relation describing the association object, and indicates that three kinds of relations may exist, for example, a and/or B may indicate that a exists alone, and a and B exist together, and B exists alone. In the present application, the character "/" generally indicates that the front and rear related objects are an or relationship.
It should also be understood that the description of the embodiments of the present application emphasizes the differences between the embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. For an understanding of embodiments of the present application, the present application will be described in detail below with reference to the drawings in conjunction with the embodiments. It will be apparent that the described embodiments are some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Furthermore, it should be noted that the user (e.g., target user) described in the present application may be distinguished by a user identification. For example, the user identifier may be a login account, and in this scenario, if different people use the same account to log in, the different people may be considered to be the same user, and if the same people use different accounts to log in, the same person logging in different accounts may be considered to be different users. For another example, in a state where a device is not logged in, a user identification may also be assigned based on the device identification of the device. In this scenario, if different persons operate by using devices with the same device identifier, the different persons can be considered to be the same user, and if the same person operates by using devices with different device identifiers, the same person can be considered to be different user.
In order to solve the technical problem of how to improve the viewing experience of objects such as users in browsing forms in a document and the technical problem of how to reduce the computer power consumption caused by repeatedly adjusting the forms in the document in the prior art, the application provides a display method, a device, electronic equipment and a storage medium for the forms in the document, which can improve the viewing experience of objects such as users in browsing forms in a second mode.
Fig. 1 is a flowchart of a method for displaying a table in a document according to an embodiment of the present application. The method can be applied to one or more electronic devices such as smart phones, notebook computers, desktop computers, portable computers, servers and the like. The main execution body of the method may be hardware or software. When the execution body is hardware, the execution body may be one or more of the electronic devices. For example, a single electronic device may perform the method, or multiple electronic devices may cooperate with one another to perform the method. When the execution subject is software, the method may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module. The present application is not particularly limited herein.
As shown in fig. 1, the method specifically includes:
step 101, displaying the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is larger than the width of the document center.
In this embodiment, the first mode may be any display mode of the document. By way of example, the first mode may include, but is not limited to, a normal mode, a reading mode, a page mode, a synopsis mode, a presentation mode, and the like.
In practice, the same document may exhibit different display effects when displayed in different document display modes.
For example, in the page mode, the display effect of the document is very similar to the printed effect, and the exact positions of elements such as the layout, header footer, picture and the like of the page can be seen. The page view is a default display mode of many office software, is convenient for users to intuitively check the final presentation effect of the document, and is suitable for typesetting and format adjustment.
In outline mode, the structural hierarchy of the document may be mainly displayed. In the outline view, the outline structure of the document can be adjusted by increasing or decreasing the title level, so that the document content can be conveniently organized and tidied. At the same time, titles of different levels can also be quickly folded or unfolded to focus on the contents of a particular section.
In the reading mode, the document is typically presented in a compact, readable manner, which removes some of the toolbar and menu that may interfere with reading relative to the normal mode. Reading the view may optimize font display, adjust page color, etc., to provide a more comfortable reading experience. The reading view of some software also supports the functions of page turning effect, display proportion adjustment and the like.
In normal mode, the document may be edited and the text content of the document is typically displayed, possibly simplifying the display of some formats and graphics. The view mode has higher loading speed, is suitable for quickly inputting and editing text content, and is suitable for the condition of lower computer performance.
In the presentation mode, better visual effects and interactive experiences can generally be provided when presenting content such as documents, slides, and the like. Moreover, compared with other document display modes, the document content can occupy more proportion of the screen, so that interference is reduced, and a viewer can concentrate on the content. In addition, the picture is clearer and more striking in the mode, and characters and images can be better displayed.
Furthermore, there may be some differences between different document processing schemes for the same document display mode, and specific functions and features may be different. Or different document processing schemes may name them as different modes for the same document display effect.
However, the document display mode having the corresponding features described in the present application may be referred to as a first mode or a second mode. For example, if the width of a form displayed in a document displayed in a certain mode is allowed to be greater than the width of the center of the document, then that mode may be referred to as a first mode.
The documents may include, but are not limited to, documents in doc Format, docx Format, ppt Format, pptx Format, rtf (Rich Text Format) and html (Hyper Text Markup Language ) Format, or other formats in which Rich Text may be described. In addition, the target document may also be an offline document stored locally or an online document stored in the cloud.
In which a fixed width and a fixed height are defaulted in the document for displaying text and line feed typesetting, and the document area in the range of the width and the height representation is defined as the center of the document. The fixed width may be referred to as a plate center width, and the fixed height may be referred to as a plate center height. If the typesetting position of the currently typeset text exceeds the center of the page, the line-changing operation is executed under the condition that the typeset document elements are text, so that the currently typeset text is typeset at the position of the next line, and is prevented from being displayed beyond the center of the page.
And 102, receiving a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and the visual area range of the document displayed in the second mode is larger than the plate center range of the document displayed in the first mode.
In the present embodiment, the second mode may be another document display mode different from the first mode.
Here, if the view area of the document displayed in a certain mode a is larger than the centroid area of the document displayed in the first mode, the mode a may be referred to as a second mode.
Step 103, in response to the first instruction, in a case where the document is displayed in the second mode, displaying the form entirely within the view area of the document.
In this embodiment, in the case where the first instruction for the document is detected, the centroid range of the document in the first mode may be enlarged, thereby obtaining the view region range of the document in the first mode. In addition, in the case of detecting the first instruction for the document, at least part of the content of the document in the first mode (including at least the form) may be rearranged so that the form is displayed entirely within the view area of the document in the case of displaying the document in the second mode.
The view region may be all or part of a document region that can be seen by an object such as a user.
In some cases, the form is displayed entirely within the view region of the document, meaning that the user or the like can see the entire form without manipulation, and without manipulation by dragging a scroll bar or the like, and different portions of the form are seen before and after dragging the scroll bar, respectively.
Here, the complete display of the form within the view region of the document in the case where the document is displayed in the second mode may be implemented in various manners.
As an example, in the case where the document is displayed in the second mode, the size of the form may be reduced to accommodate a view range so that the form is displayed entirely within the view range of the document.
In addition, in the case of displaying the document in the second mode, the form may be displayed entirely within the view area of the document. Please refer to the following description, and the description is omitted herein.
In some optional implementations of this embodiment, in response to the first instruction, the document may be displayed in the second mode in the following manner:
In a first step, screen information of a screen for displaying the document is determined, and an initial scale of the view area range with respect to the plate center range is determined.
Wherein the screen information includes at least one of resolution and aspect ratio.
Here, when a document is switched from a first mode to a second mode display, a center range of the document displayed in the first mode may be enlarged to determine a view area range of the document displayed in the second mode.
The initial scale may be a preset, initially determined scale of the view region range relative to the plate center range, typically set to a scale greater than 1. Wherein, different screen information can be corresponding to the same or different preset initial scaling. The initial scale may include at least one of a primarily determined width of the view region of the document displayed in the second mode as compared to a width of the centroid region of the document displayed in the first mode and/or a primarily determined height of the view region of the document displayed in the second mode as compared to a height of the centroid region of the document displayed in the first mode.
Second, a target scale for the view region range relative to the plate center range is determined based on the screen information and the initial scale.
The initial scaling is not necessarily suitable for the screen with different screen information, and in order to better adapt the scaled view area range to the screen, the initial scaling is required to be adjusted to the target scaling according to different screen information so as not to occupy the display space of the screen too small or too large. At this time, the target zoom ratio may be a zoom ratio of the view area range with respect to the centroid range, which is determined based on the screen information and the initial zoom ratio. The target scale may include at least one of a width of a view region of the document displayed in the second mode relative to a width of a centroid region of the document displayed in the first mode and/or a height of a view region of the document displayed in the second mode relative to a height of a centroid region of the document displayed in the first mode.
As an example, the target scale of the view region range with respect to the centroid region may be determined based on the screen information and the initial scale by a preset correspondence table or formula. Wherein, the preset correspondence table or formula may represent a correspondence between screen information (resolution and/or aspect ratio), an initial scaling and a target scaling.
For example, the screen may be divided into three categories of low split screen and narrow screen, normal split screen and normal screen, high split screen and wide screen by the resolution and aspect ratio included in the screen information. For the screens of the low split screen and the narrow screen categories, the product of the initial scaling corresponding to the screen and the first coefficient can be determined as the corresponding target scaling. For the screens of the common split screen and the normal screen category, the product of the corresponding initial scaling and the second coefficient can be determined as the corresponding target scaling. For the high split screen and the wide screen type screen, the product of the corresponding initial scaling and the third coefficient can be determined as the corresponding target scaling.
Here, the low split screen is a screen with a resolution smaller than a first resolution threshold, the high split screen is a screen with a resolution larger than a second resolution threshold, and the common split screen is a screen with a resolution larger than or equal to the first resolution threshold and smaller than or equal to the second resolution threshold. The first resolution threshold is smaller than the second resolution threshold, and the first resolution threshold and the second resolution threshold are respectively preset resolutions.
In addition, the narrow screen is a screen with a width smaller than the first width, the wide screen is a screen with a width larger than the second width, and the normal screen is a screen with a width larger than or equal to the first width and smaller than or equal to the second width. The first width is smaller than the second width, and the first width and the second width are respectively preset widths.
Wherein the second coefficient is greater than the first coefficient and the second coefficient is less than the third coefficient.
Third, scaling and displaying the document content in the document at the target scaling rate to display the document in the second mode.
It can be appreciated that in the above alternative implementation manner, different target scaling ratios may be determined for different screen information, and then, according to the target scaling ratio, the document content in the document is scaled and displayed, so that the suitability between the displayed document and the screen information of the screen may be improved.
In one embodiment, after scaling the viewport region, scaling the document content in the document is also included based on the target scale.
In some application scenarios in the above alternative implementation manner, the second mode is a demonstration mode.
On this basis, in the second mode, other scaling ratios different from the target scaling ratio can be set for part of the content (such as non-plain text content of pictures, tables and the like) in the document alone, or content adjustment can be performed on part of the content in the document alone, such as adjusting column width, row width and the like in the tables.
In an embodiment, after said displaying said document in said second mode, the following steps may be further performed:
In a first step, a second instruction for the document is received.
Wherein the second instruction indicates that the form in the document is displayed at the initial scale in the second mode.
A second step of displaying the form in the document at the initial scale in the second mode in response to the second instruction.
It can be understood that under the application scenario, the scaling of the table can be switched under the second mode through the second instruction, so that different scaling can be set for different users, thereby meeting personalized browsing requirements, and further improving the viewing experience of objects such as users on the table in the demonstration document.
In some optional implementations of this embodiment, the second mode is a presentation mode.
On this basis, in the case of displaying the document in the second mode, the following steps may be further performed:
first, a scaling operation is received for the form in the document.
Wherein the scaling operation is used to scale the table displayed in the second mode.
And a second step of scaling the table in the document displayed in the second mode according to the scaling indicated by the scaling operation.
It can be appreciated that in the above alternative implementation manner, the object such as a user may zoom in or zoom out on the table in the document in the presentation mode, so that the viewing experience of the object such as the user on the table in the presentation document may be further improved.
In some application scenarios in the above alternative implementations, the size of the table in the document displayed in the first mode may be noted as an initial size.
On this basis, after said scaling of said form in said document displayed in said second mode, the following steps may be further performed:
in a first step, a third instruction for the document is received.
Wherein the third instruction directs the document to be displayed in the first mode.
And a second step of displaying the form in the document in the initial size in the first mode in response to the third instruction.
It may be appreciated that in the above application scenario, after the user or the like performs the zooming operation on the table in the document in the second mode, if the user or the like switches the display mode of the document to the first mode again, the table in the document will be displayed in the first mode in the initial size instead of the size adjusted in the second mode.
In some optional implementations of the present embodiment, in order to ensure that specific document content, such as non-text content including pictures, tables, etc., may be completely displayed in the view area, the target scaling or initial scaling of the view area relative to the core area may be determined according to the non-text content including pictures, tables, etc., for example, the following steps may be further performed:
first, a resizing operation is received for the form in the document displayed in the second mode.
Wherein the resizing operation may be used to resize the table in the document. For example, the resizing operation may be performed by adjusting any one or more peripheral borders of the form, or the resizing operation may be performed by clicking a key indicating to enlarge or reduce the form.
And a second step of determining a target table size for which the resizing operation indicates the adjustment.
Wherein the target table size may represent a size adjusted by the resizing operation indication.
Third, a target or initial scale of the view region range relative to the core region is determined based on the target table size.
Here, the target or initial scale of the view region range relative to the core region may be determined in a variety of ways based on the target table size.
As an example, the target scale of the view region relative to the centroid region may be determined based on the target table size by a correspondence table or formula representing the target table size and the target scale. The initial scale of the view region range relative to the plate center range is determined based on the target table size through a correspondence table or formula representing the target table size and the initial scale.
Specifically, the initial scale or the target scale may be determined based on the target ratio. The target ratio is a ratio of a mean value of the size of the target table, which is indicated to be adjusted by the size adjustment operation executed by the user and other objects in the target time period, to the size of the corresponding table displayed in the first mode.
For example, the initial scale or the target scale may be the target ratio described above.
The target time period may be a preset fixed time period or a time period that varies with the current time. As an example, the ending time of the target period may be the current time. The duration of the target time period may be a preset duration, for example, 1 month. In general, the contents of the table are continuously changed along with collaborative editing, and in different time periods, the table may have different contents and occupy different display spaces. It can be understood that by setting the target time period, the actual occupied display space of the table can be accurately determined, so that a more appropriate target ratio can be set, and the content of the table can be completely displayed in the view area range. Similarly, the target ratio may be determined based on other non-text content, such as pictures.
It can be appreciated that in the above alternative implementation manner, the initial scaling or the target scaling may be dynamically determined by indicating the adjusted target table size through the size adjustment operation, so that the table display size suitable for the object such as the user may be automatically determined according to the historical usage habits of the object such as different users, and thus, the viewing experience of the object such as the user on the table in the presentation document may be further improved.
In some cases, there may be a distortion of the table due to scaling or column width adjustment of the table, thereby affecting normal review. In this regard, in some alternative implementations of the present embodiment, the cells of the table displayed in the first mode may be referred to as first cells. And recording the cell corresponding to the first cell in the table displayed in the second mode as a second cell. And setting the content line number of the first cell to be equal to the content line number of the second cell.
Wherein cells of the form (including the first cell and the second cell) may include, but are not limited to, text, pictures, forms, formulas, hyperlinks, etc.
It can be appreciated that in the above alternative implementation manner, by ensuring that the number of content lines of the first cell displayed in the first mode is equal to the number of content lines of the second cell displayed in the second mode, it is possible to avoid paging of the table due to the fact that the number of content lines of the second cell is greater than the number of content lines of the first cell, and further it is possible to avoid deformation of the table due to scaling or adjustment of the column width, failing to look up the table normally, and also possible to avoid occurrence of a situation that the table cannot be displayed completely in the view area range of the document displayed in the second mode due to an increase in the number of lines.
In some application scenarios in the above alternative implementations, the contents of each row of the first cell are respectively the same as the contents of each row of the second cell.
It can be understood that in the application scenario, the content in each cell of the table displayed in the first mode does not have a line feed relative to the content in each cell of the table displayed in the second mode, so that the situation that the table cannot be completely displayed in the visual area range of the document displayed in the second mode due to the line feed of the content can be avoided, and the change of the height of the table caused by the deformation of the table can be avoided, thereby influencing reading.
The method for displaying the table in the document, which is provided by the embodiment of the application, can firstly display the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is larger than the width of the center of the document, and then receive a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, the visual area range of the document displayed in the second mode is larger than the center of the document displayed in the first mode, and then respond to the first instruction, and the table is completely displayed in the visual area range of the document under the condition that the document is displayed in the second mode. Therefore, the table with the width larger than the width of the document center displayed in the first mode can be ensured to be completely displayed in the visual area range of the document when displayed in the second mode, and further, the viewing experience of a user and other objects for browsing the table in the document in the second mode can be improved.
FIG. 2 is a flowchart illustrating a method for displaying a table in another document according to an embodiment of the present application. As shown in fig. 2, the method specifically includes:
Step 201, displaying the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is larger than the width of the document center.
In this embodiment, step 201 is substantially identical to step 101 in the corresponding embodiment of fig. 1, and will not be described herein.
And 202, receiving a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and the visual area range of the document displayed in the second mode is larger than the plate center range of the document displayed in the first mode.
In this embodiment, step 202 is substantially identical to step 102 in the corresponding embodiment of fig. 1, and will not be described here again.
Step 203, in response to the first instruction, determining whether a target column exists in the table in the case of displaying the document in the second mode, wherein a column blank width of the target column is greater than or equal to a preset threshold.
In this embodiment, the column blank width may represent the width of the blank area in the column.
In practice, each table may include at least one column. Each column may include at least one cell. Since there may be a case where cells in a column are not fully occupied by content, each column in the table may correspond to a column blank width. Each cell may include at least one row of content. In the case where the space of all cells in a column is occupied by content, then the column blank width is zero. In this case, the column blank width may be determined in a variety of ways.
As an example, the column blank width may be determined as follows:
First, the content width of each cell included in the column is determined. Wherein each cell may correspond to a content width. The content width may be the width of the content in the cell.
In the case where the content in the cell includes at least one of a character, a picture, and a table, the content width of the cell may be a distance between a start position of a target content line in the cell to an end position of the target content line. For example, in fig. 4A, the second column includes 3 cells, namely cell 10, cell 20, and cell 30. The distance from the start position of the target content row "second column" to the end position of the target content row "second column" is the width of the cell 10, that is, the distance from the start position of the target content row "cat picture" to the end position of the target content row "cat picture" is the width of the cell 20, that is, the distance from the start position of the target content row "independent and quiet" to the end position of the target content row "independent and quiet", that is, the distance from the start position of the cell 30 to the end position of the target content row "independent and quiet", that is, the distance from the start position of the target content row "independent and quiet", that is, x3. In the table shown in fig. 4A, the contents in the cells 20 are pictures, and the contents in the remaining cells are characters.
In addition, in the case where the contents in the cells are all characters having the same character width, and the word spacing of the respective characters is equal, the content width may be determined as follows:
First, the number of characters, the character width, the word spacing, and the number of content lines of the cell are determined for a target content line in the cell. Wherein the number of content lines is the number of content lines in the cell. For example, in fig. 4A, the number of content rows of the cell 10 is "1". In fig. 4C, the number of content rows of the cell 70 is "2".
Here, each cell may correspond to one content line number. The correspondence between the cells and the number of content rows can thus be determined.
Then, the number of characters×the character width+ (the number of characters-1) ×the word pitch was calculated, and the result was taken as the content width of the cell. For example, in fig. 4B, the cell 40 has a content width of 3×x5+2×x4, the cell 50 has a content width of 2×x5+1×x4, and the cell 60 has a content width of 5×x5+4×x4.
Here, each cell may correspond to one content width. The correspondence between cells and content width can thus be determined.
In the case that the content line in the cell is greater than or equal to 2, and that a line-changing symbol does not exist in each content line in the cell, the content line with the smallest width (for example, the smallest number of characters, the smallest distance between the first character and the last character of the content line) in each content line in the cell may be used as the target content line of the cell. For example, in FIG. 4C, the row in which the second row "love, clever" is located may be considered the target content row for cell 70. Each cell may correspond to a target content row.
Then, the maximum value (i.e., the maximum content width) among the determined content widths (i.e., the content widths corresponding to the cells in the column of the table) is set as the target content width. And, a target number corresponding to the target content width is determined. The target number is the number of content rows of the cell corresponding to the target content width.
Here, in the manner described above, the correspondence between the content width and the cell may be determined, and thus the cell corresponding to the target content width, and thus the number of content lines of the cell, may be determined from the correspondence.
For example, in fig. 4A, the target content width of the second column is x3 and the target number is 1. In fig. 4B, the target content width of the second column is 5×x5+4×x4, and the target number is 1. In fig. 4C, the target content width of the second column is the width of "love, machine", for example, the distance from the start position of "love, machine" to the end position of "love, machine", or the calculation result of 4×character width+3×word pitch may be used as the target content width of the second column, and the target number is 2.
Then, in the case that the column does not include the preset incompressible space, the width of the unit cell of the column (i.e., the width L in fig. 4A to 4C) may be calculated first, and the difference value from the target content width may be calculated to obtain a difference value calculation result, and then the quotient of the difference value calculation result and the target number may be determined as the column blank width of the column. In the case that the column includes a preset incompressible space, the sum of the target content width and the incompressible space may be calculated first, then the difference between the width of the cells of the column and the sum is calculated to obtain a difference calculation result, and then the quotient of the difference calculation result and the target number is taken as the column blank width.
Here, in the case where the columns in the table do not include a preset incompressible space, the above-mentioned preset threshold value may be a preset positive number. In the case where the columns in the table include a preset incompressible space, the preset threshold may be a preset incompressible space value. Alternatively, the incompressible space may be a margin of a preset cell, such as a left margin, or a right margin.
Step 204, compressing the width of the target column to completely display the table in the visual area range of the document when the target column exists in the table.
In this embodiment, when the target column exists in the table, the blank area indicated by the blank width of the column may be compressed, and/or the width of the target column may be compressed by compressing the space between adjacent contents (for example, adjacent characters, adjacent images, characters, etc.), so as to completely display the table in the view area of the document, and after the column width is compressed, the number of rows of the contents of the cells in the column may not be changed, that is, the height of the cells may not be changed, the form may not be deformed vertically, and the reading experience of the table may be maintained.
In some optional implementations of the present embodiment, before the determining whether the table has the target column, the following steps may be further performed:
first, it is determined whether the table displayed at the target scale is located within the view region.
Wherein the target magnification may be a magnification of the view region range in the second mode with respect to the centroid region range in the first mode. For example, the target scale may be a scale of the view region relative to the centroid region determined based on the screen information and the initial scale. In some cases, the target scale in the alternative implementations described above may have the same meaning as the target scale in the embodiment described above in fig. 1.
And a second step of determining whether a target column exists in the table in the case that the table displayed at the target scale is not located within the view region.
It will be appreciated that in the above alternative implementation manner, whether the table has a target column may be determined only if the table displayed at the target scaling is not located within the view area range, and further, in the case that the table has a target column, by compressing the width of the target column, it is ensured that the table is completely displayed within the view area range of the document, and in the case that the table displayed at the target scaling is located within the view area range, it is unnecessary to determine whether the table has a target column, and in the case that the table has a target column, it is ensured that the table is completely displayed within the view area range of the document by compressing the width of the target column. Therefore, the complete display of the table in the visual area of the document can be realized by utilizing the target scaling, and if the complete display of the table in the visual area of the document can not be realized only by the target scaling, the complete display of the table in the visual area of the document can be ensured by further compressing the width of the target column. Therefore, the typesetting uniformity of the table can be ensured under the condition of more mode switching.
In some optional implementations of the present embodiment, or in some application scenarios in the optional implementations described above, the cell of the table displayed in the first mode is denoted as a first cell. And recording the cell corresponding to the first cell in the table displayed in the second mode as a second cell. The content line number of the first cell is equal to the content line number of the second cell.
Wherein cells of the form (including the first cell and the second cell) may include, but are not limited to, text, pictures, forms, formulas, hyperlinks, etc.
It can be appreciated that in the above alternative implementation manner, or in an application scenario, by ensuring that the number of content lines of the first cell displayed in the first mode is equal to the number of content lines of the second cell displayed in the second mode, it is possible to avoid paging of the table due to the fact that the number of content lines of the second cell is greater than the number of content lines of the first cell, and further it is possible to avoid occurrence of a situation that the table cannot be completely displayed in the view area range of the document displayed in the second mode due to the increase of the number of lines.
In some application scenarios in the above alternative implementations, or in some cases in the above application scenarios, the contents of each row of the first cell are respectively the same as the contents of each row of the second cell.
It can be understood that in the application scenario or case, the content in each cell of the table displayed in the first mode does not have a line feed relative to the content in each cell of the table displayed in the second mode, so that the situation that the table cannot be completely displayed in the view area range of the document displayed in the second mode due to the line feed of the content can be avoided.
It should be noted that, in addition to the above descriptions, the present embodiment may further include the corresponding technical features described in the embodiment corresponding to fig. 1, so as to achieve the technical effects of the method for displaying the table in the document shown in fig. 1, and the detailed description is referred to in fig. 1, and is omitted herein for brevity.
According to the method for displaying the table in the document, when the target column with the column blank width larger than or equal to the preset threshold exists in the table, the table can be completely displayed in the visual area range of the document by means of compressing the width of the target column. A step of
FIG. 3 is a flowchart illustrating a method for displaying a table in a document according to another embodiment of the present application. As shown in fig. 3, the method specifically includes:
step 301, displaying the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is larger than the width of the center of the document.
In this embodiment, step 301 is substantially identical to step 101 in the corresponding embodiment of fig. 1, and will not be described herein.
And 302, receiving a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and the visual area range of the document displayed in the second mode is larger than the plate center range of the document displayed in the first mode.
In this embodiment, step 302 is substantially identical to step 102 in the corresponding embodiment of fig. 1, and will not be described herein.
In response to the first instruction, in step 303, in the case of displaying the document in the second mode, it is determined whether the form displayed at the target zoom scale is located within the view region.
In this embodiment, the target magnification may be a magnification of the view region range in the second mode with respect to the plate center range in the first mode. For example, the target scale may be a scale of the view region relative to the centroid region determined based on the screen information and the initial scale. In some cases, the target scale in the present embodiment may have the same meaning as the target scale in the embodiment described above with reference to fig. 1.
Step 304 of determining a first width of the view region and a second width of the table displayed at the target scale in the case that the table displayed at the target scale is not located within the view region.
In this embodiment, the first width may be the width of the viewing zone.
The second width may be a width of the table displayed at the target scale.
Step 305, determining a quotient of the second width and the first width to obtain a target multiple.
In this embodiment, the target multiple may be a quotient of the second width and the first width.
Step 306, determining a quotient of the target scaling and the target multiple to obtain a new scaling.
In this embodiment, the new scale may be the quotient of the target scale and the target multiple.
Step 307, scaling the form according to the new scaling to completely display the form within the view region of the document.
In this embodiment, after determining the new scaling, the form may be scaled by the new scaling to completely display the form within the view region of the document.
It should be noted that, in addition to the above descriptions, the present embodiment may further include the corresponding technical features described in the embodiment corresponding to fig. 1, so as to achieve the technical effects of the method for displaying the table in the document shown in fig. 1, and the detailed description is referred to in fig. 1, and is omitted herein for brevity.
According to the method for displaying the forms in the document, the forms are scaled through the determined new scaling only when the forms displayed in the target scaling are not located in the visual area range, the forms are ensured to be completely displayed in the visual area range of the document, and the forms are ensured to be completely displayed in the visual area range of the document without being scaled through the determined new scaling when the forms displayed in the target scaling are located in the visual area range. Therefore, the complete display of the form in the visual area range of the document can be realized by utilizing the target scaling, and if the complete display of the form in the visual area range of the document can not be realized only by utilizing the target scaling, the complete display of the form in the visual area range of the document can be ensured by utilizing the new scaling. This ensures that the table is displayed at a large scale in a scene with more mode switches.
The following description is given by way of example of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, and the following description does not limit the scope of protection of the embodiments of the present application.
Before introducing the present solution, the following explanation is first made on the terms involved in the present solution:
The width of the plate center is defined as the width of the plate center, and a fixed width is defaulted in the document to display the text and form the line feed typesetting.
And (3) the super-edition core is that the whole form cannot be fed, so that the more the number of columns of the form is, the more difficult the form is to be displayed within the width range of the edition core. Thus, in some cases (e.g., in the first mode), the form is designed to be displayable in a superset. And displaying the contents of more columns of the table by using the redundant blank width outside the plate center.
And when the number of columns of the table is more, the width of the super edition center cannot be displayed completely, hidden contents of the table can appear, and the user needs to display the transverse scroll bar to manually slide so as to view the whole contents of the table.
The demonstration mode (corresponding to the second mode) is that when the user needs to carry out screen-throwing lecture in public places, the demonstration mode is generally opened, and the content of the document is magnified by default at the moment, and the magnification is scaled so that the content can be seen and clearly seen by all people.
In the related art, in the body of a document displayed in the first mode (for example, the normal mode), a form of a super-edition is completely displayed because both sides other than the edition are used for blank. After entering the demonstration mode, the two sides outside the plate center are not blank because of the whole amplification. The original super-edition form which can be seen in the text cannot be completely displayed in the demonstration mode, and the transverse scroll bar is directly displayed.
In existing document processing and presentation systems, when the table content is excessive, particularly when the number of columns is out of view, the user typically needs to find a horizontal scroll bar and manually adjust the position of the scroll bar to view the entire table content.
The operation mode not only affects the reading experience of audiences, but also reduces the demonstration efficiency of the presenter. Therefore, the table beyond the visual area can be completely displayed in the visual area under the demonstration scene, and the method has wide application prospect and practical value.
In the related art, some solutions for solving the above problems generally affect the typesetting and displaying of the text in the original cells. For example, the compressed column width can lead to text line feed (increase the number of lines of the contents in the table), thus resulting in high multiplication of the whole table, and still there are situations that the longitudinal contents can exceed the visual area range.
In view of this, the present solution can automatically adjust the full text scaling ratio.
Specifically, in the demonstration mode, by acquiring the resolution (i.e. the screen information) of the current screen, different processing means for the high-low split screen are designed, and the optimal table display proportion under different aspect ratios (i.e. the screen information) and the resolution is calculated. To achieve zooming in and out, the "normal mode x (i.e. the first mode) table without exceeding the heart" can be displayed in the visual area (i.e. the visual area range) in the demonstration mode.
In addition, after adjusting the content scaling ratio, if the table still cannot be displayed in the view area range, the scheme can also automatically adjust the table column width and the scaling ratio.
Specifically, in the demonstration mode, the blank column width (namely the blank area corresponding to the blank column width) in the form is compressed, and the whole form is automatically scaled and adjusted, so that the form which is in the normal mode and is still displayed in the visual area under the premise of not changing typesetting or the whole form height is ensured to be displayed in the visual area under the demonstration mode. The table achieves the proportion that the contents of the table are still enlarged and the table is comfortable to watch in the demonstration scene.
The scaling value of the table can also be manually adjusted by the user.
Specifically, in the demonstration mode, a mode of manual regulation and control of a user is provided, one key is adapted to a screen, and fine zooming-in and zooming-out are achieved, so that a display effect desired by the user is achieved.
The present solution may also control the table scaling threshold.
Specifically, the use habit of the user for inserting the table column number can be intelligently analyzed by using AI (ARTIFICIAL INTELLIGENCE ), the scaling value can be intelligently adjusted, and the whole table content can be completely displayed in one screen as much as possible under the condition that the table content is clearly visible.
The present solution may also store table scaling ratios.
Specifically, by researching the use habit of a user in a demonstration mode, a transient storage mechanism of a table scaling ratio is designed, so that reusability of a single demonstration scene is facilitated, and the uniformity of original table size and text typesetting can be quickly restored. A (local/cloud) selection may be configured as to whether to memorize.
Specifically, the specific implementation process of the scheme is as follows:
Fig. 5 is a flowchart of a method for displaying a table in a document according to another embodiment of the present application.
The low split screen enters a demonstration mode, and the self-adaptive multiple effect of the resolution of the current screen is achieved, so that the 'text table without exceeding the edition center' can be completely displayed in the play mode, and the display is shown in fig. 6.
In the implementation process of the scheme, the column width blank, that is, the width of the target column, can be automatically compressed, as shown in fig. 7.
The table with more than the width of the core enters the demonstration mode, so that the typesetting effect of the text in the table can be kept, the screen is adapted by one key, or the optimal display size is finely regulated and controlled, as shown in fig. 6.
Referring to fig. 5, the specific steps involved in the scheme include:
1. for the intra-plate table in the first mode:
the low split screen enters a demonstration mode, and the magnification of the form is automatically reduced, so that the form with the text not exceeding the edition center is ensured to be displayed completely in a play mode.
The common split screen enters a demonstration mode, and the magnification factor of the form is automatically adjusted to ensure that the form with the text not exceeding the edition center is completely displayed in a play mode.
The high split screen enters a demonstration mode, and the table can not be super-published under the default magnification.
2. For the super-version table in the first mode:
The form is compressed in its entirety, such that the form is displayed beyond the core portion within the view region, the compression in its entirety including adjusting the scale of the form, and/or compressing the column width of the form.
The low split screen enters a demonstration mode, and forms exceeding the plate center are automatically compressed to be column-width or integrally reduced, so that the effect of complete display in the visual area is achieved.
As an example, please refer to fig. 8A and 8B, fig. 8A is a schematic diagram of a low-split screen in a method for displaying a table in a document according to an embodiment of the present application displaying a table in a document in a first mode (i.e. a normal mode), and fig. 8B is a schematic diagram of a low-split screen in a method for displaying a table in a document according to an embodiment of the present application displaying a table in a document in a second mode (i.e. a demonstration mode).
The common split screen enters a demonstration mode, and forms exceeding the edition center are automatically compressed and the column width is reduced or the whole is reduced. Achieving the effect of complete display in the visual area.
As an example, referring to fig. 9A and 9B, fig. 9A is a schematic diagram of a common split screen in a method for displaying a table in a document according to an embodiment of the present application displaying a table in a document in a first mode (i.e., a normal mode), and fig. 9B is a schematic diagram of a common split screen in a method for displaying a table in a document according to an embodiment of the present application displaying a table in a document in a second mode (i.e., a demonstration mode).
The high split screen enters a demonstration mode, and forms exceeding the edition center are automatically compressed and the column width is reduced or the whole forms are reduced. Achieving complete display in the visual area.
As an example, referring to fig. 10A and fig. 10B, fig. 10A is a schematic diagram of a high-resolution screen in a method for displaying a table in a document according to an embodiment of the present application displaying a table in a document in a first mode (i.e., a normal mode), and fig. 10B is a schematic diagram of a high-resolution screen in a method for displaying a table in a document according to an embodiment of the present application displaying a table in a document in a second mode (i.e., a demonstration mode).
In some cases, the effect of scaling and displaying the document content in the document at the target scale, or the effect of displaying the table in the document in the second mode after compressing the width of the target column may be as shown in FIG. 11. In this case, in the manual adjustment of the form by the user or the like, the following operations may be performed:
1. in a demonstration mode, clicking an adaptive screen, namely, determining a first width of the visual area range and a second width of the table displayed in the target scaling ratio, determining a quotient of the second width and the first width to obtain a target multiple, determining a quotient of the target scaling ratio and the target multiple to obtain a new scaling ratio, and scaling the table according to the new scaling ratio to completely display the table in the visual area range of the document. The behavior of which can be seen in fig. 12.
2. In the presentation mode, the mode is restored from the "adapted screen" to the "default scale", i.e. the table in the document is displayed at the initial scale in the second mode. The behavior of which can be seen in fig. 13.
3. In the demonstration mode, clicking 'zoom-out', namely, receiving a zooming operation for the table in the document, and zooming the table in the document displayed in the second mode according to the zooming scale indicated by the zooming operation. The behavior of which can be seen in fig. 14.
It should be noted that, in addition to the above descriptions, the present embodiment may further include the technical features described in the above embodiments, so as to achieve the technical effects of the method for displaying the table in the document shown above, and the detailed description is referred to above, and is omitted herein for brevity.
The method and the device can control the scaling ratio of the form independently, enable the form to be displayed in the screen by one key, automatically adjust the proper scaling ratio of full text browsing in the demonstration mode by detecting the resolution and the aspect ratio of the current screen, enable the form to be displayed in the visual area completely by detecting whether the form exceeds the visual area range and automatically adjusting the scaling ratio of full text or independent form, and enable the form to be displayed optimally in the demonstration mode by providing the capability of manual debugging or one key adaptation to the screen. In addition, the scheme can improve the demonstration efficiency, the complete table contents can be checked without longitudinally or transversely scrolling the screen, the operation time of a presenter is saved, and the continuity and the efficiency of demonstration are improved. The viewing experience can be improved, and the audience can more easily and intuitively view the table content by automatically identifying the system or manually adjusting the table display by one key, so that the viewing experience is improved. The scheme is suitable for processing and demonstrating scenes of various document elements (not limited to tables, pictures and the like) beyond visual areas, and has wide application prospect and popularization value.
FIG. 15 is a schematic diagram of a display device for a table in a document according to an embodiment of the present application. The method specifically comprises the following steps:
A first display unit 401 for displaying the document in a first mode, wherein a width of the form displayed in the document displayed in the first mode is larger than a width of a center of a plate of the document;
a first receiving unit 402 configured to receive a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and a view area range of the document displayed in the second mode is larger than a centroid range of the document displayed in the first mode;
A second display unit 403 for, in response to the first instruction, displaying the form entirely within the view area of the document in the case where the document is displayed in the second mode.
In one possible embodiment, the apparatus further comprises:
a third display unit (not shown in the figure) for displaying the document in the second mode in response to the first instruction in the following manner:
Determining screen information of a screen for displaying the document, and an initial scaling of the view region relative to the centroid region, wherein the screen information includes at least one of resolution and aspect ratio;
determining a target scale of the view region range relative to the plate center range based on the screen information and the initial scale;
And scaling and displaying the document content in the document at the target scaling scale so as to display the document in the second mode.
In one possible embodiment, the second mode is a demonstration mode, and
After said displaying said document in said second mode, said apparatus further comprises:
a second receiving unit (not shown in the figure) for receiving a second instruction for the document, wherein the second instruction instructs to display the table in the document at the initial scale in the second mode;
a fourth display unit (not shown in the figure) for displaying the table in the document at the initial scale in the second mode in response to the second instruction.
In one possible implementation, the displaying the table in its entirety within the view region of the document includes:
determining whether a target column exists in the table, wherein the column blank width of the target column is larger than or equal to a preset threshold value;
in the case where the table has the target column, the width of the target column is compressed to completely display the table within the view region of the document.
In one possible embodiment, before said determining whether the table has a target column, the apparatus further comprises:
A first determining unit (not shown) for determining whether the table displayed at the target zoom scale is located within the view region;
A second determining unit (not shown in the figure) for determining whether a target column exists in the table in a case where the table displayed at the target scale is not located within the view region.
In one possible implementation, the displaying the table in its entirety within the view region of the document includes:
determining whether the table displayed at a target scale is within the view region;
Determining a first width of the view region range and a second width of the table displayed at the target scale in the case that the table displayed at the target scale is not located within the view region range;
determining a quotient of the second width and the first width to obtain a target multiple;
determining a quotient of the target scaling and the target multiple to obtain a new scaling;
The form is scaled according to the new scaling to completely display the form within the view region of the document.
In one possible embodiment, the second mode is a demonstration mode, and
In the case of displaying the document in the second mode, the apparatus further includes:
a third receiving unit (not shown in the figure) for receiving a scaling operation for the table in the document;
A scaling unit (not shown in the figure) for scaling the table in the document displayed in the second mode in accordance with the scaling indicated by the scaling operation.
In one possible embodiment, the size of the form in the document displayed in the first mode is recorded as an initial size, and
After said scaling said form in said document displayed in said second mode, said apparatus further comprises:
A fourth receiving unit (not shown in the figure) for receiving a third instruction for the document, wherein the third instruction instructs to display the document in the first mode;
A fifth display unit (not shown in the figure) for displaying the form in the document in the initial size in the first mode in response to the third instruction.
In one possible embodiment, the apparatus further comprises:
a fifth receiving unit (not shown in the figure) for receiving a resizing operation for the form in the document displayed in the second mode;
A third determining unit (not shown in the figure) for determining a target table size for which the resizing operation indicates the adjustment;
A fourth determining unit (not shown in the figure) for determining a target or initial scale of the view area range with respect to the plate center range based on the target table size.
In one possible embodiment of the present invention,
The cells of the table displayed in the first mode are noted as first cells;
the cells corresponding to the first cells in the table displayed in the second mode are marked as second cells;
The content line number of the first cell is equal to the content line number of the second cell.
In one possible embodiment, the contents of each row of the first cell are respectively identical to the contents of each row of the second cell.
The display device for the table in the document provided in this embodiment may be the display device for the table in the document shown in fig. 15, and may perform all the steps of the above-described method for displaying the table in each document, so as to achieve the technical effects of the above-described method for displaying the table in each document, and specific reference is made to the above-described related description, which is omitted herein for brevity.
Fig. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and the electronic device 500 shown in fig. 16 includes at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together by a bus system 505. It is understood that bus system 505 is used to enable connected communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 505 in fig. 16.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, or a touch screen, etc.).
It will be appreciated that the memory 502 in embodiments of the application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct memory bus random access memory (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some implementations, the memory 502 stores elements, executable units or data structures, or a subset thereof, or an extended set thereof, an operating system 5021 and application 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 includes various application programs, such as a media player (MEDIA PLAYER), a Browser (Browser), and the like, for implementing various application services. A program for implementing the method according to the embodiment of the present application may be included in the application 5022.
In this embodiment, the processor 501 is configured to execute the method steps provided in the method embodiments by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, for example, including:
displaying the document in a first mode, wherein a width of the form displayed in the document displayed in the first mode is greater than a width of a centroid of the document;
Receiving a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and the visual area range of the document displayed in the second mode is larger than the plate center range of the document displayed in the first mode;
in response to the first instruction, the form is displayed in its entirety within the view region of the document with the document displayed in the second mode.
The method disclosed in the above embodiment of the present application may be applied to the processor 501 or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 501. The Processor 501 may be a general purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application SPECIFIC INTEGRATED Circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable GATE ARRAY, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software elements in a decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 502, and the processor 501 reads information in the memory 502 and, in combination with its hardware, performs the steps of the method described above.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application SPECIFIC INTEGRATED Circuits (ASICs), digital signal processors (DIGITAL SIGNAL Processing, DSPs), digital signal Processing devices (DSPDEVICE, DSPD), programmable logic devices (Programmable Logic Device, PLDs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units for performing the above-described functions of the application, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be an electronic device as shown in fig. 16, and may perform all the steps of the method for displaying a table in each document described above, so as to achieve the technical effects of the method for displaying a table in each document described above, and specific reference is made to the above related description, which is omitted herein for brevity.
The embodiment of the application also provides a storage medium (computer readable storage medium). The storage medium here stores one or more programs. The storage medium may include volatile memory, such as random access memory, or nonvolatile memory, such as read only memory, flash memory, hard disk, or solid state disk, or a combination of the foregoing.
When one or more programs in the storage medium are executable by one or more processors, the method for displaying a table in a document executed on the electronic device side is implemented.
The above-mentioned processor is used for executing the display program of the form in the file stored in the memory, in order to realize the following steps of the display method of the form in the file executed on the electronic device side:
displaying the document in a first mode, wherein a width of the form displayed in the document displayed in the first mode is greater than a width of a centroid of the document;
Receiving a first instruction for the document, wherein the first instruction indicates that the document is displayed in a second mode, and the visual area range of the document displayed in the second mode is larger than the plate center range of the document displayed in the first mode;
in response to the first instruction, the form is displayed in its entirety within the view region of the document with the document displayed in the second mode.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only, and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," "including," and "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless an order of performance is explicitly stated. It should also be appreciated that additional or alternative steps may be used.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1.一种文档中表格的显示方法,其特征在于,所述方法包括:1. A method for displaying a table in a document, characterized in that the method comprises: 以第一模式显示所述文档,其中,以所述第一模式显示的所述文档中显示的所述表格的宽度大于所述文档的版心宽度;Displaying the document in a first mode, wherein the width of the table displayed in the document displayed in the first mode is greater than the width of the document; 接收针对所述文档的第一指令;其中,所述第一指令指示以第二模式显示所述文档,以所述第二模式显示的所述文档的视区范围大于以所述第一模式显示的所述文档的版心范围;Receive a first instruction for the document; wherein the first instruction instructs to display the document in a second mode, and the viewing area of the document displayed in the second mode is larger than the page area of the document displayed in the first mode; 响应于所述第一指令,在以所述第二模式显示所述文档的情况下,在所述文档的所述视区范围内完整显示所述表格。In response to the first instruction, when the document is displayed in the second mode, the table is completely displayed within the viewing area of the document. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 响应于所述第一指令,采用如下方式以所述第二模式显示所述文档:In response to the first instruction, the document is displayed in the second mode in the following manner: 确定用于显示所述文档的屏幕的屏幕信息,以及所述视区范围相对于所述版心范围的初始缩放比例,其中,所述屏幕信息包括分辨率和宽高比中的至少一项;Determine screen information of a screen for displaying the document, and an initial zoom ratio of the viewing area range relative to the page area range, wherein the screen information includes at least one of a resolution and an aspect ratio; 基于所述屏幕信息和所述初始缩放比例,确定所述视区范围相对于所述版心范围的目标缩放比例;Based on the screen information and the initial zoom ratio, determine a target zoom ratio of the viewing area range relative to the page area range; 以所述目标缩放比例,缩放并显示所述文档中的文档内容,以便以所述第二模式显示所述文档。The document content in the document is scaled and displayed at the target scaling ratio so as to display the document in the second mode. 3.根据权利要求2所述的方法,其特征在于,所述第二模式为演示模式;以及3. The method according to claim 2, wherein the second mode is a demonstration mode; and 在所述以所述第二模式显示所述文档之后,所述方法还包括:After displaying the document in the second mode, the method further includes: 接收针对所述文档的第二指令,其中,所述第二指令指示在所述第二模式下以所述初始缩放比例显示所述文档中的所述表格;receiving a second instruction for the document, wherein the second instruction instructs displaying the table in the document at the initial zoom ratio in the second mode; 响应于所述第二指令,在所述第二模式下以所述初始缩放比例显示所述文档中的所述表格。In response to the second instruction, the table in the document is displayed at the initial zoom ratio in the second mode. 4.根据权利要求1所述的方法,其特征在于,所述在所述文档的所述视区范围内完整显示所述表格,包括:4. The method according to claim 1, wherein the step of completely displaying the table within the viewing area of the document comprises: 确定所述表格是否存在目标列,其中,所述目标列的列空白宽度大于或等于预设阈值;Determine whether the table has a target column, wherein a column blank width of the target column is greater than or equal to a preset threshold; 在所述表格存在所述目标列的情况下,压缩所述目标列的宽度,以在所述文档的所述视区范围内完整显示所述表格。In the case that the target column exists in the table, the width of the target column is compressed to completely display the table within the viewing area of the document. 5.根据权利要求4所述的方法,其特征在于,在所述确定所述表格是否存在目标列之前,所述方法还包括:5. The method according to claim 4, characterized in that before determining whether the table has a target column, the method further comprises: 确定以目标缩放比例显示的所述表格是否位于所述视区范围内;determining whether the table displayed at a target zoom level is within the viewing area; 在以所述目标缩放比例显示的所述表格并非位于所述视区范围内的情况下,确定所述表格是否存在目标列。In a case where the table displayed at the target zoom ratio is not within the range of the viewing area, it is determined whether the table has a target column. 6.根据权利要求1所述的方法,其特征在于,所述在所述文档的所述视区范围内完整显示所述表格,包括:6. The method according to claim 1, wherein the step of completely displaying the table within the viewing area of the document comprises: 确定以目标缩放比例显示的所述表格是否位于所述视区范围内;determining whether the table displayed at a target zoom level is within the viewing area; 在以所述目标缩放比例显示的所述表格并非位于所述视区范围内的情况下,确定所述视区范围的第一宽度,以及以所述目标缩放比例显示的所述表格的第二宽度;In a case where the table displayed at the target zoom ratio is not within the viewing area, determining a first width of the viewing area and a second width of the table displayed at the target zoom ratio; 确定所述第二宽度与所述第一宽度的商,以得到目标倍数;determining a quotient of the second width and the first width to obtain a target multiple; 确定所述目标缩放比例与所述目标倍数的商,以得到新的缩放比例;Determining the quotient of the target scaling ratio and the target multiple to obtain a new scaling ratio; 按照新的所述缩放比例缩放所述表格,以在所述文档的所述视区范围内完整显示所述表格。The table is scaled according to the new scaling factor to fully display the table within the viewing area of the document. 7.根据权利要求1-6之一所述的方法,其特征在于,所述第二模式为演示模式;以及7. The method according to any one of claims 1 to 6, characterized in that the second mode is a demonstration mode; and 在以所述第二模式显示所述文档的情况下,所述方法还包括:In case that the document is displayed in the second mode, the method further comprises: 接收针对所述文档中的所述表格的缩放操作;receiving a zoom operation on the table in the document; 按照所述缩放操作指示的缩放比例,对以所述第二模式显示的所述文档中的所述表格进行缩放。The table in the document displayed in the second mode is scaled according to the scaling ratio indicated by the scaling operation. 8.根据权利要求7所述的方法,其特征在于,将以第一模式显示的所述文档中的所述表格的尺寸记作初始尺寸;以及8. The method according to claim 7, characterized in that the size of the table in the document displayed in the first mode is recorded as the initial size; and 在所述对以所述第二模式显示的所述文档中的所述表格进行缩放之后,所述方法还包括:After scaling the table in the document displayed in the second mode, the method further includes: 接收针对所述文档的第三指令,其中,所述第三指令指示以所述第一模式显示所述文档;receiving a third instruction for the document, wherein the third instruction instructs to display the document in the first mode; 响应于所述第三指令,在所述第一模式下按照所述初始尺寸显示所述文档中的所述表格。In response to the third instruction, the table in the document is displayed in the first mode according to the initial size. 9.根据权利要求1-6之一所述的方法,其特征在于,所述方法还包括:9. The method according to any one of claims 1 to 6, characterized in that the method further comprises: 接收针对以所述第二模式显示的所述文档中的所述表格的尺寸调整操作;receiving a size adjustment operation for the table in the document displayed in the second mode; 确定所述尺寸调整操作指示调整的目标表格尺寸;Determine the target table size to be adjusted by the size adjustment operation instruction; 基于所述目标表格尺寸,确定所述视区范围相对于所述版心范围的目标缩放比例或初始缩放比例。Based on the target table size, a target zoom ratio or an initial zoom ratio of the viewing area range relative to the page area range is determined. 10.根据权利要求1-6之一所述的方法,其特征在于,10. The method according to any one of claims 1 to 6, characterized in that: 将以所述第一模式显示的所述表格的单元格记作第一单元格;Recording a cell of the table displayed in the first mode as a first cell; 将以所述第二模式显示的所述表格中对应所述第一单元格的单元格记作第二单元格;Recording the cell corresponding to the first cell in the table displayed in the second mode as a second cell; 所述第一单元格的内容行数与所述第二单元格的内容行数相等。The number of content rows of the first cell is equal to the number of content rows of the second cell. 11.根据权利要求10所述的方法,其特征在于,所述第一单元格的各行内容与所述第二单元格的各行内容分别相同。11 . The method according to claim 10 , wherein the content of each row of the first cell is respectively the same as the content of each row of the second cell. 12.一种文档中表格的显示装置,其特征在于,所述装置包括:12. A device for displaying a table in a document, characterized in that the device comprises: 第一显示单元,用于以第一模式显示所述文档,其中,以所述第一模式显示的所述文档中显示的所述表格的宽度大于所述文档的版心宽度;A first display unit, configured to display the document in a first mode, wherein a width of the table displayed in the document displayed in the first mode is greater than a width of a page of the document; 接收单元,用于接收针对所述文档的第一指令;其中,所述第一指令指示以第二模式显示所述文档,以所述第二模式显示的所述文档的视区范围大于以所述第一模式显示的所述文档的版心范围;A receiving unit, configured to receive a first instruction for the document; wherein the first instruction instructs to display the document in a second mode, and a viewing area range of the document displayed in the second mode is larger than a page area range of the document displayed in the first mode; 第二显示单元,用于响应于所述第一指令,在以所述第二模式显示所述文档的情况下,在所述文档的所述视区范围内完整显示所述表格。A second display unit is configured to, in response to the first instruction, completely display the table within the viewing area of the document when the document is displayed in the second mode. 13.一种电子设备,其特征在于,包括:13. An electronic device, comprising: 存储器,用于存储计算机程序;Memory for storing computer programs; 处理器,用于执行所述存储器中存储的计算机程序,且所述计算机程序被执行时,实现上述权利要求1-11任一项的所述文档显示方法。A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the document display method of any one of claims 1 to 11 is implemented. 14.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现上述权利要求1-11任一项的所述文档显示方法。14. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the document display method of any one of claims 1 to 11 is implemented.
CN202411461577.2A 2024-10-18 2024-10-18 Method, device, electronic device and storage medium for displaying table in document Pending CN119337819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411461577.2A CN119337819A (en) 2024-10-18 2024-10-18 Method, device, electronic device and storage medium for displaying table in document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411461577.2A CN119337819A (en) 2024-10-18 2024-10-18 Method, device, electronic device and storage medium for displaying table in document

Publications (1)

Publication Number Publication Date
CN119337819A true CN119337819A (en) 2025-01-21

Family

ID=94265382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411461577.2A Pending CN119337819A (en) 2024-10-18 2024-10-18 Method, device, electronic device and storage medium for displaying table in document

Country Status (1)

Country Link
CN (1) CN119337819A (en)

Similar Documents

Publication Publication Date Title
US8739073B2 (en) User interface for document table of contents
US8745515B2 (en) Presentation of large pages on small displays
US10185702B1 (en) Publisher formatting controls
US6185582B1 (en) Spreadsheet view enhancement system
US7362311B2 (en) Single column layout for content pages
US6256649B1 (en) Animated spreadsheet for dynamic display of constraint graphs
US8966361B2 (en) Providing summary view of documents
US20100125807A1 (en) Electronic Scrolling Text Display
US8341543B2 (en) Method and apparatus of scrolling a document displayed in a browser window
US20110050687A1 (en) Presentation of Objects in Stereoscopic 3D Displays
US20040194021A1 (en) Systems and methods for sharing high value annotations
US20070266335A1 (en) Providing a standard user interface (UI) across disparate display interfaces
US20090313574A1 (en) Mobile document viewer
US7434174B2 (en) Method and system for zooming in and out of paginated content
EP0965932A2 (en) Speadsheet view enhancement system
US9727547B2 (en) Media interface tools and animations
US20120032983A1 (en) Information processing apparatus, information processing method, and program
CN102541443A (en) Method and apparatus for selective display
CN102033712A (en) Electronic reading device with split display function and display method thereof
EP2874054B1 (en) Application text adjusting method, device, and terminal
US20120030558A1 (en) Electronic Book and Method for Displaying Annotation Thereof
US20060107205A1 (en) Determining a main content area of a page
KR20210040611A (en) Method and apparatus for generating web page
CN113962193B (en) Table layout method, device, electronic device and storage medium
US7640505B1 (en) Element view toggling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination