CN105022558A - Method and system for adjusting frozen region in spreadsheet - Google Patents
Method and system for adjusting frozen region in spreadsheet Download PDFInfo
- Publication number
- CN105022558A CN105022558A CN201410153436.4A CN201410153436A CN105022558A CN 105022558 A CN105022558 A CN 105022558A CN 201410153436 A CN201410153436 A CN 201410153436A CN 105022558 A CN105022558 A CN 105022558A
- Authority
- CN
- China
- Prior art keywords
- line
- freezing
- frozen
- subunit
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及电子表格技术领域,特别是涉及一种调整电子表格中冻结区域的方法及系统。The invention relates to the technical field of electronic forms, in particular to a method and system for adjusting frozen areas in electronic forms.
背景技术Background technique
随着科技的发展,电子表格等办公软件成为了人们工作中不可或缺的重要软件。With the development of science and technology, office software such as spreadsheets has become an indispensable and important software in people's work.
通过窗格冻结功能,用户可以将电子表格中的某块区域进行冻结,从而在进行表格内容切换时仍能看到所冻结区域。为了帮助用户看清冻结区域,电子表格使用冻结线来表示冻结区域的边界。用户可以方便的对某行、某列或某块区域进行冻结。Through the pane freezing function, users can freeze a certain area in the spreadsheet, so that they can still see the frozen area when switching the content of the table. To help users see frozen areas, spreadsheets use frozen lines to denote the boundaries of frozen areas. Users can conveniently freeze a certain row, column or area.
但是,当用户需要调整冻结区域时,需要首先取消现有的冻结区域,然后再次进行冻结操作并选择自己所要冻结的区域才可以对冻结区域进行调整,操作较为繁琐,不利于冻结区域的快速调整。However, when the user needs to adjust the frozen area, he needs to cancel the existing frozen area first, and then perform the freezing operation again and select the area he wants to freeze to adjust the frozen area. The operation is cumbersome and is not conducive to the quick adjustment of the frozen area. .
发明内容Contents of the invention
本发明实施例的目的在于提供一种调整电子表格中冻结区域的方法及系统,以实现冻结区域的快速调整。The purpose of the embodiments of the present invention is to provide a method and system for adjusting frozen areas in an electronic form, so as to realize rapid adjustment of frozen areas.
为达到上述目的,本发明实施例公开了一种调整电子表格中冻结区域的方法,包括:In order to achieve the above purpose, the embodiment of the present invention discloses a method for adjusting the frozen area in the spreadsheet, including:
接收用户对电子表格中当前冻结区域的冻结线的拖动指令,根据所述拖动指令移动所述冻结线;receiving a user's drag instruction to the frozen line of the current frozen area in the spreadsheet, and moving the frozen line according to the drag instruction;
根据移动后的所述冻结线调整所述当前冻结区域。The current freezing area is adjusted according to the moving freezing line.
优选的,所述根据移动后的所述冻结线调整所述当前冻结区域,包括:Preferably, the adjusting the current freezing area according to the moving freezing line includes:
在根据所述拖动指令移动所述冻结线至可冻结区域外后,判断所述可冻结区域中是否还剩余有冻结线,如果是,则根据所剩余的冻结线调整当前冻结区域,否则,取消对所述当前冻结区域的冻结。After moving the freezing line out of the freezable area according to the dragging instruction, it is judged whether there is any remaining frozen line in the freezable area, if so, adjusting the current frozen area according to the remaining frozen line, otherwise, Unfreeze the currently frozen region.
优选的,所述接收用户对电子表格中当前冻结区域的冻结线的拖动指令,根据所述拖动指令移动所述冻结线,包括:Preferably, the receiving a user's drag instruction to the frozen line of the current frozen area in the spreadsheet, and moving the frozen line according to the drag instruction includes:
获得用户的操控点的位置;Obtain the position of the user's manipulation point;
根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;determining the distance between the manipulation point and the freezing line of the current freezing area in the spreadsheet according to the position of the manipulation point;
在所述距离小于预设距离阈值时,将与所述操控点的距离小于所述预设距离阈值的冻结线的状态由固定状态切换为可移动状态;When the distance is less than a preset distance threshold, switching the state of the freezing line whose distance from the control point is less than the preset distance threshold from a fixed state to a movable state;
跟随所述操控点的变化移动所述可移动状态的冻结线。The freeze line of the movable state is moved following the change of the manipulation point.
优选的,所述接收用户对电子表格中当前冻结区域的冻结线的拖动指令,根据所述拖动指令移动所述冻结线,包括:Preferably, the receiving a user's drag instruction to the frozen line of the current frozen area in the spreadsheet, and moving the frozen line according to the drag instruction includes:
获得用户的操控点的位置;Obtain the position of the user's manipulation point;
获得所述操控点维持位置不变的时长,根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;Obtaining the duration for which the control point maintains a constant position, and determining the distance between the control point and the freezing line of the current freezing area in the spreadsheet according to the position of the control point;
在所述距离小于预设距离阈值、且所述维持位置不变的时长不小于预设时长阈值时,将与所述操控点的距离小于所述预设距离阈值的冻结线的状态由固定状态切换为可移动状态;When the distance is less than a preset distance threshold and the duration of maintaining the position is not less than a preset duration threshold, the state of the freezing line whose distance from the control point is smaller than the preset distance threshold is changed from a fixed state switch to a movable state;
跟随所述操控点的变化移动所述可移动状态的冻结线。The freeze line of the movable state is moved following the change of the manipulation point.
优选的,所述跟随所述操控点的变化移动所述可移动状态的冻结线,包括:Preferably, the moving the frozen line in the movable state following the change of the control point includes:
确定变化后的操控点与变化前的操控点之间间隔的行数和列数;Determine the number of rows and columns between the manipulated point after the change and the manipulated point before the change;
确定所述可移动状态的冻结线的冻结属性,所述冻结属性包括行冻结和列冻结;determining a freeze attribute of the freeze line in the movable state, where the freeze attribute includes row freeze and column freeze;
在所述可移动状态的冻结线的冻结属性为行冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述行数所对应的距离;在所述可移动状态的冻结线的冻结属性为列冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述列数所对应的距离。When the freezing attribute of the frozen line in the movable state is line freezing, move the frozen line in the movable state in a direction perpendicular to the frozen line in the movable state, and the distance moved is the corresponding number of rows distance; when the freezing attribute of the frozen line in the movable state is column freezing, move the frozen line in the movable state in a direction perpendicular to the frozen line in the movable state, and the distance moved is the column The distance corresponding to the number.
一种调整电子表格中冻结区域的系统,包括:冻结线移动单元及冻结区域调整单元;A system for adjusting frozen areas in an electronic form, comprising: a freezing line moving unit and a freezing area adjusting unit;
所述冻结线移动单元,用于接收用户对电子表格中当前冻结区域的冻结线的拖动指令,根据所述拖动指令移动所述冻结线;The frozen line moving unit is configured to receive a user's drag instruction for the frozen line in the current frozen area in the spreadsheet, and move the frozen line according to the drag instruction;
所述冻结区域调整单元,用于根据移动后的所述冻结线调整所述当前冻结区域。The freezing area adjusting unit is configured to adjust the current freezing area according to the moved freezing line.
优选的,所述冻结区域调整单元,包括:判断子单元、调整子单元和解冻子单元,Preferably, the freezing area adjustment unit includes: a judging subunit, an adjusting subunit and an unfreezing subunit,
所述判断子单元,用于在所述冻结线移动单元根据所述拖动指令移动所述冻结线至可冻结区域外后,判断所述可冻结区域中是否还剩余有冻结线,如果是,则触发所述调整子单元,否则触发所述解冻子单元;The judging subunit is configured to judge whether there are still frozen lines remaining in the freezable area after the frozen line moving unit moves the frozen line out of the freezable area according to the drag instruction, and if so, then trigger the adjusting subunit, otherwise trigger the unfreezing subunit;
所述调整子单元用于根据所剩余的冻结线调整当前冻结区域;The adjustment subunit is used to adjust the current freezing area according to the remaining freezing line;
所述解冻子单元,用于取消对所述当前冻结区域的冻结。The unfreezing subunit is configured to unfreeze the currently frozen area.
优选的,所述冻结线移动单元,包括:位置获得子单元、距离确定子单元、第一状态切换子单元和移动子单元,Preferably, the freezing line moving unit includes: a position obtaining subunit, a distance determining subunit, a first state switching subunit and a moving subunit,
所述位置获得子单元,用于获得用户的操控点的位置;The position obtaining subunit is used to obtain the position of the user's manipulation point;
所述距离确定子单元,用于根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;The distance determination subunit is configured to determine the distance between the manipulation point and the freezing line of the current freezing area in the spreadsheet according to the position of the manipulation point;
所述第一状态切换子单元,用于在所述距离小于预设距离阈值时,将与所述操控点的距离小于所述预设距离阈值的冻结线的状态由固定状态切换为可移动状态;The first state switching subunit is configured to switch the state of the freezing line whose distance from the control point is less than the preset distance threshold from a fixed state to a movable state when the distance is less than a preset distance threshold ;
所述移动子单元,用于跟随所述操控点的变化移动所述可移动状态的冻结线。The moving subunit is configured to move the movable freezing line following the change of the manipulation point.
优选的,所述冻结线移动单元,包括:位置获得子单元、距离确定子单元、时长确定子单元、第二状态切换子单元和移动子单元,Preferably, the freezing line moving unit includes: a position obtaining subunit, a distance determining subunit, a duration determining subunit, a second state switching subunit and a moving subunit,
所述位置获得子单元,用于获得用户的操控点的位置;The position obtaining subunit is used to obtain the position of the user's manipulation point;
所述时长确定子单元,用于获得所述操控点维持位置不变的时长;The duration determination subunit is configured to obtain the duration for which the control point maintains its position;
所述距离确定子单元,用于根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;The distance determination subunit is configured to determine the distance between the manipulation point and the freezing line of the current freezing area in the spreadsheet according to the position of the manipulation point;
所述第二状态切换子单元,用于在所述距离小于预设距离阈值、且所述维持位置不变的时长不小于预设时长阈值时,将与所述操控点的距离小于所述预设距离阈值的冻结线的状态由固定状态切换为可移动状态;The second state switching subunit is configured to set the distance to the control point to be less than the preset distance threshold when the distance is less than the preset distance threshold and the time for maintaining the position is not less than the preset time length threshold. The state of the frozen line at the distance threshold is switched from a fixed state to a movable state;
所述移动子单元,用于跟随所述操控点的变化移动所述可移动状态的冻结线。The moving subunit is configured to move the movable freezing line following the change of the manipulation point.
优选的,所述移动子单元,包括:移动间隔确定单元、冻结属性确定单元和定向移动单元,Preferably, the moving subunit includes: a moving interval determining unit, a freezing attribute determining unit, and a directional moving unit,
所述移动间隔确定单元,用于确定变化后的操控点与变化前的操控点之间间隔的行数和列数;The movement interval determining unit is used to determine the number of rows and columns between the changed control point and the control point before the change;
所述冻结属性确定单元,用于确定所述可移动状态的冻结线的冻结属性,所述冻结属性包括行冻结和列冻结;The freezing attribute determining unit is configured to determine the freezing attribute of the movable freezing line, the freezing attribute includes row freezing and column freezing;
所述定向移动单元,用于在所述可移动状态的冻结线的冻结属性为行冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述行数所对应的距离;在所述可移动状态的冻结线的冻结属性为列冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述列数所对应的距离。The directional moving unit is configured to move the frozen line in the movable state in a direction perpendicular to the frozen line in the movable state when the freezing attribute of the frozen line in the movable state is row freezing, and the moved The distance is the distance corresponding to the number of rows; when the freezing attribute of the movable freezing line is column freezing, moving the movable freezing line in a direction perpendicular to the movable freezing line, The moved distance is the distance corresponding to the column number.
本发明实施例提供的一种调整电子表格中冻结区域的方法及系统,可以直接响应用户的拖动指令,将冻结线切换为可移动状态,然后跟随用户的拖动指令移动冻结线,根据移动后的冻结线调整当前冻结区域。因此,本发明无需用户在解冻后再次进行窗格冻结操作,操作更加方便,实现了冻结区域的快速调整,用户使用感受良好。The embodiment of the present invention provides a method and system for adjusting the frozen area in a spreadsheet, which can directly respond to the user's drag command, switch the frozen line to a movable state, and then follow the user's drag command to move the frozen line. After the freeze line adjusts the current freeze area. Therefore, the present invention does not require the user to perform pane freezing operation again after unfreezing, the operation is more convenient, quick adjustment of the frozen area is realized, and the user experience is good.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例提供的一种调整电子表格中冻结区域的方法的流程图;FIG. 1 is a flow chart of a method for adjusting frozen regions in an electronic form provided by an embodiment of the present invention;
图2为本发明实施例提供的一种冻结区域示意图;FIG. 2 is a schematic diagram of a frozen region provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种冻结区域示意图;FIG. 3 is a schematic diagram of another frozen region provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种冻结区域示意图;FIG. 4 is a schematic diagram of another frozen region provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种冻结区域示意图;FIG. 5 is a schematic diagram of another frozen region provided by an embodiment of the present invention;
图6为本发明实施例提供的另一种冻结区域示意图;FIG. 6 is a schematic diagram of another frozen region provided by an embodiment of the present invention;
图7为本发明实施例提供的另一种调整电子表格中冻结区域的方法的流程图;FIG. 7 is a flowchart of another method for adjusting frozen regions in an electronic form provided by an embodiment of the present invention;
图8为本发明实施例提供的一种调整电子表格中冻结区域的系统的结构示意图。FIG. 8 is a schematic structural diagram of a system for adjusting frozen regions in a spreadsheet according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
如图1所示,本发明实施例提供的一种调整电子表格中冻结区域的方法,可以包括:As shown in FIG. 1, a method for adjusting a frozen area in a spreadsheet provided by an embodiment of the present invention may include:
S100、接收用户对电子表格中当前冻结区域的冻结线的拖动指令,根据所述拖动指令移动所述冻结线;S100. Receive a user's drag instruction for the frozen line of the current frozen area in the spreadsheet, and move the frozen line according to the drag instruction;
其中,冻结线是冻结区域的边界标识线。在对一行或多行的单元格进行冻结时,冻结线将与水平的行分割线重合。在对一列或多列的单元格进行冻结时,冻结线将与垂直的列分割线重合。当然,也可以同时对一定行数的单元格和一定列数的单元格进行冻结,这时,电子表格中将存在两条冻结线,一条与水平的行分割线重合,一条与垂直的列分割线重合。如图2所示,当对行1、行2、行3、行4的单元格进行冻结时,电子表格中出现冻结线001,该冻结线001上方的区域即为当前冻结区域。如图3所示,当对列A的单元格进行冻结时,电子表格中出现冻结线002,该冻结线002左侧的区域即为当前冻结区域。如图4所示,当对行1、行2、行3、行4和列A的单元格同时进行冻结时,电子表格中同时出现冻结线001和冻结线002,冻结线001上方的区域和冻结线002左侧的区域的并集区域即为当前冻结区域。Wherein, the freezing line is a boundary identification line of the freezing area. When freezing one or more rows of cells, the freezing line will coincide with the horizontal row dividing line. When freezing one or more columns of cells, the freezing line will coincide with the vertical column dividing line. Of course, cells with a certain number of rows and cells with a certain number of columns can also be frozen at the same time. At this time, there will be two freezing lines in the spreadsheet, one coincides with the horizontal row dividing line, and the other coincides with the vertical column dividing line Lines coincide. As shown in FIG. 2 , when the cells in row 1, row 2, row 3, and row 4 are frozen, a freezing line 001 appears in the spreadsheet, and the area above the freezing line 001 is the current freezing area. As shown in FIG. 3 , when the cells in column A are frozen, a frozen line 002 appears in the spreadsheet, and the area to the left of the frozen line 002 is the current frozen area. As shown in Figure 4, when the cells in row 1, row 2, row 3, row 4, and column A are frozen at the same time, the frozen line 001 and the frozen line 002 appear in the spreadsheet at the same time, and the area above the frozen line 001 and The union area of the areas on the left side of the freezing line 002 is the current freezing area.
其中,S100可以有两种具体实施方式:Among them, S100 can have two specific implementation modes:
方式一、S100可以包括:Method 1. S100 may include:
获得用户的操控点的位置;Obtain the position of the user's manipulation point;
根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;determining the distance between the manipulation point and the freezing line of the current freezing area in the spreadsheet according to the position of the manipulation point;
在所述距离小于预设距离阈值时,将与所述操控点的距离小于预设距离阈值的冻结线的状态由固定状态切换为可移动状态;When the distance is less than a preset distance threshold, switching the state of the freezing line whose distance from the control point is less than the preset distance threshold from a fixed state to a movable state;
跟随所述操控点的变化移动所述可移动状态的冻结线。The freeze line of the movable state is moved following the change of the manipulation point.
其中,操控点可以为触摸点或光标所在点。当操控点距离冻结线较近时,就可以将冻结线切换为可移动状态,以方便用户进行移动。Wherein, the manipulation point may be a touch point or a point where a cursor is located. When the control point is close to the frozen line, the frozen line can be switched to a movable state to facilitate the user to move.
方式二、S100可以包括:Method 2. S100 may include:
获得用户的操控点的位置;Obtain the position of the user's manipulation point;
获得所述操控点维持位置不变的时长,根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;Obtaining the duration for which the control point maintains a constant position, and determining the distance between the control point and the freezing line of the current freezing area in the spreadsheet according to the position of the control point;
在所述距离小于预设距离阈值、且所述维持位置不变的时长不小于预设时长阈值时,将与所述操控点的距离小于预设距离阈值的冻结线的状态由固定状态切换为可移动状态;When the distance is less than a preset distance threshold and the duration of maintaining the position is not less than a preset duration threshold, the state of the freezing line whose distance from the control point is less than the preset distance threshold is switched from a fixed state to a Movable state;
跟随所述操控点的变化移动所述可移动状态的冻结线。The freeze line of the movable state is moved following the change of the manipulation point.
方式二与方式一的区别在于,方式二中冻结线需要在操控点在一段时间内维持位置不变时才变为可移动状态。例如:对于触摸屏设备而言,当用户长按冻结线后,冻结线变为可移动状态。The difference between method 2 and method 1 is that in method 2, the frozen line becomes movable only when the position of the control point remains unchanged for a period of time. For example: For a touch screen device, when the user presses and holds the frozen line, the frozen line becomes movable.
具体的,在方式一和方式二中,冻结线在切换为可移动状态后,冻结线可具有不同的显示效果以提示用户该冻结线可以移动。Specifically, in mode 1 and mode 2, after the frozen line is switched to a movable state, the frozen line may have different display effects to remind the user that the frozen line can be moved.
在上述两种方式中,跟随所述操控点的变化移动所述可移动状态的冻结线可以包括:In the above two manners, moving the frozen line in the movable state following the change of the control point may include:
确定变化后的操控点与变化前的操控点之间间隔的行数和列数;Determine the number of rows and columns between the manipulated point after the change and the manipulated point before the change;
确定所述可移动状态的冻结线的冻结属性,所述冻结属性包括行冻结和列冻结;determining a freeze attribute of the freeze line in the movable state, where the freeze attribute includes row freeze and column freeze;
在所述可移动状态的冻结线的冻结属性为行冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述行数所对应的距离;在所述可移动状态的冻结线的冻结属性为列冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述列数所对应的距离。When the freezing attribute of the frozen line in the movable state is line freezing, move the frozen line in the movable state in a direction perpendicular to the frozen line in the movable state, and the distance moved is the corresponding number of rows distance; when the freezing attribute of the frozen line in the movable state is column freezing, move the frozen line in the movable state in a direction perpendicular to the frozen line in the movable state, and the distance moved is the column The distance corresponding to the number.
其中,行冻结的冻结线与水平的行分割线重合,列冻结的冻结线与垂直的列分割线重合。用户拖动指令的拖动距离可为任意距离,但冻结线在移动时,需要按照行或列来进行移动,因此,冻结线移动的距离必然是行间距或列间距的整数倍,且移动方向必然为水平或垂直。Wherein, the freezing line of row freezing coincides with the horizontal row dividing line, and the freezing line of column freezing coincides with the vertical column dividing line. The dragging distance of the user's drag command can be any distance, but when the frozen line moves, it needs to move according to the row or column. Therefore, the moving distance of the frozen line must be an integer multiple of the row spacing or column spacing, and the moving direction Must be horizontal or vertical.
S200、根据移动后的所述冻结线调整所述当前冻结区域。S200. Adjust the current freezing area according to the moved freezing line.
如图5所示,在电子表格中同时出现冻结线001和冻结线002,冻结线001上方的区域和冻结线002左侧的区域的并集区域为当前冻结区域。用户的操控点位于两条冻结线的焦点,此时两条冻结线均切换为可移动状态。随后用户发出向下拖动的指令,此时由于仅有垂直方向的移动,因此冻结线002无法进行水平移动,只有冻结线001向下移动。As shown in FIG. 5 , the frozen line 001 and the frozen line 002 appear simultaneously in the spreadsheet, and the union area of the area above the frozen line 001 and the area to the left of the frozen line 002 is the current frozen area. The user's handle point is at the focus of the two frozen lines, and both frozen lines switch to a movable state. Then the user issues an instruction to drag downwards. At this time, since there is only movement in the vertical direction, the frozen line 002 cannot move horizontally, and only the frozen line 001 moves downward.
如图6所示,用户的手指停止拖动后,冻结线001与行10、行11的分割线重合,根据移动后的冻结线,可以调整当前冻结区域为:冻结线001上方的区域和冻结线002左侧的区域的并集区域。As shown in Figure 6, after the user's finger stops dragging, the frozen line 001 coincides with the dividing line of line 10 and line 11. According to the moved frozen line, the current frozen area can be adjusted to: the area above the frozen line 001 and the frozen area. The union region of the region to the left of line 002.
本发明实施例提供的一种调整电子表格中冻结区域的方法,可以直接响应用户的拖动指令,将冻结线切换为可移动状态,然后跟随用户的拖动指令移动冻结线,根据移动后的冻结线调整当前冻结区域。因此,本发明无需用户在解冻后再次进行窗格冻结操作,操作更加方便,实现了冻结区域的快速调整,用户使用感受良好。The embodiment of the present invention provides a method for adjusting the frozen area in the electronic form, which can directly respond to the user's drag command, switch the frozen line to a movable state, and then follow the user's drag command to move the frozen line, according to the moved Freeze Line adjusts the current frozen area. Therefore, the present invention does not require the user to perform pane freezing operation again after unfreezing, the operation is more convenient, quick adjustment of the frozen area is realized, and the user experience is good.
如图7所示,本发明实施例提供的另一种调整电子表格中冻结区域的方法中,图1所示实施例中的S200可以包括:As shown in FIG. 7, in another method for adjusting the frozen area in a spreadsheet provided by an embodiment of the present invention, S200 in the embodiment shown in FIG. 1 may include:
S210、在根据所述拖动指令移动所述冻结线至可冻结区域外后,判断所述可冻结区域中是否还剩余有冻结线,如果是,则执行S211,否则执行S212;S210. After moving the freezing line out of the freezable area according to the dragging instruction, judge whether there is still a frozen line in the freezable area, if yes, execute S211, otherwise execute S212;
S211、根据所剩余的冻结线调整当前冻结区域;S211. Adjust the current freezing area according to the remaining freezing line;
S212、取消对所述当前冻结区域的冻结。S212. Unfreeze the current frozen area.
其中,可冻结区域即为可编辑表格区,该可编辑表格区并不包括行号标示栏所在的行和列。当用户拖动冻结线到可冻结区域外时,则冻结线已失去作用,此时可以取消该冻结线。当电子表格中同时存在两条冻结线时,取消其中一条冻结线后,另一条冻结线所形成的冻结区域即为当前冻结区域。如果电子表格中仅存在一条冻结线,则取消该冻结线后,电子表格中将不再存在冻结线,因此可以取消对当前冻结区域的冻结。Wherein, the freezeable area is the editable table area, and the editable table area does not include the row and column where the row number label bar is located. When the user drags the frozen line out of the freezable area, the frozen line has lost its effect, and the frozen line can be canceled at this time. When there are two frozen lines in the spreadsheet, after one of the frozen lines is canceled, the frozen area formed by the other frozen line is the current frozen area. If there is only one frozen line in the spreadsheet, unfreezing the frozen line will no longer exist in the spreadsheet, so the current frozen area can be unfrozen.
相对于上述方法实施例,本发明还提供了一种调整电子表格中冻结区域的系统。Compared with the above method embodiment, the present invention also provides a system for adjusting the frozen area in the spreadsheet.
如图8所示,本发明实施例提供的一种调整电子表格中冻结区域的系统,可以包括:冻结线移动单元100及冻结区域调整单元200;As shown in FIG. 8 , a system for adjusting frozen areas in an electronic form provided by an embodiment of the present invention may include: a frozen line moving unit 100 and a frozen area adjusting unit 200;
所述冻结线移动单元100,用于接收用户对电子表格中当前冻结区域的冻结线的拖动指令,根据所述拖动指令移动所述冻结线;The frozen line moving unit 100 is configured to receive a user's drag instruction for the frozen line in the current frozen area in the spreadsheet, and move the frozen line according to the drag instruction;
其中,所述冻结线移动单元100可以有两种组成方式:Wherein, the freezing line moving unit 100 can be composed in two ways:
方式一、冻结线移动单元100可以包括:位置获得子单元、距离确定子单元、第一状态切换子单元和移动子单元,Mode 1, the freezing line moving unit 100 may include: a position obtaining subunit, a distance determining subunit, a first state switching subunit, and a moving subunit,
所述位置获得子单元,用于获得用户的操控点的位置;The position obtaining subunit is used to obtain the position of the user's manipulation point;
所述距离确定子单元,用于根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;The distance determination subunit is configured to determine the distance between the manipulation point and the freezing line of the current freezing area in the spreadsheet according to the position of the manipulation point;
所述第一状态切换子单元,用于在所述距离小于预设距离阈值时,将与所述操控点的距离小于预设距离阈值的冻结线的状态由固定状态切换为可移动状态;The first state switching subunit is configured to switch the state of the freezing line whose distance from the control point is less than a preset distance threshold from a fixed state to a movable state when the distance is less than a preset distance threshold;
所述移动子单元,用于跟随所述操控点的变化移动所述可移动状态的冻结线。The moving subunit is configured to move the movable freezing line following the change of the manipulation point.
方式二、冻结线移动单元100可以包括:位置获得子单元、距离确定子单元、时长确定子单元、第二状态切换子单元和移动子单元,Mode 2, the freezing line moving unit 100 may include: a position obtaining subunit, a distance determining subunit, a duration determining subunit, a second state switching subunit and a moving subunit,
所述位置获得子单元,用于获得用户的操控点的位置;The position obtaining subunit is used to obtain the position of the user's manipulation point;
所述时长确定子单元,用于获得所述操控点维持位置不变的时长;The duration determination subunit is configured to obtain the duration for which the control point maintains its position;
所述距离确定子单元,用于根据所述操控点的位置,确定所述操控点与电子表格中当前冻结区域的冻结线的距离;The distance determination subunit is configured to determine the distance between the manipulation point and the freezing line of the current freezing area in the spreadsheet according to the position of the manipulation point;
所述第二状态切换子单元,用于在所述距离小于预设距离阈值、且所述维持位置不变的时长不小于预设时长阈值时,将与所述操控点的距离小于预设距离阈值的冻结线的状态由固定状态切换为可移动状态;The second state switching subunit is configured to reduce the distance to the control point to less than a preset distance when the distance is less than a preset distance threshold and the time for maintaining the position is not less than a preset time threshold The state of the frozen line of the threshold is switched from a fixed state to a movable state;
所述移动子单元,用于跟随所述操控点的变化移动所述可移动状态的冻结线。The moving subunit is configured to move the movable freezing line following the change of the manipulation point.
上述两种方式中的移动子单元,可以包括:移动间隔确定单元、冻结属性确定单元和定向移动单元,The moving sub-units in the above two ways may include: a moving interval determining unit, a freezing attribute determining unit and a directional moving unit,
所述移动间隔确定单元,用于确定变化后的操控点与变化前的操控点之间间隔的行数和列数;The movement interval determining unit is used to determine the number of rows and columns between the changed control point and the control point before the change;
所述冻结属性确定单元,用于确定所述可移动状态的冻结线的冻结属性,所述冻结属性包括行冻结和列冻结;The freezing attribute determining unit is configured to determine the freezing attribute of the movable freezing line, the freezing attribute includes row freezing and column freezing;
所述定向移动单元,用于在所述可移动状态的冻结线的冻结属性为行冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述行数所对应的距离;在所述可移动状态的冻结线的冻结属性为列冻结时,向垂直所述可移动状态的冻结线的方向移动所述可移动状态的冻结线,所移动的距离为所述列数所对应的距离。The directional moving unit is configured to move the frozen line in the movable state in a direction perpendicular to the frozen line in the movable state when the freezing attribute of the frozen line in the movable state is row freezing, and the moved The distance is the distance corresponding to the number of rows; when the freezing attribute of the movable freezing line is column freezing, moving the movable freezing line in a direction perpendicular to the movable freezing line, The moved distance is the distance corresponding to the column number.
所述冻结区域调整单元200,用于根据移动后的所述冻结线调整所述当前冻结区域。The freezing area adjusting unit 200 is configured to adjust the current freezing area according to the moved freezing line.
在本发明其他实施例中,图8所示的冻结区域调整单元200,可以包括:判断子单元、调整子单元和解冻子单元,In other embodiments of the present invention, the freezing area adjusting unit 200 shown in FIG. 8 may include: a judging subunit, an adjusting subunit, and an unfreezing subunit,
所述判断子单元,用于在所述冻结线移动单元根据所述拖动指令移动所述冻结线至可冻结区域外后,判断所述可冻结区域中是否还剩余有冻结线,如果是,则触发所述调整子单元,否则触发所述解冻子单元;The judging subunit is configured to judge whether there are still frozen lines remaining in the freezable area after the frozen line moving unit moves the frozen line out of the freezable area according to the drag instruction, and if so, then trigger the adjusting subunit, otherwise trigger the unfreezing subunit;
所述调整子单元用于根据所剩余的冻结线调整当前冻结区域;The adjustment subunit is used to adjust the current freezing area according to the remaining freezing line;
所述解冻子单元,用于取消对所述当前冻结区域的冻结。The unfreezing subunit is configured to unfreeze the currently frozen area.
本发明实施例提供的一种调整电子表格中冻结区域的系统,可以直接响应用户的拖动指令,将冻结线切换为可移动状态,然后跟随用户的拖动指令移动冻结线,根据移动后的冻结线调整当前冻结区域。因此,本发明无需用户在解冻后再次进行窗格冻结操作,操作更加方便,实现了冻结区域的快速调整,用户使用感受良好。The embodiment of the present invention provides a system for adjusting the frozen area in the electronic form, which can directly respond to the user's drag command, switch the frozen line to a movable state, and then follow the user's drag command to move the frozen line, according to the moved Freeze Line adjusts the current frozen area. Therefore, the present invention does not require the user to perform pane freezing operation again after unfreezing, the operation is more convenient, quick adjustment of the frozen area is realized, and the user experience is good.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410153436.4A CN105022558B (en) | 2014-04-16 | 2014-04-16 | The method and system of frozen region in a kind of adjustment electrical form |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410153436.4A CN105022558B (en) | 2014-04-16 | 2014-04-16 | The method and system of frozen region in a kind of adjustment electrical form |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105022558A true CN105022558A (en) | 2015-11-04 |
| CN105022558B CN105022558B (en) | 2018-07-10 |
Family
ID=54412559
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410153436.4A Active CN105022558B (en) | 2014-04-16 | 2014-04-16 | The method and system of frozen region in a kind of adjustment electrical form |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105022558B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017177436A1 (en) * | 2016-04-15 | 2017-10-19 | 华为技术有限公司 | Method and apparatus for locking object in list, and terminal device |
| CN107515706A (en) * | 2017-08-23 | 2017-12-26 | 合肥龙图腾信息技术有限公司 | Multiple ranks Window-freezing system and its application method in a kind of same EXCEL file |
| CN110609993A (en) * | 2019-09-18 | 2019-12-24 | 北京字节跳动网络技术有限公司 | Table adjusting method and equipment |
| CN110968241A (en) * | 2018-09-30 | 2020-04-07 | 腾讯科技(深圳)有限公司 | Processing method and device of electronic form, computer readable storage medium and computer equipment |
| CN110968987A (en) * | 2018-09-30 | 2020-04-07 | 腾讯科技(深圳)有限公司 | Table display method and device, storage medium and electronic device |
| CN113625917A (en) * | 2021-07-29 | 2021-11-09 | 北京达佳互联信息技术有限公司 | Data display method and device, electronic equipment, storage medium and product |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101751223A (en) * | 2009-12-22 | 2010-06-23 | 深圳市五巨科技有限公司 | Method and device for displaying dynamic data of webpage form |
| CN101777063A (en) * | 2009-01-07 | 2010-07-14 | 陈敏广 | Method for realizing rapid classified access and utilization of literature by using electronic form as platform |
| US8533585B2 (en) * | 2006-10-03 | 2013-09-10 | Blackberry Limited | System and method for freezing columns and rows in a UI table |
-
2014
- 2014-04-16 CN CN201410153436.4A patent/CN105022558B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8533585B2 (en) * | 2006-10-03 | 2013-09-10 | Blackberry Limited | System and method for freezing columns and rows in a UI table |
| CN101777063A (en) * | 2009-01-07 | 2010-07-14 | 陈敏广 | Method for realizing rapid classified access and utilization of literature by using electronic form as platform |
| CN101751223A (en) * | 2009-12-22 | 2010-06-23 | 深圳市五巨科技有限公司 | Method and device for displaying dynamic data of webpage form |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017177436A1 (en) * | 2016-04-15 | 2017-10-19 | 华为技术有限公司 | Method and apparatus for locking object in list, and terminal device |
| CN108604161A (en) * | 2016-04-15 | 2018-09-28 | 华为技术有限公司 | A kind of method, apparatus and terminal device of locking list object |
| CN108604161B (en) * | 2016-04-15 | 2021-08-31 | 华为技术有限公司 | A method, device and terminal device for locking list objects |
| CN107515706A (en) * | 2017-08-23 | 2017-12-26 | 合肥龙图腾信息技术有限公司 | Multiple ranks Window-freezing system and its application method in a kind of same EXCEL file |
| CN110968241A (en) * | 2018-09-30 | 2020-04-07 | 腾讯科技(深圳)有限公司 | Processing method and device of electronic form, computer readable storage medium and computer equipment |
| CN110968987A (en) * | 2018-09-30 | 2020-04-07 | 腾讯科技(深圳)有限公司 | Table display method and device, storage medium and electronic device |
| CN110968241B (en) * | 2018-09-30 | 2022-03-01 | 腾讯科技(深圳)有限公司 | Processing method and device of electronic form, computer readable storage medium and computer equipment |
| CN110968987B (en) * | 2018-09-30 | 2022-05-20 | 腾讯科技(深圳)有限公司 | Table display method and device, storage medium and electronic device |
| CN110609993A (en) * | 2019-09-18 | 2019-12-24 | 北京字节跳动网络技术有限公司 | Table adjusting method and equipment |
| CN113625917A (en) * | 2021-07-29 | 2021-11-09 | 北京达佳互联信息技术有限公司 | Data display method and device, electronic equipment, storage medium and product |
| CN113625917B (en) * | 2021-07-29 | 2024-06-11 | 北京达佳互联信息技术有限公司 | Data display method, device, electronic equipment, storage medium and product |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105022558B (en) | 2018-07-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105022558B (en) | The method and system of frozen region in a kind of adjustment electrical form | |
| CN104360791B (en) | The method and apparatus removing the footmark of application icon | |
| CN104090720B (en) | A kind of method and device shown based on gesture operation adjustment terminal window | |
| CN102915201B (en) | A kind of one-handed performance method of giant-screen touch-control mobile phone | |
| CN103019604B (en) | Terminal and terminal control method | |
| CN102346662B (en) | Mobile terminal (MT) and method for realizing scrolling of user interface thereof | |
| US20150143285A1 (en) | Method for Controlling Position of Floating Window and Terminal | |
| CN104516658B (en) | A kind of method of one-handed performance screen of hand-held device | |
| CN103019589A (en) | Method for deleting list items in sliding manner | |
| CN103354581B (en) | Method and system for automatically adjusting mobile phone control with left or right hand | |
| KR20100130671A (en) | Apparatus and Method for Providing Selection Area in Touch Interface | |
| JP6065728B2 (en) | Quantity selection device and terminal | |
| CN107977148A (en) | method and device for moving cursor | |
| CN104331233A (en) | Portable terminal and content previewing method thereof | |
| CN104765541A (en) | Method and system for identifying whether left hand or right hand operates mobile phone | |
| CN103677567A (en) | Operation processing method for mobile terminal and mobile terminal | |
| CN103809853A (en) | Information processing method and electronic device | |
| CN102368195A (en) | Method and device for switching main screen of touch screen terminal as well as touch screen terminal | |
| US20140085223A1 (en) | Apparatus and method capable of switching displayed pictures | |
| CN106648398B (en) | Display control method and device | |
| CN106527955B (en) | Method and device for controlling page sliding | |
| CN103729109B (en) | A kind of interface display method and terminal | |
| CN103809886B (en) | A kind of cursor positioning method and mobile terminal | |
| CN105094396A (en) | Method and device for deleting elements based on touch screen | |
| WO2015096598A1 (en) | Page content selection method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province Applicant after: Zhuhai Kingsoft Office Software Co., Ltd. Applicant after: Beijing Kingsoft office software Limited by Share Ltd Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province Applicant before: Zhuhai Kingsoft Office Software Co., Ltd. Applicant before: Beijing Kingsoft WPS Office Co., Ltd. |
|
| COR | Change of bibliographic data | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |