CN109446199B - Cell data processing method and device - Google Patents

Cell data processing method and device Download PDF

Info

Publication number
CN109446199B
CN109446199B CN201811220099.0A CN201811220099A CN109446199B CN 109446199 B CN109446199 B CN 109446199B CN 201811220099 A CN201811220099 A CN 201811220099A CN 109446199 B CN109446199 B CN 109446199B
Authority
CN
China
Prior art keywords
cell
picture
picture data
attribute
data
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
Application number
CN201811220099.0A
Other languages
Chinese (zh)
Other versions
CN109446199A (en
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.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology 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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811220099.0A priority Critical patent/CN109446199B/en
Publication of CN109446199A publication Critical patent/CN109446199A/en
Application granted granted Critical
Publication of CN109446199B publication Critical patent/CN109446199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a cell data processing method and device, wherein the method includes: and acquiring attribute information of each datum in the first cell, wherein the attribute information of the datum comprises the type of the datum, if the first cell contains picture data, creating a picture assembly in the rich text assembly corresponding to the first cell, and rendering the picture assembly by using the picture data. Therefore, the picture assembly is established in the corresponding rich text assembly in the cell, the picture is rendered in the cell, the automatic picture adjustment can be realized when the cell is processed, and the processing efficiency is greatly improved.

Description

Cell data processing method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a cell data processing method and apparatus.
Background
Spreadsheets are important tools for data recording, statistics, analysis, and presentation. It is a common requirement to insert pictures in tables to enhance the description of the tables. Most tables currently only support inserting floating pictures. When editing the cells with pictures, after the cells are operated, the floating pictures need to be manually adjusted, so that the positions of the floating pictures and the positions of the cells are kept consistent. Therefore, the cell processing mode is complex in operation and greatly reduces the processing efficiency.
Disclosure of Invention
The disclosure provides a cell data processing method and a cell data processing device, which are used for solving the problems of complex operation and low processing efficiency of a cell processing mode in the related art.
An embodiment of the disclosure provides a cell data processing method, including:
acquiring attribute information of each datum in the first cell, wherein the attribute information of the datum comprises the type of the datum;
if the first cell contains picture data, creating a picture assembly in the rich text assembly corresponding to the first cell;
and rendering the picture component by using the picture data.
According to the cell data processing method, the attribute information of each data in the first cell is obtained, wherein the attribute information of the data comprises the type of the data, when the first cell contains picture data, a picture component is created in a rich text component corresponding to the first cell, and the picture component is rendered by using the picture data. Therefore, the picture assembly is established in the corresponding rich text assembly in the cell, the picture is rendered in the cell, the automatic picture adjustment can be realized when the cell is processed, and the processing efficiency is greatly improved.
An embodiment of another aspect of the present disclosure provides a cell data processing apparatus, including:
the first obtaining module is used for obtaining attribute information of each datum in the first cell, wherein the attribute information of the datum comprises the type of the datum;
the first creating module is used for creating a picture assembly in the rich text assembly corresponding to the first cell when the picture data is contained in the first cell;
and the rendering module is used for rendering the picture component by utilizing the picture data.
According to the cell data processing device in the embodiment of the disclosure, the attribute information of each data in the first cell is acquired, wherein the attribute information of the data includes the type of the data, when the first cell contains picture data, a picture component is created in a rich text component corresponding to the first cell, and the picture component is rendered by using the picture data. Therefore, the picture assembly is established in the corresponding rich text assembly in the cell, the picture is rendered in the cell, the automatic picture adjustment can be realized when the cell is processed, and the processing efficiency is greatly improved.
Another embodiment of the present disclosure provides an electronic device, including a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the cell data processing method according to the embodiment of the above aspect.
Another embodiment 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 cell data processing method as described in the above one embodiment.
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 cell data processing method according to an embodiment of the disclosure;
fig. 2 is a schematic diagram illustrating an effect of displaying a picture in a cell according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart of another cell data processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another cell data processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another cell data processing method according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of another cell data processing method according to an embodiment of the present disclosure;
fig. 7 is a first schematic diagram illustrating an uploading progress of picture data according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating an uploading progress of picture data according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a cell data processing apparatus according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 11 is a schematic diagram of a computer-readable storage medium of 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.
A cell data processing method and apparatus of an embodiment of the present disclosure are described below with reference to the accompanying drawings.
The embodiment of the disclosure provides a cell data processing method, which aims at the problems that most of tables in the related art only support the insertion of floating pictures, so that the floating pictures need to be manually adjusted after the cells are processed, the operation is complex, and the processing efficiency is low.
According to the cell data processing method, the attribute information of each data in the first cell is firstly acquired, when the first cell contains picture data, a picture component is created in a rich text component corresponding to the first cell, and then the picture component is rendered by using the picture data. Therefore, the drawing is rendered in the cell, so that the automatic adjustment of the picture can be realized when the cell is processed, and the processing efficiency is greatly improved.
Fig. 1 is a schematic flowchart of a cell data processing method according to an embodiment of the present disclosure.
The cell data processing method of the embodiments of the present disclosure may be executed by the cell data processing apparatus of the embodiments of the present disclosure, and the apparatus may be configured in an electronic device, such as a computer, to implement rendering of a picture in a cell.
As shown in fig. 1, the cell data processing method includes:
step 101, obtaining attribute information of each data in the first cell.
In this embodiment, the data in the cell includes but is not limited to: picture data, text data, numerical data, and the like; the attribute information of the data includes the type of the data, the size of the data, creation time, modification time, and the like. The type of the data may be a picture type, a text type, a numerical type, etc., and may be determined according to the format of the data.
And 102, if the first cell contains the picture data, creating a picture component in the rich text component corresponding to the first cell.
In this embodiment, whether the first unit includes the picture data may be determined according to the acquired attribute information of each data, such as the type of the data. For example, if the format of the data is one of the picture formats of. jpg,. gif,. png, etc., the data may be determined to be picture data.
When the picture data is determined to be contained in the first cell, a picture component is created in the rich text component corresponding to the first cell. Each cell corresponds to a rich text component, the rich text component contains all data in the corresponding cell, such as a border of the cell, content in the cell, and the like, and the created picture component is used for displaying pictures in the cell.
Note that the number of created picture components is equal to the number of picture data included in the first cell. For example, if one picture data is contained in the first cell, one picture component is created in the rich text component, and if two picture data are contained in the first cell, two picture components are created in the rich text component.
And 103, rendering the picture component by using the picture data.
After the picture component is created in the rich text component corresponding to the first cell, the picture component can be rendered by using the picture data. During rendering, the length and the width of the picture data can be adjusted according to the length and the width of the first unit cell, and the adjusted picture data is placed in the picture assembly so as to display the picture data in the first unit cell.
Fig. 2 is a schematic diagram illustrating an effect of displaying a picture in a cell according to an embodiment of the disclosure. As shown in fig. 2, the inserted picture is displayed in the column a of row 1 of the sheet1 table of the picture table, i.e., in the cell at the a1 position.
According to the cell data processing method, by acquiring the attribute information of each data in the first cell, when the first cell is determined to contain the picture data, a picture component is created in the rich text component corresponding to the first cell, so that the picture component is rendered by using the picture data, and the picture is rendered in the cell.
In practical applications, if only the picture data is contained in the first cell, after the picture assembly is created, the position attribute of the picture assembly can be determined according to the position attribute of the first cell, so that the position of the picture assembly is associated with the position of the first cell, and thus, after the picture data is displayed in the first cell, if the position of the first cell changes, the position of the picture can be changed in a self-adaptive manner. Fig. 3 is a schematic flow chart diagram of another cell data processing method according to an embodiment of the present disclosure.
As shown in fig. 3, the cell data processing method includes:
step 201, obtaining attribute information of each data in the first cell.
Step 202, if the first cell contains the picture data, a picture component is created in the rich text component corresponding to the first cell.
In this embodiment, steps 201 to 202 are similar to steps 101 to 102 in the above embodiment, and therefore are not described herein again.
And step 203, determining the position attribute of the picture assembly according to the position attribute corresponding to the first cell.
The position attribute of the first cell may be a row and a column where the first cell is located. It is to be appreciated that the location attribute of the rich text component corresponding to the first cell is the same as the location attribute of the first cell.
In order to enable the position of the picture data to be updated synchronously with the position of the first cell, in this embodiment, the position attribute of the picture assembly may be determined according to the position attribute corresponding to the first cell. Since only picture data is contained within the first cell, the location attribute of the picture assembly is the same as the location attribute of the first cell. For example, the location attribute of the first cell is row 2, column 4, and then the location attribute of the corresponding tile assembly is also row 2, column 4.
It will be appreciated that when multiple types of data are contained in the first cell, the location attributes of all sub-components within the rich text component may each be set in association with the location attribute of the rich text component, such that all data within the rich text component may be updated synchronously with the location attribute of the rich text component.
And step 204, rendering the picture component by using the picture data.
After the picture component is created in the rich text component corresponding to the first cell, the picture component can be rendered by using the picture data. During rendering, the length and the width of the picture data can be adjusted according to the length and the width of the first unit cell, and the adjusted picture data is placed in the picture assembly so as to display the picture data in the first unit cell.
Step 205, a position adjustment instruction for updating the position attribute of the first cell is obtained.
After rendering the picture components in the first cell, monitoring a position adjusting instruction for updating the position attribute of the first cell to obtain the position adjusting instruction for updating the position attribute of the first cell. The position adjustment instruction includes an updated position attribute of the first cell, for example, a row and a column of the updated first cell.
For example, the first cell before updating is located in row 3, column 4, and if the user deletes the cell in the first row, the position adjustment instruction includes the row and column where the first cell is updated, and row 2, column 4.
And step 206, updating the position attribute of the picture assembly according to the updated position attribute of the first cell.
In this embodiment, in order to update the position of the picture data synchronously with the position of the first cell, the position attribute of the picture component may be updated according to the updated position attribute of the first cell.
For example, the location attribute of the first cell update is that the first cell is located in row 2, column 4, and then the location attribute of the tile assembly is also updated to row 2, column 4.
As another example, the updated location attribute of the first cell is that the width of the row is increased by 1cm, and then the width of the image assembly is also increased by 1 cm.
In the related art, although the floating pictures in and out of the table can be independently rendered, which is not limited to the operation of the cells, if the positions of the cells are changed, the positions of the floating pictures need to be manually adjusted, which is cumbersome to operate.
According to the cell data processing method, the position attribute of the picture assembly is determined according to the position attribute of the first cell, and the attribute of the picture assembly is associated with the position attribute of the first cell, so that when the first cell changes, picture data can change in a self-adaptive mode, manual adjustment of a user is not needed, and user operation is reduced.
In practical applications, a user may insert two or more pictures into the same cell, and when the pictures are displayed in the cell, the position of each picture data in the cell needs to be determined.
In this embodiment, the first cell includes at least two pieces of picture data, and the attribute information of the acquired data further includes location information of the data. In practical applications, the data may be numbered according to the data input in the first cell or the order of inserting the cells, and the number may be used as the position information of the data in the first cell. For example, the user inserts a first picture in the first cell, the picture corresponds to the number 1, and the first picture is displayed in the cell through the picture assembly. Then, the user inserts a second picture into the cell, and the number of the second picture is corresponding to 2, so that the position attribute of the picture component corresponding to the second picture in the cell can be determined according to the position of the first picture in the cell and the number of the second picture.
In order to enable at least two pieces of picture data contained in the first cell to be displayed in the first cell at the correct positions, after a picture component is created in a rich text component corresponding to the first cell, the cell data processing method according to the embodiment of the present disclosure further includes: and determining the position attribute of the picture assembly according to the position information of the picture data. Specifically, according to the position information of each piece of picture data, the position attribute of the picture assembly corresponding to the picture data is determined, so that the picture data is placed in the corresponding picture assembly during rendering, and each piece of picture data is displayed in the first cell according to the position information of the picture data.
In order to improve the diversity of cell data processing, in this embodiment, after the picture component is rendered by using the picture data, a full screen component may be created in the rich text component corresponding to the first cell, and a position of the focus is detected, and when the focus is detected to be located in the first cell, the full screen component is displayed in the first cell.
The full screen component is used for displaying the component of the picture in the first cell in a full screen mode, and the display position of the full screen component can be set as required, for example, the display position can be set to be displayed in the upper right corner of the first cell.
In this embodiment, the focus may be a mouse, a touch point, or the like. For example, when a mouse is detected moving into a first cell, a full screen component is displayed in the first cell. When the operation that the user clicks the full screen component is received, the picture in the first cell can be displayed in a full screen mode, and the user can conveniently check the picture in the cell.
In practical applications, the picture data contained in the first cell may be uploaded in advance. Fig. 4 is a schematic flow chart diagram of another cell data processing method according to an embodiment of the present disclosure.
Before acquiring the attribute information of each data in the first cell, as shown in fig. 4, the cell data processing method further includes:
step 301, obtaining a picture data uploading request, where the uploading request includes the identifier of the first cell and the picture data.
The identification of the first unit cell is used for identifying the uniqueness of the first unit cell. As one example, cells in a table may be numbered from top to bottom, left to right, and the number may be used as an identification of the cell. When the position of the first cell changes, its identity may be considered unchanged.
In this embodiment, when an operation that a user inserts a picture in the first cell is detected, a picture data upload request may be acquired. The uploading request comprises the identification of the first unit cell and the picture data.
For example, when the user inserts picture data into a cell numbered 4 in the picture table, the upload request includes the cell number 4 and the picture data.
Step 302, store the picture data in the rich text component corresponding to the identification of the first cell.
After the image data uploading request is obtained, the image data carried in the uploading request is stored in the rich text component corresponding to the identifier of the first cell, and then the first cell contains the image data.
For example, if the upload request includes the cell number 4 and the picture data, the picture data is stored in the text-rich component corresponding to the cell number 4.
In practical applications, for a spreadsheet that can be operated by multiple users in a coordinated manner, other users may operate the spreadsheet during the process of uploading pictures. For example, in the process of uploading data on a picture, a user performs an operation of deleting a line, and if the picture data is placed in a cell according to the position attribute of the cell, an error may occur.
For example, a picture data is inserted into the cell in the 4 th row and the 3 rd column, and during the picture uploading process, the user deletes the first row, so that the position of the cell changes, and the row and the column of the cell are the 3 rd row and the 3 rd column. Still putting the picture data into the 4 th row and 3 rd column will cause the picture insertion position to be wrong.
Based on this, in this embodiment, in the picture uploading process, the position of the picture can be kept to change along with the position of the cell. Fig. 5 is a schematic flow chart diagram of another cell data processing method according to an embodiment of the present disclosure.
After acquiring the picture data upload request, as shown in fig. 5, the cell data processing method further includes:
step 401, obtaining the current location attribute of the first cell according to the identifier of the first cell.
In this embodiment, when creating the table, an identifier may be assigned to each cell to record the position of the cell in the table. Then, the current location attribute of the first cell may be obtained according to the identifier of the first cell.
Step 402, in the process of uploading the picture data, detecting a location attribute updating event of the first cell.
In practical applications, when operations such as deleting rows, deleting columns, merging cells, deleting cells, etc. are performed on a table, the positions of all other cells or some cells in the table are affected.
When the position of the first cell is updated or the position of the cell associated with the position of the first cell is updated, the position attribute of the first cell is affected.
In this embodiment, in the process of uploading the picture, whether a location attribute update event of the first cell is detected may be determined by detecting whether a location adjustment instruction for updating the location attribute of the first cell is acquired.
For example, when it is detected that a merge operation is performed on the first cell and the cells above the first cell, a position adjustment instruction for updating the position attribute of the first cell is acquired.
Or, by detecting whether a position adjustment instruction for updating the position attribute of the second cell is acquired, it is determined whether a position adjustment instruction for updating the position attribute of the first cell is detected. The second cell is any cell with a position attribute associated with the position attribute of the first cell.
For example, the location attribute of the first cell is row 3, column 5, and when the user performs an operation of deleting the cell in row 1, column 5 and moving up the lower cell, the location attribute of the first cell is updated to row 2, column 5.
Step 403, if the location attribute update event of the first cell is not detected, after the uploading of the picture data is finished, determining a location attribute corresponding to the picture data according to the current location attribute of the first cell.
In the process of uploading the picture data, if the update event of the position attribute of the first cell is not detected, it is indicated that the position attributes of all the cells in the table are not changed, and then the current position attribute of the first cell is also kept unchanged, so that after the picture is uploaded, the position attribute of the picture data can be determined according to the current position attribute of the first cell.
For example, the position attribute of the first cell is row 4, column 6, and in the process of uploading the picture data, the position attribute update event of the first cell is not detected, so that after the uploading of the picture data is finished, the position attribute of the first cell is still row 4, column 6, and it may be determined that the position attribute corresponding to the picture data is also row 4, column 6.
Step 404, if a location attribute update event of the first cell is detected, after the uploading of the picture data is finished, determining a location attribute corresponding to the picture data according to the location attribute after the updating of the first cell.
In the process of uploading the picture data, if a location attribute update event of the first cell is detected, which indicates that the location attribute of the first cell is updated, after the picture data is uploaded, the location attribute corresponding to the picture data needs to be determined according to the updated location attribute of the first cell.
For example, if the position attribute of the first cell is updated from row 4, column 6 to row 3, column 6, the corresponding position attribute of the picture data may be determined to be row 3, column 6.
In the cell data processing method according to the embodiment of the disclosure, in the process of uploading the picture data, whether the position attribute of the first cell is updated is determined by detecting the current position attribute update event of the first cell, so as to determine the position attribute corresponding to the picture data according to the position attribute of the first cell, thereby ensuring that the position of the picture data is consistent with the position of the first cell after the picture data is finished.
Since a certain time is required for uploading the picture data, in order to facilitate a user to know the uploading progress of the picture data, in the embodiment, in the process of uploading the picture data, the progress bar assembly may further be arranged in the first cell so as to display the uploading progress through the progress bar assembly. Fig. 6 is a schematic flow chart of another cell data processing method according to an embodiment of the present disclosure.
After acquiring the upload request of the picture data, as shown in fig. 6, the cell data processing method further includes:
step 501, displaying a progress bar component in the rich text component corresponding to the first cell in the first cell.
In this embodiment, a progress bar group price may be created in the rich text component corresponding to the first cell. The width attribute of the progress bar assembly can be associated with the width attribute of the first cell, for example, the width of the progress bar assembly is in a preset proportion to the width of the first cell. Thus, the width of the progress bar assembly may be adjusted as the width of the first cell is adjusted.
After the picture data uploading request is obtained, the progress bar component in the rich text component corresponding to the first cell can be displayed in the first cell.
And 502, rendering the progress bar assembly according to the uploading progress of the picture data.
In this embodiment, in the process of uploading the picture data, the progress bar component may be rendered according to the uploading progress of the picture data, so as to display the uploading progress of the picture data.
Fig. 7 and 8 are views illustrating the uploading progress of the same picture data at different times. As shown in fig. 7 and 8, when the user inserts data in row 1 and column a of the table, a progress bar component may be displayed in the cell, thereby facilitating the user to know the uploading progress of the picture data.
In practical applications, during the process of uploading the picture data, the position attribute of the first cell may be changed.
In order to keep the progress bar assembly consistent with the position of the first cell. In this embodiment, in the process of uploading the picture data, whether the position of the first cell is changed or not may be determined by detecting a position attribute update event of the first cell, and specifically, whether a position adjustment instruction for updating the position attribute of the first cell is acquired or not may be detected, and whether a position attribute update event of the first cell is detected or not may be determined by detecting whether a position adjustment instruction for updating the position attribute of the second cell is acquired or not. The second cell is any cell with a position attribute associated with the position attribute of the first cell.
When the position of the first cell changes, the position attribute of the progress bar assembly is updated according to the updated position attribute of the first cell, so that the position of the progress bar assembly changes along with the change of the position of the first cell, and the progress bar assembly is always displayed in the first cell.
In order to implement the above embodiments, the embodiment of the present disclosure further provides a cell data processing apparatus. Fig. 9 is a schematic structural diagram of a cell data processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 9, the cell data processing apparatus includes: a first acquisition module 610, a first creation module 620, and a rendering module 630.
The first obtaining module 610 is configured to obtain attribute information of each data in the first cell, where the attribute information of the data includes a type of the data.
The first creating module 620 is configured to create a picture component in the rich text component corresponding to the first cell when the picture data is contained in the first cell.
The rendering module 630 is configured to render the picture component by using the picture data.
In a possible implementation manner of the embodiment of the present disclosure, if the first cell only includes the picture data, the apparatus may further include:
and the first determining module is used for determining the position attribute of the picture assembly according to the position attribute corresponding to the first cell.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus may further include:
the second obtaining module is used for obtaining a position adjusting instruction used for updating the position attribute of the first cell, and the position adjusting instruction comprises the updated position attribute of the first cell;
and the first updating module is used for updating the position attribute of the picture assembly according to the updated position attribute of the first cell.
In a possible implementation manner of the embodiment of the present disclosure, if the first cell includes at least two pieces of picture data, the attribute information of the data further includes location information of the data; the apparatus may further comprise:
and the second determining module is used for determining the position attribute of the picture assembly according to the position information of the picture data.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus may further include:
the second creating module is used for creating a full screen component in the rich text component corresponding to the first cell;
and the display module is used for displaying the full screen component in the first cell when the focus is detected to be positioned in the first cell.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus may further include:
the third acquisition module is used for acquiring an uploading request of the picture data, wherein the uploading request comprises the identifier of the first cell and the picture data;
and the storage module is used for storing the picture data into the rich text component corresponding to the identification of the first cell.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus may further include:
the fourth obtaining module is used for obtaining the current position attribute of the first cell according to the identifier of the first cell;
the detection module is used for detecting a position attribute updating event of the first cell in the process of uploading the picture data;
the third determining module is used for determining the position attribute corresponding to the picture data according to the current position attribute of the first cell after the picture data is uploaded when the position attribute updating event of the first cell is not detected;
the third determining module is further configured to determine, when the location attribute update event of the first cell is detected and after the uploading of the picture data is finished, the location attribute corresponding to the picture data according to the location attribute after the updating of the first cell.
In a possible implementation manner of the embodiment of the present disclosure, the detection module is further configured to:
detecting whether a position adjusting instruction for updating the position attribute of the first cell is acquired;
or detecting whether a position adjusting instruction for updating the position attribute of a second cell is acquired, wherein the second cell is any cell with the position attribute associated with the position attribute of the first cell.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus may further include:
the display module is further used for displaying a progress bar component in the rich text component corresponding to the first cell in the first cell;
the rendering module 630 is further configured to render the progress bar component according to the uploading progress of the picture data.
It should be noted that the foregoing explanation of the embodiment of the cell data processing method is also applicable to the cell data processing apparatus of this embodiment, and therefore, the details are not repeated herein.
According to the cell data processing device in the embodiment of the disclosure, the attribute information of each data in the first cell is acquired, wherein the attribute information of the data includes the type of the data, when the first cell contains picture data, a picture component is created in a rich text component corresponding to the first cell, and the picture component is rendered by using the picture data. Therefore, the picture assembly is established in the corresponding rich text assembly in the cell, the picture is rendered in the cell, the automatic picture adjustment can be realized when the cell is processed, and the processing efficiency is greatly improved.
In order to implement the foregoing embodiments, an embodiment of the present disclosure further provides an electronic device, including a processor and a memory;
wherein, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the cell data processing method according to the above embodiment.
Referring now to FIG. 10, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. 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. 10 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. 10, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to 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 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 to communicate with other devices wirelessly or by wire to exchange data. While fig. 10 illustrates an electronic device 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.
In order to implement the above embodiments, the present disclosure provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the cell data processing method according to the above embodiments.
Fig. 11 is a schematic diagram of a computer-readable storage medium of an embodiment of the present disclosure. As shown in fig. 11, a computer-readable storage medium 900 according to an embodiment of the present disclosure has computer-readable instructions 901 stored thereon. When the computer readable instructions 901 are executed by a processor, all or part of the steps of the character editing method of the mobile terminal according to the embodiments of the present disclosure are executed.
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 at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
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 storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure, and that changes, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present disclosure.

Claims (20)

1. A method of processing cell data, comprising:
acquiring attribute information of each datum in the first cell, wherein the attribute information of the datum comprises the type of the datum;
if the first cell contains picture data, creating a picture assembly in the rich text assembly corresponding to the first cell;
and adjusting the length and the width of the picture data according to the length and the width of the first unit cell, and putting the adjusted picture data into the picture assembly to render the picture assembly.
2. The method of claim 1, wherein the creating a picture component in the rich text component corresponding to the first cell after creating the picture component if only picture data is contained in the first cell comprises:
and determining the position attribute of the picture assembly according to the position attribute corresponding to the first cell.
3. The method of claim 2, wherein after adjusting the length and width of the picture data according to the length and width of the first cell and placing the adjusted picture data in the picture component for rendering the picture component, further comprising:
acquiring a position adjusting instruction for updating the position attribute of the first cell, wherein the position adjusting instruction comprises the updated position attribute of the first cell;
and updating the position attribute of the picture assembly according to the updated position attribute of the first cell.
4. The method of claim 1, wherein if the first cell contains at least two picture data, the attribute information of the data further comprises location information of the data;
after creating a picture component in the rich text component corresponding to the first cell, the method further includes:
and determining the position attribute of the picture assembly according to the position information of the picture data.
5. The method of claim 1, wherein after adjusting the length and width of the picture data according to the length and width of the first cell and placing the adjusted picture data in the picture component for rendering the picture component, further comprising: creating a full screen component in a rich text component corresponding to the first cell;
and upon detecting that a focus is located within the first cell, displaying the full screen component in the first cell.
6. The method according to any one of claims 1 to 5, wherein before obtaining the attribute information of each data in the first cell, the method further comprises:
acquiring an uploading request of picture data, wherein the uploading request comprises the identifier of the first cell and the picture data;
and storing the picture data into a rich text component corresponding to the identification of the first cell.
7. The method of claim 6, wherein after the obtaining the request for uploading the picture data, further comprising:
acquiring the current position attribute of the first cell according to the identifier of the first cell;
detecting a position attribute updating event of the first cell in the picture data uploading process;
if the position attribute updating event of the first cell is not detected, after the uploading of the picture data is finished, determining a position attribute corresponding to the picture data according to the current position attribute of the first cell;
and if the position attribute updating event of the first cell is detected, after the uploading of the picture data is finished, determining the position attribute corresponding to the picture data according to the updated position attribute of the first cell.
8. The method of claim 7, wherein said detecting a location attribute update event for the first cell comprises:
detecting whether a position adjusting instruction for updating the position attribute of the first cell is acquired or not;
or detecting whether a position adjusting instruction for updating a position attribute of a second cell is acquired, wherein the second cell is any cell with a position attribute associated with the position attribute of the first cell.
9. The method of claim 7 or 8, wherein after the obtaining the request for uploading picture data, further comprising:
displaying a progress bar component in the rich text component corresponding to the first cell in the first cell;
and rendering the progress bar assembly according to the uploading progress of the picture data.
10. A cell data processing apparatus, comprising:
the first obtaining module is used for obtaining attribute information of each datum in the first cell, wherein the attribute information of the datum comprises the type of the datum;
the first creating module is used for creating a picture assembly in the rich text assembly corresponding to the first cell when the picture data is contained in the first cell;
and the rendering module is used for adjusting the length and the width of the picture data according to the length and the width of the first cell and putting the adjusted picture data into the picture assembly so as to render the picture assembly.
11. The apparatus of claim 10, wherein if the first cell contains only picture data, the apparatus further comprises:
and the first determining module is used for determining the position attribute of the picture assembly according to the position attribute corresponding to the first cell.
12. The apparatus of claim 11, further comprising:
a second obtaining module, configured to obtain a position adjustment instruction for updating the position attribute of the first cell, where the position adjustment instruction includes the updated position attribute of the first cell;
and the first updating module is used for updating the position attribute of the picture assembly according to the updated position attribute of the first cell.
13. The apparatus of claim 10, wherein if the first cell contains at least two picture data, the attribute information of the data further comprises location information of the data; the device further comprises:
and the second determining module is used for determining the position attribute of the picture assembly according to the position information of the picture data.
14. The apparatus of claim 10, further comprising:
the second creating module is used for creating a full screen component in the rich text component corresponding to the first cell;
a display module to display the full screen component in the first cell upon detecting that a focus is within the first cell.
15. The apparatus of claim 14, further comprising:
a third obtaining module, configured to obtain an upload request of picture data, where the upload request includes an identifier of the first cell and the picture data;
and the storage module is used for storing the picture data into the rich text component corresponding to the identifier of the first cell.
16. The apparatus of claim 15, further comprising:
a fourth obtaining module, configured to obtain a current location attribute of the first cell according to the identifier of the first cell;
the detection module is used for detecting a position attribute updating event of the first cell in the process of uploading the picture data;
a third determining module, configured to determine, when a location attribute update event of the first cell is not detected, a location attribute corresponding to the picture data according to the current location attribute of the first cell after the picture data is uploaded;
the third determining module is further configured to determine, when the location attribute update event of the first cell is detected and after the uploading of the picture data is finished, the location attribute corresponding to the picture data according to the updated location attribute of the first cell.
17. The apparatus of claim 16, wherein the detection module is further to:
detecting whether a position adjusting instruction for updating the position attribute of the first cell is acquired or not;
or detecting whether a position adjusting instruction for updating a position attribute of a second cell is acquired, wherein the second cell is any cell with a position attribute associated with the position attribute of the first cell.
18. The apparatus of claim 16 or 17,
the display module is further used for displaying a progress bar component in the rich text component corresponding to the first cell in the first cell;
the rendering module is further used for rendering the progress bar assembly according to the uploading progress of the picture data.
19. An electronic device comprising a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the cell data processing method according to any one of claims 1 to 9.
20. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the cell data processing method according to any one of claims 1 to 9.
CN201811220099.0A 2018-10-19 2018-10-19 Cell data processing method and device Active CN109446199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811220099.0A CN109446199B (en) 2018-10-19 2018-10-19 Cell data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811220099.0A CN109446199B (en) 2018-10-19 2018-10-19 Cell data processing method and device

Publications (2)

Publication Number Publication Date
CN109446199A CN109446199A (en) 2019-03-08
CN109446199B true CN109446199B (en) 2020-11-13

Family

ID=65546999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811220099.0A Active CN109446199B (en) 2018-10-19 2018-10-19 Cell data processing method and device

Country Status (1)

Country Link
CN (1) CN109446199B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287473A (en) * 2019-06-28 2019-09-27 北京字节跳动网络技术有限公司 Electrical form edit methods and device
CN111209800B (en) * 2019-12-23 2023-04-28 东软集团股份有限公司 Table content change identification method and device, storage medium and electronic equipment
CN111428455B (en) * 2020-03-09 2023-06-20 广州视源电子科技股份有限公司 Form management method, device, equipment and storage medium
CN112632921B (en) * 2020-11-26 2022-02-11 腾讯科技(深圳)有限公司 Display processing method, device, terminal and storage medium for multimedia data
CN114327728B (en) * 2021-12-29 2024-07-30 浪潮卓数大数据产业发展有限公司 Application unit lattice construction method, device and medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2798294C (en) * 2010-05-03 2019-05-28 Cambridgesoft Corporation Method and apparatus for processing documents to identify chemical structures
US9600787B2 (en) * 2013-05-16 2017-03-21 Toshiba Global Commerce Solutions Holdings Corporation Deferring authentication and resource loading while starting an enterprise system
CN103389968B (en) * 2013-07-10 2016-02-17 百度时代网络技术(北京)有限公司 A kind of rich text Display Realization method and system
CN106354395B (en) * 2016-09-28 2019-05-24 厦门印天电子科技有限公司 By the method that multimedia object is inserted into two-dimensional table in interactive whiteboard software
CN106484663B (en) * 2016-10-12 2019-05-03 天闻数媒科技(湖南)有限公司 A kind of extracting method and device of document content
CN106447305A (en) * 2016-11-08 2017-02-22 济南浪潮高新科技投资发展有限公司 Method for managing schedule by control
CN107066244B (en) * 2016-12-12 2020-12-18 阿里巴巴(中国)有限公司 Method and device for generating application interface of mobile terminal
CN106873986A (en) * 2017-01-17 2017-06-20 武汉天喻教育科技有限公司 Form system and implementation method in a kind of WPF
CN107480121A (en) * 2017-09-04 2017-12-15 江苏中威科技软件系统有限公司 The preparation method of format data flow table list
CN107861933A (en) * 2017-11-29 2018-03-30 北京百度网讯科技有限公司 The method and apparatus for generating O&M form

Also Published As

Publication number Publication date
CN109446199A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109446199B (en) Cell data processing method and device
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
WO2015112623A1 (en) Authoring, sharing and consumption of online courses
CN109600656B (en) Video list display method and device, terminal equipment and storage medium
CN109684589B (en) Client comment data processing method and device and computer storage medium
CN110619099B (en) Comment content display method, device, equipment and storage medium
US12056440B2 (en) Document update method and apparatus, device, and medium
CN103217171A (en) Navigation equipment and method for editing map data by user
CN109726380A (en) Table edit method and device
CN114528816B (en) Collaborative editing information display method and device, electronic equipment and readable medium
CN110728129B (en) Method, device, medium and equipment for typesetting text content in picture
CN110134905B (en) Page update display method, device, equipment and storage medium
CN110647369B (en) Page dynamic display method and device, mobile terminal and storage medium
CN116109734A (en) Picture processing method and device
CN111641690B (en) Session message processing method and device and electronic equipment
CN112492399B (en) Information display method and device and electronic equipment
CN112579218B (en) User interface display method and device, computer readable medium and electronic equipment
CN110381356B (en) Audio and video generation method and device, electronic equipment and readable medium
CN102385453A (en) Information processing apparatus and control method thereof
CN104967907A (en) Video playing positioning method and system
CN109408387B (en) Page testing method and device
CN107655492B (en) Method and device for inquiring information
CN115291759A (en) Information processing method and device and electronic equipment
CN115619904A (en) Image processing method, device and equipment
CN111709342B (en) Subtitle segmentation method, device, equipment and storage medium

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