Cell pasting method and device

By pasting only into empty cells in the spreadsheet, the problem of pasting overwriting original information is solved, improving user experience and ensuring that information in non-empty cells is not overwritten.

CN111832267BActive Publication Date: 2024-08-27ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910245552.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-28
Publication Date
2024-08-27
Estimated Expiration
2039-03-28

AI Technical Summary

Technical Problem

In a spreadsheet, when a user attempts to paste information into a cell that contains the information, the original information is overwritten, resulting in a poor user experience.

Method used

Provided is a cell pasting method and device, which determines the empty cells in the pasting area and only pastes target information to these empty cells without overwriting the original information of non-empty cells. This method involves determining whether each cell in the pasted area is empty and pasting only on empty cells.

Benefits of technology

It effectively retains the original information of the non-empty cells in the pasting area, improves the user experience, and ensures that the paste operation is only performed in empty cells.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111832267B
    Figure CN111832267B
Patent Text Reader

Abstract

The embodiment of the present application provides a cell pasting method and device, which relates to the field of electronic table technology. The method includes: determining the target information to be copied and the pasting area, wherein the pasting area includes at least one empty cell, and pasting the target information into the empty cell in the pasting area. The use of the present application can improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic tables, and in particular to a method and device for pasting cells. Background Art

[0002] When using a spreadsheet to process information, a user usually needs to copy information from a certain cell (referred to as target information) and paste the target information into a cell that does not contain information (referred to as an empty cell) to be pasted.

[0003] In the prior art, the specific paste processing process is usually as follows: the user inputs a copy instruction of the target cell to the terminal, and inputs a selection instruction of the paste area, wherein the paste area includes the empty cells to be pasted. The terminal can determine the target information to be copied (i.e., the information in the target cell) and the paste area according to the copy instruction and the selection instruction. Then, the user can input a paste instruction to the terminal, and after receiving the paste instruction, the terminal can paste the target information to the cell in the paste area.

[0004] However, when there are cells containing information (referred to as non-empty cells) in the pasting area, the information of the non-empty cells will be overwritten by the target information, resulting in the loss of the original information of the non-empty cells and a poor user experience. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a cell pasting method and device, which can improve the user experience. The specific technical solution is as follows:

[0006] In a first aspect, a cell pasting method is provided, the method comprising:

[0007] Determine the target information to be copied and the pasting area, wherein the pasting area includes at least one empty cell;

[0008] The target information is pasted into an empty cell in the pasting area.

[0009] Optionally, the cells included in the pasting area are located continuously.

[0010] Optionally, before pasting the target information into an empty cell in the pasting area, the method further includes:

[0011] Determining whether the copied target information is information of a cell;

[0012] If the copied target information is information of a cell, the step of pasting the target information to an empty cell in the paste area is performed.

[0013] Optionally, pasting the target information into an empty cell in the pasting area includes:

[0014] For each cell in the pasting area, determine whether the cell is an empty cell;

[0015] If the cell is an empty cell, the target information is pasted into the cell.

[0016] In a second aspect, a cell pasting device is provided, the device comprising:

[0017] A determination module, used to determine the target information to be copied and a pasting area, wherein the pasting area includes at least one empty cell;

[0018] The pasting module is used to paste the target information into an empty cell in the pasting area.

[0019] Optionally, the cells included in the pasting area are located continuously.

[0020] Optionally, the device further includes a judgment module, and the judgment module is specifically configured to:

[0021] Determining whether the copied target information is information of a cell;

[0022] If the copied target information is information of a cell, the pasting module is triggered to execute the step of pasting the target information into an empty cell in the pasting area.

[0023] Optionally, the pasting module is specifically used for:

[0024] For each cell in the pasting area, determine whether the cell is an empty cell;

[0025] If the cell is an empty cell, the target information is pasted into the cell.

[0026] According to a third aspect, an electronic device is provided, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in the first aspect.

[0027] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described in the first aspect are implemented.

[0028] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect.

[0029] A method and device for pasting cells provided in an embodiment of the present application can determine the target information to be copied and the pasting area, wherein the pasting area includes at least one empty cell. The target information is pasted to the empty cells in the pasting area. In the solution provided by the present application, the target information is only pasted to the empty cells in the pasting area, and the target information is not pasted to the non-empty cells in the pasting area, thereby retaining the original information of the non-empty cells in the pasting area and improving the user experience.

[0030] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A flowchart of a cell pasting method provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of a pasting area provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of a pasting area after pasting provided in an embodiment of the present application;

[0035] Figure 4 A flowchart of a cell pasting method provided in an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the structure of a cell pasting device provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] The embodiment of the present application provides a cell pasting method, which is applied to a user terminal. The method includes: determining the target information to be copied, and a pasting area, wherein the pasting area includes at least one empty cell. Pasting the target information into the empty cells in the pasting area. In the solution provided by the present application, the target information is only pasted into the empty cells in the pasting area, and the target information is not pasted into the non-empty cells in the pasting area, thereby retaining the original information of the non-empty cells in the pasting area and improving the user experience.

[0040] The following will be combined with specific implementation methods to describe in detail a cell pasting method provided in an embodiment of the present application. Figure 1 As shown, the specific steps are as follows:

[0041] Step 101, determine the target information to be copied and the pasting area.

[0042] The pasting area includes at least one empty cell, and the cells included in the pasting area are located continuously.

[0043] In an embodiment of the present application, a user terminal can display a spreadsheet to be processed, and a user can input a selection instruction of a target cell to the user terminal, and accordingly, the user terminal can determine the target cell in the spreadsheet according to the selection instruction. Then, the user can input a copy instruction to the user terminal, and accordingly, after receiving the copy instruction, the user terminal can use the information of the target cell as the target information for copying. Among them, the information of the target cell can include the content in the target cell and the format of the target cell. For example, a user can select a target cell in a spreadsheet with a mouse, and after selecting the target cell, the user can input a copy instruction to the user terminal by clicking a copy button, and accordingly, after receiving the copy instruction, the user terminal can use the information of the target cell as the target information for copying.

[0044] The user can input a selection instruction of the paste area to the user terminal, and correspondingly, the user terminal can determine the paste area according to the selection instruction. For example, the user can drag the mouse to select an area containing empty cells to be pasted, wherein the cells in the area selected by the user are continuous. The user terminal can use the area selected by the user by dragging the mouse as the paste area. When there are multiple empty cells to be pasted, and the empty cells to be pasted are distributed in different rows and columns, the area selected by the user by dragging the mouse will include non-empty cells that do not need to be pasted, that is, the paste area includes non-empty cells that do not need to be pasted. Among them, the paste area can be as follows Figure 2 As shown, the cells in the paste area are located continuously, and the paste area includes non-empty cells containing the letter "A" and empty cells.

[0045] Step 102, paste the target information into an empty cell in the paste area.

[0046] In an embodiment of the present application, a user can input a paste instruction to the user terminal. Accordingly, after receiving the paste instruction, the user terminal can determine the empty cells in the paste area, and then paste the target information into the determined empty cells. For example, the user can click a paste button displayed on the user terminal. When the user terminal detects that the user clicks the paste button, the user terminal can determine whether each cell in the paste area is an empty cell. If the cell is an empty cell, the identifier of the cell is stored, such as the location information of the cell. Then, the user terminal can determine the empty cells in the paste area based on the stored cell identifiers. Furthermore, the user terminal can paste the target information into the empty cells. For example, the target information is the letter "B" contained in the cell, and the paste area is such as Figure 2 As shown, the pasting area after pasting is as follows Figure 3 As shown, the empty cells are filled with the letter "B", and the letter "A" in the non-empty cells in the paste area is retained.

[0047] In this way, the target information is only pasted into the empty cells in the pasting area, and the target information is not pasted into the non-empty cells in the pasting area, so that the original information of the non-empty cells in the pasting area is retained, thereby improving the user experience.

[0048] Optionally, the specific process of pasting the target information into the empty cells in the pasting area may be: for each cell in the pasting area, determining whether the cell is an empty cell; if the cell is an empty cell, pasting the target information into the cell.

[0049] In an embodiment of the present application, a user can input a paste instruction to the user terminal. Accordingly, after receiving the paste instruction, the user terminal can perform the following processing on each cell in the paste area in sequence: determine whether the cell is an empty cell, and if the cell is an empty cell, paste the target information into the cell.

[0050] Optionally, before pasting the target information into an empty cell in the paste area, the user terminal determines whether the copied target information is cell information to prevent non-cell information from being pasted into an empty cell in the paste area. The specific process is as follows: determine whether the copied target information is cell information; if the copied target information is cell information, execute the step of pasting the target information into an empty cell in the paste area.

[0051] In an embodiment of the present application, a user can input a paste instruction to a user terminal. Accordingly, after receiving the paste instruction, the user terminal can determine whether the target information to be copied is the information of a cell. If the target information to be copied is the information of a cell, the user terminal executes the step of pasting the target information onto an empty cell in the paste area; if the target information to be copied is not the information of a cell, the user terminal displays a first indication message, and the first indication message is used to indicate that the target information to be copied is not the information of a cell. For example, if the target information to be copied is a picture, the user terminal can determine that the target information is not the information of a cell, and the user terminal can display the first indication message. In this way, non-cell information can be prevented from being pasted into the empty cells of the paste area.

[0052] In the solution provided in the present application, the target information is pasted only into the empty cells in the paste area, and the target information is not pasted into the non-empty cells in the paste area, thereby retaining the original information of the non-empty cells in the paste area and improving the user experience.

[0053] The present application also provides an example of a cell pasting method, such as Figure 4 As shown, the specific steps are as follows:

[0054] Step 401, determine the target information to be copied and the pasting area.

[0055] Step 402, determining whether the target information to be copied is the information of a cell.

[0056] If yes, execute step 404; if no, execute step 403.

[0057] Step 403: display the first indication information.

[0058] Step 404, determine the empty cells in the paste area.

[0059] Step 405, paste the target information into an empty cell in the paste area.

[0060] Among them, steps 401-405 can refer to steps 101-102, and the embodiment of the present application will not be repeated here.

[0061] Based on the same technical concept, such as Figure 5 As shown, the embodiment of the present application also provides a cell pasting device, the device comprising:

[0062] A determination module 501 is used to determine the target information to be copied and a pasting area, wherein the pasting area includes at least one empty cell;

[0063] The pasting module 502 is used to paste the target information into an empty cell in the pasting area.

[0064] Optionally, the cells included in the pasting area are located continuously.

[0065] Optionally, the device further includes a judgment module, and the judgment module is specifically configured to:

[0066] Determining whether the copied target information is information of a cell;

[0067] If the copied target information is information of a cell, the pasting module 502 is triggered to execute the step of pasting the target information into an empty cell in the pasting area.

[0068] Optionally, the pasting module 502 is specifically used for:

[0069] For each cell in the pasting area, determine whether the cell is an empty cell;

[0070] If the cell is an empty cell, the target information is pasted into the cell.

[0071] The present application also provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0072] Memory 603, used for storing computer programs;

[0073] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:

[0074] Determine the target information to be copied and the pasting area, wherein the pasting area includes at least one empty cell;

[0075] The target information is pasted into an empty cell in the pasting area.

[0076] Optionally, the cells included in the pasting area are located continuously.

[0077] Optionally, before pasting the target information into an empty cell in the pasting area, the method further includes:

[0078] Determining whether the copied target information is information of a cell;

[0079] If the copied target information is information of a cell, the step of pasting the target information to an empty cell in the paste area is performed.

[0080] Optionally, pasting the target information into an empty cell in the pasting area includes:

[0081] For each cell in the pasting area, determine whether the cell is an empty cell;

[0082] If the cell is an empty cell, the target information is pasted into the cell.

[0083] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0084] The communication interface is used for communication between the above electronic device and other devices.

[0085] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0086] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0087] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned cell pasting methods are implemented.

[0088] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the cell pasting methods in the above embodiments.

[0089] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk (SSD)), etc.

[0090] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0091] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0092] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A cell pasting method, characterized in that: The method comprises: Determine the target information to be copied and the paste area, wherein the paste area includes at least one empty cell; the cells included in the paste area are located continuously, and the paste area includes the empty cells to be pasted and the non-empty cells not to be pasted selected by the user; the target information includes the content in the target cell selected by the user and the format of the target cell; Paste the target information into an empty cell in the paste area; In the case that the pasting area includes non-empty cells, the target information is not pasted to the non-empty cells in the pasting area, and the original information of the non-empty cells in the pasting area is retained.

2. The method according to claim 1, characterized in that Before pasting the target information to an empty cell in the pasting area, the method further includes: Determining whether the target information to be copied is information of a cell; If the copied target information is information of a cell, the step of pasting the target information to an empty cell in the paste area is performed.

3. The method according to claim 1, characterized in that: Pasting the target information into an empty cell in the pasting area includes: For each cell in the pasting area, determine whether the cell is an empty cell; If the cell is an empty cell, the target information is pasted into the cell.

4. A cell pasting device, characterized in that: The device comprises: A determination module, used to determine the target information to be copied and a paste area, wherein the paste area includes at least one empty cell; the cells included in the paste area are located continuously, and the paste area includes empty cells selected by the user to be pasted and non-empty cells not to be pasted; the target information includes the content in the target cell selected by the user and the format of the target cell; A pasting module, used for pasting the target information into an empty cell in the pasting area; In the case that the pasting area includes non-empty cells, the target information is not pasted to the non-empty cells in the pasting area, and the original information of the non-empty cells in the pasting area is retained.

5. The device according to claim 4, characterized in that The device further includes a judgment module, which is specifically configured to: Determining whether the target information to be copied is information of a cell; If the copied target information is information of a cell, the pasting module is triggered to execute the step of pasting the target information into an empty cell in the pasting area.

6. The device according to claim 4, characterized in that The pasting module is specifically used for: For each cell in the pasting area, determine whether the cell is an empty cell; If the cell is an empty cell, the target information is pasted into the cell.

7. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.