CN109491742B - Page table rendering method and device - Google Patents
Page table rendering method and device Download PDFInfo
- Publication number
- CN109491742B CN109491742B CN201811291726.XA CN201811291726A CN109491742B CN 109491742 B CN109491742 B CN 109491742B CN 201811291726 A CN201811291726 A CN 201811291726A CN 109491742 B CN109491742 B CN 109491742B
- Authority
- CN
- China
- Prior art keywords
- cell
- identifier
- rendering
- page
- identification
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Document Processing Apparatus (AREA)
Abstract
The disclosure provides a page table rendering method and device, wherein the method comprises the following steps: acquiring a page rendering request, wherein the page rendering request comprises: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or, text data; if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier; according to the rendering type, the cells corresponding to the identifiers of at least one cell are rendered, so that when a table or a part of cells in the table is selected, characters in the table or the part of cells can be directly rendered, various rendering functions of the online collaboration document application can be suitable for the table, and the rendering efficiency and the rendering effect of the application on the document are improved.
Description
Technical Field
The present disclosure relates to the field of page processing technologies, and in particular, to a page table rendering method and apparatus.
Background
At present, online collaborative document applications often provide users with rich document styles and typesetting functions, such as bold, underline, title, ordered list, unordered list, etc., for rendering characters or tables. In the current online collaboration document application, text data such as characters are stored in a two-dimensional structure with a row identifier and a column identifier as a unit, and when a user selects a part of characters, the application can directly render the selected characters. The table data is inserted into the document in a plug-in mode, the table has a row identifier and a column identifier, and each cell in the table also has the row identifier and the column identifier; when a user selects a table, the application only recognizes the row identification and the column identification of the table, and according to the row identification and the column identification of the table, the application is difficult to render the characters in the cells in the table, so that part of rendering functions of the application are difficult to be applied to the table, and the rendering efficiency and the rendering effect of the application on the document are reduced.
Disclosure of Invention
The present disclosure is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present disclosure is to provide a page table rendering method, which is used to solve the problem of poor rendering efficiency of page tables in the prior art.
A second object of the present disclosure is to provide a page table rendering apparatus.
A third object of the present disclosure is to provide an electronic device.
A fourth object of the present disclosure is to provide a computer-readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present disclosure provides a page table rendering method, including:
obtaining a page rendering request, wherein the page rendering request comprises: a selected region in the page, and a rendering type; the region includes: at least one cell, and/or, text data;
if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier;
and according to the rendering type, rendering the cell corresponding to the identifier of the at least one cell.
Further, before the obtaining the page rendering request, the method further includes:
obtaining a form insertion request, wherein the form insertion request comprises: the contents of each cell in the table to be inserted;
creating an identifier for each cell in the table according to the table insertion request;
creating an identifier of the table according to the identifier of each cell in the table; the identification of the table comprises: row key values and column key values; the row key values include: the row identifier of each cell in the table, the column key value includes: column identification of each cell in the table;
and inserting the table, the identification of the table and the identification of each cell in the table into a page.
Further, after the rendering processing is performed on the cell corresponding to the identifier of the at least one cell according to the rendering type, the method further includes:
according to the identification in the at least one cell, inquiring the identification of each table in the page, and acquiring the selected table in the page and the selected cell in the selected table;
uploading the selected table in the page, the selected cells in the selected table and the rendering type to a server so that the server can update the cells.
Further, the method further comprises the following steps:
if the region comprises text data, acquiring a two-dimensional structure corresponding to the text data; the two-dimensional structure comprises: the identification of each text object in the text data; the identification of the text object comprises: a row identifier and a column identifier;
and rendering the text data determined by the two-dimensional structure according to the rendering type.
Furthermore, line feed characters are used as segmentation among lines in the text data;
the line identifier of the text object is a paragraph identifier to which the text object belongs;
the column identifier of the text object is the serial number of the text object in the paragraph to which the text object belongs.
According to the page table rendering method in the embodiment of the disclosure, a page rendering request is obtained, and the page rendering request includes: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or, text data; if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier; according to the rendering type, the cells corresponding to the identifiers of at least one cell are rendered, so that when a table or a part of cells in the table is selected, characters in the table or the part of cells can be directly rendered, various rendering functions of the online collaboration document application can be suitable for the table, and the rendering efficiency and the rendering effect of the application on the document are improved.
To achieve the above object, an embodiment of a second aspect of the present disclosure provides a page table rendering apparatus, including:
an obtaining module, configured to obtain a page rendering request, where the page rendering request includes: a selected region in the page, and a rendering type; the region includes: at least one cell, and/or, text data;
the obtaining module is further configured to obtain an identifier of at least one cell when the area includes the at least one cell, where the identifier of the cell includes: a row identifier and a column identifier;
and the rendering processing module is used for rendering the cell corresponding to the identifier of the at least one cell according to the rendering type.
Further, the device further comprises: a creating module and an inserting module;
the obtaining module is further configured to obtain a table insertion request, where the table insertion request includes: the contents of each cell in the table to be inserted;
the creating module is used for creating an identifier for each cell in the table according to the table insertion request;
the creating module is further configured to create an identifier of the table according to the identifier of each cell in the table; the identification of the table comprises: row key values and column key values; the row key values include: the row identifier of each cell in the table, the column key value includes: column identification of each cell in the table;
the inserting module is used for inserting the table, the identification of the table and the identification of each cell in the table into a page.
Further, the device further comprises: the device comprises a query module and an update module;
the query module is used for querying the identifier of each table in the page according to the identifier in the at least one cell, and acquiring the selected table in the page and the selected cell in the selected table;
and the updating module is used for uploading the selected table in the page, the selected cells in the selected table and the rendering type to a server so as to facilitate the server to update.
Further, the obtaining module is further configured to obtain a two-dimensional structure corresponding to the text data when the region includes the text data; the two-dimensional structure comprises: the identification of each text object in the text data; the identification of the text object comprises: a row identifier and a column identifier;
and the rendering processing module is further used for rendering the text data determined by the two-dimensional structure according to the rendering type.
Furthermore, line feed characters are used as segmentation among lines in the text data;
the line identifier of the text object is a paragraph identifier to which the text object belongs;
the column identifier of the text object is the serial number of the text object in the paragraph to which the text object belongs.
The page table rendering device of the embodiment of the disclosure obtains a page rendering request, where the page rendering request includes: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or, text data; if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier; according to the rendering type, the cells corresponding to the identifiers of at least one cell are rendered, so that when a table or a part of cells in the table is selected, characters in the table or the part of cells can be directly rendered, various rendering functions of the online collaboration document application can be suitable for the table, and the rendering efficiency and the rendering effect of the application on the document are improved.
To achieve the above object, an embodiment of a third aspect of the present disclosure provides an electronic device, including: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the page table rendering method as described above when executing the program.
In order to achieve the above object, a fourth aspect of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the page table rendering method as described above.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a page table rendering method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a page table rendering apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of another page table rendering apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another page table rendering apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
The page table rendering method and apparatus according to the embodiments of the present disclosure are described below with reference to the drawings.
Fig. 1 is a schematic flowchart of a page table rendering method according to an embodiment of the present disclosure. As shown in fig. 1, the page table rendering method includes the following steps:
s101, obtaining a page rendering request, wherein the page rendering request comprises: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or text data.
The execution subject of the page table rendering method provided by the present disclosure is a page table rendering device, and the page table rendering device may specifically be an online collaborative document application, or a hardware device such as a terminal device and a server on which the application is installed. In this embodiment, the process of the page table rendering device executing step 101 may specifically be displaying a document page so that a user can perform an operation on the document page; acquiring a region selected by a user on a page according to the selection operation of the user on the document page; the method comprises the steps of obtaining a rendering type selected by a user according to clicking operation of the user on a document menu, and determining to obtain a page rendering request of the user after obtaining a selected area and the rendering type on a page. The rendering type may be, for example, bold, underline, title, ordered list, unordered list, etc.
S102, if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identification and a column identification.
In this embodiment, in the document page, not only the tables and the contents of the cells in the tables are displayed, but also the identifiers of the tables and the identifiers of the cells are set, so that when a user selects a certain cell, the identifier of the cell and the identifier of the table to which the cell belongs can be determined, and the contents in the cell are rendered. Correspondingly, before step 101, the method may further include the following steps: obtaining a form insertion request, wherein the form insertion request comprises: the contents of each cell in the table to be inserted; according to the table insertion request, creating an identifier for each cell in the table; creating the identifier of the table according to the identifier of each cell in the table; the table identifier includes: row key values and column key values; the row key values include: the row identification of each cell in the table, and the column key value comprises: column identification of each cell in the table; and inserting the table, the identification of the table and the identification of each cell in the table into the page.
In this embodiment, the table is not inserted into the document page in the form of a plug-in, but the cells in the table are inserted into the document page in the form of a plurality of regions as regions, so that when a user selects a table or a part of cells in the table, the row identifier and the column identifier of the table can be obtained instead of only the row identifier and the column identifier of the table as in the prior art, and thus the selected cells can be directly rendered.
S103, according to the rendering type, rendering processing is carried out on the cell corresponding to the identifier of at least one cell.
In this embodiment, the page table rendering device specifically performs rendering processing on the content in the cell corresponding to the identifier of the at least one cell, for example, performs bolding processing and underlining processing on the content in the cell.
Further, on the basis of the above embodiment, in order to ensure document consistency of each hardware device installed with the online collaborative document application, after step 103, the method may further include the following steps: inquiring the identification of each table in the page according to the identification in at least one cell, and acquiring the selected table in the page and the selected cell in the selected table; uploading the selected table in the page, the selected cells in the selected table and the rendering type to a server so that the server updates the page of the same document and ensures consistency between the current document and the same document on the server.
Specifically, the process of the page table rendering device querying the identifier of each table in the page according to the identifier in the at least one cell to obtain the selected table in the page, and the selected cell in the selected table may specifically be that, for each cell in the at least one cell, querying the identifier of each table in the page according to the identifier of the cell, determining the table to which the cell belongs as the selected table, and determining the cell as the selected cell in the selected table; and sequentially carrying out the processing on each cell in at least one cell, thereby obtaining the selected table in the document page and the selected cell in the selected table.
Further, on the basis of the above embodiment, the method may further include the following steps: if the region comprises text data, acquiring a two-dimensional structure corresponding to the text data; the two-dimensional structure comprises: the identification of each text object in the text data; the identification of the text object includes: a row identifier and a column identifier; and rendering the text data determined by the two-dimensional structure according to the rendering type.
In this embodiment, the page table rendering device may determine all text data in the document page as one area, set an identifier for the area, and determine the identifier as an identifier of all text data. The identifier may be "default", for example. When a user selects part of text data, the page table rendering device can acquire an identifier corresponding to the selected part of text data, determine that the selected text data is the text data according to the identifier, and further acquire identifiers of text objects in the selected text data; and determining a two-dimensional structure corresponding to the selected text data according to the identification of each text object.
The line-feed character is used as the segmentation between lines in the text data. The line identifier of the text object is the identifier of the paragraph to which the text object belongs; the column identifier of the text object is the serial number of the text object in the paragraph to which the text object belongs. The text object refers to each character in the text data.
According to the page table rendering method in the embodiment of the disclosure, a page rendering request is obtained, and the page rendering request includes: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or, text data; if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier; according to the rendering type, the cells corresponding to the identifiers of at least one cell are rendered, so that when a table or a part of cells in the table is selected, characters in the table or the part of cells can be directly rendered, various rendering functions of the online collaboration document application can be suitable for the table, and the rendering efficiency and the rendering effect of the application on the document are improved.
Fig. 2 is a schematic structural diagram of a page table rendering apparatus according to an embodiment of the present disclosure. As shown in fig. 2, includes: an acquisition module 21 and a rendering processing module 22.
The obtaining module 21 is configured to obtain a page rendering request, where the page rendering request includes: a selected region in the page, and a rendering type; the region includes: at least one cell, and/or, text data;
the obtaining module 21 is further configured to obtain, when the area includes at least one cell, an identifier of the at least one cell, where the identifier of the cell includes: a row identifier and a column identifier;
and the rendering processing module 22 is configured to perform rendering processing on the cell corresponding to the identifier of the at least one cell according to the rendering type.
The page table rendering device provided by the present disclosure may specifically be an online collaborative document application, or a hardware device such as a terminal device and a server on which the above application is installed. In this embodiment, the process of acquiring the page rendering request by the page table rendering device may specifically be displaying a document page so that a user can perform an operation on the document page; acquiring a region selected by a user on a page according to the selection operation of the user on the document page; the method comprises the steps of obtaining a rendering type selected by a user according to clicking operation of the user on a document menu, and determining to obtain a page rendering request of the user after obtaining a selected area and the rendering type on a page. The rendering type may be, for example, bold, underline, title, ordered list, unordered list, etc.
In this embodiment, in the document page, not only the tables and the contents of the cells in the tables are displayed, but also the identifiers of the tables and the identifiers of the cells are set, so that when a user selects a certain cell, the identifier of the cell and the identifier of the table to which the cell belongs can be determined, and the contents in the cell are rendered. Correspondingly, referring to fig. 3 in combination, on the basis of the embodiment shown in fig. 2, the apparatus may further include: a creation module 23 and an insertion module 24.
The obtaining module 21 is further configured to obtain a table insertion request, where the table insertion request includes: the contents of each cell in the table to be inserted;
the creating module 23 is configured to create an identifier for each cell in the table according to the table insertion request;
the creating module 23 is further configured to create an identifier of the table according to the identifier of each cell in the table; the identification of the table comprises: row key values and column key values; the row key values include: the row identifier of each cell in the table, the column key value includes: column identification of each cell in the table;
the inserting module 24 is configured to insert the table, the identifier of the table, and the identifiers of the cells in the table into a page.
In this embodiment, the table is not inserted into the document page in the form of a plug-in, but the cells in the table are inserted into the document page in the form of a plurality of regions as regions, so that when a user selects a table or a part of cells in the table, the row identifier and the column identifier of the table can be obtained instead of only the row identifier and the column identifier of the table as in the prior art, and thus the selected cells can be directly rendered.
Further, on the basis of the above embodiment, in order to ensure document consistency of each hardware device installed with the online collaborative document application, with reference to fig. 4, on the basis of the embodiment shown in fig. 2 or fig. 3, the apparatus may further include: a query module 25 and an update module 26.
The query module 25 is configured to query, according to the identifier in the at least one cell, identifiers of tables in the page, and obtain a selected table in the page and a selected cell in the selected table;
the updating module 26 is configured to upload the selected table in the page, the selected cells in the selected table, and the rendering type to a server, so that the server performs updating.
Specifically, the process of the page table rendering device querying the identifier of each table in the page according to the identifier in the at least one cell to obtain the selected table in the page, and the selected cell in the selected table may specifically be that, for each cell in the at least one cell, querying the identifier of each table in the page according to the identifier of the cell, determining the table to which the cell belongs as the selected table, and determining the cell as the selected cell in the selected table; and sequentially carrying out the processing on each cell in at least one cell, thereby obtaining the selected table in the document page and the selected cell in the selected table.
Further, on the basis of the above embodiment, the obtaining module 21 is further configured to obtain a two-dimensional structure corresponding to text data when the region includes the text data; the two-dimensional structure comprises: the identification of each text object in the text data; the identification of the text object comprises: a row identifier and a column identifier;
the rendering processing module 22 is further configured to perform rendering processing on the text data determined by the two-dimensional structure according to the rendering type.
In this embodiment, the page table rendering device may determine all text data in the document page as one area, set an identifier for the area, and determine the identifier as an identifier of all text data. The identifier may be "default", for example. When a user selects part of text data, the page table rendering device can acquire an identifier corresponding to the selected part of text data, determine that the selected text data is the text data according to the identifier, and further acquire identifiers of text objects in the selected text data; and determining a two-dimensional structure corresponding to the selected text data according to the identification of each text object.
The line-feed character is used as the segmentation between lines in the text data. The line identifier of the text object is the identifier of the paragraph to which the text object belongs; the column identifier of the text object is the serial number of the text object in the paragraph to which the text object belongs. The text object refers to each character in the text data.
The page table rendering device of the embodiment of the disclosure obtains a page rendering request, where the page rendering request includes: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or, text data; if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier; according to the rendering type, the cells corresponding to the identifiers of at least one cell are rendered, so that when a table or a part of cells in the table is selected, characters in the table or the part of cells can be directly rendered, various rendering functions of the online collaboration document application can be suitable for the table, and the rendering efficiency and the rendering effect of the application on the document are improved.
Referring now to FIG. 5, a block diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 5 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a page rendering request, wherein the page rendering request comprises: a selected region in the page, and a rendering type; the area includes: at least one cell, and/or, text data; if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier; and according to the rendering type, rendering the cell corresponding to the identifier of at least one cell.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the page table rendering method as described above.
The present disclosure also provides a computer program product, which when executed by an instruction processor in the computer program product, implements the page table rendering method as described above.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Claims (10)
1. A method for rendering a page table, comprising:
obtaining a page rendering request, wherein the page rendering request comprises: a selected region in the page, and a rendering type; the region includes: at least one cell, and/or, text data;
if the area comprises at least one cell, acquiring an identifier of the at least one cell, wherein the identifier of the cell comprises: a row identifier and a column identifier;
according to the rendering type, rendering the cell corresponding to the identifier of the at least one cell, wherein before the obtaining of the page rendering request, the method further comprises:
obtaining a form insertion request, wherein the form insertion request comprises: the contents of each cell in the table to be inserted;
creating an identifier for each cell in the table according to the table insertion request;
creating an identifier of the table according to the identifier of each cell in the table; the identification of the table comprises: row key values and column key values; the row key values include: the row identifier of each cell in the table, the column key value includes: column identification of each cell in the table;
and inserting the table, the identification of the table and the identification of each cell in the table into a page.
2. The method according to claim 1, wherein after performing the rendering process on the cell corresponding to the identifier of the at least one cell according to the rendering type, the method further comprises:
according to the identification in the at least one cell, inquiring the identification of each table in the page, and acquiring the selected table in the page and the selected cell in the selected table;
uploading the selected table in the page, the selected cells in the selected table and the rendering type to a server so that the server can update the cells.
3. The method of claim 1, further comprising:
if the region comprises text data, acquiring a two-dimensional structure corresponding to the text data; the two-dimensional structure comprises: the identification of each text object in the text data; the identification of the text object comprises: a row identifier and a column identifier;
and rendering the text data determined by the two-dimensional structure according to the rendering type.
4. The method of claim 3, wherein line feed characters are used as partitions between lines in the text data;
the line identifier of the text object is a paragraph identifier to which the text object belongs;
the column identifier of the text object is the serial number of the text object in the paragraph to which the text object belongs.
5. A page table rendering apparatus, comprising:
an obtaining module, configured to obtain a page rendering request, where the page rendering request includes: a selected region in the page, and a rendering type; the region includes: at least one cell, and/or, text data;
the obtaining module is further configured to obtain an identifier of at least one cell when the area includes the at least one cell, where the identifier of the cell includes: a row identifier and a column identifier;
the rendering processing module is used for rendering the cell corresponding to the identifier of the at least one cell according to the rendering type;
a creating module and an inserting module; wherein,
the obtaining module is further configured to obtain a table insertion request, where the table insertion request includes: the contents of each cell in the table to be inserted;
the creating module is used for creating an identifier for each cell in the table according to the table insertion request;
the creating module is further configured to create an identifier of the table according to the identifier of each cell in the table; the identification of the table comprises: row key values and column key values; the row key values include: the row identifier of each cell in the table, the column key value includes: column identification of each cell in the table;
the inserting module is used for inserting the table, the identification of the table and the identification of each cell in the table into a page.
6. The apparatus of claim 5, further comprising: the device comprises a query module and an update module;
the query module is used for querying the identifier of each table in the page according to the identifier in the at least one cell, and acquiring the selected table in the page and the selected cell in the selected table;
and the updating module is used for uploading the selected table in the page, the selected cells in the selected table and the rendering type to a server so as to facilitate the server to update.
7. The apparatus of claim 5,
the obtaining module is further configured to obtain a two-dimensional structure corresponding to the text data when the region includes the text data; the two-dimensional structure comprises: the identification of each text object in the text data; the identification of the text object comprises: a row identifier and a column identifier;
and the rendering processing module is further used for rendering the text data determined by the two-dimensional structure according to the rendering type.
8. The apparatus of claim 7, wherein a line break is used as a partition between lines in the text data;
the line identifier of the text object is a paragraph identifier to which the text object belongs;
the column identifier of the text object is the serial number of the text object in the paragraph to which the text object belongs.
9. An electronic device, comprising:
memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the page table rendering method according to any of claims 1-4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the page table rendering method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811291726.XA CN109491742B (en) | 2018-10-31 | 2018-10-31 | Page table rendering method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811291726.XA CN109491742B (en) | 2018-10-31 | 2018-10-31 | Page table rendering method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109491742A CN109491742A (en) | 2019-03-19 |
CN109491742B true CN109491742B (en) | 2021-10-22 |
Family
ID=65693559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811291726.XA Active CN109491742B (en) | 2018-10-31 | 2018-10-31 | Page table rendering method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491742B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112966481B (en) * | 2019-12-13 | 2023-09-29 | 北京懿医云科技有限公司 | Data form display method and device |
CN111290752B (en) * | 2019-12-24 | 2024-02-20 | 明度智云(浙江)科技有限公司 | Frame processing method and device for web form |
CN111240793B (en) * | 2020-02-13 | 2024-01-09 | 抖音视界有限公司 | Method, device, electronic equipment and computer readable medium for cell prerendering |
CN113326680A (en) * | 2020-02-28 | 2021-08-31 | 北京沃东天骏信息技术有限公司 | Method and device for generating table |
CN111488149B (en) * | 2020-03-11 | 2023-07-25 | 平安健康保险股份有限公司 | Canvas element-based table rendering method and device and computer equipment |
CN111784812B (en) * | 2020-06-09 | 2024-05-07 | 北京五一视界数字孪生科技股份有限公司 | Rendering method and device, storage medium and electronic equipment |
CN114118032A (en) * | 2021-11-30 | 2022-03-01 | 珠海金山办公软件有限公司 | Document content insertion method, device, equipment and storage medium |
CN116011421A (en) * | 2022-12-12 | 2023-04-25 | 北京火山引擎科技有限公司 | A table rendering method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853845A (en) * | 2014-03-24 | 2014-06-11 | 南通大学 | Dynamic analytic method of complex form |
CN103970735A (en) * | 2013-01-25 | 2014-08-06 | 苏州精易会信息技术有限公司 | Row-column highlighting method of target cell in webpage Table |
CN104516867A (en) * | 2013-09-30 | 2015-04-15 | 北大方正集团有限公司 | Table reordering method and table reordering system |
CN105474209A (en) * | 2013-06-14 | 2016-04-06 | 微软技术许可有限责任公司 | Managing changes to shared documents |
CN106021201A (en) * | 2016-05-19 | 2016-10-12 | 珠海市魅族科技有限公司 | File editing method and device |
CN107943777A (en) * | 2017-12-14 | 2018-04-20 | 北京久蓉科技有限公司 | A kind of collaborative editing, cooperative processing method, device, equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101976236B (en) * | 2010-09-26 | 2012-01-18 | 用友软件股份有限公司 | Method and device for importing floating row data through worksheet |
CN103186515A (en) * | 2011-12-28 | 2013-07-03 | 金蝶软件(中国)有限公司 | Data calculation method, system and equipment for spreadsheet |
CN102841791A (en) * | 2012-07-12 | 2012-12-26 | 上海高洁信息科技股份有限公司 | Method and system for generating online form |
JP6132698B2 (en) * | 2013-07-31 | 2017-05-24 | 株式会社日立製作所 | Tabular multidimensional data conversion method and apparatus |
CN103853806A (en) * | 2013-09-26 | 2014-06-11 | 深圳海联讯科技股份有限公司 | Method and device for converting table |
-
2018
- 2018-10-31 CN CN201811291726.XA patent/CN109491742B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970735A (en) * | 2013-01-25 | 2014-08-06 | 苏州精易会信息技术有限公司 | Row-column highlighting method of target cell in webpage Table |
CN105474209A (en) * | 2013-06-14 | 2016-04-06 | 微软技术许可有限责任公司 | Managing changes to shared documents |
CN104516867A (en) * | 2013-09-30 | 2015-04-15 | 北大方正集团有限公司 | Table reordering method and table reordering system |
CN103853845A (en) * | 2014-03-24 | 2014-06-11 | 南通大学 | Dynamic analytic method of complex form |
CN106021201A (en) * | 2016-05-19 | 2016-10-12 | 珠海市魅族科技有限公司 | File editing method and device |
CN107943777A (en) * | 2017-12-14 | 2018-04-20 | 北京久蓉科技有限公司 | A kind of collaborative editing, cooperative processing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109491742A (en) | 2019-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491742B (en) | Page table rendering method and device | |
CN110046021B (en) | Page display method, device, system, equipment and storage medium | |
CN109460233B (en) | Method, device, terminal equipment and medium for updating native interface display of page | |
CN109408685B (en) | Thinking guide graph display method and device | |
CN109976620B (en) | Method, device, equipment and storage medium for determining list item display attribute information | |
CN109857486B (en) | Method, device, equipment and medium for processing program page data | |
CN112528595B (en) | Document processing method and device and electronic equipment | |
JP2022533203A (en) | How and equipment to insert information into online documents | |
EP4131932B1 (en) | Video effect configuration file generation method, and video rendering method and device | |
CN110070593B (en) | Method, device, equipment and medium for displaying picture preview information | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN111177634A (en) | Multi-language supporting file content loading method, device, equipment and medium | |
CN111641690B (en) | Session message processing method and device and electronic equipment | |
CN110134905B (en) | Page update display method, device, equipment and storage medium | |
CN110069186B (en) | Method and device for displaying operation interface of application | |
CN110908752A (en) | Control setting method and device, electronic equipment and interaction system | |
CN111723309A (en) | Method and device for searching web page | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN109977279B (en) | Method and device for searching online documents in suite | |
CN110618772B (en) | View adding method, device, equipment and storage medium | |
CN111756953A (en) | Video processing method, device, equipment and computer readable medium | |
CN115237291B (en) | Information processing method, device, equipment and medium | |
CN114786069B (en) | Video generation method, device, medium and electronic equipment | |
CN110427584A (en) | Page generation method, device, electronic equipment and computer readable storage medium | |
CN110568976B (en) | Method, device, equipment and storage medium for controlling application display |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |