技术领域Technical Field
本公开涉及互联网技术领域,尤其涉及一种在线文档处理方法、装置和电子设备。The present disclosure relates to the field of Internet technology, and in particular to an online document processing method, device and electronic device.
背景技术Background technique
随着科学技术的发展,在用户办公的过程中,可能会使用在线文档(在线文档可以使多个用户同时对文档进行阅读、更改等)。但是,某些用户在浏览在线文档的时候,可能会对在线文档进行恶意的更改。因此,为避免类似情况的发生,现有技术在创建在线文档时,通常会设置权限,具有编辑权限的用户才可以对在线文档进行编辑,而阅读者则是仅能对在线文档进行阅读。With the development of science and technology, users may use online documents in the process of office work (online documents allow multiple users to read, modify, etc. the documents at the same time). However, some users may maliciously modify the online documents when browsing them. Therefore, in order to avoid such situations, the prior art usually sets permissions when creating online documents. Only users with editing permissions can edit the online documents, while readers can only read the online documents.
发明内容Summary of the invention
提供该公开内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该公开内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
本公开实施例提供了一种在线文档处理方法、装置和电子设备,可以在保护在线文档安全性的同时,增加可以对文档进行处理的用户的数量。The embodiments of the present disclosure provide an online document processing method, device, and electronic device, which can increase the number of users who can process the document while protecting the security of the online document.
第一方面,本公开实施例提供了一种在线文档处理方法,包括:响应于检测到针对在线文档的第一请求,从上述第一请求中获取第一控件标识,其中,上述第一请求响应于用户对第一控件的触发而发出,控件标识与控件对应;获取预存对应关系信息,以及查找上述预存对应关系信息中是否包括上述第一控件标识,其中,上述预存对应关系信息包括:控件标识和操作内容的对应关系;基于查找结果,确定对上述第一请求的处理方式。In a first aspect, an embodiment of the present disclosure provides an online document processing method, comprising: in response to detecting a first request for an online document, obtaining a first control identifier from the first request, wherein the first request is issued in response to a user triggering a first control, and the control identifier corresponds to the control; obtaining pre-stored correspondence information, and searching whether the pre-stored correspondence information includes the first control identifier, wherein the pre-stored correspondence information includes: a correspondence between the control identifier and the operation content; and determining a processing method for the first request based on the search result.
第二方面,本公开实施例提供了一种在线文档处理装置,包括:获取单元,用于响应于检测到针对在线文档的第一请求,从上述第一请求中获取第一控件标识,其中,上述第一请求响应于用户对第一控件的触发而发出,控件标识与控件对应;查找单元,查找上述预存对应关系信息中是否包括上述第一控件标识,其中,上述预存对应关系信息包括:控件标识和操作内容的对应关系;确定单元,用于基于查找结果,确定对上述第一请求的处理方式。In a second aspect, an embodiment of the present disclosure provides an online document processing device, comprising: an acquisition unit, for acquiring a first control identifier from the first request in response to detecting a first request for an online document, wherein the first request is issued in response to a user triggering a first control, and the control identifier corresponds to the control; a search unit, for searching whether the pre-stored correspondence information includes the first control identifier, wherein the pre-stored correspondence information includes: a correspondence between the control identifier and the operation content; a determination unit, for determining a processing method for the first request based on the search result.
第三方面,本公开实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行,使得上述一个或多个处理器实现如第一方面上述的在线文档处理方法。In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the online document processing method as described above in the first aspect.
第四方面,本公开实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面上述的在线文档处理方法的步骤。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the online document processing method described above in the first aspect.
本公开实施例提供的在线文档处理方法、装置和电子设备,当用户对第一控件进行触发之后,会发出第一请求,服务器仅是从第一请求中去获取第一控件标识,然后查找预存对应关系信息中是否存在第一控件标识,并根据查找的结果,确定对第一请求的处理方式。也即,在获取第一请求之后,服务器无需确定触发该第一控件的具体用户,仅需获取第一请求对应的第一控件标识,然后即可根据预存对应关系信息去获取第一控件对应的操作内容。换言之,由于在此过程中,仅需根据第一控件标识即可确定出对第一请求的处理方式,并不需要确定第一请求的具体请求类型,具体请求操作、该请求的触发者等,从而可以避免第一控件被更改的现象;可以在保证在线文档安全性的同时,也可增加对在线文档进行处理的用户的数量。The online document processing method, device and electronic device provided by the embodiments of the present disclosure will issue a first request after the user triggers the first control. The server only obtains the first control identifier from the first request, and then searches for the first control identifier in the pre-stored corresponding relationship information, and determines the processing method for the first request based on the search result. That is, after obtaining the first request, the server does not need to determine the specific user who triggered the first control, but only needs to obtain the first control identifier corresponding to the first request, and then obtain the operation content corresponding to the first control based on the pre-stored corresponding relationship information. In other words, since in this process, the processing method for the first request can be determined based on the first control identifier, and there is no need to determine the specific request type of the first request, the specific request operation, the trigger of the request, etc., the phenomenon of the first control being changed can be avoided; while ensuring the security of the online document, the number of users who process the online document can also be increased.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
图1是根据本公开的在线文档处理方法的一个实施例的流程图;FIG1 is a flow chart of an embodiment of an online document processing method according to the present disclosure;
图2是根据本公开的在线文档处理方法的另一个实施例的流程图;FIG2 is a flow chart of another embodiment of an online document processing method according to the present disclosure;
图3是根据本公开的在线文档处理方法的又一个实施例的流程图;FIG3 is a flow chart of another embodiment of an online document processing method according to the present disclosure;
图4A是根据本公开的在线文档处理方法的一个实施例的示意图;FIG4A is a schematic diagram of an embodiment of an online document processing method according to the present disclosure;
图4B是根据本公开的在线文档处理方法的一个实施例的另一示意图;FIG4B is another schematic diagram of an embodiment of an online document processing method according to the present disclosure;
图5是根据本公开的在线文档处理方法的又一个实施例的流程图;FIG5 is a flow chart of another embodiment of an online document processing method according to the present disclosure;
图6是根据本公开的在线文档处理装置的一个实施例的结构示意图;FIG6 is a schematic structural diagram of an embodiment of an online document processing device according to the present disclosure;
图7是本公开的一个实施例的在线文档处理方法可以应用于其中的示例性系统架构;FIG. 7 is an exemplary system architecture in which the online document processing method according to an embodiment of the present disclosure can be applied;
图8是根据本公开实施例提供的电子设备的基本结构的示意图。FIG8 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
请参考图1,其示出了根据本公开的在线文档处理方法的一个实施例的流程。该在线文档处理方法可以应用于服务器。如图1所示该在线文档处理方法,包括以下步骤:Please refer to FIG. 1, which shows a flow chart of an embodiment of an online document processing method according to the present disclosure. The online document processing method can be applied to a server. As shown in FIG. 1, the online document processing method includes the following steps:
步骤101,响应于检测到针对在线文档的第一请求,从第一请求中获取第一控件标识。Step 101: In response to detecting a first request for an online document, obtaining a first control identifier from the first request.
在这里,第一请求响应于用户对第一控件的触发而发出,控件标识与控件对应。Here, the first request is issued in response to the user triggering the first control, and the control identifier corresponds to the control.
在这里,在线文档可以理解为多个用户可以同时进行浏览,并可以对其进行某些特定处理(如:对文档进行批注、对文档增加一行内容等)的文档。Here, an online document can be understood as a document that can be browsed by multiple users at the same time and can perform certain specific processing on the document (such as annotating the document, adding a line of content to the document, etc.).
步骤102,查找预存对应关系信息中是否包括第一控件标识。Step 102: Check whether the pre-stored corresponding relationship information includes the first control identifier.
在这里,预存对应关系包括:控件标识和操作内容的对应关系。Here, the pre-stored corresponding relationship includes: the corresponding relationship between the control identifier and the operation content.
步骤103,基于查找结果,确定对第一请求的处理方式。Step 103: Determine a processing method for the first request based on the search result.
在步骤101-步骤103中,在获取第一请求之后,服务器无需确定触发该第一控件的用户,仅需获取第一请求对应的第一控件标识,然后即可根据预存对应关系信息去查找是否包括第一控件标识,而后根据查找结果,确定是否响应该第一请求。也即,可以无需关系发送第一请求的用户是谁,也就增加了可以对文档进行处理的用户的数量。In step 101-step 103, after obtaining the first request, the server does not need to determine the user who triggered the first control, but only needs to obtain the first control identifier corresponding to the first request, and then can search whether the first control identifier is included according to the pre-stored corresponding relationship information, and then determine whether to respond to the first request according to the search result. That is, it does not matter who sent the first request, which increases the number of users who can process the document.
在一些实施例中,用户需要对在线文档进行特定处理时,可以通过触发在线文档上一些预设的控件。而每个控件对应可能对应一个具体的功能(如,删除控件,可以对应文档的删除功能,增加控件,可以对应文档的增强功能),用户可以通过对这些控件执行触发操作(单击操作、双击操作等),实现相应的功能。In some embodiments, when a user needs to perform specific processing on an online document, he or she may trigger some preset controls on the online document. Each control may correspond to a specific function (e.g., a delete control may correspond to a document deletion function, and an add control may correspond to a document enhancement function). The user may implement the corresponding function by performing trigger operations (single-click operation, double-click operation, etc.) on these controls.
例如:当用户点击文档内设置的删除控件时,则可以删除在线文档的某些内容。再如,可以为在线文档设置一个发送控件,当用户阅读完在线文档,或者对在线文档进行某些特定操作(例如,在线文档为简历模板,当用户填写完了简历上的空白区域时)之后,可以对发送控件进行触发操作,进而可以将在线文档发送至特定的邮箱。当然,为在线文档设置的控件的类型还有很多,此处并不对控件的具体类型进行限定,此处仅是举例说明,以便于理解本公开实施例所提供的思想。For example, when a user clicks a delete control set in a document, some content of the online document can be deleted. For another example, a send control can be set for an online document. When the user finishes reading the online document or performs certain specific operations on the online document (for example, if the online document is a resume template, when the user fills in the blank area on the resume), the send control can be triggered to send the online document to a specific mailbox. Of course, there are many types of controls set for online documents. The specific types of controls are not limited here. They are only given as examples to facilitate understanding of the ideas provided by the embodiments of the present disclosure.
在一些实施例中,当用户对在线文档上的第一控件进行触发操作时,则可以向服务器发送第一请求,而由于在线文档上的控件数量可能较多,因此,第一请求中可以包括第一控件对应的第一控件标识。而控件标识可以与控件相对应,也即,通过第一控件标识,服务器可以确定第一请求所对应的第一控件。In some embodiments, when a user triggers a first control on an online document, a first request may be sent to a server. Since there may be a large number of controls on the online document, the first request may include a first control identifier corresponding to the first control. The control identifier may correspond to the control, that is, through the first control identifier, the server may determine the first control corresponding to the first request.
在一些实施例中,由于控件与控件标识可以为一一对应关系,而预存对应关系信息可以包括控件标识和操作内容的对应关系,也即,通过预存对应关系信息可以获知在线文档上的每个操作控件所对应的操作内容。In some embodiments, since controls and control identifiers may have a one-to-one correspondence, the pre-stored correspondence information may include the correspondence between control identifiers and operation contents, that is, the operation contents corresponding to each operation control on the online document may be known through the pre-stored correspondence information.
在一些实施例中,预存对应关系信息可以用表格的形式进行记录,也即,在表格中记录了每个控件标识所对应的操作内容,或者是操控内容的获取方式(如,记录了一个操作内容的调用接口,当需要获取操作内容时,仅需根据操作内容的调用接口对操作内容进行调用即可)。In some embodiments, the pre-stored correspondence information can be recorded in the form of a table, that is, the operation content corresponding to each control identifier is recorded in the table, or the method of obtaining the control content (for example, a calling interface of the operation content is recorded, and when the operation content needs to be obtained, it is only necessary to call the operation content according to the calling interface of the operation content).
在一些实施例中,在操作内容中,可以包括用于指示操作控件需要执行的逻辑。如,某个操作控件为删除控件,则该操作控件对应的操作内容中则可以包括:用于指示具体删除位置的信息。如,某个在线文档包括十行内容,在线文档上的设置有删除控件,删除控件的操作内容中则记录有:当删除控件被触发时,具体删除那一行的内容。如:可以记录当删除控件被触发时,删除在线文档的最后一行的内容。也即,可以理解为通过操作内容,可以确定控件所执行的逻辑。In some embodiments, the operation content may include logic for indicating that the operation control needs to be executed. For example, if a certain operation control is a delete control, the operation content corresponding to the operation control may include: information for indicating the specific deletion location. For example, an online document includes ten lines of content, and a delete control is set on the online document. The operation content of the delete control records: when the delete control is triggered, the content of that specific line is deleted. For example: it can be recorded that when the delete control is triggered, the content of the last line of the online document is deleted. That is, it can be understood that the logic executed by the control can be determined through the operation content.
在一些实施例中,由于第一请求中的第一控件标识可能是错误的,也即,可以理解为:此时的第一控件标识并不是第一控件所对应的标识(可能被不法分子更改)。而当预存对应关系信息中不存在第一控件标识时,则可以表征此时的第一请求可能是一个伪造的请求。相应的,当预存对应关系中存在第一控件标识时,则可以表征第一请求并不是伪造的请求,此时,则可以响应第一请求。In some embodiments, since the first control identifier in the first request may be wrong, that is, it can be understood that the first control identifier at this time is not the identifier corresponding to the first control (it may be changed by criminals). When the first control identifier does not exist in the pre-stored correspondence information, it can be characterized that the first request at this time may be a forged request. Correspondingly, when the first control identifier exists in the pre-stored correspondence, it can be characterized that the first request is not a forged request, and at this time, the first request can be responded to.
可以看出,在本公开实施例中,当用户对第一控件进行触发之后,会发出第一请求,服务器仅是从第一请求中去获取第一控件标识,然后查找预存对应关系信息中是否存在第一控件标识,并根据查找的结果,确定对第一请求的处理方式。也即,在获取第一请求之后,服务器无需确定触发该第一控件的用户,仅需获取第一请求对应的第一控件标识,然后即可根据预存对应关系信息去获取第一控件对应的操作内容。换言之,由于在此过程中,仅需根据第一控件标识即可确定出对第一请求的处理方式,并不需要确定第一请求的具体请求类型,具体请求操作、该请求的触发者等,进而可以避免第一控件被更改的现象;也可以在保证在线文档安全性的同时,增加可对在线文档进行处理的用户的数量。It can be seen that in the disclosed embodiment, after the user triggers the first control, a first request is issued, and the server only obtains the first control identifier from the first request, and then searches for the first control identifier in the pre-stored corresponding relationship information, and determines the processing method for the first request based on the search result. That is, after obtaining the first request, the server does not need to determine the user who triggered the first control, but only needs to obtain the first control identifier corresponding to the first request, and then obtain the operation content corresponding to the first control based on the pre-stored corresponding relationship information. In other words, since in this process, the processing method for the first request can be determined based on the first control identifier, there is no need to determine the specific request type of the first request, the specific request operation, the trigger of the request, etc., thereby avoiding the phenomenon of the first control being changed; it is also possible to increase the number of users who can process online documents while ensuring the security of online documents.
请参阅图2,在一些实施例中,步骤103(基于查找结果,确定对第一请求的处理方式),可以包括步骤1031和步骤1032。Please refer to FIG. 2 . In some embodiments, step 103 (determining a processing method for the first request based on the search result) may include step 1031 and step 1032 .
步骤1031,响应于确定预存对应关系信息中包括第一控件标识,响应第一请求,并根据预存对应关系信息,确定与第一控件标识对应的第一操作内容。Step 1031, in response to determining that the pre-stored corresponding relationship information includes the first control identifier, respond to the first request, and determine the first operation content corresponding to the first control identifier according to the pre-stored corresponding relationship information.
在一些实施例中,当预存对应关系信息中包括第一控件标识时,则可以表征,此时第一控件可能未被更改,因此,仅需通过预存对应关系信息,确定出第一控件需要执行的第一操作内容(也即,第一控件标识对应的第一操作内容);并执行步骤1032。In some embodiments, when the pre-stored correspondence information includes a first control identifier, it can be represented that the first control may not have been changed at this time. Therefore, it is only necessary to determine the first operation content that needs to be executed by the first control (that is, the first operation content corresponding to the first control identifier) through the pre-stored correspondence information; and execute step 1032.
步骤1032,根据第一操作内容,对在线文档进行处理。Step 1032: Process the online document according to the first operation content.
在一些实施例中,步骤103(基于查找结果,确定对第一请求的处理方式),可以包括:In some embodiments, step 103 (determining a processing method for the first request based on the search result) may include:
响应于确定预存对应关系信息中不包括第一控件标识,生成提示信息。In response to determining that the pre-stored correspondence information does not include the first control identifier, prompt information is generated.
在一些实施例中,提示信息可以用于提示在线文档的创建者,或者第一控件的编辑者。而当预存对应关系信息中不包括第一控件标识时,则可以表征此时第一控件可能被更改,也即,可能有不发分子在伪造在线文档的控件。当在线文档的创建者,或者第一控件的编辑者收到提示信息时,即可快速对在线文档进行处理(保护),从而可以增加在线文档的安全性。In some embodiments, the prompt information can be used to prompt the creator of the online document or the editor of the first control. When the pre-stored correspondence information does not include the first control identifier, it can be indicated that the first control may be changed at this time, that is, there may be unauthorized elements forging the control of the online document. When the creator of the online document or the editor of the first control receives the prompt information, the online document can be quickly processed (protected), thereby increasing the security of the online document.
在一些实施例中,第一控件标识可以为删除控件标识,以及,步骤1032(根据第一操作内容,对在线文档进行处理),具体可以包括:In some embodiments, the first control identifier may be a delete control identifier, and step 1032 (processing the online document according to the first operation content) may specifically include:
确定第一操作内容所指示的在线文档的删除区域,将删除区域中的内容进行删除。A deletion area of the online document indicated by the first operation content is determined, and the content in the deletion area is deleted.
在一些实施例中,第一控件对应的操作内容为第一操作内容,而通过第一操作内容,而第一操作内容可以指示在线文档中的删除区域。例如,将在线文档的最后一个字符定义为删除区域,则当第一控件被触发时,则删除在线文档中的最后一个字符。In some embodiments, the operation content corresponding to the first control is the first operation content, and through the first operation content, the first operation content can indicate a deletion area in the online document. For example, the last character of the online document is defined as the deletion area, and when the first control is triggered, the last character in the online document is deleted.
在一些实施例中,删除区域可以根据实际需要进行设定,在此并不对在线文档中的删除区域进行限定,仅需根据实际情况进行合理设定即可。例如,删除区域可能是在线文档中的某个字符、可能是在线文档中的某一段文字、在线文档中的某一幅画等。In some embodiments, the deletion area can be set according to actual needs, and the deletion area in the online document is not limited here, and it only needs to be reasonably set according to the actual situation. For example, the deletion area may be a character in the online document, a paragraph of text in the online document, a picture in the online document, etc.
在一些实施例中,第一控件标识为发送控件标识,以及,步骤1032(根据第一操作内容,对在线文档进行处理),具体还可以包括:In some embodiments, the first control identifier is a sending control identifier, and step 1032 (processing the online document according to the first operation content) may further include:
确定第一操作内容所指示的目标地址,将在线文档发送至少目标地址。A target address indicated by the first operation content is determined, and the online document is sent to at least the target address.
在一些实施例中,在线文档可能是一个简历填写模板,当用户填完简历之后,可以通过触发第一控件,将简历发送至目标地址(例如,某个公司的邮箱、招聘人才库等)。In some embodiments, the online document may be a resume filling template. After the user fills out the resume, the resume can be sent to a target address (eg, a company's mailbox, a recruitment talent pool, etc.) by triggering the first control.
请参阅图3,在一些实施例中,可以通过步骤301-步骤303为在线文档添加控件。Please refer to FIG. 3 . In some embodiments, controls may be added to an online document through steps 301 to 303 .
步骤301,响应于检测到针对在线文档的第二请求,从第二请求中获取第二用户标识以及第二操作内容。Step 301: in response to detecting a second request for an online document, obtaining a second user identifier and second operation content from the second request.
在这里,第二请求响应于用户对在线文档进行第二触发操而发出。Here, the second request is issued in response to the user performing a second triggering operation on the online document.
在一些实施例中,当服务器接收到第二请求时,可以表征此时用户可能需要对在线文档添加一些控件,以丰富在线文档的功能。例如:对在线文档添加一个点赞控件,当用户在阅读完在线文档后,若觉得在线文档中所记录的内容不错,则可以对该在线文档进行点赞,也即可以触发该点赞控件。In some embodiments, when the server receives the second request, it may indicate that the user may need to add some controls to the online document to enrich the functions of the online document. For example, a like control is added to the online document. After reading the online document, if the user thinks the content recorded in the online document is good, the user may like the online document, which may trigger the like control.
在一些实施例中,若每个用户都能对在线文档添加控件时,则可能造成在线文档会包括很多控件,且可能会造成在线文档中所记录的内容遭受破坏。因此,为合理的保护在线文档,可以设定部分用户才能对在线文档添加控件。如:可以设定为仅有对在线文档具备编辑权限的用户可以对在线文档添加控件。因此,第二请求中可以包括第二用户标识,每个用户都有一个特定的用户标识,也即,通过用户标识,可以判断该用户是否对在线文档具备编辑权限(也即,通过用户标识可以判断该用户是否可以对在线文档添加控件)。In some embodiments, if every user can add controls to an online document, the online document may include many controls, and the content recorded in the online document may be damaged. Therefore, in order to reasonably protect the online document, it can be set that only some users can add controls to the online document. For example, it can be set that only users with editing authority for the online document can add controls to the online document. Therefore, the second request can include a second user identifier, and each user has a specific user identifier, that is, through the user identifier, it can be determined whether the user has editing authority for the online document (that is, through the user identifier, it can be determined whether the user can add controls to the online document).
在一些实施例中,每个控件均有相应的功能,而第二操作内容则可以用于记录控件应该具备的功能。因此,当获取第二请求之后,还可以从第二请求中获取第二操作内容。In some embodiments, each control has a corresponding function, and the second operation content can be used to record the function that the control should have. Therefore, after obtaining the second request, the second operation content can also be obtained from the second request.
请结合参阅图4A和图4B,在一些实施例中,第二触发操作为预设的操作,例如,用户在浏览在线文档时,点击显示界面的某个位置(如图4A所示),在显示界面则可以出现一个控件集合列表,可以包括控件A、控件B、控件C(如图4B所示),控件集合列表中可以预存了某些控件以及这些控件相应的功能,用户仅需选中控件集合列表中的某个控件,既可确定该控件为第二控件,如,当用户可以选取控件B作为第二控件,也即此时可以确定需要为在线文档添加控件B。而用户选取控件的过程(也即从图4A到图4B的过程)即可理解为第二触发操作。Please refer to FIG. 4A and FIG. 4B in combination. In some embodiments, the second trigger operation is a preset operation. For example, when a user browses an online document, he clicks a certain position on the display interface (as shown in FIG. 4A ). A control set list may appear on the display interface, which may include control A, control B, and control C (as shown in FIG. 4B ). Some controls and their corresponding functions may be pre-stored in the control set list. The user only needs to select a control in the control set list to determine that the control is the second control. For example, when the user can select control B as the second control, it can be determined that control B needs to be added to the online document. The process of the user selecting a control (i.e., the process from FIG. 4A to FIG. 4B ) can be understood as the second trigger operation.
需要说明的是,此处是以在手机上浏览在线文档进行举例说明,在具体实施方式中,用户还可以通过电脑、平板等设备浏览在线文档,也即,可以浏览在线文档的终端设备有很多,在此并不进行限定,当采用不同的终端设备浏览在线文档时,所对应的第二触发操作可以不同。如:通过电脑浏览在线文档时,用户可以通过点击鼠标右键,出现控件集合列表,然后通过控件集合列表中的控件作为第二控件。也即,在此实施例中,对于第二触发操作具体为何种形式的触发操作并不进行限定,仅需根据实际情况进行合理设定即可。It should be noted that here, the example of browsing online documents on a mobile phone is used for explanation. In a specific implementation, the user can also browse online documents through a computer, tablet and other devices. That is, there are many terminal devices that can browse online documents, which are not limited here. When different terminal devices are used to browse online documents, the corresponding second trigger operation may be different. For example, when browsing online documents through a computer, the user can right-click the mouse to display a list of control sets, and then use the control in the control set list as the second control. That is, in this embodiment, there is no limitation on the specific form of the second trigger operation, and it only needs to be reasonably set according to the actual situation.
在一些实施例中,用户也可以自行定义控件的功能,并不一定在控件集合列表中选取某个控件。而此时用户自行定义控件的功能的过程,可以称为第二触发操作。In some embodiments, the user can also define the function of the control by himself, and does not necessarily select a control from the control set list. At this time, the process of the user defining the function of the control by himself can be called the second trigger operation.
步骤302,根据第二用户标识,确定是否为在线文档添加第二控件。Step 302: Determine whether to add a second control to the online document according to the second user identifier.
在一些实施例中,由于不是每个用户均可以对在线文档添加控件,因此,可以根据第二用户标识,确定该用户是否对在线文档具备编辑权限。In some embodiments, since not every user can add controls to the online document, it may be determined based on the second user identifier whether the user has editing authority for the online document.
在一些实施例中,可以为具备编辑编辑权限的用户对应的用户标识建立第一标识集群,进而,可以通过判断第二用户标识是否为第一标识集合中的元素,确定该第二用户标识对应的用户是否对在线文档具备编辑权限。当响应于确定第二用户标识为第一标识集中的元素时,则可以确定该用户对在线文档具备编辑权限,也即,可以对在线文档添加第二控件。当响应于确定第二用户标识不为第一标识集中的元素时,则可能表征第二用户标识对应的用户不具备对在线文档具备编辑权限,可能仅有对在线文档的阅读权限。因此,此时则不会对在线文档添加第二控件。In some embodiments, a first identification cluster can be established for user identifications corresponding to users with editing permissions, and then, by judging whether the second user identification is an element in the first identification set, it can be determined whether the user corresponding to the second user identification has editing permissions for the online document. In response to determining that the second user identification is an element in the first identification set, it can be determined that the user has editing permissions for the online document, that is, a second control can be added to the online document. In response to determining that the second user identification is not an element in the first identification set, it may indicate that the user corresponding to the second user identification does not have editing permissions for the online document, and may only have reading permissions for the online document. Therefore, the second control will not be added to the online document at this time.
步骤303,响应于确定为在线文档添加第二控件,生成第二控件标识,以及将第二控件标识和第二操作内容对应存储在预存对应关系信息中。Step 303: in response to determining to add a second control to the online document, generate a second control identifier, and store the second control identifier and the second operation content in the pre-stored corresponding relationship information in correspondence.
在一些实施例中,在确定为在线文档添加第二控件时,即可生成第二控件标识,并可以将第二操作内容与第二控件标识对应存储在预存对应关系信息中,也即,使得第二控件的功能无法被更改。当用户触发第二控件时,服务器是从预存对应关系中获取第二控件对应的第二操作内容,进而可以有效避免伪造控件(更改控件的功能)行为的发生。In some embodiments, when it is determined to add a second control to the online document, a second control identifier can be generated, and the second operation content and the second control identifier can be stored in the pre-stored correspondence information, that is, the function of the second control cannot be changed. When the user triggers the second control, the server obtains the second operation content corresponding to the second control from the pre-stored correspondence, thereby effectively avoiding the occurrence of counterfeit controls (changing the function of controls).
在一些实施例中,预存对应关系信息中还可以包括与第二控件标识对应第二标识集合,在第二标识集合中,在第二标识集合中的用户标识对应的用户可以对第二控件进行触发,(或者,可以理解为:第二标识集合中的用户标识对应的用户在浏览在线文档时,才会展示第二控件)。例如,在线文档为一个简历模板,此时可以为简历模板添加一个发送控件,也即,当求职者在填完简历之后,可以点击该发送控件将简历发送至特定的邮箱。而面试官在查看该简历模板时,则可能不会显示这个发送控件,或者面试官无法点击这个发送控件。也即,通过为第二控件创建第二标识集合,可以限缩通过触发第二控件发送请求的用户的数量,同时由于是对用户标识进行了限定(也即,对可发送请求的用户进行了限定),也可更好的保护在线文档以及第二按钮。In some embodiments, the pre-stored correspondence information may also include a second identifier set corresponding to the second control identifier, in which the user corresponding to the user identifier in the second identifier set can trigger the second control (or, it can be understood that the second control will be displayed only when the user corresponding to the user identifier in the second identifier set browses the online document). For example, the online document is a resume template, and a send control can be added to the resume template at this time, that is, after the job seeker fills in the resume, he can click the send control to send the resume to a specific mailbox. When the interviewer views the resume template, the send control may not be displayed, or the interviewer cannot click the send control. That is, by creating a second identifier set for the second control, the number of users who send requests by triggering the second control can be limited. At the same time, since the user identifier is limited (that is, the users who can send requests are limited), the online document and the second button can also be better protected.
请参阅图5,在一些实施例中,用户有可能想删除在线文档中的某些控件,则可以通过步骤501-步骤503实现。Please refer to FIG. 5 . In some embodiments, the user may want to delete certain controls in the online document, which can be achieved through steps 501 to 503 .
步骤501,响应于检测到针对在线文档的第三请求,从第三请求中获取第三用户标识以及第三控件标识。Step 501: in response to detecting a third request for an online document, obtaining a third user identifier and a third control identifier from the third request.
在这里,第三请求响应于用户对第三控件进行第三触发操作而发出。Here, the third request is issued in response to the user performing a third trigger operation on the third control.
在一些实施例中,当服务器接收到第三请求时,则可以表征用户此时可能想要删除在线文档中的某个控件。而具体需要删除那个控件则可以通过获取第三请求中的第三控件标识进行确定。如:在线文档包括:删除控件、添加控件、发送控件;若第三控件标识为发送控件对应的标识,则可以表征用户此时想对发送控件进行删除。In some embodiments, when the server receives the third request, it may indicate that the user may want to delete a certain control in the online document at this time. The specific control to be deleted can be determined by obtaining the third control identifier in the third request. For example, the online document includes: a delete control, an add control, and a send control; if the third control identifier is an identifier corresponding to the send control, it may indicate that the user wants to delete the send control at this time.
在一些实施例中,为了避免在线文档中的控件被恶意的删除,因此,可以对能发出第三请求的用户进行限定,也即,使得某些用户可以发出第三请求,而某些用户不能发出第三请求。如:可以设定在线文档的编辑者,可以对在线文档发出第三请求。In some embodiments, in order to prevent the control in the online document from being maliciously deleted, the users who can issue the third request can be limited, that is, some users can issue the third request, while some users cannot. For example, the editor of the online document can be set to issue the third request to the online document.
步骤502,根据第三用户标识,确定是否删除第三控件。Step 502: Determine whether to delete the third control according to the third user identifier.
在一些实施例中,当确定第三用户标识对应的用户为在线文档的编辑者时,则可以确定该用户具备删除第三控件的权限。也即,可以理解为当确定第三用户标识为第一标识集合中的元素时,可以确定删除第三控件。当确定删除第三控件时,则可以执行步骤403。In some embodiments, when it is determined that the user corresponding to the third user identifier is an editor of the online document, it can be determined that the user has the authority to delete the third control. That is, it can be understood that when it is determined that the third user identifier is an element in the first identifier set, it can be determined to delete the third control. When it is determined to delete the third control, step 403 can be executed.
步骤503,响应于确定删除第三控件,对应删除预存对应关系信息中第三控件标识以及第三控件标识对应的信息。Step 503: In response to determining to delete the third control, the third control identifier and the information corresponding to the third control identifier in the pre-stored corresponding relationship information are correspondingly deleted.
在一些实施例中,当确定用户可以删除第三控件之后,则可以将对应关系信息中关于第三控件的信息(删除第三控件标识以及第三控件标识对应的信息)。In some embodiments, after it is determined that the user can delete the third control, the information about the third control in the corresponding relationship information (the third control identifier and the information corresponding to the third control identifier) can be deleted.
进一步参考图6,作为对上述各图所示方法的实现,本公开提供了一种在线文档处理装置的一个实施例,该装置实施例与图1所示的在线文档处理方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 6 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an online document processing device, which corresponds to the embodiment of the online document processing method shown in FIG. 1 , and can be specifically applied to various electronic devices.
如图6所示,本实施例的在线文档处理装置包括:获取单元601,用于响应于检测到针对在线文档的第一请求,从上述第一请求中获取第一控件标识,其中,上述第一请求响应于用户对第一控件的触发而发出,控件标识与控件对应;查找单元602,用于查找上述预存对应关系信息中是否包括上述第一控件标识,其中,上述预存对应关系信息包括:控件标识和操作内容的对应关系;确定单元603,用于基于查找结果,确定对上述第一请求的处理方式。As shown in Figure 6, the online document processing device of this embodiment includes: an acquisition unit 601, which is used to obtain a first control identifier from the first request in response to detecting a first request for an online document, wherein the first request is issued in response to a user triggering a first control, and the control identifier corresponds to the control; a search unit 602, which is used to search whether the pre-stored correspondence information includes the first control identifier, wherein the pre-stored correspondence information includes: a correspondence between the control identifier and the operation content; a determination unit 603, which is used to determine a processing method for the first request based on the search result.
在一些实施例中,上述确定单元603具体用于:响应于确定上述预存对应关系信息中包括上述第一控件标识,响应上述第一请求,并根据上述预存对应关系信息,确定与上述第一控件标识对应的第一操作内容;根据上述第一操作内容,对上述在线文档进行处理。In some embodiments, the above-mentioned determination unit 603 is specifically used to: in response to determining that the above-mentioned pre-stored correspondence information includes the above-mentioned first control identifier, respond to the above-mentioned first request, and determine the first operation content corresponding to the above-mentioned first control identifier according to the above-mentioned pre-stored correspondence information; according to the above-mentioned first operation content, process the above-mentioned online document.
在一些实施例中,上述第一控件标识为删除控件标识,确定单元603具体还用于确定上述第一操作内容所指示的上述在线文档中的删除区域;将上述删除区域中的内容进行删除。In some embodiments, the first control identifier is a delete control identifier, and the determining unit 603 is further configured to determine a delete area in the online document indicated by the first operation content; and delete the content in the delete area.
在一些实施例中,上述第一控件标识为发送控件标识,确定单元603具体还用于确定上述第一操作内容所指示的目标地址;将上述在线文档发送至所述目标地址。In some embodiments, the first control identifier is a sending control identifier, and the determination unit 603 is further configured to determine a target address indicated by the first operation content; and send the online document to the target address.
在一些实施例中,上述确定单元603具体用于:响应于确定上述预存对应关系信息中不包括第一控件标识,生成提示信息。In some embodiments, the above-mentioned determination unit 603 is specifically used to: generate prompt information in response to determining that the above-mentioned pre-stored corresponding relationship information does not include the first control identifier.
在一些实施例中,上述装置还包括添加单元604,用于响应于检测到针对上述在线文档的第二请求,从上述第二请求中获取第二用户标识以及第二操作内容,其中,上述第二请求响应于用户对上述在线文档进行第二触发操作而发出;根据上述第二用户标识,确定是否为上述在线文档添加第二控件;响应于确定为上述在线文档添加第二控件,生成第二控件标识,以及将上述第二控件标识和上述第二操作内容对应存储在上述预存对应关系信息中。In some embodiments, the above-mentioned device also includes an adding unit 604, which is used to obtain a second user identifier and a second operation content from the above-mentioned second request in response to detecting a second request for the above-mentioned online document, wherein the above-mentioned second request is issued in response to the user performing a second trigger operation on the above-mentioned online document; determine whether to add a second control for the above-mentioned online document according to the above-mentioned second user identifier; in response to determining to add a second control for the above-mentioned online document, generate a second control identifier, and store the above-mentioned second control identifier and the above-mentioned second operation content in correspondence with each other in the above-mentioned pre-stored correspondence information.
在一些实施例中,添加单元604具体用于确定上述第二用户标识是否为第一标识集合中的元素,其中,上述第一标识集合包括对上述在线文档有编辑权限的用户对应的用户标识;响应于确定上述第一标识集合中包括上述第二用户标识,确定为上述在线文档添加第二控件;响应于确定上述第一标识集合中不包括上述第二用户标识,确定不为上述在线文档添加上述第二控件。In some embodiments, the adding unit 604 is specifically used to determine whether the above-mentioned second user identifier is an element in the first identifier set, wherein the above-mentioned first identifier set includes user identifiers corresponding to users who have editing permissions for the above-mentioned online document; in response to determining that the above-mentioned first identifier set includes the above-mentioned second user identifier, determining to add a second control to the above-mentioned online document; in response to determining that the above-mentioned first identifier set does not include the above-mentioned second user identifier, determining not to add the above-mentioned second control to the above-mentioned online document.
在一些实施例中,上述装置还包括删除单元605,用于响应于检测到针对上述在线文档的第三请求,从上述第三请求中获取第三用户标识以及第三控件标识,其中,上述第三请求响应于用户对上述在线文档进行第三触发操作而发出;根据上述第三用户标识,确定是否删除上述第三控件;响应于确定删除上述第三控件,对应删除上述预存对应关系信息中上述第三控件标识以及与上述第三控件标识对应的信息。In some embodiments, the above-mentioned device also includes a deletion unit 605, which is used to obtain a third user identifier and a third control identifier from the above-mentioned third request in response to detecting a third request for the above-mentioned online document, wherein the above-mentioned third request is issued in response to the user performing a third trigger operation on the above-mentioned online document; determine whether to delete the above-mentioned third control according to the above-mentioned third user identifier; in response to determining to delete the above-mentioned third control, correspondingly delete the above-mentioned third control identifier and the information corresponding to the above-mentioned third control identifier in the above-mentioned pre-stored correspondence information.
请参考图7,图7示出了本公开的一个实施例的在线文档处理方法可以应用于其中的示例性系统架构。Please refer to FIG. 7 , which shows an exemplary system architecture to which the online document processing method according to an embodiment of the present disclosure can be applied.
如图7所示,系统架构可以包括终端设备701、702、703,网络704,服务器705。网络704可以用以在终端设备701、702、703和服务器705之间提供通信链路的介质。网络704可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Fig. 7, the system architecture may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 may be used to provide a medium for a communication link between the terminal devices 701, 702, 703 and the server 705. The network 704 may include various connection types, such as wired, wireless communication links, or optical fiber cables.
终端设备701、702、703可以通过网络704与服务器705交互,以接收或发送消息等。终端设备701、702、703上可以安装有各种客户端应用,例如网页浏览器应用、搜索类应用、新闻资讯类应用。终端设备701、702、703中的客户端应用可以接收用户的指令,并根据用户的指令完成相应的功能,例如根据用户的指令在信息中添加相应信息。The terminal devices 701, 702, and 703 can interact with the server 705 through the network 704 to receive or send messages, etc. Various client applications, such as web browser applications, search applications, and news information applications, can be installed on the terminal devices 701, 702, and 703. The client applications in the terminal devices 701, 702, and 703 can receive user instructions and perform corresponding functions according to the user instructions, such as adding corresponding information to the information according to the user instructions.
终端设备701、702、703可以是硬件,也可以是软件。当终端设备701、702、703为硬件时,可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备701、702、703为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。Terminal devices 701, 702, and 703 can be hardware or software. When terminal devices 701, 702, and 703 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers, and desktop computers, etc. When terminal devices 701, 702, and 703 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
服务器705可以是提供各种服务的服务器,例如接收终端设备701、702、703发送的信息获取请求,根据信息获取请求通过各种方式获取信息获取请求对应的展示信息。并展示信息的相关数据发送给终端设备701、702、703。The server 705 may be a server that provides various services, such as receiving information acquisition requests sent by the terminal devices 701, 702, and 703, acquiring display information corresponding to the information acquisition requests in various ways according to the information acquisition requests, and sending the relevant data of the display information to the terminal devices 701, 702, and 703.
需要说明的是,本公开实施例所提供的在线文档处理方法可以由终端设备执行,相应地,在线文档处理装置可以设置在终端设备701、702、703中。此外,本公开实施例所提供的在线文档处理方法还可以由服务器705执行,相应地,在线文档处理装置可以设置于服务器705中。It should be noted that the online document processing method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the online document processing apparatus can be set in the terminal devices 701, 702, and 703. In addition, the online document processing method provided in the embodiment of the present disclosure can also be executed by a server 705, and accordingly, the online document processing apparatus can be set in the server 705.
应该理解,图7中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 7 is only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
下面参考图8,其示出了适于用来实现本公开实施例的电子设备(例如图7中的终端设备或服务器)的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring to FIG8 below, it shows a schematic diagram of the structure of an electronic device (such as the terminal device or server in FIG7) suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG8 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.
如图8所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG8 , the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device to communicate wirelessly or wired with other devices to exchange data. Although FIG. 8 shows an electronic device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:响应于检测到针对在线文档的第一请求,从上述第一请求中获取第一控件标识,其中,上述第一请求响应于用户对第一控件的触发而发出,控件标识与控件对应;查找上述预存对应关系信息中是否包括上述第一控件标识,其中,上述预存对应关系信息包括:控件标识和操作内容的对应关系;基于查找结果,确定对上述第一请求的处理方式。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to detecting a first request for an online document, obtains a first control identifier from the first request, wherein the first request is issued in response to a user triggering a first control, and the control identifier corresponds to the control; searches whether the pre-stored correspondence information includes the first control identifier, wherein the pre-stored correspondence information includes: a correspondence between the control identifier and the operation content; and determines a processing method for the first request based on the search result.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元601还可以被描述为“获取第一控件标识”。The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the acquisition unit 601 may also be described as "acquiring a first control identifier."
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011012370.9ACN112183045B (en) | 2020-09-23 | 2020-09-23 | Online document processing method and device and electronic equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011012370.9ACN112183045B (en) | 2020-09-23 | 2020-09-23 | Online document processing method and device and electronic equipment |
| Publication Number | Publication Date |
|---|---|
| CN112183045A CN112183045A (en) | 2021-01-05 |
| CN112183045Btrue CN112183045B (en) | 2024-07-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011012370.9AActiveCN112183045B (en) | 2020-09-23 | 2020-09-23 | Online document processing method and device and electronic equipment |
| Country | Link |
|---|---|
| CN (1) | CN112183045B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113128182A (en)* | 2021-04-14 | 2021-07-16 | 北京字跳网络技术有限公司 | Electronic document processing method and device, terminal and storage medium |
| CN115713297A (en)* | 2021-08-18 | 2023-02-24 | 北京字跳网络技术有限公司 | Information processing method, device, terminal and storage medium |
| CN114327674A (en)* | 2021-12-20 | 2022-04-12 | 珠海金山办公软件有限公司 | A data processing method and device, electronic device, and storage medium |
| CN115859246A (en)* | 2023-02-16 | 2023-03-28 | 天津联想协同科技有限公司 | Online document authority control method, device, server and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111093197A (en)* | 2019-12-31 | 2020-05-01 | 北大方正集团有限公司 | Authority authentication method, authority authentication system and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104572870B (en)* | 2014-12-22 | 2018-04-20 | 北京京东尚科信息技术有限公司 | The method and apparatus and system of document online reading are provided |
| CN107025583A (en)* | 2016-01-29 | 2017-08-08 | 阿里巴巴集团控股有限公司 | A kind of rendering intent of page control, equipment and terminal device |
| CN108073355B (en)* | 2016-11-15 | 2020-03-17 | 杭州海康威视数字技术股份有限公司 | Data storage and deletion method and device |
| CN108737482B (en)* | 2017-04-24 | 2020-11-27 | 腾讯科技(深圳)有限公司 | Document sharing method, device and system |
| CN108574686B (en)* | 2017-05-17 | 2021-08-06 | 北京金山云网络技术有限公司 | A kind of method and device for online preview file |
| CN108334477A (en)* | 2018-01-30 | 2018-07-27 | 深圳壹账通智能科技有限公司 | Implementation method, device, computer equipment and the storage medium of Intelligent file |
| CN108595262B (en)* | 2018-03-29 | 2021-06-22 | 北京奇艺世纪科技有限公司 | Data processing method and device |
| CN110348236B (en)* | 2018-04-02 | 2024-07-26 | 腾讯科技(深圳)有限公司 | File operation authority setting method and device and storage medium |
| CN110580611B (en)* | 2018-06-11 | 2024-03-19 | 钉钉控股(开曼)有限公司 | Resume information management method, recruitment information management method and recruitment information management device |
| CN108803996B (en)* | 2018-06-20 | 2022-01-28 | 中国平安人寿保险股份有限公司 | Graphic file processing method and device, computer equipment and storage medium |
| CN109635261A (en)* | 2018-11-16 | 2019-04-16 | 天津字节跳动科技有限公司 | Online document content edition method, device, storage medium and electronic equipment |
| CN110196971A (en)* | 2019-04-23 | 2019-09-03 | 平安科技(深圳)有限公司 | Online document edit methods, device, terminal device and storage medium |
| CN110442502B (en)* | 2019-07-23 | 2021-12-31 | 北京三快在线科技有限公司 | Point burying method, device, equipment and storage medium |
| CN110826103B (en)* | 2019-11-13 | 2023-07-21 | 腾讯科技(深圳)有限公司 | Method, device, equipment and storage medium for processing document authority based on blockchain |
| CN111464859B (en)* | 2020-04-08 | 2021-09-14 | 北京字节跳动网络技术有限公司 | Method and device for online video display, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111093197A (en)* | 2019-12-31 | 2020-05-01 | 北大方正集团有限公司 | Authority authentication method, authority authentication system and computer readable storage medium |
| Publication number | Publication date |
|---|---|
| CN112183045A (en) | 2021-01-05 |
| Publication | Publication Date | Title |
|---|---|---|
| CN112183045B (en) | Online document processing method and device and electronic equipment | |
| CN107258072B (en) | Method and system for managing conversation content of chat software and recording medium | |
| CN112487451B (en) | Demonstration methods, apparatus and electronic devices | |
| WO2022111591A1 (en) | Page generation method and apparatus, storage medium, and electronic device | |
| CN109492210A (en) | A kind of online document content displaying method, device, storage medium and electronic equipment | |
| US20220374538A1 (en) | Permission control method and device and electronic equipment | |
| CN112131181B (en) | Display method and device of storage path and electronic equipment | |
| CN111061860A (en) | Abstract generating method and apparatus | |
| CN111400625A (en) | Page processing method and device, electronic equipment and computer readable storage medium | |
| CN114742576B (en) | Information push method, device and electronic device | |
| CN113779461B (en) | Data loading method and device and electronic equipment | |
| US20240004917A1 (en) | Data processing method and device, terminal, and storage medium | |
| WO2024179308A1 (en) | Information processing method and apparatus, electronic device, and computer-readable medium | |
| CN112380819B (en) | Document editing method, device and electronic device | |
| WO2022022619A1 (en) | Document editing method and apparatus, and electronic device | |
| WO2024169747A1 (en) | Excel data processing method and apparatus, electronic device, and storage medium | |
| WO2025092611A1 (en) | Information display method and apparatus, and electronic device and storage medium | |
| JP2025516184A (en) | Information processing method, device, electronic device and storage medium | |
| CN115017110B (en) | Information processing method, device, terminal and storage medium | |
| CN115174282A (en) | Information interaction method, device, equipment and medium | |
| CN113741757B (en) | Method and device for displaying reminding information, electronic equipment and storage medium | |
| CN115470432A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
| CN114997115B (en) | Document processing method, device, equipment and medium | |
| WO2024222670A1 (en) | Information processing method and apparatus, and electronic device and storage medium | |
| CN118261135A (en) | Document rendering processing method, device, equipment and medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |