WO2013163920A1 - 插入或删除电子表格中单元格或行列的方法及其装置 - Google Patents

插入或删除电子表格中单元格或行列的方法及其装置 Download PDF

Info

Publication number
WO2013163920A1
WO2013163920A1 PCT/CN2013/074201 CN2013074201W WO2013163920A1 WO 2013163920 A1 WO2013163920 A1 WO 2013163920A1 CN 2013074201 W CN2013074201 W CN 2013074201W WO 2013163920 A1 WO2013163920 A1 WO 2013163920A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
touch
columns
rows
touch point
Prior art date
Application number
PCT/CN2013/074201
Other languages
English (en)
French (fr)
Inventor
王晖
曾思洁
赵威
Original Assignee
珠海金山办公软件有限公司
北京金山办公软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 珠海金山办公软件有限公司, 北京金山办公软件有限公司 filed Critical 珠海金山办公软件有限公司
Priority to US14/531,961 priority Critical patent/US10198421B2/en
Publication of WO2013163920A1 publication Critical patent/WO2013163920A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Definitions

  • the present invention relates to the field of spreadsheet operation techniques on touch screen devices, and more particularly to a method of inserting or deleting cells or rows and columns in a spreadsheet and a device for inserting or deleting cells or rows in a spreadsheet.
  • the present invention provides a method of inserting or deleting cells or rows and columns in a spreadsheet and a device for inserting or deleting cells or rows in a spreadsheet.
  • a method of inserting or deleting cells or rows and columns in a spreadsheet including the following steps:
  • the method for inserting or deleting cells or rows and columns in a spreadsheet provided by the present invention simplifies the spreadsheet by touching the click and touch point by directly touching the characteristics of the object by touch information on the touch screen device.
  • the gesture recognition can be used to more intuitively insert and delete objects in the spreadsheet on the touch screen device, thereby improving efficiency.
  • an apparatus for inserting or deleting cells or rows and columns in a spreadsheet including an information acquisition module, an object determination module, an operation type judgment module, and an operation execution module, is also disclosed;
  • the information acquiring module is configured to acquire touch click information and touch point movement information on the touch screen;
  • the target determining module is configured to determine a target cell or a target row or column according to the touch click information on the acquired touch screen;
  • the operation type judging module is configured to determine, according to the touch point movement information on the touch screen and the preset operation type judgment logic, whether the operation to be performed is an insert operation or a delete operation;
  • the operation execution module is configured to determine the position and quantity of the cell to be inserted or deleted, or the position of the row or column to be inserted or deleted, according to the judgment result of the operation type judgment module and the touch point movement information on the acquired touch screen. And the number and perform the corresponding insert or delete operation.
  • the device for inserting or deleting cells or rows in a spreadsheet provided by the present invention simplifies the spreadsheet by touching the click and touch point by directly touching the characteristics of the object by touch information on the touch screen device.
  • the gesture recognition can be used to more intuitively insert and delete objects in the spreadsheet on the touch screen device, thereby improving efficiency.
  • FIG. 1 is a schematic flow chart of a method for inserting or deleting cells or rows in a spreadsheet according to the present invention
  • FIG. 2 is a schematic diagram showing the effect of inserting or deleting a cell or a row and column in a spreadsheet when inserting a cell;
  • FIG. 3 is a schematic diagram showing the effect of deleting a cell by applying a method of inserting or deleting a cell or a row and column in a spreadsheet;
  • FIG. 4 is a schematic diagram showing the effect of deleting a row by inserting or deleting a cell or a row and column in a spreadsheet
  • FIG. 5 is a schematic diagram showing the effect of inserting or deleting a cell or a row and column in a spreadsheet when inserting a column;
  • Figure 6 is a block diagram showing the structure of an apparatus for inserting or deleting cells or rows in a spreadsheet.
  • FIG. 1 is a schematic flow chart of a method for inserting or deleting cells or rows and columns in a spreadsheet according to the present invention.
  • the method of the present invention for inserting or deleting cells or rows and columns in a spreadsheet includes the following steps:
  • the basic click events on the Android device are divided into an ACTION_DOWN finger press event, an ACTION_MOVE finger move event, and an ACTION_UP finger release event.
  • Handler is a mechanism for sending and processing Messages in Android system, which can be used to record and process touch click events.
  • S102 Determine a target cell or a target row or column according to the touch click information on the acquired touch screen
  • the target cell or the target row or column is determined according to the touch click position on the touch screen
  • the preset time length may be selected to be 500 ms.
  • the touch click information on the touch screen is continuously acquired until the touch click duration on the touch screen exceeds the preset time length, and the touch click position is determined according to the touch click position.
  • the target row or column is determined according to the touch click position on the touch screen; otherwise, the target cell is determined according to the touch click position on the touch screen.
  • an ACTION_DOWN event is generated when a single finger is pressed on the touch screen of the Android device, and when the event is processed, the system sends a message to the Handler.
  • Delay LONG_PRESS for 500ms Message, if the message is not removed within 500ms, the system considers the touch click event to be a single-finger long press event. The message will record the coordinate position of this event after 500ms, and determine the target cell according to the touch click position.
  • the other finger presses an ACTION_POINTER_DOWN event, which generates an ACTION_POINTER_UP event when released.
  • the finger movement will generate an ACTION_MOVE event, from which the position of each touch point can be obtained separately.
  • the system sends a DBL_LONG_PRESS with a delay of 500ms to the Handler. Message, otherwise the system will remove the DBL_LONG_PRESS Message within 500ms.
  • the DBL_LONG_PRESS Message will record the coordinate position of the touch click event after 500ms, and determine the target row or column according to the touch click position.
  • the touch point movement information on the touch screen needs to be acquired.
  • the insertion and deletion operations of the cells and rows and columns in the spreadsheet are performed on the Android device.
  • mode 1 insert/delete cell down/up move mode, ie insert row or row cell
  • mode 2 insert/delete cell right/left move mode, ie insert column or column cell.
  • mode 1 and mode 2 can be switched.
  • the basic rule is as follows: If the current mode is 1, compared with the original starting position, if the current vertical displacement is less than a certain rating (such as 50 pixels), and horizontal When the displacement is greater than the vertical displacement, switch from mode 1 to mode 2; if the current mode is 2, compared with the original starting position, if the current horizontal displacement is less than a certain rating (such as 50 pixels), and the horizontal displacement is less than the vertical displacement Switch from mode 2 to mode 1.
  • a screenshot of a row to be moved can be generated when the finger moves. And according to the position of the finger, the screenshot is moved in real time, and the position and movement of the screenshot can represent the position and movement of the touch point on the touch screen.
  • two different insertion deletion modes can be set: mode 1: insert/delete line mode, at which time only the displacement in the vertical direction of the gesture is calculated; mode 2 : Insert/delete column mode, in which case only the displacement in the horizontal direction of the finger is calculated.
  • mode 1 and mode 2 can be switched.
  • the basic rules are as follows: If the current mode is 1, if the current screenshot is compared with the original position, the vertical displacement is less than a certain rating (such as 50 pixels), and the current record is recorded.
  • a certain rating such as 50 pixels
  • the distance calculation of two-finger movement adopts the following rules: in mode 1, only the displacement in the vertical direction is calculated, and in mode 2, only the displacement in the horizontal direction is calculated; If there is no obvious movement (the displacement is less than 10 pixels), the movement information is ignored; if there is one of the two fingers, there is no obvious movement (the displacement is less than 10 pixels), only the movement distance of the finger with another large displacement is calculated; The two fingers move at the same time, and the moving direction is the same, only the distance of the finger movement of the larger displacement is calculated; if the two fingers move at the same time, and the moving directions are different, the displacement difference is calculated as the final displacement.
  • the touch point movement information on the touch screen needs to be acquired through the above mode and mode switching.
  • the preset operation type determination logic includes: determining a direction of movement of the touch point on the touch screen according to the touch point movement information on the acquired touch screen; determining, according to the determined direction of the touch point movement on the touch screen, determining The action performed is an insert operation or a delete operation.
  • the insertion and deletion operations of the cells and the rows and columns in the spreadsheet are performed on the Android device.
  • the touch point movement information on the touch screen obtained in step S103 can determine the direction of the touch point movement on the touch screen, and then determine Whether to perform an insert or delete operation.
  • the operation to be performed is an insertion operation;
  • the direction in which the touch point moves on the touch screen moves to the left or moves upward, it is judged that the operation to be performed is a delete operation.
  • step S104 According to the determination result in step S104 and the touch point movement information on the acquired touch screen, in particular, according to the displacement of the touch point movement, the position and the number of cells to be inserted or deleted, or the row or column to be inserted or deleted may be determined. The location and number, then perform the appropriate insert or delete operation.
  • inserting and deleting cells and rows and columns in a spreadsheet on an Android device is an embodiment.
  • the finger is released to generate an ACTION_UP event, and the finger movement information is confirmed to be inserted. Or delete the cell location and number and change the data to complete the operation.
  • the finger release produces an ACTION_POINTER_UP event, and according to the finger movement information, confirms the position or number of rows or columns to be inserted or deleted, and changes the data completion operation.
  • the event is long pressed for two fingers, there is still a finger on the screen, which can be used to scroll the view area.
  • the target row or column is determined according to the touch click information on the acquired touch screen, and according to the determined direction of the touch point movement on the touch screen, it is determined whether the operation to be performed is an insert operation or a delete operation. You can determine whether to perform operations on rows or on columns by:
  • the position and number of columns to be inserted or deleted are determined, and a corresponding insertion or deletion operation is performed.
  • the method for inserting or deleting cells or rows and columns in a spreadsheet provided by the present invention simplifies the spreadsheet by touching the click and touch point by directly touching the characteristics of the object by touch information on the touch screen device.
  • the gesture recognition can be used to more intuitively insert and delete objects in the spreadsheet on the touch screen device, thereby improving efficiency.
  • FIG. 2 is a schematic diagram showing the effect of inserting a cell by inserting or deleting a cell or a row and column in a spreadsheet.
  • FIG. 3 is a schematic diagram of the effect of deleting a cell by inserting or deleting a cell or a row and column in the spreadsheet.
  • FIG. 4 is a schematic diagram of the effect of deleting a row by inserting or deleting a cell or a row and column in the spreadsheet.
  • Double-click select the row or column, and drag the finger up to delete the row above the selected row. Release your finger and end the operation. Multiple lines can also be deleted depending on the distance the finger is dragged.
  • FIG. 5 is a schematic diagram showing the effect of inserting or deleting a cell or a row and column in a spreadsheet when inserting a column by applying the present invention.
  • Double-click select the row or column, drag your finger to the right, and insert a column to the left of the selected column. Release your finger and end the operation. Multiple columns can also be inserted depending on the distance the finger is dragged.
  • FIG. 6 is a schematic structural diagram of an apparatus for inserting or deleting cells or rows and columns in an electronic table according to the present invention.
  • the device for inserting or deleting a cell or a row in a spreadsheet includes an information obtaining module 601, a target determining module 602, an operation type determining module 603, and an operation executing module 604;
  • the information acquiring module 601 is configured to acquire touch click information and touch point movement information on the touch screen;
  • the target determining module 602 is configured to determine a target cell or a target row or column according to the touch click information on the acquired touch screen;
  • the target determining module 602 is further configured to determine whether more than one touch point exists on the touch screen;
  • the target determining module 602 determines the target row or column according to the touch click position on the touch screen;
  • the target determination module 602 determines the target cell based on the touch click location on the touch screen.
  • the operation type judging module 603 is configured to determine, according to the touch point movement information on the touch screen and the preset operation type judgment logic, whether the operation to be performed is an insert operation or a delete operation;
  • the operation type judging module 603 is configured to determine a direction in which the touch point moves on the touch screen according to the touch point movement information on the touch screen; and further determine, according to the determined direction of the touch point movement on the touch screen, that the operation to be performed is an insertion operation. Still delete the operation.
  • the operation execution module 604 is configured to determine, according to the determination result of the operation type determination module and the touch point movement information on the acquired touch screen, the position and quantity of the cell to be inserted or deleted, or the row or column to be inserted or deleted. Location and quantity, and perform the appropriate insert or delete operations.
  • the target determining module 602 determines a target row or column according to the touch click information on the acquired touch screen, and the operation type determining module 603 determines that the operation to be performed is an insert operation according to the determined direction of the touch point movement on the touch screen.
  • the operation execution module 604 is configured to determine the position and number of lines to be inserted or deleted, and perform corresponding insertion or Delete operation
  • the operation execution module 604 is configured to determine the position and number of columns to be inserted or deleted, and perform a corresponding insertion or deletion operation.
  • the device for inserting or deleting cells or rows in a spreadsheet provided by the present invention simplifies the spreadsheet by touching the click and touch point by directly touching the characteristics of the object by touch information on the touch screen device.
  • the gesture recognition can be used to more intuitively insert and delete objects in the spreadsheet on the touch screen device, thereby improving efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

本发明公开了一种插入或删除电子表格中单元格或行列的方法,包括:获取触摸屏上的触摸点击信息;确定目标单元格或者目标行或列;获取触摸屏上的触摸点移动信息;根据预设的操作类型判断逻辑,判断执行插入操作还是删除操作;确定所要插入或删除的单元格或者行或列的位置和数量,并执行插入或删除操作。此外,还公开了一种插入或删除电子表格中单元格或行列的装置,包括信息获取模块、目标确定模块、操作类型判断模块和操作执行模块。本发明的方法及其装置可通过手势识别的方式简化电子表格中的操作,实现快速、直观地插入和删除单元格以及行列,提高了效率。

Description

插入或删除电子表格中单元格或行列的方法及其装置 技术领域
本发明涉及触摸屏设备上的电子表格操作技术领域,特别是涉及一种插入或删除电子表格中单元格或行列的方法和一种插入或删除电子表格中单元格或行列的装置。
背景技术
在触摸屏设备上的电子表格软件中,对单元格和行列的插入和删除操作属于高频度的操作。在触摸屏设备上,随着电子表格软件功能的增强和功能入口的增多,导致了插入和删除单元格以及行列等的高频操作更加复杂和难于实现。例如,现有的电子表格中对单元格和行列的插入和删除均需要通过多步操作才能完成。因此,目前的可运行于触摸屏设备上的电子表格软件无法像传统操作方式那样实现直观、快速地对单元格和行列进行插入和删除。
技术解决方案
   为解决上述存在的问题,本发明提供了一种插入或删除电子表格中单元格或行列的方法和一种插入或删除电子表格中单元格或行列的装置。
   一种插入或删除电子表格中单元格或行列的方法,包括以下步骤:
   获取触摸屏上的触摸点击信息;
   根据获取的触摸屏上的触摸点击信息,确定目标单元格或者目标行或列;
   获取触摸屏上的触摸点移动信息;
   根据获取的触摸屏上的触摸点移动信息和预设的操作类型判断逻辑,判断所要执行的操作是插入操作还是删除操作;
   根据上述判断结果和获取的触摸屏上的触摸点移动信息,确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,并执行相应的插入或删除操作。
   与一般技术相比,本发明所提供的插入或删除电子表格中单元格或行列的方法通过借助触摸屏设备上可以通过触摸信息直接操作对象的特性,通过触摸点击和触摸点移动的方式简化电子表格中的操作,实现快速、直观地插入和删除单元格以及行列。可通过手势识别在触摸屏设备上更直观地对电子表格内的对象进行插入和删除操作,提高了效率。
   此外,还公布了一种插入或删除电子表格中单元格或行列的装置,包括信息获取模块、目标确定模块、操作类型判断模块和操作执行模块;
   所述信息获取模块用于获取触摸屏上的触摸点击信息和触摸点移动信息;
   所述目标确定模块用于根据获取的触摸屏上的触摸点击信息,确定目标单元格或者目标行或列;
   所述操作类型判断模块用于根据获取的触摸屏上的触摸点移动信息和预设的操作类型判断逻辑,判断所要执行的操作是插入操作还是删除操作;
   所述操作执行模块用于根据操作类型判断模块的判断结果和获取的触摸屏上的触摸点移动信息,确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,并执行相应的插入或删除操作。
有益效果
与一般技术相比,本发明所提供的插入或删除电子表格中单元格或行列的装置通过借助触摸屏设备上可以通过触摸信息直接操作对象的特性,通过触摸点击和触摸点移动的方式简化电子表格中的操作,实现快速、直观地插入和删除单元格以及行列。可通过手势识别在触摸屏设备上更直观地对电子表格内的对象进行插入和删除操作,提高了效率。
附图说明
   图1是本发明插入或删除电子表格中单元格或行列的方法的示意流程图;
   图2是应用本发明插入或删除电子表格中单元格或行列的方法进行插入单元格时的效果示意图;
   图3是应用本发明插入或删除电子表格中单元格或行列的方法进行删除单元格时的效果示意图;
   图4是应用本发明插入或删除电子表格中单元格或行列的方法进行删除行时的效果示意图;
   图5是应用本发明插入或删除电子表格中单元格或行列的方法进行插入列时的效果示意图;
图6是本发明插入或删除电子表格中单元格或行列的装置的结构示意图。
本发明的实施方式
   为更进一步阐述本发明所采取的技术手段及取得的效果,下面结合附图及较佳实施例,对本发明的技术方案,进行清楚和完整的描述。
   请参阅图1,为本发明插入或删除电子表格中单元格或行列的方法的示意流程图。本发明插入或删除电子表格中单元格或行列的方法包括以下步骤:
   S101 获取触摸屏上的触摸点击信息;
   首先,要获取触摸屏上的触摸点击信息。
   以在Android设备上对电子表格内的单元格和行列进行插入和删除操作为一个实施例,Android设备上基本的点击事件分为ACTION_DOWN手指按下事件,ACTION_MOVE手指移动事件和ACTION_UP手指松开事件。Handler为Android系统下负责发送Message和处理Message的一种机制,可用来记录并处理触摸点击事件。
   S102 根据获取的触摸屏上的触摸点击信息,确定目标单元格或者目标行或列;
   优选的,如果触摸屏上的触摸点击持续时间超过预设时间长度,则根据触摸屏上的触摸点击位置,确定目标单元格或者目标行或列;
   作为其中一个实施例,所述预设时间长度可选取为500ms。
   优选的,如果触摸屏上的触摸点击持续时间没有超过预设时间长度,则继续获取触摸屏上的触摸点击信息,直至触摸屏上的触摸点击持续时间超过预设时间长度时,根据其触摸点击位置,确定目标单元格或者目标行或列。
   优选的,如果触摸屏上存在多于一个的触摸点,则根据触摸屏上的触摸点击位置,确定目标行或列;否则,根据触摸屏上的触摸点击位置,确定目标单元格。
   以在Android设备上对电子表格内的单元格和行列进行插入和删除操作为一个实施例,在Android设备触摸屏上单指按下时会产生一个ACTION_DOWN事件,处理该事件时,系统向Handler发送一个延迟500ms的LONG_PRESS Message,如果没有在500ms内移除该Message,则系统认为该触摸点击事件为一个单指长按事件。该Message会在500ms后记录下这个事件发生的坐标位置,并根据触摸点击位置确定目标单元格。在这500ms内,如果有ACTION_UP事件或者ACTION_POINTER_DOWN事件(其它手指的触摸按下事件)发生,又或者存在ACTION_MOVE事件发生的情况,并且这个ACTION_MOVE事件与ACTION_DOWN事件的坐标位置距离超过某值(例如16像素,该值可作为触屏手机上允许的正常手指抖动误差范围)时,则系统不认为这是一个长按事件,则从Handler中移除之前发送的LONG_PRESS Message。系统继续获取触摸屏上的触摸点击信息,直至触摸屏上的触摸点击持续时间超过500ms时,再根据触摸点击位置确定目标单元格。
   Android设备上,多指触摸时除第一个手指按下产生的ACTION_DOWN事件和最后一个手指松开时产生的ACNTION_UP事件外,其它手指按下会产生一个ACTION_POINTER_DOWN事件,松开时会产生一个ACTION_POINTER_UP事件,手指移动会产生ACTION_MOVE事件,从这些事件中可以分别获取各个触摸点的位置。
   ACTION_POINTER_DOWN事件产生时,从MotionEvent的getPointerCount()返回值是否为2,可判断是否是双指事件。若是双指事件则系统向Handler发送一个延迟500ms的DBL_LONG_PRESS Message,否则系统将在500ms内移除该DBL_LONG_PRESS Message。该DBL_LONG_PRESS Message会在500ms后记录下触摸点击事件发生的坐标位置,并根据触摸点击位置确定目标行或列。在这500ms内,如果有ACTION_UP事件、ACTION_POINTER_DOWN事件(即第三个手指的触摸按下事件)、ACTION_POINTER_UP事件发生,又或者有ACTION_MOVE事件发生,并且该ACTION_MOVE中两个触摸点的任何一点的坐标位置与ACTION_POINTER_DOWN事件中记录的对应坐标位置距离超过某值(例如16像素,可作为触屏手机上允许的正常手指抖动误差范围)时,系统不认为这是一个双指长按事件,从Handler中移除之前发送的LONG_PRESS Message,系统继续获取触摸屏上的多个触摸点的点击信息,直至触摸屏上的多个触摸点的点击持续时间超过500ms时,再根据触摸点击位置确定目标行或列。
   S103 获取触摸屏上的触摸点移动信息;
   确定了目标单元格或者目标行或列之后,需要获取触摸屏上的触摸点移动信息。
   以在Android设备上对电子表格内的单元格和行列进行插入和删除操作为一个实施例,对于单指长按事件,在手指移动过程中,根据手指的位置,有两种不同的插入删除模式,分别是模式1:插入/删除单元格下/上移动模式,即插入行或行单元格;模式2:插入/删除单元格右/左移动模式,即插入列或列单元格。
   根据手指当前位置,模式1和模式2可以进行切换,基本规则如下:如果当前为模式1,与原起始位置比较,若当前的垂直方向的位移小于某额定值(如50像素),并且水平位移大于垂直位移时,从模式1切换为模式2;如果当前为模式2,与原起始位置比较,若当前的水平方向的位移小于某额定值(如50像素),并且水平位移小于垂直位移时,从模式2切换为模式1。
   以在Android设备上对电子表格内的单元格和行列进行插入和删除操作为一个实施例,对于双指长按事件,可使在手指移动时产生一个要移动的行列的截图。并根据手指的位置,实时移动截图,则截图的位置和移动可代表触摸屏上触摸点的位置和移动。对于双指触摸事件,在手指移动过程中,根据截图的实际位置,可设置两种不同的插入删除模式:模式1:插入/删除行模式,此时仅计算手势垂直方向上的位移;模式2:插入/删除列模式,此时仅计算手指水平方向上的位移。
   根据截图的当前位置,模式1和模式2可以进行切换,基本规则如下:如果当前为模式1,若当前的截图与原始位置比较,垂直方向的位移小于某额定值(如50像素),记录当前的双指的位置,与后续的ACTION_MOVE比较,若比较得出手势产生了一个水平方向上的位移(大于某额定值, 如10像素),则从模式1切换为模式2;如果当前为模式2,若当前的截图与原始位置比较,水平方向的位移小于某额定值(如50像素),记录当前的双指的位置,与后续的ACTION_MOVE比较,若比较得出手势产生了一个垂直方向上的位移,则从模式2切换为模式1。
   在Android设备上,相比单指的移动,双指移动的距离计算采用以下规则:在模式1下,仅计算垂直方向上的位移,在模式2下,仅计算水平方向上的位移;若双指都没有明显移动(位移小于10像素),则忽略移动信息;若双指中,有一个手指未有明显(位移小于10像素)移动,仅计算另外一个较大位移的手指的移动距离;若双指同时移动,且移动方向相同,仅计算较大位移的手指移动的距离;若双指同时移动,且移动方向相异,计算位移差作为最终位移。
   在Android设备上,无论是触摸屏上存在单个触摸点,还是多个触摸点,均可通过上述的模式及模式切换需要获取触摸屏上的触摸点移动信息。
   S104 根据获取的触摸屏上的触摸点移动信息和预设的操作类型判断逻辑,判断所要执行的操作是插入操作还是删除操作;
   作为其中一个实施例,所述预设的操作类型判断逻辑包括:根据获取的触摸屏上的触摸点移动信息,判定触摸屏上触摸点移动的方向;根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作。
   以在Android设备上对电子表格内的单元格和行列进行插入和删除操作为一个实施例,通过步骤S103中获取的触摸屏上的触摸点移动信息,可判定触摸屏上触摸点移动的方向,进而判断是执行插入操作还是删除操作。
   根据与计算机中电子表格的用户习惯相匹配,作为其中一个实施例,如果判定的触摸屏上触摸点移动的方向为向右移动或者向下移动,则判断所要执行的操作是插入操作;如果判定的触摸屏上触摸点移动的方向为向左移动或者向上移动,则判断所要执行的操作是删除操作。
   S105 根据上述判断结果和获取的触摸屏上的触摸点移动信息,确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,并执行相应的插入或删除操作。
   根据步骤S104中的判断结果和获取的触摸屏上的触摸点移动信息,特别是根据触摸点移动的位移,可确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,然后执行相应的插入或删除操作。
   以在Android设备上对电子表格内的单元格和行列进行插入和删除操作为一个实施例,当为单指长按事件时,手指松开产生一个ACTION_UP事件,则根据手指移动信息,确认要插入或删除的单元格位置和数量,并改变数据完成操作。当为双指长按事件时,手指松开产生一个ACTION_POINTER_UP事件,则根据手指移动信息,确认要插入或删除的行或列位置和数量,并改变数据完成操作。当为双指长按事件时,此时还有一个手指在屏幕上,可通过此手指用来滚动视图区域。
   作为其中一个实施例,在所述根据获取的触摸屏上的触摸点击信息,确定目标行或列,以及根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作之后,可通过如下方式判断是对行执行操作还是对列执行操作:
   如果判定的触摸屏上触摸点移动的方向为向上移动或者向下移动,则确定所要插入或删除的行的位置和数量,并执行相应的插入或删除操作;
   如果判定的触摸屏上触摸点移动的方向为向左移动或者向右移动,则确定所要插入或删除的列的位置和数量,并执行相应的插入或删除操作。
   与一般技术相比,本发明所提供的插入或删除电子表格中单元格或行列的方法通过借助触摸屏设备上可以通过触摸信息直接操作对象的特性,通过触摸点击和触摸点移动的方式简化电子表格中的操作,实现快速、直观地插入和删除单元格以及行列。可通过手势识别在触摸屏设备上更直观地对电子表格内的对象进行插入和删除操作,提高了效率。
   请参阅图2,为应用本发明插入或删除电子表格中单元格或行列的方法进行插入单元格时的效果示意图。
   单指点击,选中单元格,手指向右拖动,在所选中单元格的左侧插入一个单元格。松开手指,结束操作。根据手指拖动的距离,也可插入多个单元格。
   请参阅图3,为应用本发明插入或删除电子表格中单元格或行列的方法进行删除单元格时的效果示意图。
   单指点击,选中单元格,手指向左拖动,删除所选中单元格左侧的一个单元格。松开手指,结束操作。根据手指拖动的距离,也可删除多个单元格。
   请参阅图4,为应用本发明插入或删除电子表格中单元格或行列的方法进行删除行时的效果示意图。
   双指点击,选中行或列,手指向上拖动,删除所选中行上方的一行。松开手指,结束操作。根据手指拖动的距离,也可删除多个行。
   请参阅图5,为应用本发明插入或删除电子表格中单元格或行列的方法进行插入列时的效果示意图。
   双指点击,选中行或列,手指向右拖动,在所选中列的左侧插入一列。松开手指,结束操作。根据手指拖动的距离,也可插入多个列。
   此外,还公布了一种插入或删除电子表格中单元格或行列的装置。
   请参阅图6,为本发明插入或删除电子表格中单元格或行列的装置的结构示意图。本发明插入或删除电子表格中单元格或行列的装置包括信息获取模块601、目标确定模块602、操作类型判断模块603和操作执行模块604;
   所述信息获取模块601用于获取触摸屏上的触摸点击信息和触摸点移动信息;
   所述目标确定模块602用于根据获取的触摸屏上的触摸点击信息,确定目标单元格或者目标行或列;
   所述目标确定模块602进一步用于判断触摸屏上是否存在多于一个的触摸点;
   如果触摸屏上存在多于一个的触摸点,则所述目标确定模块602根据触摸屏上的触摸点击位置,确定目标行或列;
   否则,所述目标确定模块602根据触摸屏上的触摸点击位置,确定目标单元格。
   所述操作类型判断模块603用于根据获取的触摸屏上的触摸点移动信息和预设的操作类型判断逻辑,判断所要执行的操作是插入操作还是删除操作;
   所述操作类型判断模块603用于根据获取的触摸屏上的触摸点移动信息,判定触摸屏上触摸点移动的方向;并进一步根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作。
   所述操作执行模块604用于根据操作类型判断模块的判断结果和获取的触摸屏上的触摸点移动信息,确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,并执行相应的插入或删除操作。
   在所述目标确定模块602根据获取的触摸屏上的触摸点击信息,确定目标行或列,以及所述操作类型判断模块603根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作之后,如果判定的触摸屏上触摸点移动的方向为向上移动或者向下移动,则所述操作执行模块604用于确定所要插入或删除的行的位置和数量,并执行相应的插入或删除操作;
   如果判定的触摸屏上触摸点移动的方向为向左移动或者向右移动,则所述操作执行模块604用于确定所要插入或删除的列的位置和数量,并执行相应的插入或删除操作。
   与一般技术相比,本发明所提供的插入或删除电子表格中单元格或行列的装置通过借助触摸屏设备上可以通过触摸信息直接操作对象的特性,通过触摸点击和触摸点移动的方式简化电子表格中的操作,实现快速、直观地插入和删除单元格以及行列。可通过手势识别在触摸屏设备上更直观地对电子表格内的对象进行插入和删除操作,提高了效率。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种 插入或删除电子表格中单元格或行列的方法,其特征在于,包括以下步骤:
    获取触摸屏上的触摸点击信息;
    根据获取的触摸屏上的触摸点击信息,确定目标单元格或者目标行或列;
    获取触摸屏上的触摸点移动信息;
    根据获取的触摸屏上的触摸点移动信息和预设的操作类型判断逻辑,判断所要执行的操作是插入操作还是删除操作;
    根据上述判断结果和获取的触摸屏上的触摸点移动信息,确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,并执行相应的插入或删除操作。
  2. 根据权利要求1所述的 插入或删除电子表格中单元格或行列的方法 ,其特征在于, 所述确定目标单元格或者目标行或列的步骤,包括以下步骤:
    如果触摸屏上的触摸点击持续时间超过预设时间长度,则根据触摸屏上的触摸点击位置,确定目标单元格或者目标行或列。
  3. 根据权利要求1所述的 插入或删除电子表格中单元格或行列的方法 ,其特征在于, 所述确定目标单元格或者目标行或列的步骤,包括以下步骤:
    如果触摸屏上存在多于一个的触摸点,则根据触摸屏上的触摸点击位置,确定目标行或列;
    否则,根据触摸屏上的触摸点击位置,确定目标单元格。
  4. 根据权利要求1所述的 插入或删除电子表格中单元格或行列的方法 ,其特征在于, 所述预设的操作类型判断逻辑包括:
    根据获取的触摸屏上的触摸点移动信息,判定触摸屏上触摸点移动的方向;
    根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作。
  5. 根据权利要求 4 所述的 插入或删除电子表格中单元格或行列的方法 ,其特征在于, 所述根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作的步骤,包括以下步骤:
    如果判定的触摸屏上触摸点移动的方向为向右移动或者向下移动,则判断所要执行的操作是插入操作;
    如果判定的触摸屏上触摸点移动的方向为向左移动或者向上移动,则判断所要执行的操作是删除操作。
  6. 根据权利要求 4 所述的 插入或删除电子表格中单元格或行列的方法 ,其特征在于, 在所述根据获取的触摸屏上的触摸点击信息,确定目标行或列,以及根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作两个步骤之后,包括以下步骤:
    如果判定的触摸屏上触摸点移动的方向为向上移动或者向下移动,则确定所要插入或删除的行的位置和数量,并执行相应的插入或删除操作;
    如果判定的触摸屏上触摸点移动的方向为向左移动或者向右移动,则确定所要插入或删除的列的位置和数量,并执行相应的插入或删除操作。
  7. 一种 插入或删除电子表格中单元格或行列的装置,其特征在于,包括信息获取模块、目标确定模块、操作类型判断模块和操作执行模块;
    所述信息获取模块用于获取触摸屏上的触摸点击信息和触摸点移动信息;
    所述目标确定模块用于根据获取的触摸屏上的触摸点击信息,确定目标单元格或者目标行或列;
    所述操作类型判断模块用于根据获取的触摸屏上的触摸点移动信息和预设的操作类型判断逻辑,判断所要执行的操作是插入操作还是删除操作;
    所述操作执行模块用于根据操作类型判断模块的判断结果和获取的触摸屏上的触摸点移动信息,确定所要插入或删除的单元格的位置和数量,或者所要插入或删除的行或列的位置和数量,并执行相应的插入或删除操作。
  8. 根据权利要求 7 所述的 插入或删除电子表格中单元格或行列的装置 ,其特征在于, 所述目标确定模块进一步用于判断触摸屏上是否存在多于一个的触摸点;
    如果触摸屏上存在多于一个的触摸点,则所述目标确定模块根据触摸屏上的触摸点击位置,确定目标行或列;
    否则,所述目标确定模块根据触摸屏上的触摸点击位置,确定目标单元格。
  9. 根据权利要求 7 所述的 插入或删除电子表格中单元格或行列的装置 ,其特征在于, 所述操作类型判断模块用于根据获取的触摸屏上的触摸点移动信息,判定触摸屏上触摸点移动的方向;
    并进一步根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作。
  10. 根据权利要求 9 所述的 插入或删除电子表格中单元格或行列的装置 ,其特征在于, 在所述目标确定模块根据获取的触摸屏上的触摸点击信息,确定目标行或列,以及所述操作类型判断模块根据判定的触摸屏上触摸点移动的方向,判断所要执行的操作是插入操作还是删除操作之后,如果判定的触摸屏上触摸点移动的方向为向上移动或者向下移动,则所述操作执行模块用于确定所要插入或删除的行的位置和数量,并执行相应的插入或删除操作;
    如果判定的触摸屏上触摸点移动的方向为向左移动或者向右移动,则所述操作执行模块用于确定所要插入或删除的列的位置和数量,并执行相应的插入或删除操作。
PCT/CN2013/074201 2012-05-04 2013-04-15 插入或删除电子表格中单元格或行列的方法及其装置 WO2013163920A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/531,961 US10198421B2 (en) 2012-05-04 2013-04-15 Method for inserting or deleting cells, rows or columns in spreadsheet and a device therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210138978.5 2012-05-04
CN201210138978.5A CN102637118B (zh) 2012-05-04 2012-05-04 插入或删除电子表格中单元格或行列的方法及其装置

Publications (1)

Publication Number Publication Date
WO2013163920A1 true WO2013163920A1 (zh) 2013-11-07

Family

ID=46621522

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074201 WO2013163920A1 (zh) 2012-05-04 2013-04-15 插入或删除电子表格中单元格或行列的方法及其装置

Country Status (3)

Country Link
US (1) US10198421B2 (zh)
CN (1) CN102637118B (zh)
WO (1) WO2013163920A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9996518B2 (en) 2016-08-08 2018-06-12 International Business Machines Corporation Inserting new elements in a tabular data structure

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9747270B2 (en) 2011-01-07 2017-08-29 Microsoft Technology Licensing, Llc Natural input for spreadsheet actions
CN102637118B (zh) 2012-05-04 2015-11-25 珠海金山办公软件有限公司 插入或删除电子表格中单元格或行列的方法及其装置
CN102968270A (zh) * 2012-11-01 2013-03-13 广东欧珀移动通信有限公司 一种数据删除方法及其终端设备
CN104077007A (zh) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 信息条目整理方法和系统
CN103268320A (zh) * 2013-04-18 2013-08-28 天脉聚源(北京)传媒科技有限公司 一种存储图像的方法及装置
US20140372856A1 (en) * 2013-06-14 2014-12-18 Microsoft Corporation Natural Quick Functions Gestures
US10664652B2 (en) 2013-06-15 2020-05-26 Microsoft Technology Licensing, Llc Seamless grid and canvas integration in a spreadsheet application
CN103699387B (zh) * 2013-12-27 2018-01-23 金蝶软件(中国)有限公司 表格处理方法和系统
JP2015138499A (ja) * 2014-01-24 2015-07-30 富士通株式会社 情報処理装置、入力制御方法及び入力制御プログラム
CN103941997B (zh) * 2014-03-17 2017-12-26 联想(北京)有限公司 一种表格编辑方法及装置
CN104007899B (zh) * 2014-05-22 2018-10-23 广州华多网络科技有限公司 一种滚动列表项的方法和装置
CN105988655B (zh) * 2015-02-09 2018-12-21 珠海金山办公软件有限公司 一种电子表格行列区域调整方法及装置
US11320983B1 (en) * 2018-04-25 2022-05-03 David Graham Boyers Methods and graphical user interfaces for positioning a selection, selecting, and editing, on a computing device running applications under a touch-based operating system
CN111666733B (zh) * 2019-02-20 2023-10-27 珠海金山办公软件有限公司 一种文档中的单元格处理方法和装置
CN111984170B (zh) * 2020-07-14 2022-06-10 维沃移动通信有限公司 表格输出方法、装置及电子设备
CN112241624A (zh) * 2020-10-26 2021-01-19 深圳市皓丽智能科技有限公司 表格控制方法、装置及计算机存储介质
CN115048028A (zh) * 2022-05-13 2022-09-13 长沙朗源电子科技有限公司 一种电子白板的智能表格的控制方法、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689179A (zh) * 2007-06-29 2010-03-31 微软公司 任务专用电子表格工作表
US20120013540A1 (en) * 2010-07-13 2012-01-19 Hogan Edward P A Table editing systems with gesture-based insertion and deletion of columns and rows
CN102637118A (zh) * 2012-05-04 2012-08-15 珠海金山办公软件有限公司 插入或删除电子表格中单元格或行列的方法及其装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549878B1 (en) * 1998-12-31 2003-04-15 Microsoft Corporation System and method for editing a spreadsheet via an improved editing and cell selection model
US8677117B2 (en) * 2003-12-31 2014-03-18 International Business Machines Corporation Remote management of boot application
US7496837B1 (en) * 2004-04-29 2009-02-24 Microsoft Corporation Structural editing with schema awareness
JP2006072628A (ja) * 2004-09-01 2006-03-16 Nippon Telegr & Teleph Corp <Ntt> 情報抽出装置
US8786559B2 (en) * 2010-01-06 2014-07-22 Apple Inc. Device, method, and graphical user interface for manipulating tables using multi-contact gestures
US8728361B2 (en) * 2010-07-01 2014-05-20 GM Global Technology Operating LLC Making nanostructured porous hollow spheres with tunable structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689179A (zh) * 2007-06-29 2010-03-31 微软公司 任务专用电子表格工作表
US20120013540A1 (en) * 2010-07-13 2012-01-19 Hogan Edward P A Table editing systems with gesture-based insertion and deletion of columns and rows
CN102637118A (zh) * 2012-05-04 2012-08-15 珠海金山办公软件有限公司 插入或删除电子表格中单元格或行列的方法及其装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9996518B2 (en) 2016-08-08 2018-06-12 International Business Machines Corporation Inserting new elements in a tabular data structure
US10025768B2 (en) 2016-08-08 2018-07-17 International Business Machines Corporation Inserting new elements in a tabular data structure
US10204094B2 (en) 2016-08-08 2019-02-12 International Business Machines Corporation Inserting new elements in a tabular data structure

Also Published As

Publication number Publication date
CN102637118A (zh) 2012-08-15
CN102637118B (zh) 2015-11-25
US20150161095A1 (en) 2015-06-11
US10198421B2 (en) 2019-02-05

Similar Documents

Publication Publication Date Title
WO2013163920A1 (zh) 插入或删除电子表格中单元格或行列的方法及其装置
WO2014119886A1 (en) Method and apparatus for multitasking
WO2013172607A1 (en) Method of operating a display unit and a terminal supporting the same
WO2013125804A1 (en) Method and apparatus for moving contents in terminal
WO2012028081A1 (zh) 一种移动终端及其触摸屏的显示信息处理方法和装置
WO2014008717A1 (zh) 一种触控设备的快捷功能设定方法
WO2013141464A1 (ko) 터치 기반의 입력제어 방법
WO2014067305A1 (zh) 一种联系人信息分组处理方法及装置
WO2013025063A2 (en) Method and terminal for executing application using touchscreen
EP3425491B1 (en) Data processing method and apparatus
WO2014113923A1 (zh) 基于触摸屏的物理按键模拟方法及装置
WO2012086957A2 (en) Method and apparatus for providing touch interface
WO2014044063A1 (zh) 一种触摸按键控制方法及装置
WO2014107005A1 (en) Mouse function provision method and terminal implementing the same
WO2020015704A1 (zh) 触摸控制方法及装置、存储介质、终端设备
WO2018090761A1 (zh) 一种显示界面排版调整方法及系统
WO2016082409A1 (zh) 终端控制方法及智能耳机
WO2012155709A1 (zh) 一种动态推送用户个人标签的方法和系统、存储介质
WO2019047218A1 (zh) 一种图形化编程方法、装置、计算机存储介质及视觉系统
WO2018035929A1 (zh) 一种验证码的处理方法及装置
WO2015143775A1 (zh) 一种触控示波器快速截屏的方法及装置
WO2015103839A1 (zh) 移动终端及其菜单项设置方法、装置
WO2015089993A1 (zh) 一种终端及触摸屏下实现批量操作的方法
WO2016023493A1 (zh) 人机交互界面对操作指令响应的控制方法及终端
WO2017101305A1 (zh) 用于智能手机的用户手册呼出方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13785274

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14531961

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13785274

Country of ref document: EP

Kind code of ref document: A1