WO2024169747A1 - Excel data processing method and apparatus, electronic device, and storage medium - Google Patents
Excel data processing method and apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- WO2024169747A1 WO2024169747A1 PCT/CN2024/076108 CN2024076108W WO2024169747A1 WO 2024169747 A1 WO2024169747 A1 WO 2024169747A1 CN 2024076108 W CN2024076108 W CN 2024076108W WO 2024169747 A1 WO2024169747 A1 WO 2024169747A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cell
- content
- rich element
- update record
- update
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2308—Concurrency control
- G06F16/2315—Optimistic concurrency control
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
Definitions
- the present disclosure relates to the field of computer technology, and in particular to a table data processing method, device, electronic device and storage medium.
- Document collaboration technology enables multiple users to process the same document in real time without the need for users to transfer the document to each other before processing, thereby improving document processing efficiency.
- users may want to restore or obtain (for example, copy) a certain version of the updated content in some cases.
- a table data processing method comprising:
- entity update content corresponding to the first update record is obtained; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
- a table data processing apparatus comprising:
- a display unit configured to display at least one update record of a first cell in the online document in response to a first preset operation of the user on the first cell;
- An acquisition unit is used to obtain entity update content corresponding to a first update record in the at least one update record in response to a second preset operation of the user on the first update record; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
- an electronic device comprising: at least one memory and at least one processor; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory so that the electronic device executes the table data processing method provided according to one or more embodiments of the present disclosure.
- a non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes the table data processing method provided according to one or more embodiments of the present disclosure.
- FIG1 is a flow chart of a table data processing method according to an embodiment of the present disclosure
- FIG2 is an update record interface of a cell provided according to an embodiment of the present disclosure.
- FIG3 is a schematic diagram of the structure of a table data processing device provided according to an embodiment of the present disclosure.
- FIG. 4 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure.
- the term “including” and its variations are open inclusions, i.e., “including but not limited to”.
- the term “based on” means “based at least in part on”.
- the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one other embodiment”; the term “some embodiments” means “at least some embodiments”.
- the term “responsive to” and related terms refer to a signal or event being affected to a certain extent by another signal or event, but not necessarily completely or directly. If event x occurs “responsive to" event y, x may be directly or indirectly responsive to y. For example, the occurrence of y may ultimately lead to the occurrence of x, but there may be other intermediate events and/or conditions. In other cases, y may not necessarily lead to the occurrence of x, and x may occur even if y has not yet occurred. In addition, the term “responsive to” may also mean “at least partially responsive to”.
- the term "determine” broadly covers a variety of actions, which may include obtaining, calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, database, or other data structure), ascertaining, and similar actions, and may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and similar actions, as well as parsing, selecting, choosing, establishing, and similar actions, etc.
- receiving e.g., receiving information
- accessing e.g., accessing data in a memory
- parsing selecting, choosing, establishing, and similar actions, etc.
- a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can autonomously choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operation of the technical solution of the present disclosure according to the prompt message.
- the prompt information in response to receiving an active request from the user, is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form.
- the pop-up window can also carry a selection control for the user to choose "agree” or “disagree” to provide personal information to the electronic device.
- phrase "A and/or B” means (A), (B), or (A and B).
- FIG. 1 shows a flowchart of a table data processing method 100 provided in an embodiment of the present disclosure.
- the method 100 includes steps S120 to S140 .
- Step S120 in response to a first preset operation of a user on a first cell in the online document, displaying at least one update record of the first cell;
- Step S140 In response to a second preset operation of the user on a first update record among the at least one update record, obtaining entity update content corresponding to the first update record.
- the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
- the functional module is used to execute a preset function, such as a schedule reminder, a user reminder, a document reminder, and other functional components that provide functions in a table.
- an online document may be a document that can be edited online by users, collaborated by multiple users, and saved in real time in the cloud. It may be displayed through a Hypertext Markup Language (HTML) page, and rely on communication between the client and the server to synchronize user edited content.
- HTML Hypertext Markup Language
- the execution subject of method 100 may be a client, such as an instant messaging (IM) client.
- the client integrates the function of an online document. Based on the user's click operation, the client calls the browser kernel through the interface provided by the browser to load the page of the online document. Based on the loaded page, the user can create and edit the online document.
- IM instant messaging
- the user can share the online document through the client; in other embodiments, the client is integrated with a browser kernel, and the page of the online document is displayed in the client by calling the browser kernel; in other embodiments, the client is an online document client, and the page loading and display of the online document is realized by running the online document client; in other embodiments, there is a small program corresponding to the online document function, and the client downloads and runs
- the source code of the online document applet implements the loading and display of online document pages.
- the first preset operation for the first cell is used to display the update record of the first cell.
- the first preset operation includes but is not limited to a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device.
- the user can right-click the mouse to call up a preset menu, which can provide a function option of viewing the cell update record for the user to further select.
- the update record interface of the cell pops up.
- the second preset operation for the first update record is used to obtain the entity update content corresponding to the first update record.
- the second preset operation includes but is not limited to a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device.
- the entity update content of the first update record can be obtained in response to the user triggering a preset virtual button corresponding to the first update record.
- FIG2 shows an update record interface of a cell provided according to an embodiment of the present disclosure.
- the update record interface 10 displays the update record of cell B2, which currently displays a total of 4 update records of user A, user B, user C and user D for cell B2 in the form of a list.
- the display content of each update record includes the user name, update time and specific update content.
- the update content when the update content includes inserting a document as an attachment in a cell, the name of the document as an attachment (for example, "xx sales data") can be displayed in the corresponding update record; when the update content includes inserting a picture in a cell, a thumbnail of the picture can be displayed in the corresponding update record; when the update content includes inserting a hyperlink in a cell, the name of the hyperlink defined by the user (for example, "xx web page”) can be displayed in the corresponding update record.
- the update record interface 10 currently displays a copy mark 11.
- the table document "xx sales data” as the entity update content of cell B2 can be obtained, rather than being limited to obtaining only the text title "xx sales data” of the table document as the display form of cell B2.
- multiple update records may be displayed in the update record interface in the form of page turning, but the present disclosure is not limited thereto.
- the first cell may be any cell or a preset cell in the online document, and the present disclosure does not limit this.
- online electronic spreadsheets can provide rich element insertion functions, such as inserting attachments, pictures, hyperlinks or functional modules in cells.
- rich element insertion functions such as inserting attachments, pictures, hyperlinks or functional modules in cells.
- relevant online documents cannot provide rich element update record recovery, resulting in the loss of such data after the rich element data of a cell is changed.
- a first preset operation is performed to display at least one update record of the first cell, and in response to a second preset operation of the user for the first update record, the entity update content containing rich elements of the first update record is obtained, thereby facilitating the user to restore or copy the entity update content containing rich elements, without being limited to obtaining only the text content corresponding to the update record.
- step S140 includes: acquiring storage data corresponding to the rich element; and generating clipping content supporting cell pasting based on the storage data corresponding to the rich element and the associated text or hyperlink of the rich element.
- the associated text of a rich element includes a name or title of the rich element.
- clipping content supporting cell pasting is generated based on the storage data corresponding to the rich element and the associated text of the rich element; or, if the rich element is any one of a picture, a hyperlink, and a functional module, clipping content supporting cell pasting is generated based on the storage data corresponding to the rich element and the hyperlink of the rich element.
- the stored data corresponding to the rich element can be stored in the label attribute of the cell label for data extraction when pasting the clipped content, and the associated text of the rich element can be embedded in the cell label so that the associated text is used as the text representation of the rich element after pasting.
- the stored data can be stored in the tag attributes of the cell tag for data extraction when pasting the clipped content; the tag defining the hyperlink can be embedded in the cell tag, and the hyperlink corresponding to the rich element can be written into the attribute of the address of the specified hyperlink target of the tag defining the hyperlink.
- the storage data corresponding to the rich element is data of a non-ordinary text data structure
- the cell tag is a standard cell tag in an HTML (Hypertext Markup Language) table
- the tag attributes include HTML tag attributes.
- the stored data corresponding to the rich element can be stored in a property of a cell tag (such as a td tag) that can be pasted and extracted (such as a data-sheet-value property) to facilitate data extraction when pasting, and a corresponding tag or text can be embedded in the tag for display in a form for pasting, and finally a Hypertext Markup Language (HTML) string that can be recognized when pasted in a table is generated and written to the clipboard in the form of Hypertext Markup Language.
- a cell tag such as a td tag
- HTML Hypertext Markup Language
- the file name of the document can be embedded in the td tag, so that the pasted rich element can be displayed in the cell in the form of a file name and when the user clicks the file name displayed in the cell, the content of the document can be obtained and viewed, rather than just displaying the file name in the form of plain text in the copied cell;
- the rich element is a picture, a hyperlink or a functional module, a tag that defines a hyperlink (such as an a tag) can be embedded in the cell tag, and the hyperlink corresponding to the rich element can be written in the attribute of the tag that defines the hyperlink that specifies the URL of the hyperlink target (such as the href attribute), so that After pasting, users can directly click on the corresponding cell to view the content of the rich element through the hyperlink.
- method 100 further includes: in response to a third preset operation on a first update record in the at least one update record, displaying a content preview interface of the rich element.
- the third preset operation includes, but is not limited to, a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device.
- a content preview interface of the rich element may be displayed.
- the rich element is a document
- the user may preview the content of the document through the third preset operation.
- method 100 further includes: after obtaining the entity update content corresponding to the first update record, in response to a fourth preset operation of the user, updating the content of the target cell in the online document to the entity update content.
- the fourth preset operation is used to update the content of the target cell to the acquired entity update content, and the fourth preset operation includes but is not limited to a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device.
- the target cell may include the first cell or other cells other than the first cell, and the present disclosure does not limit this.
- the rich element can be pasted or restored within the cell.
- a table data processing device 600 comprising:
- a display unit 601 configured to display at least one update record of a first cell in an online document in response to a first preset operation of the user on the first cell;
- the acquisition unit 602 is used to obtain the entity update content corresponding to the first update record in the at least one update record in response to the user's second preset operation on the first update record; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
- the acquisition unit is further used to generate clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element.
- the acquisition unit includes:
- a first acquisition subunit is used to generate clipping content supporting cell pasting based on the storage data corresponding to the rich element and the associated text of the rich element if the rich element is a document;
- the second acquisition subunit is used to generate clipping content supporting cell pasting based on the storage data corresponding to the rich element and the hyperlink of the rich element if the rich element is any one of a picture, a hyperlink, and a functional module.
- the associated text is used as a text representation of the rich element after pasting; the hyperlink Used to view the text content of the rich element.
- the associated text includes the name of the rich element.
- the display unit is configured to display a thumbnail of a picture if the update content in the at least one update record includes a picture.
- the table data processing apparatus further comprises:
- the preview unit is used to display a content preview interface of the rich element in response to a third preset operation on a first update record in the at least one update record.
- the table data processing apparatus further comprises:
- the cell updating unit is configured to update the content of a target cell in the online document to the entity updated content in response to a fourth preset operation of the user after acquiring the entity updated content corresponding to the first update record.
- the first acquisition subunit is further used to: store the stored data into the label attribute of the cell label for data extraction when pasting the clipped content; embed the associated text into the cell label so that the associated text is used as the text representation after the rich element is pasted.
- the second acquisition subunit is further used to: store the stored data in the label attribute of the cell label for data extraction when pasting the clipped content; embed the label defining the hyperlink into the cell label, and write the hyperlink corresponding to the rich element in the attribute of the address of the specified hyperlink target of the label defining the hyperlink.
- the relevant parts can be referred to the partial description of the method embodiments.
- the device embodiments described above are merely schematic, in which the modules described as separation modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
- an electronic device including:
- the memory is used to store program codes
- the processor is used to call the program codes stored in the memory to enable the electronic device to execute the table data processing method provided according to one or more embodiments of the present disclosure.
- a non-transitory computer storage medium which stores program code, and the program code can be executed by a computer device to enable the computer device to perform the table data processing method provided according to one or more embodiments of the present disclosure.
- the terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
- the electronic device shown in FIG4 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.
- the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can 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 device 808 to a random access memory (RAM) 803.
- a processing device 801 e.g., a central processing unit, a graphics processing unit, etc.
- RAM random access memory
- various programs and data required for the operation of the electronic device 800 are also stored.
- the processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804.
- An input/output (I/O) interface 805 is also connected to the bus 804.
- the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809.
- the communication device 809 may allow the electronic device 800 to communicate wirelessly or wired with other devices to exchange data.
- FIG. 4 shows an electronic device 800 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802.
- the processing device 801 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the above-mentioned computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
- the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above.
- Computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
- a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device.
- the program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
- the client and server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network).
- HTTP HyperText Transfer Protocol
- Examples of communication networks include a local area network ("LAN”), a wide area network ("WAN”), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
- the computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
- the computer-readable medium carries one or more programs.
- the electronic device executes the method of the present disclosure.
- Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages.
- the program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
- 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
- LAN local area network
- WAN wide area network
- Internet service provider e.g., AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
- each box in the flowchart or block diagram may represent a module, a program segment, or a portion of code, which includes Contains one or more executable instructions for implementing the specified logical functions.
- the functions marked in the boxes may also occur in an order different from that marked in the accompanying drawings. For example, two boxes shown in succession may actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved.
- each box in the block diagram and/or flow chart, and the combination of boxes in the block diagram and/or flow chart may be implemented with a dedicated hardware-based system that performs the specified functions or operations, or may be implemented with a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.
- exemplary types of hardware logic components include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
- FPGAs field programmable gate arrays
- ASICs application specific integrated circuits
- ASSPs application specific standard products
- SOCs systems on chip
- CPLDs complex programmable logic devices
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment.
- a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- a machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing.
- a more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory erasable programmable read-only memory
- CD-ROM portable compact disk read-only memory
- CD-ROM compact disk read-only memory
- magnetic storage device or any suitable combination of the foregoing.
- a table data processing method comprising: in response to a first preset operation of a user on a first cell in an online document, displaying at least one update record of the first cell; in response to a second preset operation of the user on a first update record among the at least one update record, obtaining entity update content corresponding to the first update record; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
- obtaining the entity update content corresponding to the first update record includes: generating clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element.
- the storage data corresponding to the rich element and the rich The associated text or hyperlink of the element generates clipping content that supports cell pasting, including: if the rich element is a document, based on the storage data corresponding to the rich element and the associated text of the rich element, the clipping content that supports cell pasting is generated; or, if the rich element is any one of a picture, a hyperlink, and a functional module, based on the storage data corresponding to the rich element and the hyperlink of the rich element, the clipping content that supports cell pasting is generated.
- the associated text is used as a text representation after the rich element is pasted; and the hyperlink is used to view the text content of the rich element.
- the associated text includes the name of the rich element.
- the displaying of at least one update record of the first cell includes: if the update content in the at least one update record includes a picture, displaying a thumbnail of the picture.
- the method further includes: in response to a third preset operation on a first update record in the at least one update record, displaying a content preview interface of the rich element.
- the method further includes: after obtaining the entity update content corresponding to the first update record, in response to a fourth preset operation of the user, updating the content of the target cell in the online document to the entity update content.
- the generation of clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element includes: storing the stored data in the label attribute of the cell label for data extraction when pasting the clipping content; embedding the associated text into the label of the defined cell so that the associated text is used as the text representation after the rich element is pasted.
- the generation of clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element includes: storing the stored data in the tag attribute of the cell tag for data extraction when pasting the clipping content; embedding the tag defining the hyperlink into the cell tag, and writing the hyperlink corresponding to the rich element in the attribute of the address of the specified hyperlink target of the tag defining the hyperlink.
- a table data processing device including: a display unit for displaying at least one update record of a first cell in an online document in response to a first preset operation of a user on the first cell; an acquisition unit for acquiring entity update content corresponding to the first update record in response to a second preset operation of a user on a first update record in the at least one update record; wherein the entity update content of the first update record includes a rich element, and the rich element includes at least one of the following: a picture, a document, a hyperlink, and a functional module.
- a non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes one or more of the operations according to the present disclosure.
- a table data processing method is provided in an embodiment.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求申请号为202310159186.4,题为“表格数据处理方法、装置、电子设备和存储介质”、申请日为2023年02月15日的中国发明专利申请的优先权,通过引用方式将该申请整体并入本文。This application claims priority to the Chinese invention patent application with application number 202310159186.4, entitled “Tabular data processing method, device, electronic device and storage medium” and filing date February 15, 2023, and the entire application is incorporated herein by reference.
本公开涉及计算机技术领域,具体涉及一种表格数据处理方法、装置、电子设备和存储介质。The present disclosure relates to the field of computer technology, and in particular to a table data processing method, device, electronic device and storage medium.
文档协同技术可以使多个用户对同一文档进行实时处理而无需用户在处理前对文档进行相互转交,从而提供了文档处理效率。在电子表格协同过程中,当某一单元格的内容被多次更新后,用户在一些情况下可能希望复原或获取(例如复制)某一版的更新内容。Document collaboration technology enables multiple users to process the same document in real time without the need for users to transfer the document to each other before processing, thereby improving document processing efficiency. In the process of electronic spreadsheet collaboration, when the content of a cell is updated multiple times, users may want to restore or obtain (for example, copy) a certain version of the updated content in some cases.
发明内容Summary of the invention
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
第一方面,根据本公开的一个或多个实施例,提供了一种表格数据处理方法,包括:In a first aspect, according to one or more embodiments of the present disclosure, a table data processing method is provided, comprising:
响应于用户针对在线文档中第一单元格的第一预设操作,显示所述第一单元格的至少一个更新记录;In response to a first preset operation of a user on a first cell in the online document, displaying at least one update record of the first cell;
响应于用户针对所述至少一个更新记录中第一更新记录的第二预设操作,获取所述第一更新记录对应的实体更新内容;其中,所述第一更新记录的实体更新内容包括富元素,所述富元素包括如下中的至少一种:图片、文档、超链接、功能模块。In response to a second preset operation of the user on a first update record in the at least one update record, entity update content corresponding to the first update record is obtained; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
第二方面,根据本公开的一个或多个实施例,提供了一种表格数据处理装置,包括:In a second aspect, according to one or more embodiments of the present disclosure, there is provided a table data processing apparatus, comprising:
显示单元,用于响应于用户针对在线文档中第一单元格的第一预设操作,显示所述第一单元格的至少一个更新记录; A display unit, configured to display at least one update record of a first cell in the online document in response to a first preset operation of the user on the first cell;
获取单元,用于响应于用户针对所述至少一个更新记录中第一更新记录的第二预设操作,获取所述第一更新记录对应的实体更新内容;其中,所述第一更新记录的实体更新内容包括富元素,所述富元素包括如下中的至少一种:图片、文档、超链接、功能模块。An acquisition unit is used to obtain entity update content corresponding to a first update record in the at least one update record in response to a second preset operation of the user on the first update record; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个存储器和至少一个处理器;其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器所存储的程序代码以使所述电子设备执行根据本公开的一个或多个实施例提供的表格数据处理方法。In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one memory and at least one processor; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory so that the electronic device executes the table data processing method provided according to one or more embodiments of the present disclosure.
第四方面,根据本公开的一个或多个实施例,提供了一种非暂态计算机存储介质,所述非暂态计算机存储介质存储有程序代码,所述程序代码被计算机设备执行时,使得所述计算机设备执行根据本公开的一个或多个实施例提供的表格数据处理方法。In a fourth aspect, according to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, wherein the non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes the table data processing method provided according to one or more embodiments of the present disclosure.
根据本公开的一个或多个实施例,通过响应于用户针对在线文档中第一单元格的第一预设操作,显示第一单元格的至少一个更新记录,并响应于用户针对第一更新记录的第二预设操作,获取第一更新记录的包含富元素的实体更新内容,从而便于用户对包含该富元素的实体更新内容进行准确、全面的复原或复制,而不局限于仅获取更新记录对应的文本内容。According to one or more embodiments of the present disclosure, by responding to a first preset operation of a user on a first cell in an online document, displaying at least one update record of the first cell, and responding to a second preset operation of the user on the first update record, obtaining entity update content containing rich elements of the first update record, thereby facilitating the user to accurately and comprehensively restore or copy the entity update content containing the rich elements, without being limited to obtaining only the text content corresponding to the update record.
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
图1为根据本公开一实施例提供的表格数据处理方法的流程图;FIG1 is a flow chart of a table data processing method according to an embodiment of the present disclosure;
图2为根据本公开一实施例提供的单元格的更新记录界面;FIG2 is an update record interface of a cell provided according to an embodiment of the present disclosure;
图3为根据本公开一实施例提供的表格数据处理装置的的结构示意图;FIG3 is a schematic diagram of the structure of a table data processing device provided according to an embodiment of the present disclosure;
图4为根据本公开一实施例提供的电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure.
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是, 本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that The drawings and embodiments of the present disclosure are only for illustrative purposes and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的实施方式中记载的步骤可以按照不同的顺序执行,和/或并行执行。此外,实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the steps described in the embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。术语“响应于”以及有关的术语是指一个信号或事件被另一个信号或事件影响到某个程度,但不一定是完全地或直接地受到影响。如果事件x“响应于”事件y而发生,则x可以直接或间接地响应于y。例如,y的出现最终可能导致x的出现,但可能存在其它中间事件和/或条件。在其它情形中,y可能不一定导致x的出现,并且即使y尚未发生,x也可能发生。此外,术语“响应于”还可以意味着“至少部分地响应于”。As used herein, the term "including" and its variations are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The term "responsive to" and related terms refer to a signal or event being affected to a certain extent by another signal or event, but not necessarily completely or directly. If event x occurs "responsive to" event y, x may be directly or indirectly responsive to y. For example, the occurrence of y may ultimately lead to the occurrence of x, but there may be other intermediate events and/or conditions. In other cases, y may not necessarily lead to the occurrence of x, and x may occur even if y has not yet occurred. In addition, the term "responsive to" may also mean "at least partially responsive to".
术语“确定”广泛涵盖各种各样的动作,可包括获取、演算、计算、处理、推导、调研、查找(例如,在表、数据库或其他数据结构中查找)、探明、和类似动作,还可包括接收(例如,接收信息)、访问(例如,访问存储器中的数据)和类似动作,以及解析、选择、选取、建立和类似动作等等。其他术语的相关定义将在下文描述中给出。其他术语的相关定义将在下文描述中给出。The term "determine" broadly covers a variety of actions, which may include obtaining, calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, database, or other data structure), ascertaining, and similar actions, and may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and similar actions, as well as parsing, selecting, choosing, establishing, and similar actions, etc. The relevant definitions of other terms will be given in the following description. The relevant definitions of other terms will be given in the following description.
可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获得或使用)应当遵循相关法律法规的规定。It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the provisions of relevant laws and regulations.
可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当根据相关法律法规通过适当的方式对本公开所涉及个人信息的类型、使用范围、使用场景等告知用户并获得用户的授权。例如,在响应于接收到用户的主动请求时,向用户发送提示信息,以明确地提示用户,其请求执行的操作将需要获得和使用到用户的个人信息,从而使得用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供个人信息。It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, and usage scenarios of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. For example, in response to receiving an active request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can autonomously choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operation of the technical solution of the present disclosure according to the prompt message.
作为一种可选的但非限制性的实现方式,响应于接收到用户的主动请求,向用户发送提示信息的方式,例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或“不同意”向电子设备提供个人信息的选择控件。 As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
可以理解的是,上述通知和获得用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其他满足相关法律法规的方式也可应用于本公开的实现方式中。It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
为了本公开的目的,短语“A和/或B”意为(A)、(B)或(A和B)。For the purposes of this disclosure, the phrase "A and/or B" means (A), (B), or (A and B).
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
参考图1,图1示出了本公开一实施例提供的表格数据处理方法100的流程图,方法100包括步骤S120-步骤S140。Referring to FIG. 1 , FIG. 1 shows a flowchart of a table data processing method 100 provided in an embodiment of the present disclosure. The method 100 includes steps S120 to S140 .
步骤S120:响应于用户针对在线文档中第一单元格的第一预设操作,显示所述第一单元格的至少一个更新记录;Step S120: in response to a first preset operation of a user on a first cell in the online document, displaying at least one update record of the first cell;
步骤S140:响应于用户针对所述至少一个更新记录中第一更新记录的第二预设操作,获取所述第一更新记录对应的实体更新内容。Step S140: In response to a second preset operation of the user on a first update record among the at least one update record, obtaining entity update content corresponding to the first update record.
第一更新记录的实体更新内容包括富元素,所述富元素包括如下中的至少一种:图片、文档、超链接、功能模块。在一些实施例中,功能模块用于执行预设的功能,例如用于在表格中执行提供功能的日程提醒、用户提醒、文档提醒等功能组件。The entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules. In some embodiments, the functional module is used to execute a preset function, such as a schedule reminder, a user reminder, a document reminder, and other functional components that provide functions in a table.
在一些实施例中,在线文档可以是一种供用户在线编辑、多用户协作并实时保存于云端的文档,其可以通过诸如超文本标记语言(HTML,Hyper Text Markup Language)页面进行文档显示,依赖于客户端与服务器的通信实现对用户编辑内容的同步。In some embodiments, an online document may be a document that can be edited online by users, collaborated by multiple users, and saved in real time in the cloud. It may be displayed through a Hypertext Markup Language (HTML) page, and rely on communication between the client and the server to synchronize user edited content.
在一些实施例中,方法100的执行主体可以为客户端,例如即时通讯(IM,Instant Message)客户端,客户端集成了在线文档的功能,基于用户的点击操作,客户端通过浏览器提供的接口调用浏览器内核加载在线文档的页面,基于加载的页面用户可以创建并编辑在线文档,当然,用户可通过该客户端实现在线文档的分享;在另一些实施例中,客户端中集成有浏览器内核,通过调用浏览器内核实现在客户端中显示在线文档的页面;在另一些实施例中,客户端为在线文档客户端,通过运行在线文档客户端实现在线文档的页面加载与显示;在另一些实施例中,存在对应在线文档功能的小程序,客户端通过下载并运行 在线文档小程序的源代码,实现在线文档的页面加载与显示。In some embodiments, the execution subject of method 100 may be a client, such as an instant messaging (IM) client. The client integrates the function of an online document. Based on the user's click operation, the client calls the browser kernel through the interface provided by the browser to load the page of the online document. Based on the loaded page, the user can create and edit the online document. Of course, the user can share the online document through the client; in other embodiments, the client is integrated with a browser kernel, and the page of the online document is displayed in the client by calling the browser kernel; in other embodiments, the client is an online document client, and the page loading and display of the online document is realized by running the online document client; in other embodiments, there is a small program corresponding to the online document function, and the client downloads and runs The source code of the online document applet implements the loading and display of online document pages.
针对第一单元格的第一预设操作用于显示第一单元格的更新记录。在一些实施例中,第一预设操作包括但不限于体感控制操作、手势控制操作、眼球晃动操作、触控操作、语音控制指令、或对外接控制设备的操作。示例性地,用户选中第一单元格后,可以通过鼠标右键唤起预设的菜单,该菜单可以提供查看单元格更新记录的功能选项以供用户进一步选择,用户点击该功能选项后,弹出该单元格的更新记录界面。The first preset operation for the first cell is used to display the update record of the first cell. In some embodiments, the first preset operation includes but is not limited to a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device. Exemplarily, after the user selects the first cell, the user can right-click the mouse to call up a preset menu, which can provide a function option of viewing the cell update record for the user to further select. After the user clicks the function option, the update record interface of the cell pops up.
针对第一更新记录的第二预设操作用于获取所述第一更新记录对应的实体更新内容。在一些实施例中,第二预设操作包括但不限于体感控制操作、手势控制操作、眼球晃动操作、触控操作、语音控制指令、或对外接控制设备的操作。示例性地,可以响应于用户触发预设的与第一更新记录对应的虚拟按钮,获取第一更新记录的实体更新内容。The second preset operation for the first update record is used to obtain the entity update content corresponding to the first update record. In some embodiments, the second preset operation includes but is not limited to a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device. Exemplarily, the entity update content of the first update record can be obtained in response to the user triggering a preset virtual button corresponding to the first update record.
图2示出了根据本公开一实施例提供的单元格的更新记录界面。更新记录界面10显示有单元格B2的更新记录,其当前通过列表的形式依次显示了用户A、用户B、用户C和用户D对单元格B2的共4条更新记录。每条更新记录的显示内容包括用户名称、更新时间以及具体的更新内容。参考图2,当更新内容包括在单元格内插入文档作为附件时,则可以在相应的更新记录中显示作为附件的文档名称(例如“xx销售数据”);当更新内容包括在单元格内插入图片时,则可以在相应的更新记录中显示图片的缩略图;当更新内容包括在单元格内插入超链接时,则可以在相应的更新记录中显示该超链接被用户定义的名称(例如“xx网页”)。FIG2 shows an update record interface of a cell provided according to an embodiment of the present disclosure. The update record interface 10 displays the update record of cell B2, which currently displays a total of 4 update records of user A, user B, user C and user D for cell B2 in the form of a list. The display content of each update record includes the user name, update time and specific update content. Referring to FIG2, when the update content includes inserting a document as an attachment in a cell, the name of the document as an attachment (for example, "xx sales data") can be displayed in the corresponding update record; when the update content includes inserting a picture in a cell, a thumbnail of the picture can be displayed in the corresponding update record; when the update content includes inserting a hyperlink in a cell, the name of the hyperlink defined by the user (for example, "xx web page") can be displayed in the corresponding update record.
更新记录界面10当前显示有复制标识11,当用户触发该复制标识11后,则可以获取作为单元格B2实体更新内容的表格文档“xx销售数据”,而不局限于仅获取作为单元格B2展示形式的表格文档的文本标题“xx销售数据”。The update record interface 10 currently displays a copy mark 11. When the user triggers the copy mark 11, the table document "xx sales data" as the entity update content of cell B2 can be obtained, rather than being limited to obtaining only the text title "xx sales data" of the table document as the display form of cell B2.
在一些实施例中,还可以通过翻页的形式在更新记录界面中显示多条更新记录,但本公开不限于此。In some embodiments, multiple update records may be displayed in the update record interface in the form of page turning, but the present disclosure is not limited thereto.
需要说明的是,第一单元格可以是在线文档中的任意单元格或预设单元格,本公开在此不做限制。It should be noted that the first cell may be any cell or a preset cell in the online document, and the present disclosure does not limit this.
除在单元格中填充文本内容外,在线电子表格可以提供富元素插入功能,比如在单元格插入附件、图片、超链接或功能模块等。经发明人研究发现,相关在线文档无法提供富元素的更新记录复原,导致单元格的富元素数据发生更改后,该类数据被丢失。In addition to filling text content in cells, online electronic spreadsheets can provide rich element insertion functions, such as inserting attachments, pictures, hyperlinks or functional modules in cells. The inventors found through research that relevant online documents cannot provide rich element update record recovery, resulting in the loss of such data after the rich element data of a cell is changed.
对此,根据本公开的一个或多个实施例,通过响应于用户针对在线文档中第一单元格 的第一预设操作,显示第一单元格的至少一个更新记录,并响应于用户针对第一更新记录的第二预设操作,获取第一更新记录的包含富元素的实体更新内容,从而便于用户对包含富元素的实体更新内容进行复原或复制,而不局限于仅获取更新记录对应的文本内容。In this regard, according to one or more embodiments of the present disclosure, in response to a user's request for a first cell in an online document, A first preset operation is performed to display at least one update record of the first cell, and in response to a second preset operation of the user for the first update record, the entity update content containing rich elements of the first update record is obtained, thereby facilitating the user to restore or copy the entity update content containing rich elements, without being limited to obtaining only the text content corresponding to the update record.
在一些实施例中,步骤S140包括:获取所述富元素对应的存储数据;基于所述富元素对应的存储数据,以及所述富元素的关联文本或超链接,生成支持单元格粘贴的剪贴内容。In some embodiments, step S140 includes: acquiring storage data corresponding to the rich element; and generating clipping content supporting cell pasting based on the storage data corresponding to the rich element and the associated text or hyperlink of the rich element.
在一些实施例中,富元素的关联文本包括富元素的名称或标题。In some embodiments, the associated text of a rich element includes a name or title of the rich element.
在一些实施例中,若所述富元素为文档,则基于所述富元素对应的存储数据和所述富元素的关联文本,生成支持单元格粘贴的剪贴内容;或者,若所述富元素为图片、超链接、功能模块中的任意一个,则基于所述富元素对应的存储数据和所述富元素的超链接,生成支持单元格粘贴的剪贴内容。In some embodiments, if the rich element is a document, clipping content supporting cell pasting is generated based on the storage data corresponding to the rich element and the associated text of the rich element; or, if the rich element is any one of a picture, a hyperlink, and a functional module, clipping content supporting cell pasting is generated based on the storage data corresponding to the rich element and the hyperlink of the rich element.
在一些实施例中,可以将富元素对应的存储数据存入单元格标签的标签属性中,以用于粘贴剪贴内容时的数据提取,并将富元素的关联文本嵌入单元格标签,以使所述关联文本用于作为所述富元素粘贴后的文本表示。In some embodiments, the stored data corresponding to the rich element can be stored in the label attribute of the cell label for data extraction when pasting the clipped content, and the associated text of the rich element can be embedded in the cell label so that the associated text is used as the text representation of the rich element after pasting.
在一些实施例中,可以将所述存储数据存入单元格标签的标签属性中,以用于粘贴剪贴内容时的数据提取;将定义超链接的标签嵌入所述单元格标签中,并在所述定义超链接的标签的指定超链接目标的地址的属性中,写入所述富元素对应的超链接。In some embodiments, the stored data can be stored in the tag attributes of the cell tag for data extraction when pasting the clipped content; the tag defining the hyperlink can be embedded in the cell tag, and the hyperlink corresponding to the rich element can be written into the attribute of the address of the specified hyperlink target of the tag defining the hyperlink.
在一些实施例中,富元素对应的存储数据为非普通文本数据结构的数据;单元格标签为HTML(超文本标记语言)表格中的标准单元格标签;标签属性包括HTML标签属性。In some embodiments, the storage data corresponding to the rich element is data of a non-ordinary text data structure; the cell tag is a standard cell tag in an HTML (Hypertext Markup Language) table; and the tag attributes include HTML tag attributes.
在一个具体实施方式中,可以将与该富元素对应的存储数据,例如以SegmentArray数组形式存储的数据,存入单元格标签(例如td标签)的能够被粘贴提取的属性中(例如data-sheet-value属性)以便于粘贴时的数据提取,并在该标签中嵌入相应的标签或文本以用于粘贴时的形式展现,最终生成用于表格内粘贴时能识别的超文本标记语言(HTML)字符串,以超文本标记语言的形式写入剪贴板中。示例性地,若所述富元素为文档,则可以将文档的文件名嵌入td标签中,从而使粘贴后的富元素可以以文件名的形式显示在单元格中且当用户点击单元格显示的文件名后可以获取、查看文档的内容,而不仅仅只是在复制后的单元格内以纯文本的形式显示该文件名;若富元素为图片、超链接或功能模块,则可以在该单元格标签中嵌入定义超链接的标签(例如a标签),并在该定义超链接的标签的指定超链接目标的URL的属性中(例如href属性)写入富元素对应的超链接,以便 粘贴后用户可以直接点击对应的单元格通过超链接查看到该富元素的内容。In a specific embodiment, the stored data corresponding to the rich element, such as data stored in the form of a SegmentArray array, can be stored in a property of a cell tag (such as a td tag) that can be pasted and extracted (such as a data-sheet-value property) to facilitate data extraction when pasting, and a corresponding tag or text can be embedded in the tag for display in a form for pasting, and finally a Hypertext Markup Language (HTML) string that can be recognized when pasted in a table is generated and written to the clipboard in the form of Hypertext Markup Language. Exemplarily, if the rich element is a document, the file name of the document can be embedded in the td tag, so that the pasted rich element can be displayed in the cell in the form of a file name and when the user clicks the file name displayed in the cell, the content of the document can be obtained and viewed, rather than just displaying the file name in the form of plain text in the copied cell; if the rich element is a picture, a hyperlink or a functional module, a tag that defines a hyperlink (such as an a tag) can be embedded in the cell tag, and the hyperlink corresponding to the rich element can be written in the attribute of the tag that defines the hyperlink that specifies the URL of the hyperlink target (such as the href attribute), so that After pasting, users can directly click on the corresponding cell to view the content of the rich element through the hyperlink.
在一些实施例中,方法100还包括:响应于针对所述至少一个更新记录中第一更新记录的第三预设操作,显示所述富元素的内容预览界面。In some embodiments, method 100 further includes: in response to a third preset operation on a first update record in the at least one update record, displaying a content preview interface of the rich element.
第三预设操作包括但不限于体感控制操作、手势控制操作、眼球晃动操作、触控操作、语音控制指令、或对外接控制设备的操作。示例性地,可以响应于用户触发第一更新记录或第一更新记录中富元素的表示(例如标题),显示富元素的内容预览界面。示例性地,若富元素为文档,则用户可以通过第三预设操作来预览该文档的内容。The third preset operation includes, but is not limited to, a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device. For example, in response to a user triggering the first update record or a representation of a rich element in the first update record (e.g., a title), a content preview interface of the rich element may be displayed. For example, if the rich element is a document, the user may preview the content of the document through the third preset operation.
在一些实施例中,方法100还包括:在获取所述第一更新记录对应的实体更新内容之后,响应于用户的第四预设操作,将所述在线文档中目标单元格的内容更新为所述实体更新内容。其中,第四预设操作用于将目标单元格的内容更新为所获取的实体更新内容,第四预设操作包括但不限于体感控制操作、手势控制操作、眼球晃动操作、触控操作、语音控制指令、或对外接控制设备的操作。目标单元格可以包括第一单元格或第一单元以外的其他单元格,本公开在此不做限制。在本实施例种,通过响应于用户的第四预设操作将所述在线文档中目标单元格的内容更新为所述实体更新内容,从而可以实现富元素在单元格内的粘贴或复原。In some embodiments, method 100 further includes: after obtaining the entity update content corresponding to the first update record, in response to a fourth preset operation of the user, updating the content of the target cell in the online document to the entity update content. The fourth preset operation is used to update the content of the target cell to the acquired entity update content, and the fourth preset operation includes but is not limited to a somatosensory control operation, a gesture control operation, an eye movement operation, a touch operation, a voice control instruction, or an operation of an external control device. The target cell may include the first cell or other cells other than the first cell, and the present disclosure does not limit this. In this embodiment, by updating the content of the target cell in the online document to the entity update content in response to the fourth preset operation of the user, the rich element can be pasted or restored within the cell.
相应地,参考图3,根据本公开一实施例提供了一种表格数据处理装置600,包括:Accordingly, referring to FIG3 , according to an embodiment of the present disclosure, a table data processing device 600 is provided, comprising:
显示单元601,用于响应于用户针对在线文档中第一单元格的第一预设操作,显示所述第一单元格的至少一个更新记录;A display unit 601, configured to display at least one update record of a first cell in an online document in response to a first preset operation of the user on the first cell;
获取单元602,用于响应于用户针对所述至少一个更新记录中第一更新记录的第二预设操作,获取所述第一更新记录对应的实体更新内容;其中,所述第一更新记录的实体更新内容包括富元素,所述富元素包括如下中的至少一种:图片、文档、超链接、功能模块。The acquisition unit 602 is used to obtain the entity update content corresponding to the first update record in the at least one update record in response to the user's second preset operation on the first update record; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
在一些实施例中,所述获取单元进一步用于基于所述富元素对应的存储数据,以及所述富元素的关联文本或超链接,生成支持单元格粘贴的剪贴内容。In some embodiments, the acquisition unit is further used to generate clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element.
在一些实施例中,所述获取单元包括:In some embodiments, the acquisition unit includes:
第一获取子单元,用于若所述富元素为文档,则基于所述富元素对应的存储数据和所述富元素的关联文本,生成支持单元格粘贴的剪贴内容;或者,A first acquisition subunit is used to generate clipping content supporting cell pasting based on the storage data corresponding to the rich element and the associated text of the rich element if the rich element is a document; or
第二获取子单元,用于若所述富元素为图片、超链接、功能模块中的任意一个,则基于所述富元素对应的存储数据和所述富元素的超链接,生成支持单元格粘贴的剪贴内容。The second acquisition subunit is used to generate clipping content supporting cell pasting based on the storage data corresponding to the rich element and the hyperlink of the rich element if the rich element is any one of a picture, a hyperlink, and a functional module.
在一些实施例中,所述关联文本用于作为所述富元素粘贴后的文本表示;所述超链接 用于查看所述富元素的文本内容。In some embodiments, the associated text is used as a text representation of the rich element after pasting; the hyperlink Used to view the text content of the rich element.
在一些实施例中,所述关联文本包括所述富元素的名称。In some embodiments, the associated text includes the name of the rich element.
在一些实施例中,所述显示单元用于若所述至少一个更新记录中的更新内容包括图片,则显示所述图片的缩略图。In some embodiments, the display unit is configured to display a thumbnail of a picture if the update content in the at least one update record includes a picture.
在一些实施例中,所述表格数据处理装置还包括:In some embodiments, the table data processing apparatus further comprises:
预览单元,用于响应于针对所述至少一个更新记录中第一更新记录的第三预设操作,显示所述富元素的内容预览界面。The preview unit is used to display a content preview interface of the rich element in response to a third preset operation on a first update record in the at least one update record.
在一些实施例中,所述表格数据处理装置还包括:In some embodiments, the table data processing apparatus further comprises:
单元格更新单元,用于在获取所述第一更新记录对应的实体更新内容之后,响应于用户的第四预设操作,将所述在线文档中目标单元格的内容更新为所述实体更新内容。The cell updating unit is configured to update the content of a target cell in the online document to the entity updated content in response to a fourth preset operation of the user after acquiring the entity updated content corresponding to the first update record.
在一些实施例中,所述第一获取子单元进一步用于:将所述存储数据存入单元格标签的标签属性中,以用于粘贴剪贴内容时的数据提取;将所述关联文本嵌入所述单元格标签,以使所述关联文本用于作为所述富元素粘贴后的文本表示。In some embodiments, the first acquisition subunit is further used to: store the stored data into the label attribute of the cell label for data extraction when pasting the clipped content; embed the associated text into the cell label so that the associated text is used as the text representation after the rich element is pasted.
在一些实施例中,所述第二获取子单元进一步用于:将所述存储数据存入单元格标签的标签属性中,以用于粘贴剪贴内容时的数据提取;将定义超链接的标签嵌入所述单元格标签中,并在所述定义超链接的标签的指定超链接目标的地址的属性中,写入所述富元素对应的超链接。对于装置的实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离模块说明的模块可以是或者也可以不是分开的。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。In some embodiments, the second acquisition subunit is further used to: store the stored data in the label attribute of the cell label for data extraction when pasting the clipped content; embed the label defining the hyperlink into the cell label, and write the hyperlink corresponding to the rich element in the attribute of the address of the specified hyperlink target of the label defining the hyperlink. For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely schematic, in which the modules described as separation modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
相应地,根据本公开的一个或多个实施例,提供了一种电子设备,包括:Accordingly, according to one or more embodiments of the present disclosure, there is provided an electronic device, including:
至少一个存储器和至少一个处理器;at least one memory and at least one processor;
其中,存储器用于存储程序代码,处理器用于调用存储器所存储的程序代码以使所述电子设备执行根据本公开一个或多个实施例提供的表格数据处理方法。The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to enable the electronic device to execute the table data processing method provided according to one or more embodiments of the present disclosure.
相应地,根据本公开的一个或多个实施例,提供了一种非暂态计算机存储介质,非暂态计算机存储介质存储有程序代码,程序代码可被计算机设备执行来使得所述计算机设备执行根据本公开一个或多个实施例提供的表格数据处理方法。Accordingly, according to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, which stores program code, and the program code can be executed by a computer device to enable the computer device to perform the table data processing method provided according to one or more embodiments of the present disclosure.
下面参考图4,其示出了适于用来实现本公开实施例的电子设备(例如终端设备 或服务器)800的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图4示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring to FIG. 4 below, an electronic device (eg, a terminal device) suitable for implementing an embodiment of the present disclosure is shown. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG4 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.
如图4所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG4 , the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can 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 device 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate wirelessly or wired with other devices to exchange data. Although FIG. 4 shows an electronic device 800 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公 开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the above-mentioned computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, In the disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述的本公开的方法。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包 含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a portion of code, which includes Contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes may also occur in an order different from that marked in the accompanying drawings. For example, two boxes shown in succession may actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and/or flow chart, and the combination of boxes in the block diagram and/or flow chart, may be implemented with a dedicated hardware-based system that performs the specified functions or operations, or may be implemented with a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
根据本公开的一个或多个实施例,提供了一种表格数据处理方法,包括:响应于用户针对在线文档中第一单元格的第一预设操作,显示所述第一单元格的至少一个更新记录;响应于用户针对所述至少一个更新记录中第一更新记录的第二预设操作,获取所述第一更新记录对应的实体更新内容;其中,所述第一更新记录的实体更新内容包括富元素,所述富元素包括如下中的至少一种:图片、文档、超链接、功能模块。According to one or more embodiments of the present disclosure, a table data processing method is provided, comprising: in response to a first preset operation of a user on a first cell in an online document, displaying at least one update record of the first cell; in response to a second preset operation of the user on a first update record among the at least one update record, obtaining entity update content corresponding to the first update record; wherein the entity update content of the first update record includes rich elements, and the rich elements include at least one of the following: pictures, documents, hyperlinks, and functional modules.
根据本公开的一个或多个实施例,所述获取所述第一更新记录对应的实体更新内容,包括:基于所述富元素对应的存储数据,以及所述富元素的关联文本或超链接,生成支持单元格粘贴的剪贴内容。According to one or more embodiments of the present disclosure, obtaining the entity update content corresponding to the first update record includes: generating clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element.
根据本公开的一个或多个实施例,所述基于所述富元素对应的存储数据,以及所述富 元素的关联文本或超链接,生成支持单元格粘贴的剪贴内容,包括:若所述富元素为文档,则基于所述富元素对应的存储数据和所述富元素的关联文本,生成支持单元格粘贴的剪贴内容;或者,若所述富元素为图片、超链接、功能模块中的任意一个,则基于所述富元素对应的存储数据和所述富元素的超链接,生成支持单元格粘贴的剪贴内容。According to one or more embodiments of the present disclosure, the storage data corresponding to the rich element and the rich The associated text or hyperlink of the element generates clipping content that supports cell pasting, including: if the rich element is a document, based on the storage data corresponding to the rich element and the associated text of the rich element, the clipping content that supports cell pasting is generated; or, if the rich element is any one of a picture, a hyperlink, and a functional module, based on the storage data corresponding to the rich element and the hyperlink of the rich element, the clipping content that supports cell pasting is generated.
根据本公开的一个或多个实施例,所述关联文本用于作为所述富元素粘贴后的文本表示;所述超链接用于查看所述富元素的文本内容。According to one or more embodiments of the present disclosure, the associated text is used as a text representation after the rich element is pasted; and the hyperlink is used to view the text content of the rich element.
根据本公开的一个或多个实施例,所述关联文本包括所述富元素的名称。According to one or more embodiments of the present disclosure, the associated text includes the name of the rich element.
根据本公开的一个或多个实施例,所述显示所述第一单元格的至少一个更新记录,包括:若所述至少一个更新记录中的更新内容包括图片,则显示所述图片的缩略图。According to one or more embodiments of the present disclosure, the displaying of at least one update record of the first cell includes: if the update content in the at least one update record includes a picture, displaying a thumbnail of the picture.
根据本公开的一个或多个实施例,所述方法还包括:响应于针对所述至少一个更新记录中第一更新记录的第三预设操作,显示所述富元素的内容预览界面。According to one or more embodiments of the present disclosure, the method further includes: in response to a third preset operation on a first update record in the at least one update record, displaying a content preview interface of the rich element.
根据本公开的一个或多个实施例,根据权利要求1所述的方法,所述方法还包括:在获取所述第一更新记录对应的实体更新内容之后,响应于用户的第四预设操作,将所述在线文档中目标单元格的内容更新为所述实体更新内容。According to one or more embodiments of the present disclosure, according to the method of claim 1, the method further includes: after obtaining the entity update content corresponding to the first update record, in response to a fourth preset operation of the user, updating the content of the target cell in the online document to the entity update content.
根据本公开的一个或多个实施例,所述基于所述富元素对应的存储数据,以及所述富元素的关联文本或超链接,生成支持单元格粘贴的剪贴内容,包括:将所述存储数据存入单元格标签的标签属性中,以用于粘贴剪贴内容时的数据提取;将所述关联文本嵌入所述定义单元格的标签,以使关联文本用于作为所述富元素粘贴后的文本表示。According to one or more embodiments of the present disclosure, the generation of clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element includes: storing the stored data in the label attribute of the cell label for data extraction when pasting the clipping content; embedding the associated text into the label of the defined cell so that the associated text is used as the text representation after the rich element is pasted.
根据本公开的一个或多个实施例,所述基于所述富元素对应的存储数据,以及所述富元素的关联文本或超链接,生成支持单元格粘贴的剪贴内容,包括:将所述存储数据存入单元格标签的标签属性中,以用于粘贴剪贴内容时的数据提取;将定义超链接的标签嵌入所述单元格标签中,并在所述定义超链接的标签的指定超链接目标的地址的属性中,写入所述富元素对应的超链接。根据本公开的一个或多个实施例,提供了一种表格数据处理装置,包括:显示单元,用于响应于用户针对在线文档中第一单元格的第一预设操作,显示所述第一单元格的至少一个更新记录;获取单元,用于响应于用户针对所述至少一个更新记录中第一更新记录的第二预设操作,获取所述第一更新记录对应的实体更新内容;其中,所述第一更新记录的实体更新内容包括富元素,所述富元素包括如下中的至少一种:图片、文档、超链接、功能模块。根据本公开的一个或多个实施例,提供了一种非暂态计算机存储介质,所述非暂态计算机存储介质存储有程序代码,所述程序代码被计算机设备执行时,使得所述计算机设备执行根据本公开的一个或多 个实施例提供的表格数据处理方法。According to one or more embodiments of the present disclosure, the generation of clipping content supporting cell pasting based on the stored data corresponding to the rich element and the associated text or hyperlink of the rich element includes: storing the stored data in the tag attribute of the cell tag for data extraction when pasting the clipping content; embedding the tag defining the hyperlink into the cell tag, and writing the hyperlink corresponding to the rich element in the attribute of the address of the specified hyperlink target of the tag defining the hyperlink. According to one or more embodiments of the present disclosure, a table data processing device is provided, including: a display unit for displaying at least one update record of a first cell in an online document in response to a first preset operation of a user on the first cell; an acquisition unit for acquiring entity update content corresponding to the first update record in response to a second preset operation of a user on a first update record in the at least one update record; wherein the entity update content of the first update record includes a rich element, and the rich element includes at least one of the following: a picture, a document, a hyperlink, and a functional module. According to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, wherein the non-transitory computer storage medium stores a program code, and when the program code is executed by a computer device, the computer device executes one or more of the operations according to the present disclosure. A table data processing method is provided in an embodiment.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。 Although the subject matter has been described in language specific to structural features and/or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2025514300A JP2025533416A (en) | 2023-02-15 | 2024-02-05 | Table data processing method, device, electronic device, storage medium, and computer program |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310159186.4A CN116126880A (en) | 2023-02-15 | 2023-02-15 | Table data processing method, apparatus, electronic device and storage medium |
| CN202310159186.4 | 2023-02-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024169747A1 true WO2024169747A1 (en) | 2024-08-22 |
Family
ID=86304573
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/076108 Ceased WO2024169747A1 (en) | 2023-02-15 | 2024-02-05 | Excel data processing method and apparatus, electronic device, and storage medium |
Country Status (3)
| Country | Link |
|---|---|
| JP (1) | JP2025533416A (en) |
| CN (1) | CN116126880A (en) |
| WO (1) | WO2024169747A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116126880A (en) * | 2023-02-15 | 2023-05-16 | 北京字跳网络技术有限公司 | Table data processing method, apparatus, electronic device and storage medium |
| CN116542229A (en) * | 2023-05-19 | 2023-08-04 | 北京字跳网络技术有限公司 | Information processing method, apparatus, electronic device and storage medium |
| CN120929497A (en) * | 2025-10-13 | 2025-11-11 | 蒲惠智造科技股份有限公司 | Methods and systems for tracing cell operation history in spreadsheets |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020010743A1 (en) * | 2000-02-11 | 2002-01-24 | Ryan Mark H. | Method and system for distributing and collecting spreadsheet information |
| CN1904879A (en) * | 2005-07-27 | 2007-01-31 | 国际商业机器公司 | Change-oriented electronic list application |
| CN101127034A (en) * | 2006-08-18 | 2008-02-20 | 国际商业机器公司 | Change oriented electronic table application |
| CN101842802A (en) * | 2007-10-26 | 2010-09-22 | 微软公司 | Spreadsheet collaboration between rich and browser clients |
| CN116126880A (en) * | 2023-02-15 | 2023-05-16 | 北京字跳网络技术有限公司 | Table data processing method, apparatus, electronic device and storage medium |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111783405A (en) * | 2020-07-30 | 2020-10-16 | 腾讯科技(深圳)有限公司 | Online document processing method, apparatus, computer equipment and storage medium |
| CN115510828A (en) * | 2022-09-13 | 2022-12-23 | 深圳奥哲网络科技有限公司 | Table data processing method, device, electronic device and storage medium |
-
2023
- 2023-02-15 CN CN202310159186.4A patent/CN116126880A/en active Pending
-
2024
- 2024-02-05 JP JP2025514300A patent/JP2025533416A/en active Pending
- 2024-02-05 WO PCT/CN2024/076108 patent/WO2024169747A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020010743A1 (en) * | 2000-02-11 | 2002-01-24 | Ryan Mark H. | Method and system for distributing and collecting spreadsheet information |
| CN1904879A (en) * | 2005-07-27 | 2007-01-31 | 国际商业机器公司 | Change-oriented electronic list application |
| CN101127034A (en) * | 2006-08-18 | 2008-02-20 | 国际商业机器公司 | Change oriented electronic table application |
| CN101842802A (en) * | 2007-10-26 | 2010-09-22 | 微软公司 | Spreadsheet collaboration between rich and browser clients |
| CN116126880A (en) * | 2023-02-15 | 2023-05-16 | 北京字跳网络技术有限公司 | Table data processing method, apparatus, electronic device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2025533416A (en) | 2025-10-07 |
| CN116126880A (en) | 2023-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2024169747A1 (en) | Excel data processing method and apparatus, electronic device, and storage medium | |
| CN110096665B (en) | Method, device, equipment and medium for displaying picture comment data | |
| WO2022111591A1 (en) | Page generation method and apparatus, storage medium, and electronic device | |
| CN114048706B (en) | Information processing method, device, electronic device and storage medium | |
| CN112183045B (en) | Online document processing method and device and electronic equipment | |
| CN111797603A (en) | Method and device for browsing table in document, electronic equipment and storage medium | |
| JP2024509808A (en) | Document creation method, apparatus, device and storage medium | |
| US20250023837A1 (en) | Methods, apparatuses, devices, medium and product for information display and information sending | |
| WO2022022619A1 (en) | Document editing method and apparatus, and electronic device | |
| CN118132056A (en) | Page development method, device, equipment and storage medium | |
| WO2024179308A1 (en) | Information processing method and apparatus, electronic device, and computer-readable medium | |
| CN115357361A (en) | A task processing method, device, equipment and medium | |
| CN116956846B (en) | Information processing method, apparatus, electronic device and storage medium | |
| CN112256370B (en) | Information display method, device and electronic equipment | |
| CN112380819B (en) | Document editing method, device and electronic device | |
| CN113656041A (en) | Data processing method, device, equipment and storage medium | |
| WO2024159934A1 (en) | Comment processing method and apparatus, electronic device, and storage medium | |
| JP7756252B2 (en) | Information exchange method, device, electronic device and storage medium for document processing | |
| CN115174509B (en) | Information processing method, device, equipment and medium | |
| CN114997115B (en) | Document processing method, device, equipment and medium | |
| CN115510832A (en) | Information synchronization processing method, system, device, electronic equipment and storage medium | |
| CN115174282A (en) | Information interaction method, device, equipment and medium | |
| CN118627481A (en) | Table processing method, device, terminal and storage medium | |
| US9965484B1 (en) | Template-driven data extraction and insertion | |
| WO2024093576A1 (en) | Information processing method and apparatus, and electronic device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24756121 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2025514300 Country of ref document: JP Kind code of ref document: A |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2025514300 Country of ref document: JP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |