Data content processing method, device, electronic device and storage medium
By receiving operations in data collaboration documents and updating the selection status of data content, the problem of cumbersome batch data content selection operations is solved, and efficiency and user experience are improved.
Patent Information
- Application Number
- CN202110961298.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-08-20
AI Technical Summary
The selection operation of batch data content in the existing technology is cumbersome and redundant, resulting in low work efficiency and poor user experience.
By receiving the operation of the data collaboration document, the operation area is determined, and the selection status of all or part of the data content in the area is updated to make it consistent with the selection status of other areas, or the status is updated according to the number and arrangement order of the selection data identifiers. , to achieve fast and flexible selection of batch data content.
It simplifies the selection operation of batch data content, improves work efficiency, enhances user convenience, and realizes convenient and efficient data content processing.
Smart Images

Figure CN113655939B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of automated office, and more specifically, to a data content processing method, device, electronic device, and storage medium. Background Art
[0002] Data collaboration documents can be used to edit and save data content. Data content in data collaboration documents can be displayed in the form of grid tables or views. According to usage requirements, users usually select batch data content in the grid table used to present data content to perform batch processing on the selected data content, such as referencing the batch data content to other documents.
[0003] In the related art, the steps for selecting batch data content are: the user selects data content one by one, and performs the selection operation repeatedly until all required data content is selected. Therefore, the selection operation for batch data content is relatively cumbersome and redundant, resulting in low efficiency and poor user experience in the selection of batch data content. Summary of the invention
[0004] The present invention provides a data content processing method, device, electronic device and storage medium, which can conveniently and efficiently select data content required by users, improve the work efficiency of batch data content selection, and increase the user's convenience experience.
[0005] According to a first aspect of the present invention, there is provided a data content processing method, comprising:
[0006] receiving a first operation on a data collaboration document;
[0007] Determining a first area of the data collaboration document for performing the first operation;
[0008] Update the selection status of all data contents in the first area to the same status; or update the selection status of part of the data contents in the first area to the selected data content status and update the selection status of another part of the data contents in the first area to the unselected data content status.
[0009] Optionally, updating the selection status of all data contents in the first region to the same status; or updating the selection status of part of the data contents in the first region to a selected data content status and updating the selection status of another part of the data contents in the first region to a non-selected data content status, includes:
[0010] determining a second region in the data collaboration document;
[0011] According to the selection state of the data content of the second area, the selection state of the data content of the first area is set to be consistent with the selection state of the data content of the second area.
[0012] Optionally, the second area and the first area are arranged at intervals in the data collaboration document; or, the second area and the first area are arranged continuously in the data collaboration document; or, in the data collaboration document, the second area is included in the first area.
[0013] Optionally, setting the selection state of the data content of the first area to be consistent with the selection state of the data content of the second area according to the selection state of the data content of the second area includes:
[0014] Acquire a second number of second optional data identifiers of the second area; wherein the data content of the second area is divided into the second number of parts, and each part corresponds to a corresponding second optional data identifier one by one;
[0015] According to the second number, the first area is divided into at least one first sub-area, and the first number of the first selected data identifier of each first sub-area is the same as the second number;
[0016] The selection state of the first selection data identifier is updated according to the selection state of the second selection data identifier and the arrangement order of the selection states.
[0017] Optionally, dividing the first area into at least one first sub-area according to the second number includes:
[0018] In the case where the second area includes a second optional data identifier, the first area is divided along the first direction or the second direction in units where each first sub-area includes a first optional data identifier;
[0019] Alternatively, when the second area contains multiple second optional data identifiers, the first area is divided along the first direction or the second direction in units of each first sub-area containing multiple first optional data identifiers; wherein the number of the multiple second optional data identifiers is the same as the number of the multiple first optional data identifiers.
[0020] Optionally, before dividing the first area along the first direction or the second direction in units where each first sub-area includes a plurality of first selected data identifiers, the method further includes:
[0021] Determining whether the selection states of the plurality of second selection data identifiers are unique;
[0022] In the case where the selection states of the plurality of second selection data identifiers are not unique, determining the coordinate position and selection state corresponding to each second selection data identifier;
[0023] The selection states of the plurality of second selection data identifiers are sorted according to the coordinate position of each second selection data identifier, and the selection state of each first selection data identifier in the first sub-area is set according to the sorting result.
[0024] Optionally, updating the selection status of all data contents in the first region to the same status; or updating the selection status of part of the data contents in the first region to a selected data content status and updating the selection status of another part of the data contents in the first region to a non-selected data content status, includes:
[0025] Determine a current selection state of each first selection data identifier of the first area;
[0026] The selection state of each first selection data mark of the first area is automatically set to be opposite to the corresponding each current selection state.
[0027] Optionally, updating the selection status of all data contents in the first area to the same status includes:
[0028] determining the associated data content;
[0029] Automatically set the selected status of the associated data content to the same selected status.
[0030] Optionally, after updating the selection status of all data contents in the first region to the same status; or after updating the selection status of part of the data contents in the first region to a selected data content status and updating the selection status of another part of the data contents in the first region to a non-selected data content status, the method further includes:
[0031] receiving a second operation on the data collaboration document;
[0032] determining whether a third area of the data collaboration document for performing the second operation is located within the first area;
[0033] In a case where it is determined that the third area is located in the first area, the first area of the data collaboration document for performing the first operation is re-determined.
[0034] According to a second aspect of the present invention, there is also provided a data content processing device, comprising:
[0035] A receiving module, used for receiving a first operation on a data collaboration document;
[0036] A determination module, used to determine a first area of the data collaboration document for performing the first operation;
[0037] A processing module is used to update the selection status of all data contents in the first area to the same state; or to update the selection status of part of the data content in the first area to a selected data content state and update the selection status of another part of the data content in the first area to a non-selected data content state.
[0038] Optionally, the processing module includes:
[0039] A determination submodule, configured to determine a second region in the data collaboration document;
[0040] The processing submodule is used to set the selection state of the data content of the first area to be consistent with the selection state of the data content of the second area according to the selection state of the data content of the second area.
[0041] According to a third aspect of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to the first aspect of the present invention.
[0042] According to a fourth aspect of the present invention, there is further provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method according to the first aspect of the present invention is implemented.
[0043] The data content processing method, device, electronic device and storage medium provided by the embodiment of the present invention are adopted, wherein the data content processing method can receive a first operation on a data collaboration document, and then determine the first area for performing the first operation in the data collaboration document, and then update the selection status of the data content in the first area. Specifically, updating the selection status of the data content in the first area can be to update the selection status of all the data content in the first area to the same state; it can also be to update the selection status of part of the data content in the first area to a selected data content state and update the selection status of another part of the data content in the first area to an unselected data content state. In this way, through one operation step (i.e., the first operation), the selection status of the batch data content in the first area can be flexibly and quickly adjusted, not only can the same selection status of the batch data content be updated through one operation step, but also the selection status of each data content part of the batch data content can be updated through one operation step, and the selection status of each data content part is different from each other. It is possible to conveniently and efficiently select the data content required by the user, improve the work efficiency of batch data content selection, and increase the user's convenience experience.
[0044] Other features and advantages of embodiments of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments of the invention.
[0046] Figure 1 is a method flow chart of a data content processing method according to some embodiments of the present invention;
[0047] Figure 2a is a schematic diagram of a trajectory of moving a mouse cursor in a first operation in some embodiments of the present invention;
[0048] Figure 2b is a schematic diagram of a first region of some embodiments of the present invention;
[0049] Figure 3 is a method flow chart of another data content processing method according to some embodiments of the present invention;
[0050] Figure 4a is a schematic diagram of the positional relationship between a first area and a second area in some embodiments of the present invention;
[0051] Figure 4b is a schematic diagram of another positional relationship between a first area and a second area in some embodiments of the present invention;
[0052] Figure 5a is a schematic diagram of a first region and a second region in a case where the first region includes the second region in some embodiments of the present invention;
[0053] Figure 5b is a schematic diagram of another first region and a second region when the first region includes the second region in some embodiments of the present invention;
[0054] Figure 5c is a schematic diagram of another first region and a second region when the first region includes the second region in some embodiments of the present invention;
[0055] Figure 5d is a schematic diagram of another first region and a second region when the first region includes the second region in some embodiments of the present invention;
[0056] Figure 5e is a schematic diagram of another first region and a second region when the first region includes the second region in some embodiments of the present invention;
[0057] Figure 5fis a schematic diagram of another first region and a second region when the first region includes the second region in some embodiments of the present invention;
[0058] Figure 6 is a method flow chart of yet another data content processing method according to some embodiments of the present invention;
[0059] Figure 7a is a schematic diagram of a first sub-region in some embodiments of the present invention;
[0060] Figure 7b is a schematic diagram of another first sub-region in some embodiments of the present invention;
[0061] Figure 7c is a schematic diagram of another first sub-region in some embodiments of the present invention;
[0062] Figure 7d is a schematic diagram of yet another first sub-region in some embodiments of the present invention;
[0063] Figure 8 is a schematic diagram comparing the selection status of a data content before and after updating in some embodiments of the present invention;
[0064] Fig. 9 is a schematic diagram of a content selection interface in a data content processing method according to some embodiments of the present invention;
[0065] Fig.10 is a schematic diagram of a content selection interface in another data content processing method according to some embodiments of the present invention;
[0066] Fig.11 is a schematic diagram of content selection results in a data content processing method according to some embodiments of the present invention;
[0067] Fig.12 is a functional structural block diagram of a data content processing device according to some embodiments of the present invention;
[0068] Fig.13 is a schematic diagram of the hardware structure of an electronic device according to some embodiments of the present invention. DETAILED DESCRIPTION
[0069] Various exemplary embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0070] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0071] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0072] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0073] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0074] In addition, one or more embodiments of this specification adopt a first direction and a second direction, wherein the first direction may be horizontal and the corresponding second direction may be vertical; or the first direction may be vertical and the corresponding second direction may be horizontal. The horizontal and horizontal lines refer to the horizontal direction parallel to the horizontal ground, based on the display interface that can be recognized by the naked eye when the user looks straight ahead, and the display interface displays the data content normally and accurately as the benchmark; the vertical and vertical lines refer to the vertical direction perpendicular to the horizontal ground, based on the display interface that can be recognized by the naked eye when the user looks straight ahead, and the display interface displays the data content normally and accurately as the benchmark.
[0075] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0076] The present invention can be applied to data collaboration documents. Data collaboration documents can be displayed in the form of a grid table or in the form of a view. They are data management documents with multiple display forms. When the data content in a data collaboration document is displayed in the form of a grid table, the data content is arranged in each cell that constitutes a row, and / or arranged in each cell that constitutes a column. For the data content displayed on the display interface of the client, the display interface that is recognizable to the naked eye when the user looks straight ahead and the display interface that normally and accurately displays the data content is used as the benchmark. A row is an area composed of horizontal lines; a column is an area composed of vertical lines; and a table formed by the intersection of rows and columns is a cell.
[0077] It should be noted that the execution subject of the embodiment of the present invention may be an application running on a browser, and the application is a web app of the browser on the terminal.
[0078] In addition, the terminal devices involved in the embodiments of the present invention may include but are not limited to mobile phones, personal digital assistants (PDA), wireless handheld devices, tablet computers (Tablet Computer), personal computers (PC), PDAs (Personal Digital Assistants), wearable devices (such as smart glasses, smart watches, etc.), etc.
[0079] Hereinafter, various embodiments and examples according to the present invention are described with reference to the accompanying drawings.
[0080] <Method Example>
[0081] Figure 1 A method flow chart of a data content processing method provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110 to S130.
[0082] Step S110: receiving a first operation on a data collaboration document.
[0083] The first operation may be a dragging operation on the mouse cursor, for example, the user long presses the left mouse button to drag the mouse cursor of the terminal interface; or the user long presses the right mouse button to drag the mouse cursor of the terminal interface; or the user scrolls the mouse wheel to drag the mouse cursor of the terminal interface; or the user controls and drags the mouse cursor on a touch display screen using a finger, a stylus, etc.
[0084] Step S120: determining a first area of the data collaboration document for performing a first operation.
[0085] The area in the data collaboration document where the first operation is performed is taken as the first area. According to the start and stop of the first operation, it is determined that the first operation is started at the first position of the data collaboration document, and it is determined that the first operation is stopped at the second position of the data collaboration document, and the continuous interval formed by the first position to the second position is the first area. Exemplarily, taking the first operation as the dragging operation of the mouse cursor, the received user's long press of the left mouse button is taken as the start execution instruction of the first operation, and the position of the data collaboration document where the mouse cursor is currently located is taken as the starting position of the first area; the received user's release of the left mouse button is taken as the stop execution instruction of the first operation, and the position of the data collaboration document where the mouse cursor is currently located is taken as the ending position of the first area.
[0086] For example, if the mouse cursor is located at the row identifier "3" of the data collaboration document when executing the first operation instruction, the starting position is the third row; if the mouse cursor is located at the row identifier "15" of the data collaboration document when stopping the first operation instruction, the ending position is the fifteenth row, and thus the continuous area from the third row to the fifteenth row is the first area for performing the first operation. For another example, if the mouse cursor is located at the first cell corresponding to the second row and the first column of the data collaboration document when executing the first operation instruction, the starting position is the first cell; if the mouse cursor is located at the second cell corresponding to the 18th row and the first column of the data collaboration document when stopping the first operation instruction, the ending position is the second cell, and thus the continuous area from the first cell to the second cell is the first area for performing the first operation.
[0087] It should be noted that the first operation can be performed on any object in the rows, columns, and cells of the data collaboration document. However, the objects for performing the first operation each time must be of the same type, and the direction of performing the first operation each time is one of the horizontal and vertical directions. For example, if the start execution of the first operation instruction is performed on the rows in the above-mentioned rows, columns, and cells, the corresponding stop execution of the first operation instruction is also performed on the rows, in which case the dragging direction of the mouse cursor is vertical; if the start execution of the first operation instruction is performed on three cells arranged adjacent to each other in sequence, the corresponding stop execution of the first operation instruction is also performed on three cells arranged adjacent to each other in sequence. If the start execution of the first operation instruction is performed on multiple cells arranged adjacent to each other in sequence, the corresponding stop execution of the first operation instruction is also performed on multiple cells arranged adjacent to each other in sequence. Among them, the dragging direction of the mouse cursor can be horizontal or vertical, and so on.
[0088] Take the grid table as an example, Figure 2a As shown, the leftmost column in the grid table 20 (i.e. Figure 2a The data content in the column where the serial numbers "1", "2", "3", "4" ... are located is the row number (i.e. Figure 2a Each row number corresponds to a row in the grid table 20, that is, row number 1 corresponds to the first row, row number 2 corresponds to the second row, and so on. Drag the mouse cursor from the first row to the sixth row, that is, drag the mouse cursor from the first row corresponding to row number 1 to the sixth row corresponding to row number 6, then Figure 2b As shown, the first area is Figure 2b The area corresponding to the shaded part includes the area of all cells from the first row to the sixth row.
[0089] It should be noted that the left side of the grid table refers to the grid table displayed on the display interface of the client, which is based on the display interface that is recognizable to the naked eye when the user looks straight ahead, and the display interface displays the data content normally and accurately. The position of the grid table that the user sees to the left with the naked eye; the right side of the grid table refers to the grid table displayed on the display interface of the client, which is based on the display interface that is recognizable to the naked eye when the user looks straight ahead, and the display interface displays the data content normally and accurately. The position of the grid table that the user sees to the right with the naked eye.
[0090] In some examples, such as Figure 2b As shown, after the first area is determined according to the first operation, the row number of each row in the first area can be updated to icon 21 to distinguish the first area from other areas in the grid table 20 except the first area. In this case, the user can clearly know the first area corresponding to the first operation.
[0091] Of course, it is understandable that Figure 2b The manner of distinguishing the first area from other areas in the grid table 20 except the first area is merely exemplary. In an embodiment of the present invention, it is also unnecessary to update the row number of each row in the first area to the icon 21, that is, continue to display the row number of each row, and only adjust the background color of the first area and / or other areas in the grid table 20 except the first area, so that the background color of the first area is different from the background color of the other areas, so as to distinguish the first area from other areas in the grid table 20 except the first area.
[0092] It is understandable that the "Quantity" column in the grid table 20 only exemplifies the case where the highest digit of the quantity is a four-digit number. In actual situations, the highest digit of the quantity may include but is not limited to four digits, for example, it may be a five-digit number, a six-digit number, or other N-digit number (N is a natural number and N is greater than or equal to 1).
[0093] The components in the system can be constructed using a layered architecture. In this case, the system can be logically divided into a user interface layer (UIL), a business logic layer (BLL), and a data access layer (DAL). UIL can collect information and operations input by the user through the terminal, and BLL can obtain the information and operations collected by UIL from UIL, execute business logic on the information and operations, and return the result data of executing the business logic to UIL for display; UIL can also call BLL to display the data obtained by BLL from the database through DAL (BLL can call DAL to read data from the database) on the interface of the terminal application. Based on this, in an embodiment of the present invention, after the user enters the first operation, the first operation is recorded in UIL, so when the user uses the mouse to start executing the first operation, the current position of the mouse cursor in the data collaboration document (i.e., the above-mentioned starting position) can be recorded; when the user releases the mouse to stop executing the first operation, the current position of the mouse cursor in the data collaboration document (i.e., the above-mentioned ending position) can be recorded.
[0094] Step S130: updating the selection status of all data contents in the first region to the same status; or, updating the selection status of part of the data contents in the first region to the selected data content status and updating the selection status of another part of the data contents in the first region to the unselected data content status.
[0095] The data content is the text, numbers, characters, letters, pictures, etc. filled in the cells.
[0096] Updating means automatically setting the selection status for the data content in the data collaboration document, and the execution of the process does not require any manual operation or auxiliary adjustment by an external user. The selected data content status and the unselected data content status can be reflected by an identifier, that is, an association relationship is established between the data content and the status identifier. When the status identifier is selected (for example, a check mark or a dot is put in the status identifier), the data content corresponding to the status identifier is in a selected state; when the status identifier is not selected (for example, the status identifier remains in its original state), the data content corresponding to the status identifier is in an unselected state. Users can reference the data content in the selected state to other documents or use it for calculations and statistics, etc., and the present invention does not limit this.
[0097] In some embodiments, when the first area of the data collaboration document for the first operation is determined, the selection status of all data contents in the first area can be updated to the same state; wherein the same state means that the selection status of all data contents in the first area is the same state. That is, the selection status of all data contents in the first area is the selected data content state, or the selection status of all data contents in the first area is the unselected data content state.
[0098] In other embodiments, when the first area of the data collaboration document for the first operation is determined, the selection state of part of the data content in the first area can be updated to the selected data content state and the selection state of another part of the data content in the first area can be updated to the unselected data content state. The combination of part of the data content and another part of the data content together constitutes the entire data content of the first area, and the part of the data content and the other part of the data content have no association relationship such as inclusion or overlap, and are independent separate parts.
[0099] For example, the first area is the area of all cells from the 2nd to the 8th row of the data collaboration document, and the data content of the 2nd to the 5th row can be part of the data content of the first area; the data content of the 6th to the 8th row can be another part of the data content of the first area. For another example, the first area is the area of all cells from the 2nd to the 8th row of the data collaboration document, and the data content of the 2nd, 5th and 7th row can be part of the data content of the first area; the data content of the 3rd, 4th, 6th and 8th row except the 2nd, 5th and 7th row can be another part of the data content of the first area.
[0100] The entire data content of the first region is divided into a plurality of parts, and the selected state of the data content of each part includes one of a selected data content state and a non-selected data content state. The selected state of the entire data content includes at least one of a selected data content state and a non-selected data content state, and may include the following three situations:
[0101] First, the selection status of all data contents in the first area after automatic setting (updating) is the selected data content status, that is, all data contents in the first area are selected. In this case, the selection status of all data contents only includes the selected data content status.
[0102] Second, the selection status of all data contents in the updated first region is the unselected data content status, that is, all data contents in the first region are not selected. In this case, the selection status of all data contents only includes the unselected data content status.
[0103] Third, the selection status of a part of the data content in the entire data content of the updated first area is the selected data content state, and the selection status of another part of the data content is the unselected data content state. In this case, the selection status of all the data content includes the selected data content state and the unselected data content state.
[0104] It can be seen that in the embodiment of the present invention, by receiving the first operation on the data collaboration document, and then determining the first area for executing the first operation in the data collaboration document, the selection state of the data content of the first area is updated. Specifically, updating the selection state of the data content of the first area can be to update the selection state of all the data content of the first area to the same state; it can also be to update the selection state of part of the data content of the first area to the selected data content state and update the selection state of another part of the data content of the first area to the unselected data content state. In this way, the user only needs to input the first operation (one operation step) to flexibly and quickly adjust the selection state of the batch data content in the first area, not only can the same selection state of the batch data content be updated through one operation step, but also the selection state of each data content part of the batch data content can be updated through one operation step, and the selection state of each data content part is different from each other. That is, without performing other operations, the automatic setting of the selection state of all the data content of the first area can be realized, so that the setting operation of the selected state of the batch data is simplified, thereby achieving the purpose of conveniently and efficiently selecting the data content required by the user, improving the work efficiency of the selection of the batch data content, and increasing the user's convenience.
[0105] There are many ways to update the selection status of all data contents in the first area, which are described in detail below through several embodiments.
[0106] In some embodiments, Figure 3 As shown, the execution process of step S130 may include the following steps S310 to S320.
[0107] Step S310: Determine a second area in the data collaboration document.
[0108] In some embodiments, the second area can be arranged at intervals with the first area in the data collaboration document. Interval arrangement means that there is another area between the second area and the first area. The other area can be a blank area or a non-blank area with data content.
[0109] Take the grid table as an example, Figure 4aAs shown, in the grid table 20, the first area 31 includes the area of all cells in the first row corresponding to row number 1, the second row corresponding to row number 2 and the third row corresponding to row number 3, the second area 32 includes the area of all cells in the sixth row corresponding to row number 6, the seventh row corresponding to row number 7 and the eighth row corresponding to row number 8, the first area 31 and the second area 32 are separated by the area of all cells in the fourth row corresponding to row number 4 and the fifth row corresponding to row number 5 located therebetween, and the area of all cells in the fourth row corresponding to row number 4 and the fifth row corresponding to row number 5 is the interval area 30.
[0110] The spacing area 30 can be a blank area or a non-blank area. For example, if at least one cell in the spacing area 30 is filled with data content, in this case, the spacing area 30 is a non-blank area; if all cells in the spacing area 30 are not filled with data content, in this case, the spacing area 30 is a blank area.
[0111] Figure 4a Only the case where the first area, the second area, and the spacing area are areas of all cells in one or more rows is exemplified. In the embodiment of the present application, the first area, the second area, and the spacing area are not limited to areas of all cells in one or more rows. For example, the first area includes a plurality of cells arranged adjacently (for example, three cells arranged adjacently), the second area includes a plurality of cells arranged adjacently (for example, three cells arranged adjacently), and the spacing area includes a plurality of cells arranged adjacently (for example, three cells arranged adjacently).
[0112] Understandably, Figure 4a The first region 31 , the spacing region 30 , and the second region 32 are shown to be arranged along the longitudinal direction. In actual situations, the first region 31 , the spacing region 30 , and the second region 32 may also be arranged along the transverse direction.
[0113] In other embodiments, the second area can be arranged continuously with the first area in the data collaboration document. Continuous arrangement means that the second area is adjacent to the first area, and there is no other area between the second area and the first area. For example, the second area shares part of the border line with the first area. For example, in a grid table, the first area is surrounded by a first border line, a second border line, a third border line, and a fourth border line. The first border line is adjacent to the second border line and the fourth border line, respectively, and the first border line is opposite to the third border line. The second area is an area that shares the first border line, the second border line, the third border line, or the fourth border line with the first area. Taking the grid table as an example, Figure 4bAs shown, the first area 41 is the area of one cell, and the second area 42 is the area of another cell. The first area 41 and the second area 42 are arranged continuously, and the second area 42 is the area of any cell located around the first area 41 and sharing part of the border line with the cells in the first area 41. Figure 4b The first area may include a plurality of continuous cell areas. Figure 4b As shown, taking the case where the plurality of continuous cells are two adjacent cells as an example, the first region 41' includes the regions of the two adjacent cells. In this case, the second region 42' is the region of another cell other than the first region 41, such as Figure 4b Alternatively, the second region 42' also includes a plurality of continuous cells, and the number of cells included in the second region is the same as the number of cells included in the first region 41, such as Figure 4b The second area 42' can be the area within any one of the two dotted boxes, the area within one of the two dotted boxes includes the area of two cells, the area of one cell is the intersection of the "Quantity" column and the sixth row with row number 6, and the area of the other cell is the intersection of the "Date" column and the sixth row with row number 6; the area within the other dotted box of the two dotted boxes includes the area of two cells, the area of one cell is the intersection of the "Quantity" column and the eighth row with row number 8, and the area of the other cell is the intersection of the "Date" column and the eighth row with row number 8.
[0114] In the data collaboration document, the second area is included in the first area. Inclusion means that the second area is located in the first area and is a part of the first area. In this case, the occupied interface size of the second area is smaller than the occupied interface size of the first area.
[0115] The first region and the second region under the above-mentioned inclusion relationship are explained below through the following examples.
[0116] Example 1, taking a grid table as an example, the first area includes the area of all cells in a row of the grid table, and the second area is the area of any cell in the first area; or, the first area includes the area of all cells in a column of the grid table, and the second area is the area of any cell in the first area. Example 2, taking a grid table as an example, the first area includes the area of all cells in multiple consecutive rows of the grid table, and the second area includes the area of all cells in a row of the multiple consecutive rows.
[0117] like Figure 5a As shown, the first area 51 ( Figure 5a The area in the dashed box in the middle) includes the area of all cells in the first row to the sixth row in the grid table 20, and the second area 52 ( Figure 5a The shaded area (in middle) includes the area of all cells in the first row of the grid table 20.
[0118] Example 3, taking a grid table as an example, the first area includes the area of all cells in multiple consecutive rows in the grid table, and the second area includes the area of all cells in at least two rows of the multiple consecutive rows. The at least two rows can be continuous or arranged at intervals. Among them, at least two rows in the second area are arranged continuously, that is, at least two rows in the second area are continuous and are not separated by other areas outside the second area. At least two rows in the second area are arranged at intervals, that is, the second area is divided into multiple parts, each part includes one or more rows of at least two rows in the second area, and the areas of any two parts of the multiple parts do not overlap.
[0119] like Figure 5b and Figure 5c As shown, the first area 51 ( Figure 5b and Figure 5c The area in the dashed box in the middle) includes the area of all cells in the first row to the sixth row in the grid table 20, and the second area 52 ( Figure 5b and Figure 5c The shaded area in the middle) includes the area of all cells in the three rows of the grid table 20. Figure 5b In the example, the second area 52 includes the area of all cells in the first row to the third row in the grid table 20, and the three rows in the second area 52 are continuous; Figure 5c In the example, the second area 52 includes the area of all cells in the first row, the third row and the fourth row in the grid table 20, and the three rows in the second area 52 are arranged alternately.
[0120] Example 4: The first area includes the area of all cells in a plurality of consecutive columns in the grid table. In this case, the second area may include the area of all cells in one column of the plurality of consecutive columns.
[0121] like Figure 5d As shown, the first area 51 ( Figure 5d The area within the dashed box in the middle) includes the area of all cells from the first column to the third column in the grid table 20, and the second area 52 ( Figure 5d The shaded area (in the middle) includes the area of all cells in the first column (ie, the “Name” column) in the grid table 20 .
[0122] Example 5: The first area includes the area of all cells in multiple continuous columns in the grid table. In this case, the second area may include the area of all cells in at least two of the multiple continuous columns. The at least two columns may be continuous or spaced apart. Among them, at least two columns in the second area are continuously arranged, that is, at least two columns in the second area are continuous and are not separated by other areas outside the second area. At least two columns in the second area are spaced apart, that is, the second area is divided into multiple parts, each part includes one or more of the at least two columns in the second area, and the areas of any two of the multiple parts do not overlap.
[0123] like Figure 5e and Figure 5f As shown, the first area 51 ( Figure 5e and Figure 5f The area within the dashed box in the middle) includes the area of all cells from the first column to the third column in the grid table 20, and the second area 52 ( Figure 5e and Figure 5f The shaded area in the middle) includes the area of all cells in the two columns of the grid table 20. Figure 5e In the example, the second region 52 includes the region of all cells in the first column and the second column of the grid table 20, and the two columns in the second region 52 are continuous; Figure 5f In the example, the second area 52 includes the area of all cells in the first column and the third column in the grid table 20, and the two columns in the second area 52 are arranged alternately.
[0124] There are many ways to determine the second area. For example, in a grid table, it can be understood that Figure 5a to Figure 5f Only one case among the above-mentioned examples 2 to 5 is exemplarily shown. Any case that meets the first area and the second area in examples 1 to 5 belongs to the protection scope of the present invention.
[0125] Step S320: according to the selection state of the data content in the second area, the selection state of the data content in the first area is set to be consistent with the selection state of the data content in the second area.
[0126] The selection status of the data content in the first area is consistent with the selection status of the data content in the second area, which means that the arrangement order of the selection status of the data content in the first area is consistent with the arrangement order of the selection status of the data content in the second area.
[0127] For example, if the selection status of the data content in the second area is arranged in the order of selected data content status, unselected data content status, and selected data content status, then the selection status of the data content in the first area is also arranged in the order of selected data content status, unselected data content status, and selected data content status. In this way, when the data content in the second area only contains one selection status, the purpose of updating the selection status of all the data content in the first area to the same status can be achieved, that is, the selection status of all the data content in the first area is updated to the same selection status as the selection status of the data content in the second area. In the case where the data content in the second area contains multiple selection statuses, the selection status of part of the data content in the first area can be updated to the selected data content status and the selection status of another part of the data content in the first area can be updated to the unselected data content status, so as to perform a composite selection status update on the batch data content in the first area, simplify user operations, and meet the needs of efficiently selecting multiple data contents required by users.
[0128] In some examples, such as Figure 6 As shown, the execution process of step S320 may include the following steps S610 to S630:
[0129] Step S610: Obtain a second quantity of second selected data identifiers of a second area.
[0130] The data content of the second area is divided into a second number of parts, each of which has a corresponding and unique second optional data identifier. The selection state of the data content corresponding to each second optional data identifier is unique, that is, the data content corresponding to each second optional data identifier can be regarded as a whole to specify whether its selection state is a selected data content state or a non-selected data content state.
[0131] The second optional data identifier refers to a mark used to reflect the selection status of the data content. An association relationship is established between the second optional data identifier and the data content, and the user can control the selection status of the data content associated with the second optional data identifier to be one of its multiple states (the multiple states include a selected data content state and a non-selected data content state) by selecting (for example, ticking or dotting the state identifier) or not selecting the above mark.
[0132] The selected data content state and the unselected data content state can be reflected by the identifier, that is, the data content and the state identifier are associated with each other. Figure 2bIn the case where a check mark is put in the status identifier, or a dot is put in the status identifier, etc., the selection state of the data content corresponding to the status identifier is a selected data content state, or it can be said that the data content corresponding to the status identifier is in a selected state; in the case where the status identifier is not selected (for example, the status identifier remains as it is), the selection state of the data content corresponding to the status identifier is a non-selected data content state, or it can be said that the data content corresponding to the status identifier is in an unselected state.
[0133] Taking the grid table as an example, the second area includes multiple cells in the grid table. For example, all the content data in the second area can be divided into each cell as a part, and the data content in each cell is associated with a second optional data identifier. For another example, all the content data in the second area can be divided into every two rows as a part, and the data content of every two rows is associated with a second optional data identifier.
[0134] It should be noted that the data collaboration document can locate the cell, row or column that needs to process the selected state according to the position identifier of the cell, row or column therein. The position identifier can be stored in the form of a list on the server or locally.
[0135] In this way, the purpose of determining the selection state of the second selection data identifier of the second area can be achieved, so as to accurately update the selection state of the data content of the first area to match the second selection data identifier.
[0136] Step S620: Divide the first area into at least one first sub-area according to the second quantity, wherein the first quantity of the first selected data identifier of each first sub-area is the same as the second quantity.
[0137] The first optional data identifier refers to a mark used to reflect the selection status of the data content in the first area. An association is established between the first optional data identifier and the data content in the first area. The user controls the selection status of the data content associated with the first optional data identifier to be a selected data content state or a non-selected data content state by selecting (for example, ticking or dotting in the status identifier) or not selecting the first optional data identifier.
[0138] When the first number of first optional data identifiers in the first sub-area is the same as the second number of second optional data identifiers, the data content of the first sub-area can be matched with the data content of the second area based on the first optional data identifiers and the optional data identifiers, and the selection status of the data content of each first optional data identifier in the first sub-area can be updated based on the matching results and the selection status of the data content of each second optional data identifier in the second area.
[0139] Step S630: updating the selection status of the first selection data identifier according to the selection status of the second selection data identifier and the arrangement order of the selection status.
[0140] The selection status can be arranged in order of position identifier from small to large or from large to small, and the sorting result is obtained by sorting the selection status of each second selection data identifier. The position identifier can be recorded in the position table of the server, and can also be recorded locally.
[0141] Taking the position identifier from small to large as an example, the position identifier corresponding to each second optional data identifier is the position identifier of a row. In this case, if the second number of second optional data identifiers in the second area is 3, the three second optional data identifiers include the second optional data identifier of the second row, the second optional data identifier of the third row, and the second optional data identifier of the fourth row, the position identifiers of the data content corresponding to the three second optional data identifiers include the position identifier of the second row, the position identifier of the third row, and the position identifier of the fourth row, and the selection states of the data content corresponding to the three second optional data identifiers are selected data content state, unselected data content state, and selected data content state, respectively. In this case, according to the position identifier of the second row, the position identifier of the third row, and the position identifier of the fourth row, the selection states of the second optional data identifiers are determined in the order of the position identifiers from small to large, which are: selected data content state, unselected data content state, selected data content state, respectively. The content status is arranged in order, and the first selected data identifiers of the first sub-area are also arranged in ascending order according to the position identifiers, and the selection status of the first selected data identifier arranged in the first position in the arrangement result is updated to the selected data content status, the selection status of the first selected data identifier arranged in the second position in the arrangement result is updated to the unselected data content status, and the selection status of the first selected data identifier arranged in the third position in the arrangement result is updated to the selected data content status, so that in the updated first sub-area, according to the position identifier of the second row, the position identifier of the third row and the position identifier of the fourth row, the arrangement order of the selection status of the first selected data identifier after arranging in ascending order of the position identifier is consistent with the arrangement order of the selection status of the second selected data identifier after arranging in ascending order of the position identifier.
[0142] According to the second quantity, the first area is divided into at least one first sub-area, including:
[0143] In the case where the second area includes one second optional data identifier, the first area is divided along the first direction or the second direction in units of each first sub-area including one first optional data identifier; or, in the case where the second area includes multiple second optional data identifiers, the first area is divided along the first direction or the second direction in units of each first sub-area including multiple first optional data identifiers. Wherein, multiple is two or more, and the second number of the multiple second optional data identifiers in the second area is the same as the first number of the multiple first optional data identifiers in the first sub-area. That is, in the case where the second area includes three second optional data identifiers, the first sub-area also includes three first optional data identifiers.
[0144] The first direction may be the horizontal direction, and the corresponding second direction may be the vertical direction. Alternatively, the first direction may be the vertical direction, and the corresponding second direction may be the horizontal direction.
[0145] Taking the grid table as an example, the first direction is horizontal, the second direction is vertical, and the second area can contain a cell group. The cell group can include all cells in a row or all cells in multiple rows, or the cell group can also include all cells in a column or all cells in multiple columns, or the cell group can include multiple cells arranged continuously or at intervals.
[0146] For example, taking a grid table as an example, the first area includes the area of all cells in a row in the grid table, and the second area includes a cell group in the first area, which includes a plurality of cells arranged continuously or spaced apart in the row; or, the second area includes the area of all cells in a column in the grid table, and the second area includes a cell group in the first area, which includes a plurality of cells arranged continuously or spaced apart in the column.
[0147] The first direction is horizontal, and the second direction is vertical. In the case where the cell group includes all cells in a row, such as Figure 7a As shown, the first area 51 includes the area of all cells from the first row to the third row. In this case, the second area 52 can be used as a divided range area, and the first area is divided into at least one first sub-area along the longitudinal direction from the first row of the first area (the second area 52), so as to obtain two first sub-areas. Area 71 (diagonal shaded area) is one of the two first sub-areas, and area 72 is the other first sub-area (horizontal shaded area) of the two first sub-areas. The number of cells in area 71 and area 72 is the same as the number of cells in the second area 52, and the number of cells in area 71 and area 72 is the same as the number of cells in the second area 52.
[0148] For example, the first direction is horizontal, the second direction is vertical, and in the case where the cell group may include all cells in a column, such as Figure 7b As shown, the first area 51 includes the area of all cells from the first column to the third column. In this case, the second area 52 can be used as a divided range area, and the first area is divided into at least one first sub-area along the horizontal direction starting from the first column (second area 52) of the first area, so as to obtain two first sub-areas, as shown in FIG. Figure 7b The middle area 71 (diagonal shaded area) is a first sub-area, and the area 72 is another first sub-area (horizontal shaded area). Figure 7b This is also the case where the second area is arranged in the first area. Therefore, although the cell group in the second area is also divided during the division, the obtained first sub-area does not include the cell group in the second area. It should be noted that after the first area is divided, if there are still some rows that cannot be divided into a complete first sub-area (for example, after the division, there are two rows left, and the first sub-area needs to be divided into units of three rows), then the remaining area that cannot be divided into a complete first sub-area is used as the second sub-area. In accordance with the method of updating the selection status of each data content in the first sub-area, the selection status of each first selected data identifier in the second sub-area is continued to be updated, and it is only necessary to update the selection status of the first selected data identifier corresponding to the last position identifier of the second sub-area.
[0149] It can be seen that by dividing the first area into multiple first sub-areas, at least one first sub-area with the same number and arrangement of cells can be quickly selected in the first area according to the number and arrangement of cells in the cell group of the second area, thereby achieving the purpose of copying the selection status of multiple cells as a whole to multiple areas in a table (such as a grid table).
[0150] In some embodiments, before dividing the first area along the first direction or the second direction with each first sub-area containing multiple first selected data identifiers as units, it is also possible to determine whether the selected states of multiple second selected data identifiers are unique. If the judgment result is no, determine the coordinate position and selected state corresponding to each second selected data identifier, and then sort the selected states of multiple second selected data identifiers according to the coordinate position of each second selected data identifier, and set the selected state of each first selected data identifier in the first sub-area according to the sorting result. Unique refers to the same selected state, that is, the selected states of the second selected data identifiers are all selected data content states; or, the selected states of the second selected data identifiers are all unselected data content states.
[0151] Not unique means that there are two selection states, that is, the selection state identified by the second selection data includes both the selected data content state and the unselected data content state.
[0152] When the judgment result is negative, that is, when the selection states of the plurality of second selection data identifiers are not unique, the coordinate position and selection state corresponding to each second selection data identifier may be determined.
[0153] Taking the grid table as an example, the coordinate position of the cell where the data content corresponding to each second selected data identifier is located in the grid table can be determined (for example, Am: Cn; where m and n are natural numbers greater than or equal to 1, indicating row position identifiers; A and C are natural numbers greater than or equal to 1, indicating column position identifiers). The selection state is whether the data content is in a selected data content state or an unselected data content state. The selection states of multiple second selected data identifiers are sorted according to the coordinate position of each second selected data identifier, and the selection state of each first selected data identifier in the first sub-area is set according to the sorting result.
[0154] Sorting means arranging them one by one in ascending or descending order according to the size of the coordinate position identifier of the second selected data identifier.
[0155] For example, see Figure 7c As shown, the data contents corresponding to the multiple second selected data identifiers are arranged in three cells, and the data contents of each cell correspond to a selected data identifier. In the embodiment of the present application, the coordinate position of the cell corresponding to each second selected data identifier is first determined, and the selection status of the three second selected data identifiers is sorted in ascending or descending order according to the size of the coordinate position identifier. In this example, Figure 7c The text in brackets of each cell in the second area 52 indicates the selection status of each cell, see Figure 7c , the sorting result of the selection status of the three second selection data identifiers can be the selection data content status (i.e. Figure 7c "Selected" in the second area 52) - the data content state is not selected (i.e. Figure 7c In addition, the sorting result of the selection status of the three second selected data identifiers can also be unselected data content state-unselected data content state-selected data content state. According to the sorting result, the selection status of each first selected data identifier in the first sub-region is set. That is, according to the position identifier size of each cell in each first sub-region, the selection status of each cell in the first sub-region is set in ascending or descending order to selected data content state-unselected data content state-unselected data content state; or the selection status of each cell in the first sub-region is set in sequence to unselected data content state-unselected data content state-selected data content state.
[0156] When the selection status of the data content corresponding to the plurality of second selection data identifiers is unique, the selection status of the data content in the first region is set to the selection status of the data content corresponding to the second selection data identifier.
[0157] In other embodiments, after executing step S130, the embodiments of the present invention may also receive a second operation on the data collaboration document, and determine whether the third area of the data collaboration document performing the second operation is located within the first area; if it is determined that the third area is located in the first area, the first area of the data collaboration document performing the first operation is re-determined.
[0158] The second operation may be an operation of adding a region or deleting a region in the data collaboration document. Taking a grid table as an example, the second operation may be an operation of adding a row or a column in the data collaboration document.
[0159] When determining whether the third area of the data collaboration document for the second operation is located within the first area, taking the grid table as an example, the coordinate positions of the first area and the third area can be obtained, and then based on the coordinate positions of the first area and the third area, it is determined whether the third area is located within the first area. If the judgment result is yes, that is, the third area is located within the first area, the step of determining the first area of the data collaboration document for the first operation is re-executed, that is, step S120 and subsequent steps are re-executed. If the judgment result is no, that is, the third area is not located within the first area, the process ends.
[0160] In some embodiments, in step S130, the current selection state of each first selection data mark of the first area can also be determined, and then the selection state of each first selection data mark of the first area is automatically set to be opposite to each corresponding current selection state. Wherein, each corresponding current selection state is the current selection state of the first selection data mark. Opposite refers to another selection state different from the current selection state.
[0161] like Figure 7d As shown, Figure 7dThe first area 51 includes three rows, and the first area 51 has three first selected data identifiers, and the three first selected data identifiers correspond to the three rows one by one. Exemplarily, it is determined that the current selected state of the first selected data identifier of the first row is the selected data content state, the current selected state of the first selected data identifier of the second row is the unselected data content state, and the current selected state of the first selected data identifier of the third row is the selected data content state, and then the selected state of the first selected data identifier of the first row is automatically set to the unselected data content state opposite to the current selected state of the first row, the selected state of the first selected data identifier of the second row is automatically set to the selected data content state opposite to the current selected state of the second row, and the selected state of the first selected data identifier of the third row is automatically set to the unselected data content state opposite to the current selected state of the third row.
[0162] For example, Figure 8 As shown in parts a and b, when the selection icon is checked, it indicates that the selected state is the data content state, and when it is not checked, it indicates that the data content state is not selected.
[0163] See also Figure 8 As shown in part a, the grid table includes 10 rows. The selection status of rows 1-3 and rows 5-7 is the selected data content status, and the selection status of rows 4 and rows 8-10 is the unselected data content status. In this case, get the current selection status of all rows. Automatically set the selection status of each row to the selection status opposite to the current selection status. The setting result is as follows Figure 8 As shown in part b, the current selection state of rows 1-3 and rows 5-7 is updated to the state of no data content selected, and the current selection state of rows 4 and rows 8-10 is set to the state of selected data content. The current selection state of multiple rows can be obtained by corresponding operations recorded in the UIL.
[0164] In some embodiments, updating the selection status of all data contents in the first area to the same status includes: determining associated data contents, and then automatically setting the selection status of the associated data contents to the same selection status.
[0165] The associated data content refers to data content having a computational relationship or being identical or similar or referencing each other, etc. The degree of association between data content can be determined according to the user's choice, and can be specifically set by those skilled in the art according to actual conditions, and the embodiments of the present invention do not limit this.
[0166] When determining the associated data content, it may be that in response to a target operation that specifies the target content, at least one region is determined in the data collaboration document, and the data content in the region is the same as the target content.
[0167] The target operation may include a click operation on a cell in a plurality of rows or columns in the grid table, and in response to the click operation, a content selection interface corresponding to the cell is popped up (eg, Fig. 9 As shown), the content selection interface displays options corresponding to the contents of all cells in the row or column where the cell is located, and the target operation also includes an operation for the user to select the corresponding option. The user selects the corresponding option in the content selection interface to select the content corresponding to the option as the target content.
[0168] like Fig. 9 As shown, the content selection interface displays the options corresponding to the contents of the cells contained in each cell in the column selected by the user (the column corresponding to the number A). That is, the contents of the cells in this column include "0001", "0002", "0003" and "0004" in the first to seventh rows. In this case, the options displayed in the content selection interface include the options corresponding to "0001", "0002", "0003" and "0004". The user can select from the above multiple options. For example, the user selects the option corresponding to "0004".
[0169] In some examples, when the data content in a cell is blank, the options displayed in the content selection interface may further include an option corresponding to “blank”.
[0170] In some examples, such as Fig. 9 As shown, the content selection interface may also display the number of cells corresponding to the content of each option. For example, "(2)" is displayed after "0001", indicating that the number of cells with the cell content of 0001 is 2.
[0171] In some examples, such as Fig. 9 As shown, the options displayed in the content selection interface also include an option corresponding to "Select All", that is, after selecting the option corresponding to "Select All", the data content in all cells in the column corresponding to the A number can be immediately selected as the associated data content.
[0172] In some embodiments, a column selection pop-up window may pop up in response to a user clicking a predetermined column selection control. In this case, the target column may be determined in response to the user specifying a target column among multiple columns in the column selection pop-up window, for example, specifying a target column among multiple columns in the column selection pop-up window.
[0173] For example, in response to a user clicking on a predetermined column selection control, a pop-up window such as Fig.10 As shown in the pop-up window, the user is prompted to "specify a column, and rows with the same content will be selected". The user specifies the column corresponding to the number A, and the column corresponding to the number A is the target column.
[0174] After that, specify the first row as the target row, and use the data content in the cell at the intersection of the target row and the target column as the target data content. After that, determine the cell with the same target data content in the target column, and select the row where the cell is located. Fig.11 As shown, when the user selects the first row, the second row is automatically selected.
[0175] Fig.12 is a functional block diagram of a data content processing device according to some embodiments of the present invention. Fig.12 As shown, the data content processing device 160 includes:
[0176] The receiving module 161 is used to receive a first operation on a data collaboration document.
[0177] The first operation may be a dragging operation on the mouse cursor, for example, the user long presses the left mouse button to drag the mouse cursor of the terminal interface; or the user long presses the right mouse button to drag the mouse cursor of the terminal interface; or the user scrolls the mouse wheel to drag the mouse cursor of the terminal interface; or the user controls and drags the mouse cursor on a touch display screen using a finger, a stylus, etc.
[0178] The determination module 162 is used to determine a first area of the data collaboration document for performing a first operation.
[0179] The area in the data collaboration document where the first operation is performed is taken as the first area. According to the start and stop of the first operation, it is determined that the first operation is started at the first position of the data collaboration document, and it is determined that the first operation is stopped at the second position of the data collaboration document, and the continuous interval formed by the first position to the second position is the first area. Exemplarily, taking the first operation as the dragging operation of the mouse cursor, the received user's long press of the left mouse button is taken as the start execution instruction of the first operation, and the position of the data collaboration document where the mouse cursor is currently located is taken as the starting position of the first area; the received user's release of the left mouse button is taken as the stop execution instruction of the first operation, and the position of the data collaboration document where the mouse cursor is currently located is taken as the ending position of the first area.
[0180] For example, if the mouse cursor is located at the row identifier "3" of the data collaboration document when executing the first operation instruction, the starting position is the third row; if the mouse cursor is located at the row identifier "15" of the data collaboration document when stopping the first operation instruction, the ending position is the fifteenth row, and thus the continuous area from the third row to the fifteenth row is the first area for performing the first operation. For another example, if the mouse cursor is located at the first cell corresponding to the second row and the first column of the data collaboration document when executing the first operation instruction, the starting position is the first cell; if the mouse cursor is located at the second cell corresponding to the 18th row and the first column of the data collaboration document when stopping the first operation instruction, the ending position is the second cell, and thus the continuous area from the first cell to the second cell is the first area for performing the first operation.
[0181] It should be noted that the first operation can be performed on any object in the rows, columns, and cells of the data collaboration document. However, the objects for which the first operation is performed each time must be of the same type, and the direction of the first operation each time is one of the horizontal and vertical directions. For example, if the start execution of the first operation instruction is performed on the rows in the above-mentioned rows, columns, and cells, then the corresponding stop execution of the first operation instruction is also performed on the rows, in which case the dragging direction of the mouse cursor is vertical; if the start execution of the first operation instruction is performed on three cells arranged adjacent to each other, then the corresponding stop execution of the first operation instruction is also performed on three cells arranged adjacent to each other, and the dragging direction of the mouse cursor can be horizontal or vertical, and so on.
[0182] The processing module 163 is used to update the selection status of all data contents in the first area to the same status; or update the selection status of part of the data contents in the first area to the selected data content status and update the selection status of another part of the data contents in the first area to the unselected data content status.
[0183] It can be seen that in the data content processing device provided by the embodiment of the present invention, the first operation on the data collaboration document can be received through the receiving module, and then the first area for performing the first operation can be determined in the data collaboration document through the determining module, and finally the selection status of the data content of the first area can be updated through the processing module. Specifically, updating the selection status of the data content of the first area can be to update the selection status of all the data content of the first area to the same state; it can also be to update the selection status of part of the data content of the first area to the selected data content state and update the selection status of another part of the data content of the first area to the unselected data content state. In this way, through one operation step (i.e., the first operation), the selection status of the batch data content in the first area can be flexibly and quickly adjusted, not only can the same selection status of the batch data content be updated through one operation step, but also the selection status of each data content part of the batch data content can be updated through one operation step, and the selection status of each data content part is different from each other. It can conveniently and efficiently select the data content required by the user, improve the work efficiency of the selection of batch data content, and increase the user's convenience.
[0184] Optionally, the processing module includes: a determination submodule for determining the second area in the data collaboration document; and a processing submodule for setting the selection status of the data content of the first area to be consistent with the selection status of the data content of the second area according to the selection status of the data content of the second area.
[0185] Optionally, the second area and the first area are arranged at intervals in the data collaboration document; or, the second area and the first area are arranged continuously in the data collaboration document; or, in the data collaboration document, the second area is included in the first area.
[0186] Optionally, the processing submodule is used to: obtain a second number of second optional data identifiers for the second area; wherein the data content of the second area is divided into a second number of parts, and each part corresponds one-to-one to a corresponding second optional data identifier; according to the second number, divide the first area into at least one first sub-area, and the first number of first optional data identifiers of each first sub-area is the same as the second number; and update the selection status of the first optional data identifier according to the selection status of the second optional data identifier and the arrangement order of the selection status.
[0187] Optionally, the processing submodule is used to: when the second area contains a second optional data identifier, divide the first area along the first direction or the second direction in units of each first sub-area containing a first optional data identifier; or, when the second area contains multiple second optional data identifiers, divide the first area along the first direction or the second direction in units of each first sub-area containing multiple first optional data identifiers; wherein the number of multiple second optional data identifiers is the same as the number of multiple first optional data identifiers.
[0188] Optionally, the data content processing device also includes: a judgment module, used to judge whether the selection status of multiple second selection data identifiers is unique; when the selection status of multiple second selection data identifiers is not unique, determine the coordinate position and selection status corresponding to each second selection data identifier; sort the selection status of multiple second selection data identifiers according to the coordinate position of each second selection data identifier, and set the selection status of each first selection data identifier in the first sub-area according to the sorting result.
[0189] Optionally, the processing module is used to: determine the current selection state of each first selection data identifier of the first area; and automatically set the selection state of each first selection data identifier of the first area to be opposite to each corresponding current selection state.
[0190] Optionally, the processing module is used to: determine the associated data content; and automatically set the selection status of the associated data content to the same selection status.
[0191] Optionally, the data content processing device also includes: a second operation receiving module, used to receive a second operation on the data collaboration document; an area judgment module, used to determine whether a third area of the data collaboration document performing the second operation is located within the first area; and in the case where it is determined that the third area is located in the first area, redetermining the first area of the data collaboration document performing the first operation.
[0192] Fig.13 FIG. 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention.
[0193] like Fig.13 As shown, the electronic device 100 includes a processor 101 and a memory 102, wherein the memory 102 is used to store an executable computer program, and the processor 101 is used to execute a method such as any of the above method embodiments under the control of the computer program.
[0194] The electronic device 100 may be a personal computer (PC).
[0195] Each module of the above data content processing device 160 may be implemented by the processor 101 in this embodiment executing a computer program stored in the memory 102, or may be implemented by other circuit structures, which is not limited here.
[0196] The present invention may be a system, a method and / or a computer program product. The computer program product may include a readable storage medium carrying computer readable program instructions for causing a processor to implement various aspects of the present invention.
[0197] A readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0198] The computer-readable program instructions described herein can be downloaded from a readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a readable storage medium in each computing / processing device.
[0199] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0200] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0201] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0202] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0203] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can 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 the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0204] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A data content processing method, characterized in that: include: receiving a first operation on a data collaboration document; Determining a first area of the data collaboration document for performing the first operation; updating the selection status of all data contents in the first region to the same status; or updating the selection status of part of the data contents in the first region to a selected data content status and updating the selection status of another part of the data contents in the first region to a non-selected data content status; The updating of the selection status of all data contents in the first area to the same status includes: Determine data content associated with the data content of the first area, and then automatically set the selection status of the associated data content to the same selection status, wherein the selection status includes at least one of a selected data content status and a non-selected data content status; The updating of the selection status of all data contents in the first region to the same status; or the updating of the selection status of part of the data contents in the first region to the selected data content status and the updating of the selection status of another part of the data contents in the first region to the unselected data content status, includes: determining a second region in the data collaboration document; According to the selection state of the data content of the second area, the selection state of the data content of the first area is set to be consistent with the selection state of the data content of the second area.
2. The method according to claim 1, characterized in that The second area and the first area are arranged at intervals in the data collaboration document; or, the second area and the first area are arranged continuously in the data collaboration document; or, in the data collaboration document, the second area is included in the first area.
3. The method according to claim 1 or 2, characterized in that: The step of setting the selection state of the data content in the first area to be consistent with the selection state of the data content in the second area according to the selection state of the data content in the second area includes: Acquire a second number of second optional data identifiers of the second area; wherein the data content of the second area is divided into the second number of parts, and each part corresponds to a corresponding second optional data identifier one by one; According to the second number, the first area is divided into at least one first sub-area, and the first number of the first selected data identifier of each first sub-area is the same as the second number; The selection state of the first selection data identifier is updated according to the selection state of the second selection data identifier and the arrangement order of the selection states.
4. The method according to claim 3, characterized in that The step of dividing the first area into at least one first sub-area according to the second number includes: In the case where the second area includes a second optional data identifier, the first area is divided along the first direction or the second direction in units where each first sub-area includes a first optional data identifier; Alternatively, when the second area contains multiple second optional data identifiers, the first area is divided along the first direction or the second direction in units of each first sub-area containing multiple first optional data identifiers; wherein the number of the multiple second optional data identifiers is the same as the number of the multiple first optional data identifiers.
5. The method according to claim 4, characterized in that Before dividing the first area along the first direction or the second direction with each first sub-area containing a plurality of first selected data identifiers as a unit, the method further includes: Determining whether the selection states of the plurality of second selection data identifiers are unique; In the case where the selection states of the plurality of second selection data identifiers are not unique, determining the coordinate position and selection state corresponding to each second selection data identifier; The selection states of the plurality of second selection data identifiers are sorted according to the coordinate position of each second selection data identifier, and the selection state of each first selection data identifier in the first sub-area is set according to the sorting result.
6. The method according to claim 1, characterized in that The updating of the selection status of all data contents of the first region to the same status; or updating the selection status of part of the data contents of the first region to a selected data content status and updating the selection status of another part of the data contents of the first region to a non-selected data content status, includes: Determine a current selection state of each first selection data identifier of the first area; The selection state of each first selection data mark of the first area is automatically set to be opposite to the corresponding each current selection state.
7. The method according to claim 1, characterized in that After the selection status of all data contents in the first region is updated to the same state; or after the selection status of part of the data contents in the first region is updated to the selected data content state and the selection status of another part of the data contents in the first region is updated to the unselected data content state, the method further includes: receiving a second operation on the data collaboration document; determining whether a third area of the data collaboration document for performing the second operation is located within the first area; In a case where it is determined that the third area is located in the first area, the first area of the data collaboration document for performing the first operation is re-determined.
8. A data content processing device, characterized in that: include: A receiving module, used for receiving a first operation on a data collaboration document; A determination module, used to determine a first area of the data collaboration document for performing the first operation; A processing module, used for updating the selection status of all data contents in the first area to the same status; Alternatively, the selection status of part of the data content in the first area is updated to a selected data content state and the selection status of another part of the data content in the first area is updated to a non-selected data content state; wherein the updating of the selection status of all the data content in the first area to the same state comprises: determining data content associated with the data content in the first area, and then automatically setting the selection status of the associated data content to the same selection status, wherein the selection status comprises at least one of a selected data content state and a non-selected data content state; Wherein, the processing module includes: A determination submodule, configured to determine a second region in the data collaboration document; The processing submodule is used to set the selection state of the data content of the first area to be consistent with the selection state of the data content of the second area according to the selection state of the data content of the second area.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 7.
10. 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 computer program implements the method according to any one of claims 1 to 7.
