Movatterモバイル変換


[0]ホーム

URL:


CN109992759B - Table object editing method and device, electronic equipment and storage medium - Google Patents

Table object editing method and device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN109992759B
CN109992759BCN201711479213.7ACN201711479213ACN109992759BCN 109992759 BCN109992759 BCN 109992759BCN 201711479213 ACN201711479213 ACN 201711479213ACN 109992759 BCN109992759 BCN 109992759B
Authority
CN
China
Prior art keywords
editable
table object
extracted
editing
instruction
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.)
Active
Application number
CN201711479213.7A
Other languages
Chinese (zh)
Other versions
CN109992759A (en
Inventor
黄露慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co LtdfiledCriticalBeijing Kingsoft Office Software Inc
Priority to CN201711479213.7ApriorityCriticalpatent/CN109992759B/en
Publication of CN109992759ApublicationCriticalpatent/CN109992759A/en
Application grantedgrantedCritical
Publication of CN109992759BpublicationCriticalpatent/CN109992759B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供了一种表格对象编辑方法、装置、电子设备及存储介质,本方案可以判断是否满足独立显示表格对象的预设条件;如果满足,生成独立可编辑页面;提取目标文档中待提取表格对象的内容和格式;在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象;然后在获得针对所述可编辑表格对象的目标编辑指令时;按照所述目标编辑指令,编辑所述可编辑表格对象。与现有技术相比,本方案中的可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求。

Embodiments of the present invention provide a method, device, electronic device and storage medium for editing table objects. This solution can determine whether the preset conditions for independently displaying table objects are met; if so, generate an independently editable page; and extract the content of the target document to be displayed. Extract the content and format of the table object; create and display on the independent editable page: an editable table object with the extracted content and format; then when obtaining a target editing instruction for the editable table object; according to the The target editing instruction is used to edit the editable table object. Compared with the existing technology, the content of the editable table object in this solution is the same as that of the table object to be extracted. The user can indirectly edit the table object to be extracted by editing the above editable table object, which satisfies Current editing requirements for table objects embedded in electronic documents.

Description

Translated fromChinese
表格对象编辑方法、装置、电子设备及存储介质Table object editing method, device, electronic device and storage medium

技术领域Technical field

本发明涉及计算机技术领域,特别是涉及一种表格对象编辑方法、装置、电子设备及存储介质。The present invention relates to the field of computer technology, and in particular to a form object editing method, device, electronic equipment and storage medium.

背景技术Background technique

为了能够简单明了的展现数据内容,在文字文档、演示文档、PDF(PortableDocument Format,便携式文档格式)文档等电子文档中,可以设置表格对象,把需要展现的数据内容放置到表格对象中,进而清楚简明的将数据内容展示给用户,如图1所示,文字文档中设置有一个表格对象。随着无纸化办公的普及,上述设置有表格对象的电子文档的使用十分普遍。In order to display the data content simply and clearly, in electronic documents such as text documents, presentation documents, PDF (Portable Document Format, Portable Document Format) documents, you can set up table objects, and place the data content that needs to be displayed into the table object, and then clearly Concisely display the data content to the user, as shown in Figure 1, a table object is set in the text document. With the popularity of paperless office, the use of the above-mentioned electronic documents with table objects is very common.

设置在上述电子文档中的表格对象为电子文档中的一部分,这些电子文档中针对表格对象通常不支持编辑服务,如,PDF文档中的表格无法被编辑;或者针对表格对象仅支持简单的编辑服务,如文字文档中的表格仅可以进行编辑字体、字号等操作,但无法进行重新排序操作。The table object set in the above electronic document is part of the electronic document. These electronic documents usually do not support editing services for table objects. For example, tables in PDF documents cannot be edited; or only simple editing services are supported for table objects. , for example, tables in text documents can only be edited with font, font size, etc., but cannot be reordered.

所以,目前存在对上述电子文档中的表格对象进行编辑的急切需求。Therefore, there is currently an urgent need to edit the table objects in the above-mentioned electronic documents.

发明内容Contents of the invention

本发明实施例的目的在于提供一种表格对象编辑方法、装置、电子设备及存储介质,以实现对电子文档中表格对象的编辑。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a table object editing method, device, electronic device and storage medium, so as to realize editing of table objects in electronic documents. The specific technical solutions are as follows:

为达上述目的,第一方面,本发明实施例提供了一种表格对象编辑方法,所述方法包括:In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for editing table objects. The method includes:

判断是否满足独立显示表格对象的预设条件;Determine whether the preset conditions for independent display of table objects are met;

如果满足,生成独立可编辑页面;If satisfied, generate an independent editable page;

提取目标文档中待提取表格对象的内容和格式;Extract the content and format of the table object to be extracted from the target document;

在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象;Create and display on said stand-alone editable page: an editable table object with the extracted content and formatting;

获得针对所述可编辑表格对象的目标编辑指令;Obtain a target editing instruction for the editable table object;

按照所述目标编辑指令,编辑所述可编辑表格对象。Edit the editable table object according to the target editing instruction.

可选的,所述目标编辑指令为排序指令;Optionally, the target editing instruction is a sorting instruction;

相应的,所述按照所述目标编辑指令,编辑所述可编辑表格对象的步骤,包括:Correspondingly, the step of editing the editable table object according to the target editing instruction includes:

按照所述排序指令,对所述可编辑表格对象进行排序。Sort the editable table objects according to the sorting instructions.

可选的,所述判断是否满足独立显示表格对象的预设条件的步骤,包括:Optionally, the step of determining whether the preset conditions for independently displaying table objects are met includes:

检测目标文档当前显示出来的内容中是否存在待提取表格对象;Detect whether there is a table object to be extracted in the currently displayed content of the target document;

如果存在,判定满足独立显示表格对象的预设条件。If it exists, it is determined that the preset conditions for independent display of table objects are met.

可选的,所述判断是否满足独立显示表格对象的预设条件的步骤,包括:Optionally, the step of determining whether the preset conditions for independently displaying table objects are met includes:

判断是否获得用户输入的针对目标文档中待提取表格对象的独立显示指令;Determine whether the independent display instruction input by the user for the table object to be extracted in the target document is obtained;

如果获得,判定满足独立显示表格对象的预设条件。If obtained, it is determined that the preset conditions for independent display of table objects are met.

可选的,在所述按照所述目标编辑指令,编辑所述可编辑表格对象的步骤之后,所述方法还包括:Optionally, after the step of editing the editable table object according to the target editing instruction, the method further includes:

将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象。Replace the table object to be extracted in the target document with the edited editable table object.

可选的,所述独立可编辑页面包括H5页面或者具有展示表格对象功能的客户端页面。Optionally, the independently editable page includes an H5 page or a client page with the function of displaying table objects.

第二方面,本发明实施例提供了一种表格对象编辑装置,所述装置包括:In a second aspect, embodiments of the present invention provide a table object editing device, which includes:

判断模块,用于判断是否满足独立显示表格对象的预设条件;The judgment module is used to judge whether the preset conditions for independent display of table objects are met;

生成模块,用于在所述判断模块的判断结果为是的情况下,生成独立可编辑页面;A generation module, configured to generate an independently editable page when the judgment result of the judgment module is yes;

提取模块,用于提取目标文档中待提取表格对象的内容和格式;Extraction module, used to extract the content and format of table objects to be extracted in the target document;

创建模块,用于在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象;a creation module for creating and displaying on said independent editable page: an editable table object with the extracted content and format;

获得模块,用于获得针对所述可编辑表格对象的目标编辑指令;Obtaining module, used to obtain target editing instructions for the editable table object;

编辑模块,用于按照所述目标编辑指令,编辑所述可编辑表格对象。An editing module, configured to edit the editable table object according to the target editing instruction.

可选的,所述目标编辑指令为排序指令;Optionally, the target editing instruction is a sorting instruction;

相应的,所述编辑模块,具体用于:Correspondingly, the editing module is specifically used for:

按照所述排序指令,对所述可编辑表格对象进行排序。Sort the editable table objects according to the sorting instructions.

可选的,所述判断模块,具体用于:Optional, the judgment module is specifically used for:

检测目标文档当前显示出来的内容中是否存在待提取表格对象;Detect whether there is a table object to be extracted in the currently displayed content of the target document;

如果存在,判定满足独立显示表格对象的预设条件。If it exists, it is determined that the preset conditions for independent display of table objects are met.

可选的,所述判断模块,具体用于:Optional, the judgment module is specifically used for:

判断是否获得用户输入的针对目标文档中待提取表格对象的独立显示指令;Determine whether the independent display instruction input by the user for the table object to be extracted in the target document is obtained;

如果获得,判定满足独立显示表格对象的预设条件。If obtained, it is determined that the preset conditions for independent display of table objects are met.

可选的,所述装置还包括:Optionally, the device also includes:

替换模块,用于在所述可编辑表格对象被编辑后,将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象。A replacement module, configured to replace the table object to be extracted in the target document with the edited editable table object after the editable table object is edited.

可选的,所述独立可编辑页面包括H5页面或者具有展示表格对象功能的客户端页面。Optionally, the independently editable page includes an H5 page or a client page with the function of displaying table objects.

第三方面,本发明实施例提供了一种电子设备,包括处理器和存储器,其中:In a third aspect, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein:

存储器,用于存放计算机程序;Memory, used to store computer programs;

处理器,用于执行存储器上所存放的程序时,实现上述任一表格对象编辑方法所述的方法步骤。The processor is used to implement the method steps described in any of the above table object editing methods when executing the program stored in the memory.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一表格对象编辑方法所述的方法步骤。In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any one of the table object editing methods described above is implemented. method steps.

第五方面,本发明实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一表格对象编辑方法所述的方法步骤。In a fifth aspect, embodiments of the present invention provide a computer program product containing instructions that, when run on a computer, cause the computer to execute the method steps described in any of the above table object editing methods.

第六方面,本发明实施例提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述任一表格对象编辑方法所述的方法步骤。In a sixth aspect, embodiments of the present invention provide a computer program that, when run on a computer, causes the computer to execute the method steps described in any of the above table object editing methods.

由以上可知,本发明实施例提供的方案中,可以判断是否满足独立显示表格对象的预设条件;如果满足,生成独立可编辑页面;提取目标文档中待提取表格对象的内容和格式;在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象;然后在获得针对所述可编辑表格对象的目标编辑指令时;按照所述目标编辑指令,编辑所述可编辑表格对象。It can be seen from the above that in the solution provided by the embodiment of the present invention, it can be determined whether the preset conditions for independently displaying table objects are met; if it is met, an independent editable page is generated; the content and format of the table object to be extracted in the target document are extracted; Create and display on the independently editable page: an editable table object with extracted content and format; then when obtaining a target editing instruction for the editable table object; edit the editable form object according to the target editing instruction. Table object.

与现有技术相比,本发明实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。Compared with the prior art, in the solution provided by the embodiment of the present invention, the editable table object is a table object with the content and format of the table object to be extracted, so the content of the editable table object is the same as the content of the table object to be extracted. Similarly, users can edit the table object to be extracted indirectly by editing the above editable table object, meeting the current editing requirements for table objects embedded in electronic documents; in addition, if the editable table object is edited, use The edited editable table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, any product or method implementing the present invention does not necessarily need to achieve all the above-mentioned advantages simultaneously.

附图说明Description of the drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

图1为设置有表格对象的文字文档的终端界面示意图;Figure 1 is a schematic diagram of the terminal interface of a text document with table objects;

图2为本发明实施例提供的一种表格对象编辑方法的流程示意图;Figure 2 is a schematic flow chart of a table object editing method provided by an embodiment of the present invention;

图3为本发明实施例涉及的展示有可编辑表格对象的独立可编辑页面的一种示意图;Figure 3 is a schematic diagram of an independent editable page showing an editable table object according to an embodiment of the present invention;

图4为为本发明实施例涉及的展示有可编辑表格对象的独立可编辑页面的另一种示意图;Figure 4 is another schematic diagram showing an independent editable page with editable table objects according to an embodiment of the present invention;

图5为本发明实施例提供的一种表格对象编辑装置的结构示意图;Figure 5 is a schematic structural diagram of a table object editing device provided by an embodiment of the present invention;

图6为本发明实施例提供的一种电子设备的结构示意图。Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below 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, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

为了能够实现电子文档中嵌入的表格对象的编辑操作,本发明提供了一种表格对象编辑方法、装置、电子设备及存储介质,下面首先对本发明提供的一种表格对象编辑方法进行详细介绍。In order to realize the editing operation of the table object embedded in the electronic document, the present invention provides a table object editing method, device, electronic device and storage medium. The table object editing method provided by the present invention is first introduced in detail below.

首先需要说明的是,本发明实施例提供的表格对象编辑方法可以应用于手机、电脑等终端,该终端可以打开前述包含有表格对象的电子文档,例如安装有PDF阅读器的手机,本发明实施例并不限定该终端的具体种类。另外,本发明实施例提供的方法可以是在终端打开下述目标文档的情况下执行的。First of all, it should be noted that the table object editing method provided by the embodiment of the present invention can be applied to terminals such as mobile phones and computers. The terminal can open the aforementioned electronic documents containing table objects, such as mobile phones equipped with PDF readers. The present invention implements The example does not limit the specific type of the terminal. In addition, the method provided by the embodiment of the present invention can be executed when the terminal opens the following target document.

本发明实施例提供的一种表格对象编辑方法,如图2所示,所述方法包括S101~S106:An embodiment of the present invention provides a table object editing method, as shown in Figure 2. The method includes S101 to S106:

S101:判断是否满足独立显示表格对象的预设条件。S101: Determine whether the preset conditions for independent display of table objects are met.

该预设条件可以是本发明实施例的终端是否需要执行下述步骤S102~S106的判断条件,如果满足该预设条件,终端执行下述步骤S102~S106,否则终端不执行下述步骤S102~S106。本发明实施例中,步骤S101的具体实现方式可以是多种多样,本发明实施例并不限定步骤S101的具体实现方式。The preset condition may be a judgment condition for whether the terminal in the embodiment of the present invention needs to perform the following steps S102 to S106. If the preset condition is met, the terminal performs the following steps S102 to S106. Otherwise, the terminal does not perform the following steps S102 to S106. S106. In the embodiment of the present invention, the specific implementation manner of step S101 may be various, and the embodiment of the present invention does not limit the specific implementation manner of step S101.

作为本发明实施例的一种可选实现方式,所述判断是否满足独立显示表格对象的预设条件(S101)的步骤,可以包括:As an optional implementation manner of the embodiment of the present invention, the step of determining whether the preset condition for independently displaying the table object (S101) is met may include:

检测目标文档当前显示出来的内容中是否存在待提取表格对象;Detect whether there is a table object to be extracted in the currently displayed content of the target document;

如果存在,判定满足独立显示表格对象的预设条件。If it exists, it is determined that the preset conditions for independent display of table objects are met.

目标文档可以为上述终端的显示界面上已被打开的文档,该目标文档的种类可以是文字文档,如金山软件的WPS(Word Processing System,文字处理系统)文字文档、微软的Word文档;该目标文档的种类也可以是演示文档,如金山软件的WPS演示文档、微软的PPT(PowerPoint)文档;该目标文档的种类还可以是PDF文档等,本发明实施例并不限定该目标文档的具体种类。The target document can be a document that has been opened on the display interface of the above-mentioned terminal, and the type of the target document can be a text document, such as Kingsoft's WPS (Word Processing System, word processing system) text document, Microsoft's Word document; the target document The type of document may also be a presentation document, such as Kingsoft's WPS presentation document, Microsoft's PPT (PowerPoint) document; the type of the target document may also be a PDF document, etc. The embodiment of the present invention does not limit the specific type of the target document .

例如,用户当前正通过终端查看一个PDF文档,则该PDF文档可以作为本发明实施例中的目标文档。For example, if the user is currently viewing a PDF document through the terminal, the PDF document can be used as the target document in this embodiment of the present invention.

在此需要说明的是,上述待提取表格对象可以是目标文档中完整的表格对象,也可以是目标文档内完整表格对象中的部分单元格所构成的表格对象。如图1所示,在文字文档中嵌有表格对象,其中,文字文档中除表格对象外的文字内容未在图中示出;图1中完整的表格对象可以作为本发明实施例中的待提取表格对象。It should be noted here that the table object to be extracted may be a complete table object in the target document, or a table object composed of some cells of the complete table object in the target document. As shown in Figure 1, a table object is embedded in a text document. The text content in the text document other than the table object is not shown in the figure. The complete table object in Figure 1 can be used as a waiting object in the embodiment of the present invention. Extract table objects.

而用户在查看目标文档的过程中,如果终端的显示界面仅显示出目标文档中一个完整表格对象的部分单元格,则已经显示的部分单元格构成的表格对象可以作为本发明实施例中的待提取表格对象;例如假设终端的显示界面仅显示图1中完整的表格对象的前10行单元格,则终端的显示界面上已经显示的前10行单元格构成的表格对象可以作为本发明实施例中的待提取表格对象。While the user is viewing the target document, if the display interface of the terminal only displays some cells of a complete table object in the target document, the table object composed of the displayed partial cells can be used as a table object to be viewed in the embodiment of the present invention. Extract the table object; for example, assuming that the display interface of the terminal only displays the first 10 rows of cells of the complete table object in Figure 1, the table object composed of the first 10 rows of cells that have been displayed on the display interface of the terminal can be used as an embodiment of the present invention. The table object to be extracted.

在本实现方式中,针对目标文档,终端可以实时检测目标文档中当前正显示在终端的显示界面上的内容中是否存在上述待提取表格对象,如果存在,则判定满足独立显示表格对象的预设条件。In this implementation, for the target document, the terminal can detect in real time whether the above-mentioned table object to be extracted exists in the content currently displayed on the terminal's display interface in the target document. If it exists, it is determined that the preset of independently displaying the table object is satisfied. condition.

可以理解,前述实现方式中,只要是目标文档中的待提取表格图像被显示出来,就可以直接判定满足独立显示表格对象的预设条件,但有些情况下,并不是目标文档中的每一个表格对象都需要被独立显示出来,例如,用户不需要对表格对象中的数据内容进行编辑等,所以作为本发明实施例的另一种可选实现方式,所述判断是否满足独立显示表格对象的预设条件(S101)的步骤,可以包括:It can be understood that in the aforementioned implementation method, as long as the table image to be extracted in the target document is displayed, it can be directly determined that the preset conditions for independent display of table objects are met. However, in some cases, not every table in the target document is The objects need to be displayed independently. For example, the user does not need to edit the data content in the table object. Therefore, as another optional implementation method of the embodiment of the present invention, the judgment is whether the predetermined requirement for independent display of the table object is met. The steps of setting conditions (S101) may include:

判断是否获得用户输入的针对目标文档中待提取表格对象的独立显示指令;如果获得,判定满足独立显示表格对象的预设条件。Determine whether the independent display instruction input by the user for the table object to be extracted in the target document is obtained; if obtained, determine whether the preset conditions for independent display of the table object are met.

用户输入上述独立显示指令的具体方式有很多,如第一种方式:上述终端实时检测目标文档当前被显示出来的内容中是否包括表格对象,如果检测到存在,则生成一个是否独立显示的提示信息,并在终端的显示界面显示出来,以使得用户在需要编辑所检测到的表格对象的情况下,输入针对目标文档中被检测到的表格对象的独立显示指令。There are many specific ways for users to input the above independent display instructions, such as the first way: the above terminal detects in real time whether the currently displayed content of the target document includes a table object, and if it detects its existence, generates a prompt message indicating whether it is independently displayed. , and is displayed on the display interface of the terminal, so that when the user needs to edit the detected table object, he can input an independent display instruction for the detected table object in the target document.

示例性的,终端检测到目标文档当前被显示出来的内容中包括表格对象A,则针对该表格对象生成一个是否独立显示的提示信息,并在终端的显示界面显示出来一个对话框:“当前显示的表格对象是否需要独立显示”,且该对话框的底部还设置有两个虚拟按钮“是”和“否”,用户看到该对话框后,如果点击虚拟按钮“是”,则终端获得用户输入的针对表格对象A的独立显示指令。For example, if the terminal detects that the currently displayed content of the target document includes table object A, it generates a prompt message for the table object whether to display it independently, and displays a dialog box on the terminal's display interface: "Currently displayed "Does the table object need to be displayed independently?" and there are two virtual buttons "Yes" and "No" at the bottom of the dialog box. After the user sees the dialog box, if he clicks the virtual button "Yes", the terminal will get the user The input independent display command for table object A.

再如第二种方式:上述终端实时检测目标文档当前被显示出来的内容中是否包括表格对象,如果检测到存在,则直接在终端显示界面中显示有该被检测到的表格对象所处区域内生成一个可点击的按钮,用户点击按钮后,终端直接获得用户输入的针对该被检测到的表格对象的独立显示指令。Another example is the second method: the above-mentioned terminal detects in real time whether the currently displayed content of the target document includes a table object. If the presence is detected, the area where the detected table object is located is directly displayed on the terminal display interface. A clickable button is generated. After the user clicks the button, the terminal directly obtains the independent display instruction input by the user for the detected table object.

又如第三种方式,用户在浏览上述目标文档的过程中,当终端的显示界面上显示有表格对象时,用户可以双击或者框选该表格对象,终端获得用户针对该表格对象的双击或者框选操作信号时,直接判定自身获得用户输入的针对该表格对象的独立显示指令。As another example, in the third method, when the user browses the above target document, when a table object is displayed on the display interface of the terminal, the user can double-click or frame-select the table object, and the terminal obtains the user's double-click or frame-select on the table object. When selecting the operation signal, it directly determines that it has obtained the independent display instruction for the table object input by the user.

当然,上述三种更具体的实现方式仅是对本发明实施例的示例性介绍,本发明实施例在此并不限定终端判断是否获得用户输入的针对目标文档中待提取表格对象的独立显示指令的具体实现方式。Of course, the above three more specific implementation methods are only exemplary introductions to the embodiments of the present invention. The embodiments of the present invention are not limited to the method by which the terminal determines whether to obtain the independent display instructions input by the user for the table object to be extracted in the target document. Specific implementation methods.

可以理解,与上一实现方式相同的是,本实现方式中,待提取表格对象可以是目标文档中完整的表格对象,如图1中被完整显示的表格;可选的,所述待提取表格对象也可以为所述目标文档内的完整表格对象中被用户选中的子表格对象。It can be understood that, the same as the previous implementation, in this implementation, the table object to be extracted can be a complete table object in the target document, such as the completely displayed table in Figure 1; optionally, the table to be extracted The object may also be a subtable object selected by the user among the complete table objects in the target document.

该子表格对象可以为目标文档内的完整表格对象中的部分单元格所构成的新的表格对象,例如,图1中完整的表格对象的前12行单元格可以组成一个新的表格对象,该新的表格对象属于上述目标文档内的完整表格对象,所以称之为的完整表格对象的子表格对象。The subtable object can be a new table object composed of some cells in the complete table object in the target document. For example, the first 12 rows of cells in the complete table object in Figure 1 can form a new table object. The new table object belongs to the complete table object in the above target document, so it is called a subtable object of the complete table object.

示例性的,目标文档当前显示有完整表格对象,该完整表格对象为有20行、6列的表格对象,用户在显示界面上利用鼠标框选了完整表格对象的前15行和前4列,则此时终端可以将该完整表格对象的前15行和前4列所构成的子表格对象作为本发明实施例中的待提取表格对象,并判定自身获得用户输入的针对目标文档中待提取表格对象的独立显示指令。For example, the target document currently displays a complete table object. The complete table object is a table object with 20 rows and 6 columns. The user uses the mouse to select the first 15 rows and the first 4 columns of the complete table object on the display interface. At this time, the terminal can use the subtable object composed of the first 15 rows and the first 4 columns of the complete table object as the table object to be extracted in the embodiment of the present invention, and determine that it has obtained the user input for the table to be extracted in the target document. Independent display instructions for objects.

如果步骤S101的判断结果为是,执行步骤S102:生成独立可编辑页面。If the determination result in step S101 is yes, step S102 is executed: generate an independently editable page.

独立可编辑页面可以是指独立且区分于显示目标文档的页面,需要注意的是,该独立可编辑页面需要被用来创建表格对象,所以该独立可编辑页面应该为可以支持创建并展示表格对象的页面。An independent editable page can refer to a page that is independent and distinct from the target document displayed. It should be noted that the independent editable page needs to be used to create table objects, so the independent editable page should be able to support the creation and display of table objects. page.

本发明实施例中,所述独立可编辑页面可以包括H5页面或者具有展示表格对象功能的客户端页面。其中,H5也称为Html(超文本标记语言)5。In this embodiment of the present invention, the independently editable page may include an H5 page or a client page with the function of displaying table objects. Among them, H5 is also called Html (Hypertext Markup Language) 5.

上述具有展示表格对象功能的客户端页面为一种客户端的页面,并且该客户端具有展示表格对象的功能,如该客户端为金山软件的表格软件等常用的试算表软件,本发明实施例并不限定该客户端的具体种类。The above-mentioned client page with the function of displaying table objects is a client page, and the client has the function of displaying table objects. For example, the client is commonly used spreadsheet software such as Kingsoft's table software. Embodiments of the present invention The specific type of client is not limited.

S103:提取目标文档中待提取表格对象的内容和格式。S103: Extract the content and format of the table object to be extracted in the target document.

其中,待提取表格对象中的内容可以理解为待提取表格对象中的文字(包括数字)内容,待提取表格对象中的格式可以理解为待提取表格对象的行高、列高等格式,本发明实施例并不限定该待提取表格对象的内容和格式所指代的具有含义,仅需要保证终端可以按照待提取表格对象的内容和格式构建出与待提取表格对象展示内容相同的表格对象即可。Among them, the content in the table object to be extracted can be understood as the text (including numbers) content in the table object to be extracted, and the format in the table object to be extracted can be understood as the row height, column height and other formats of the table object to be extracted. The present invention implements This example does not limit the meaning of the content and format of the table object to be extracted. It only needs to ensure that the terminal can construct a table object with the same display content as the table object to be extracted according to the content and format of the table object to be extracted.

S104:在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象。S104: Create and display on the independent editable page: an editable table object with extracted content and format.

可以理解,可编辑表格对象中包含的文字内容与待提取表格对象中包含的文字内容相同,例如,图1中的表格对象为本发明实施例中的待提取表格对象,图2中的表格对象为本发明实施例中的可编辑表格对象,可以发现,虽然待提取表格对象与可编辑表格对象是处于不同页面上的表格对象,但是二者所显示的文字内容相同。另外,该可编辑表格对象支持编辑,用户可以输入编辑指令对该其进行相应的编辑操作。It can be understood that the text content contained in the editable table object is the same as the text content contained in the table object to be extracted. For example, the table object in Figure 1 is the table object to be extracted in the embodiment of the present invention, and the table object in Figure 2 Regarding the editable table object in the embodiment of the present invention, it can be found that although the table object to be extracted and the editable table object are table objects on different pages, the text content displayed by them is the same. In addition, the editable table object supports editing, and the user can enter editing instructions to perform corresponding editing operations on it.

S105:获得针对所述可编辑表格对象的目标编辑指令。S105: Obtain the target editing instruction for the editable table object.

该目标编辑指令通常可以是用户输入的、编辑上述可编辑表格对象的编辑指令,本发明实施例中,该目标编辑指令可以是针对可编辑表格对象的任何种类编辑指令,如调整字体、调整字号、合并单元格、插入文字或修改文字的指令等,本发明实施例并不限该目标编辑指令的具体种类。The target editing instruction can usually be an editing instruction input by the user to edit the above-mentioned editable table object. In the embodiment of the present invention, the target editing instruction can be any type of editing instruction for the editable table object, such as adjusting fonts and font sizes. , merge cells, insert text or modify text instructions, etc. The embodiment of the present invention is not limited to the specific type of the target editing instruction.

示例1,上述可编辑表格对象被显示出来后,可编辑表格对象中文字的字号为8磅,为了能够更清楚的看到可编辑表格对象中的文字内容,用户在界面上点击选择字体为“10磅”,则终端获得针对所述可编辑表格对象的目标编辑指令,且该目标编辑指令为:将可编辑表格对象中的文字字号修改为“10磅”的编辑指令。Example 1: After the above editable table object is displayed, the font size of the text in the editable table object is 8 points. In order to see the text content in the editable table object more clearly, the user clicks on the interface to select the font " "10 points", then the terminal obtains a target editing instruction for the editable table object, and the target editing instruction is an editing instruction to modify the text font size in the editable table object to "10 points".

示例2,上述可编辑表格对象被显示出来后,用户在可编辑表格对象中的单元格1中输入文字“金山”,则终端获得针对可编辑表格对象的目标编辑指令,且该目标编辑指令为:将在可编辑表格对象中的单元格1中插入文字“金山”的编辑指令。Example 2: After the above editable table object is displayed, the user enters the text "Jinshan" in cell 1 of the editable table object, and the terminal obtains the target editing instruction for the editable table object, and the target editing instruction is : An editing command that will insert the text "Jinshan" into cell 1 in the editable table object.

S106:按照所述目标编辑指令,编辑所述可编辑表格对象。S106: Edit the editable table object according to the target editing instruction.

按照目标编辑指令编辑该可编辑表格对象后,上述独立可编辑页面即显示着被编辑后的可编辑表格对象。如上述示例1,按照目标编辑指令编辑该可编辑表格对象后,被编辑的可编辑表格对象中的文字的字号为10磅;再如上述示例2,按照目标编辑指令编辑该可编辑表格对象后,被编辑的可编辑表格对象中,单元格1中被插入文字“金山”。After editing the editable table object according to the target editing instructions, the above-mentioned independent editable page displays the edited editable table object. As in the above example 1, after editing the editable table object according to the target editing instructions, the font size of the edited text in the editable table object is 10 points; as in the above example 2, after editing the editable table object according to the target editing instructions , in the edited editable table object, the text "Jinshan" is inserted into cell 1.

可以理解,本发明实施例中虽然最终被编辑的表格对象为该可编辑表格对象,但是该可编辑表格对象中的内容与前述待提取表格对象相同,所以用户通过编辑该可编辑表格对象,即等效于间接编辑了上述待提取表格对象。It can be understood that in the embodiment of the present invention, although the final edited table object is the editable table object, the content in the editable table object is the same as the aforementioned table object to be extracted, so the user edits the editable table object, that is, It is equivalent to indirectly editing the above table object to be extracted.

另外,用户在查看完该可编辑表格对象后,可以关闭上述独立可编辑页面,进而继续查看目标文档中的其他内容。In addition, after viewing the editable table object, the user can close the above independent editable page and continue to view other content in the target document.

本发明实施例中,为了达到直接编辑上述待提取表格对象的效果,在所述按照所述目标编辑指令,编辑所述可编辑表格对象(S106)的步骤之后,所述方法还可以包括:In the embodiment of the present invention, in order to achieve the effect of directly editing the table object to be extracted, after the step of editing the editable table object (S106) according to the target editing instruction, the method may further include:

将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象。Replace the table object to be extracted in the target document with the edited editable table object.

即在本发明实施例中,在上述目标文档中,用编辑后的可编辑表格对象完全替换掉原有的待提取表格对象,完成对待提取表格对象的直接编辑。That is, in the embodiment of the present invention, in the above target document, the original table object to be extracted is completely replaced with the edited editable table object, thereby completing the direct editing of the table object to be extracted.

示例性的,上述目标文档为PDF文档,用户发现待提取表格对象中存在错别字“唱哥”,则用户可以针对待提取表格对象所对应可编辑表格对象输入将“唱哥”替换为“唱歌”的目标编辑指令,按照该目标编辑指令,编辑该可编辑表格对象后,可编辑表格对象中原来的“唱哥”被替换为“唱歌”,此时可以将目标文档中的待提取表格对象替换为:编辑后的可编辑表格对象。For example, if the above target document is a PDF document, and the user finds that there is a typo in the table object to be extracted, "Change", the user can enter the editable form object corresponding to the table object to be extracted and replace "Change" with "Singing". According to the target editing instruction, after editing the editable table object, the original "Singing Brother" in the editable table object is replaced with "Singing". At this time, the table object to be extracted in the target document can be replaced. Is: the edited editable table object.

可选的,在可编辑表格对象被编辑后,终端可以直接自动执行上述将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象的步骤;而作为另一种可选实现方式,终端可以在接收到用户发送的替换指令后,才执行上述将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象的步骤。Optionally, after the editable table object is edited, the terminal can directly and automatically perform the above steps of replacing the table object to be extracted in the target document with: the edited editable table object; and as another method In an optional implementation, the terminal may perform the above step of replacing the table object to be extracted in the target document with the edited editable table object after receiving the replacement instruction sent by the user.

例如,可编辑表格对象被编辑后,上述独立可编辑页面上生成并显示“是否替换文档中的表格对象”的提示框,该提示框下还有虚拟按钮“是”和“否”,用户点击“是”则终端接收到替换指令,执行上述将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象的步骤。For example, after the editable table object is edited, a prompt box "Do you want to replace the table object in the document?" is generated and displayed on the independent editable page. There are also virtual buttons "Yes" and "No" under the prompt box. The user clicks "Yes", the terminal receives the replacement instruction and performs the above steps of replacing the table object to be extracted in the target document with the edited editable table object.

作为本发明实施例中一种可选的实现方式,所述目标编辑指令为排序指令。As an optional implementation manner in this embodiment of the present invention, the target editing instruction is a sorting instruction.

可以理解,该排序指令可以是预先输入的,也可以是用户在查看上述可编辑表格对象后输入的。其中,排序指令可以是指对表格对象中的数据如何按照指定规则排序的指令,表格对象的排序可以是常见的升序,降序或者任何自定义的排序方式。It can be understood that the sorting instruction can be input in advance or input by the user after viewing the above editable table object. Among them, the sorting instructions can refer to instructions on how to sort the data in the table object according to specified rules. The sorting of the table object can be the common ascending order, descending order or any customized sorting method.

示例性的,如图3所示,在上述独立可编辑页面中除了显示有可编辑表格对象外,独立可编辑页面底部还设置有“排序”按钮;如图4所示,用户可以在可编辑表格对象中选中某一列,再点击该“排序”按钮,则独立可编辑页面弹出三个选项“升序排序”、“降序排序”以及“自定义排序”,用户点击某一选项,即可输入与所点击选项相应的排序指令,例如点击“升序排序”,则终端获得升序排序的排序指令。For example, as shown in Figure 3, in addition to displaying editable table objects in the above independently editable page, a "Sort" button is also provided at the bottom of the independently editable page; as shown in Figure 4, the user can Select a column in the table object, and then click the "Sort" button, the independent editable page will pop up three options: "Ascending Sort", "Descending Sort" and "Custom Sort". The user can click on an option to enter and The sorting instructions corresponding to the clicked option, for example, click "Ascending Sort", the terminal will obtain the sorting instructions for ascending order.

当然,上述示例性说明并不构成对本发明实施例限定,本领域技术人员完全可以基于其他方式获得该排序指令。Of course, the above exemplary description does not limit the embodiments of the present invention, and those skilled in the art can obtain the sorting instructions in other ways.

相应的,所述按照所述目标编辑指令,编辑所述可编辑表格对象的步骤,包括:Correspondingly, the step of editing the editable table object according to the target editing instruction includes:

按照所述排序指令,对所述可编辑表格对象进行排序。Sort the editable table objects according to the sorting instructions.

如图4,当前选中可编辑表格对象中的“B”列,如果该排序指令具体为“升序排序”指令,则终端按照该排序指令,对可编辑表格对象进行排序后,行标为“2”和“3”的两行需要互换位置,完成对可编辑表格对象所进行的排序。As shown in Figure 4, the "B" column in the editable table object is currently selected. If the sorting instruction is specifically the "ascending sort" instruction, the terminal will sort the editable table object according to the sorting instruction, and the row will be marked as "2 The two lines "" and "3" need to swap positions to complete the sorting of editable table objects.

另外,在该可编辑表格对象被执行排序操作后,同样可以执行上述将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象的步骤。In addition, after the editable table object is sorted, the above-mentioned step of replacing the table object to be extracted in the target document with the edited editable table object can also be performed.

可以理解,在目前的文字文档、演示文档以及PDF文档等非表格文档中,无法实现对表格对象的排序操作,而本发明实施例可以通过上述操作实现,满足目前对文档中嵌入的表格对象进行排序操作的需求。It can be understood that in current non-table documents such as text documents, presentation documents, and PDF documents, it is impossible to implement sorting operations on table objects. However, embodiments of the present invention can be implemented through the above operations to meet the current needs for sorting table objects embedded in documents. Requirements for sorting operations.

由以上可知,本实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。As can be seen from the above, in the solution provided by this embodiment, the editable table object is a table object with the aforementioned content and format of the table object to be extracted. Therefore, the content of the editable table object is the same as the content of the table object to be extracted. The user can Editing the above editable table object can realize indirect editing of the table object to be extracted, meeting the current editing needs for table objects embedded in electronic documents; in addition, if the editable table object is edited, use the edited table object Editing the table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

下面通过一个具体实例来对本发明实施例提供的一种表格对象编辑方法进行简单介绍。The following is a brief introduction to a table object editing method provided by the embodiment of the present invention through a specific example.

如图1所示,目标文档为一文字文档,该文字文档中包含有表格对象,该表格对象为一成绩表,如图1所示的显示状态下,终端实时检测到该目标文档中当前正显示的内容中存在待提取表格对象,即图1所示的表格对象。则此时终端生成一个H5页面;然后,终端再提取该待提取表格对象的内容和格式,并在所生成的H5页面上创建并显示:具有所提取内容和格式的可编辑表格对象,如图3所示。As shown in Figure 1, the target document is a text document. The text document contains a table object. The table object is a score table. In the display state as shown in Figure 1, the terminal detects in real time that the target document is currently being displayed. There is a table object to be extracted in the content, that is, the table object shown in Figure 1. At this time, the terminal generates an H5 page; then, the terminal extracts the content and format of the table object to be extracted, and creates and displays on the generated H5 page: an editable table object with the extracted content and format, as shown in the figure 3 shown.

在上述独立可编辑页面中除了显示有可编辑表格对象外,独立可编辑页面底部还设置有“排序”按钮;如图4所示,用户可以在可编辑表格对象中选中某一列,再点击该“排序”按钮,则独立可编辑页面弹出三个选项“升序排序”、“降序排序”以及“自定义排序”,用户点击“降序排序”,则终端获得降序排序的排序指令。In addition to the editable table objects displayed in the above independently editable page, there is also a "Sort" button at the bottom of the independently editable page; as shown in Figure 4, the user can select a column in the editable table object, and then click the "Sort" button, the independent editable page will pop up three options: "Ascending Sort", "Descending Sort" and "Custom Sort". If the user clicks "Descending Sort", the terminal will obtain the sorting instruction of descending order.

然后,终端按照该降序排序的指令,对可编辑表格对象进行排序操作。另外,该H5页面的右上角设置如图3和图4所示的虚拟的关闭按钮,用户点击该关闭按钮时,该独立可编辑界面中可以弹出“是否替换文档中的表格对象”的提示框,该提示框下还有虚拟按钮“是”和“否”,用户点击“是”,则终端接收到替换指令,此时终端将目标文档中的待提取表格对象替换为排序后的可编辑表格对象,再关闭该独立可编辑页面;如果点击“否”,则终端直接关闭该独立可编辑页面,以供用户继续浏览目标文档中的其他内容。Then, the terminal performs a sorting operation on the editable table objects according to the descending sorting instruction. In addition, a virtual close button is set in the upper right corner of the H5 page as shown in Figure 3 and Figure 4. When the user clicks the close button, a prompt box "Whether to replace the table object in the document" can pop up in the independent editable interface. , there are also virtual buttons "Yes" and "No" under the prompt box. If the user clicks "Yes", the terminal receives the replacement instruction. At this time, the terminal replaces the table object to be extracted in the target document with the sorted editable table. object, and then close the independently editable page; if "No" is clicked, the terminal directly closes the independent editable page so that the user can continue to browse other content in the target document.

相应于图2所示方法实施例,本发明实施例还提供了一种表格对象编辑装置,如图5所示,所述装置包括:Corresponding to the method embodiment shown in Figure 2, an embodiment of the present invention also provides a table object editing device, as shown in Figure 5, the device includes:

判断模块110,用于判断是否满足独立显示表格对象的预设条件;The judgment module 110 is used to judge whether the preset conditions for independent display of table objects are met;

生成模块120,用于在所述判断模块110的判断结果为是的情况下,生成独立可编辑页面;The generation module 120 is configured to generate an independently editable page when the judgment result of the judgment module 110 is yes;

提取模块130,用于提取目标文档中待提取表格对象的内容和格式;The extraction module 130 is used to extract the content and format of the table object to be extracted in the target document;

创建模块140,用于在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象;Creation module 140, configured to create and display on the independent editable page: an editable table object with extracted content and format;

获得模块150,用于获得针对所述可编辑表格对象的目标编辑指令;Obtaining module 150 is used to obtain the target editing instruction for the editable table object;

编辑模块160,用于按照所述目标编辑指令,编辑所述可编辑表格对象。The editing module 160 is configured to edit the editable table object according to the target editing instruction.

可选的,所述目标编辑指令为排序指令;Optionally, the target editing instruction is a sorting instruction;

相应的,所述编辑模块,可以具体用于:Correspondingly, the editing module can be specifically used for:

按照所述排序指令,对所述可编辑表格对象进行排序。Sort the editable table objects according to the sorting instructions.

作为本发明实施例的一种可选实现方式,所述判断模块110,可以具体用于:As an optional implementation method of the embodiment of the present invention, the judgment module 110 can be specifically used for:

检测目标文档当前显示出来的内容中是否存在待提取表格对象;Detect whether there is a table object to be extracted in the currently displayed content of the target document;

如果存在,判定满足独立显示表格对象的预设条件。If it exists, it is determined that the preset conditions for independent display of table objects are met.

作为本发明实施例的另一种可选实现方式,所述判断模块,可以具体用于:As another optional implementation manner of the embodiment of the present invention, the judgment module can be specifically used for:

判断是否获得用户输入的针对目标文档中待提取表格对象的独立显示指令;Determine whether the independent display instruction input by the user for the table object to be extracted in the target document is obtained;

如果获得,判定满足独立显示表格对象的预设条件。If obtained, it is determined that the preset conditions for independent display of table objects are met.

可选的,所述装置还可以包括:Optionally, the device may also include:

替换模块,用于在所述可编辑表格对象被编辑后,将所述目标文档中的待提取表格对象替换为:编辑后的所述可编辑表格对象。A replacement module, configured to replace the table object to be extracted in the target document with the edited editable table object after the editable table object is edited.

可选的,所述独立可编辑页面可以包括H5页面或者具有展示表格对象功能的客户端页面。Optionally, the independently editable page may include an H5 page or a client page with the function of displaying table objects.

由以上可知,本实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。As can be seen from the above, in the solution provided by this embodiment, the editable table object is a table object with the aforementioned content and format of the table object to be extracted. Therefore, the content of the editable table object is the same as the content of the table object to be extracted. The user can Editing the above editable table object can realize indirect editing of the table object to be extracted, meeting the current editing needs for table objects embedded in electronic documents; in addition, if the editable table object is edited, use the edited table object Editing the table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

相应于图2所示方法实施例,本发明实施例还提供了一种电子设备,如图6所示,包括处理器210和存储器220,其中,Corresponding to the method embodiment shown in Figure 2, an embodiment of the present invention also provides an electronic device, as shown in Figure 6, including a processor 210 and a memory 220, wherein,

存储器220,用于存放计算机程序;Memory 220, used to store computer programs;

处理器210,用于执行存储器220上所存放的程序时,实现如下步骤:When the processor 210 is used to execute the program stored on the memory 220, it implements the following steps:

判断是否满足独立显示表格对象的预设条件;Determine whether the preset conditions for independent display of table objects are met;

如果满足,生成独立可编辑页面;If satisfied, generate an independent editable page;

提取目标文档中待提取表格对象的内容和格式;Extract the content and format of the table object to be extracted from the target document;

在所述独立可编辑页面上创建并显示:具有所提取内容和格式的可编辑表格对象;Create and display on said stand-alone editable page: an editable table object with the extracted content and formatting;

获得针对所述可编辑表格对象的目标编辑指令;Obtain a target editing instruction for the editable table object;

按照所述目标编辑指令,编辑所述可编辑表格对象。Edit the editable table object according to the target editing instruction.

关于该方法各个步骤的具体实现以及相关解释内容可以参见上述图2所示的方法实施例,在此不做赘述。For the specific implementation and related explanations of each step of the method, please refer to the above-mentioned method embodiment shown in Figure 2, and will not be described again here.

上述电子设备可以具备有实现上述电子设备与其他设备之间通信的通信接口。The above-mentioned electronic device may be provided with a communication interface that enables communication between the above-mentioned electronic device and other devices.

上述的处理器210,通信接口,存储器220通过通信总线完成相互间的通信,此处所提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。The above-mentioned processor 210, communication interface, and memory 220 complete communication with each other through a communication bus. The communication bus mentioned here can be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure ( Extended Industry Standard Architecture, EISA) bus, etc. The communication bus can be divided into address bus, data bus, control bus, etc.

存储器220可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory 220 may include random access memory (Random Access Memory, RAM) or non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.

上述的处理器210可以是通用处理器,包括中央处理器(Central ProcessingUnit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DigitalSignal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor 210 can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DigitalSignal Processing, DSP) or an application-specific integrated circuit. (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

由以上可知,本实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。As can be seen from the above, in the solution provided by this embodiment, the editable table object is a table object with the aforementioned content and format of the table object to be extracted. Therefore, the content of the editable table object is the same as the content of the table object to be extracted. The user can Editing the above editable table object can realize indirect editing of the table object to be extracted, meeting the current editing needs for table objects embedded in electronic documents; in addition, if the editable table object is edited, use the edited table object Editing the table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的表格对象编辑方法。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute any one of the above embodiments. The table object editing method described.

由以上可知,本实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。As can be seen from the above, in the solution provided by this embodiment, the editable table object is a table object with the aforementioned content and format of the table object to be extracted. Therefore, the content of the editable table object is the same as the content of the table object to be extracted. The user can Editing the above editable table object can realize indirect editing of the table object to be extracted, meeting the current editing needs for table objects embedded in electronic documents; in addition, if the editable table object is edited, use the edited table object Editing the table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

在本发明提供的再一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一表格对象编辑方法所述的方法步骤。In yet another embodiment of the present invention, a computer program product containing instructions is provided, which when run on a computer causes the computer to execute the method steps described in any of the above table object editing methods.

由以上可知,本实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。As can be seen from the above, in the solution provided by this embodiment, the editable table object is a table object with the aforementioned content and format of the table object to be extracted. Therefore, the content of the editable table object is the same as the content of the table object to be extracted. The user can Editing the above editable table object can realize indirect editing of the table object to be extracted, meeting the current editing needs for table objects embedded in electronic documents; in addition, if the editable table object is edited, use the edited table object Editing the table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

在本发明提供的再一实施例中,还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述任一表格对象编辑方法所述的方法步骤。In yet another embodiment of the present invention, a computer program is also provided, which, when run on a computer, causes the computer to execute the method steps described in any of the above table object editing methods.

由以上可知,本实施例提供的方案中,可编辑表格对象为具有前述待提取表格对象内容和格式的表格对象,所以可编辑表格对象所具有内容与待提取表格对象所具有内容相同,用户通过编辑上述可编辑表格对象就可实现对该待提取表格对象的间接编辑,满足目前对于电子文档中所嵌入表格对象的编辑需求;另外,如果在可编辑表格对象被编辑后,用编辑后的可编辑表格对象替换上述待提取表格对象,既等效于对待提取表格对象的直接编辑。As can be seen from the above, in the solution provided by this embodiment, the editable table object is a table object with the aforementioned content and format of the table object to be extracted. Therefore, the content of the editable table object is the same as the content of the table object to be extracted. The user can Editing the above editable table object can realize indirect editing of the table object to be extracted, meeting the current editing needs for table objects embedded in electronic documents; in addition, if the editable table object is edited, use the edited table object Editing the table object replaces the above table object to be extracted, which is equivalent to direct editing of the table object to be extracted.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。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 these entities or operations are mutually exclusive. any such actual relationship or sequence exists between them. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质、计算机程序产品以及计算机程序实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, the apparatus, electronic equipment, computer-readable storage medium, computer program product and computer program embodiments are described simply because they are basically similar to the method embodiments. For relevant details, please refer to the partial description of the method embodiments. That’s it.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

CN201711479213.7A2017-12-292017-12-29Table object editing method and device, electronic equipment and storage mediumActiveCN109992759B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711479213.7ACN109992759B (en)2017-12-292017-12-29Table object editing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711479213.7ACN109992759B (en)2017-12-292017-12-29Table object editing method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN109992759A CN109992759A (en)2019-07-09
CN109992759Btrue CN109992759B (en)2023-12-01

Family

ID=67108976

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711479213.7AActiveCN109992759B (en)2017-12-292017-12-29Table object editing method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN109992759B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112329401A (en)*2019-08-052021-02-05珠海金山办公软件有限公司Document management method and device and electronic equipment
CN111797603B (en)2020-07-022022-02-01北京字节跳动网络技术有限公司Method and device for browsing table in document, electronic equipment and storage medium
CN118823809A (en)*2023-04-212024-10-22荣耀终端有限公司 Table extraction method, electronic device and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1848081A (en)*2000-04-142006-10-18皮克塞(研究)有限公司 User interface system and method for manipulating and viewing digital documents
CN101866335A (en)*2010-06-142010-10-20深圳市万兴软件有限公司Form processing method and device in document conversion
JP2011141677A (en)*2010-01-062011-07-21Canon IncApparatus and method for digitizing documents
CN102982089A (en)*2011-11-022013-03-20微软公司Visual navigation of documents by object
CN103019532A (en)*2012-11-232013-04-03中兴通讯股份有限公司Field processing method and device
CN103562841A (en)*2011-05-312014-02-05苹果公司 Apparatus, method and graphical user interface for document manipulation
CN104731813A (en)*2013-12-232015-06-24珠海金山办公软件有限公司Form file display method and system
CN105302787A (en)*2015-11-102016-02-03浪潮软件股份有限公司Method and device for table data editing
CN106970897A (en)*2017-04-052017-07-21北京小米移动软件有限公司The method to set up and equipment of text formatting

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7523394B2 (en)*2002-06-282009-04-21Microsoft CorporationWord-processing document stored in a single XML file that may be manipulated by applications that understand XML
JP6110616B2 (en)*2012-08-292017-04-05キヤノン株式会社 Information processing apparatus, information processing method, and program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1848081A (en)*2000-04-142006-10-18皮克塞(研究)有限公司 User interface system and method for manipulating and viewing digital documents
JP2011141677A (en)*2010-01-062011-07-21Canon IncApparatus and method for digitizing documents
CN101866335A (en)*2010-06-142010-10-20深圳市万兴软件有限公司Form processing method and device in document conversion
CN103562841A (en)*2011-05-312014-02-05苹果公司 Apparatus, method and graphical user interface for document manipulation
CN102982089A (en)*2011-11-022013-03-20微软公司Visual navigation of documents by object
CN103019532A (en)*2012-11-232013-04-03中兴通讯股份有限公司Field processing method and device
CN104731813A (en)*2013-12-232015-06-24珠海金山办公软件有限公司Form file display method and system
CN105302787A (en)*2015-11-102016-02-03浪潮软件股份有限公司Method and device for table data editing
CN106970897A (en)*2017-04-052017-07-21北京小米移动软件有限公司The method to set up and equipment of text formatting

Also Published As

Publication numberPublication date
CN109992759A (en)2019-07-09

Similar Documents

PublicationPublication DateTitle
CN109992750B (en) Table object screening method, device, electronic device and storage medium
US8832548B2 (en)System and method for selective control of zoom adjustments in an electronic publication
CN111597771B (en) Method, device, electronic device and medium for adjusting document content format
CN109992759B (en)Table object editing method and device, electronic equipment and storage medium
CN105095160A (en)Document conversion reading method and system
CN109213978B (en)Method and device for merging cells, electronic equipment and readable storage medium
US20130290837A1 (en)Method and Apparatus for Correcting Document Formatting Based on Source Document
CN103518195A (en) Apparatus, system and method for vector-based tabular field documents
CN105824788A (en)Method and system for converting PowerPoint file into word file
US20230046344A1 (en)Systems, Methods, and Devices for a Form Converter
US20160034178A1 (en)Virtual keyboard
CN111414727B (en) A method, device and electronic device for editing header and footer of PDF document
CN112417832B (en) A method, device and electronic device for converting electronic spreadsheet document format
CN109977363A (en)A kind of method, apparatus, electronic equipment and storage medium generating PowerPoint
KR101790727B1 (en)System and Method for Auto Transforming Document form
JP5451696B2 (en) Subtitle adding apparatus, content data, subtitle adding method and program
CN107368465B (en)System and method for processing screenshot note of streaming document
CN111563364B (en)Chapter title style conversion method and device, electronic equipment and storage medium
JP2015228209A (en)Data proofreading platform server
WO2024002051A1 (en)Document editing method and apparatus, and electronic device and storage medium
CN109992751B (en)Method and device for magnifying and displaying table objects, electronic equipment and storage medium
CN116306539A (en)Method, device and equipment for creating detail table in engineering drawing and readable storage medium
CN112784526B (en) Document page adjustment method and device
CN113553798B (en)Seal insertion method and device, electronic equipment and storage medium
CN112784542B (en)Document editing method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp