Document processing and instant messaging methods, devices, electronic devices and storage media
By inserting a page jump control into the document, the tedious problem of manually searching for instant messaging objects in existing technologies is solved, enabling one-click quick jump between documents and instant messaging applications, thus improving collaboration efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-21
- Publication Date
- 2026-04-03
AI Technical Summary
When a project involves multiple stakeholders, manually searching for and communicating with them in existing instant messaging applications is cumbersome and reduces collaboration efficiency.
Insert a page jump control associated with the instant messaging object into the document. When the user clicks the control, the instant messaging application is automatically launched and the session window is displayed, enabling one-click quick jump between the document and the instant messaging application.
It simplifies user operations, improves collaboration efficiency, and enables seamless and fast switching between documents and instant messaging applications.
Smart Images

Figure CN111880858B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a document processing and instant messaging method, apparatus, electronic device and storage medium. Background Technology
[0002] With the widespread use of various types of computing terminals in people's daily lives and offices, instant messaging (IM) applications have become one of the most commonly used communication tools, gradually becoming an indispensable part of internet users' daily lives. For example, instant messaging applications are widely used in collaborative work. When editing or browsing project documents, if users need to communicate with relevant personnel, they can launch the instant messaging application and open a chat window with that person. However, in practical applications, a project involves a large number of relevant personnel, and the personnel involved in different parts of the project are also different. Users need to remember the personnel involved in each part and manually find the relevant personnel in the instant messaging application to communicate, which is cumbersome and reduces collaboration efficiency. Summary of the Invention
[0003] This application provides a document processing and instant messaging method, apparatus, electronic device, and storage medium, which enables one-click quick switching between documents and instant messaging applications, simplifies user operations, and improves collaboration efficiency.
[0004] On one hand, one embodiment of this application provides a document processing method, including:
[0005] In response to an insert operation that inserts an instant messaging object into a document, obtain the target object to be inserted.
[0006] The document displays a page navigation control for the target object, wherein when the page navigation control is triggered, a session window for real-time communication with the target object is displayed.
[0007] On one hand, one embodiment of this application provides a document processing method, including:
[0008] Respond to a triggering operation on a page navigation control in the document, the page navigation control being associated with a target object in an instant messaging application;
[0009] Displays a session window for real-time communication with the target object.
[0010] On one hand, one embodiment of this application provides an instant messaging method, including:
[0011] The document responds to a communication connection request sent by the document application. The communication connection request is generated when a page navigation control in a document opened by the document application is triggered. The communication connection request includes the object identifier of the target object associated with the page navigation control.
[0012] Displays a session window for real-time communication with the target object.
[0013] On one hand, one embodiment of this application provides a document processing apparatus, including:
[0014] The Insert module is used to respond to insert operations that insert instant messaging objects into a document and obtain the target object to be inserted;
[0015] The display module is used to display a page navigation control for the target object in the document, wherein when the page navigation control is triggered, a session window for real-time communication with the target object is displayed.
[0016] Optionally, the insertion module is specifically used for:
[0017] In response to an insert operation that inserts an instant messaging object into a document, open the instant messaging application's address book;
[0018] Based on the instant messaging object selected in the address book, the target object to be inserted is obtained.
[0019] Optionally, the insertion module is specifically used for:
[0020] In response to an insertion operation that inserts an instant messaging object into a document, obtain the object identifier of the target object input by the user based on the insertion operation.
[0021] Optionally, the insertion module is specifically used for:
[0022] In response to an insertion operation that inserts an instant messaging object into a document, the instant messaging object settings window is displayed, and the object identifier of the target object entered through the instant messaging object settings window is obtained; or...
[0023] In response to an insertion operation that inserts an instant messaging object into a document, the text content selected when the insertion operation is performed is determined as the object identifier of the target object.
[0024] Optionally, the document processing apparatus in this application embodiment further includes a verification module, configured to send a verification request to the instant messaging application before displaying a page jump control for the target object in the document, the verification request including the object identifier of the target object, so that the instant messaging application verifies whether the target object exists; if a verification message indicating that the verification has passed is received from the instant messaging application, the existence of the target object is determined, and the function of the display module is executed.
[0025] Optionally, the display module is specifically used for:
[0026] Determine the insertion position in the document corresponding to the insertion operation;
[0027] According to the preset display method, the page navigation control corresponding to the target object is displayed at the insertion position.
[0028] On one hand, one embodiment of this application provides a document processing apparatus, including:
[0029] The detection module is used to respond to trigger operations on page navigation controls in the document, which are associated with target objects in an instant messaging application;
[0030] The jump module is used to display a session window for real-time communication with the target object.
[0031] Optionally, the detection module is specifically used for:
[0032] In response to a triggering operation on a page navigation control in the document, obtain the object identifier of the target object associated with the page navigation control;
[0033] A communication connection request is generated according to the communication protocol used to communicate with the instant messaging application, the communication connection request including the object identifier of the target object;
[0034] Send the communication connection request to the instant messaging application so that the instant messaging application displays a session window for instant communication with the target object based on the communication connection request.
[0035] On one hand, one embodiment of this application provides an instant messaging device, including:
[0036] A receiving module is used to respond to a communication connection request sent by a document application. The communication connection request is generated when a page jump control in a document opened by the document application is triggered. The communication connection request includes the object identifier of the target object associated with the page jump control.
[0037] The window display module is used to display a session window for real-time communication with the target object.
[0038] Optionally, the window display module is specifically used for:
[0039] Retrieve the address book of the currently logged-in user in the instant messaging application;
[0040] The target object is located in the address book based on the object identifier, and a chat window for instant communication with the target object is displayed.
[0041] Optionally, the window display module is specifically used for:
[0042] Retrieve the address book of the currently logged-in user in the instant messaging application;
[0043] The target object is located in the address book based on the object identifier, and a chat window for instant communication with the target object is displayed.
[0044] Optionally, the instant messaging device provided in this application embodiment further includes an object adding module, which is used to send an object adding request to the target object if the target object does not exist in the address book. The object adding request is used to request instant messaging with the target object.
[0045] The window display module is specifically used to display a session window for instant communication with the target object after establishing instant communication with the target object.
[0046] Optionally, the window display module is further configured to: if the target object does not exist in the address book and the level of the currently logged-in user is higher than a preset level, then establish an instant messaging connection between the currently logged-in user and the target object, and display a session window for instant messaging with the target object.
[0047] Optionally, the instant messaging device provided in this application embodiment further includes a login module;
[0048] The login module is used to display a user login interface when no user is detected to be logged into the instant messaging application, and to complete the login operation of the instant messaging application based on the user account information obtained through the login interface; or,
[0049] The login module is used to complete the login operation of the instant messaging application based on the user account information for logging into the instant messaging application carried in the communication connection request when it is detected that no user has logged into the instant messaging application.
[0050] Optionally, the instant messaging device provided in this application embodiment further includes: an address book opening module, an object selection module, and a sending module;
[0051] The address book opening module is used to respond to the object information retrieval request sent by the document application and open the address book of the instant messaging application. The object information retrieval request is generated when an insertion operation of an instant messaging object is detected in the document.
[0052] The object selection module is used to obtain the target object selected by the user from the address book;
[0053] The sending module is used to send the object identifier of the acquired target object to the document application, so that the document application adds a page jump control for the target object in the document.
[0054] Optionally, the instant messaging device provided in this application embodiment further includes an object verification module, used for:
[0055] In response to a verification request sent by the document application, the verification request includes the object identifier of the target object;
[0056] Based on the object identifier, verify whether the target object exists;
[0057] A verification message is sent to the instant messaging application so that, upon receiving a verification message indicating successful verification, the document application adds a page navigation control for the target object in the document.
[0058] On one hand, one embodiment of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above methods.
[0059] On one hand, one embodiment of this application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of any of the above methods.
[0060] On one hand, one embodiment of this application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various alternative implementations of any of the above-described TCP transmission performance control methods.
[0061] The document processing and instant messaging method, apparatus, electronic device, and storage medium provided in this application embodiment can insert a page jump control associated with the target object that needs to be instant communicated in the document. When the user clicks the page jump control, the instant messaging application can be automatically invoked, and the conversation window for instant communication with the target object can be directly displayed, realizing one-click quick jump between the document and the instant messaging application. The operation is simple and improves collaboration efficiency. Attached Figure Description
[0062] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0063] Figure 1 This is a schematic diagram illustrating an application scenario of the document processing method provided in the embodiments of this application;
[0064] Figure 2 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0065] Figure 3 A schematic diagram illustrating an operation for inserting a page navigation control into a document, as provided in an embodiment of this application;
[0066] Figure 4 A schematic diagram illustrating an operation for inserting a page navigation control into a document, as provided in an embodiment of this application;
[0067] Figure 5 An interactive flowchart between an application document and an instant messaging application is provided as an embodiment of this application;
[0068] Figure 6A A schematic diagram illustrating an operation for inserting a page navigation control into a document, as provided in an embodiment of this application;
[0069] Figure 6B A schematic diagram illustrating an operation for inserting a page navigation control into a document, as provided in an embodiment of this application;
[0070] Figure 7 A schematic diagram illustrating an operation for inserting a page navigation control into a document, as provided in an embodiment of this application;
[0071] Figure 8 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0072] Figure 9 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0073] Figure 10 This is a schematic diagram illustrating the operation of opening a session window via a page navigation control, as provided in an embodiment of this application.
[0074] Figure 11 A flowchart illustrating an embodiment of the instant messaging method provided in this application;
[0075] Figure 12 This is a schematic diagram of the structure of a document processing apparatus provided in an embodiment of this application;
[0076] Figure 13 This is a schematic diagram of the structure of a document processing apparatus provided in an embodiment of this application;
[0077] Figure 14 This is a schematic diagram of the structure of an instant messaging device provided in an embodiment of this application;
[0078] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0079] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0080] For ease of understanding, the terms used in the embodiments of this application are explained below:
[0081] A group refers to a group of users of an application that supports group chat technology, which brings together multiple application users to communicate for a specific purpose, such as a daily communication group among family members.
[0082] Applications, also known as application programs, are computer programs that can perform one or more tasks. They generally have a visual interface and can interact with users. Examples include electronic maps and instant messaging tools. Some applications require users to install them on their devices, while others do not, such as the various mini-programs in WeChat. Mini-programs can be used without downloading or installing; users can open them by scanning a QR code or searching.
[0083] Interprocess communication (IPC) is a set of programming interfaces that allows programmers to coordinate different processes to run concurrently within an operating system and exchange information. This enables a program to handle requests from multiple users at the same time. Even a single user request can lead to the execution of multiple processes within an operating system, requiring communication between them. IPC interfaces provide this possibility, and IPC methods include pipes, message queuing, semaphores, shared memory, and sockets.
[0084] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing.
[0085] Cloud technology is a collective term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies applied to the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.
[0086] The number of any elements in the accompanying drawings is for illustrative purposes only and not as a limitation, and any naming is for distinction only and has no limiting meaning.
[0087] In practice, when editing or browsing project documents, users can launch an instant messaging application and open a chat window with relevant personnel if they need to communicate. However, in real-world applications, a project involves a large number of people, and different parts of the project involve different personnel. Users need to remember the personnel involved in each part and manually find them in the instant messaging application to communicate, which is cumbersome and reduces collaboration efficiency.
[0088] To address this, this application provides a document processing method that allows the insertion of a page jump control associated with a target object for instant messaging into a document. When a user clicks the page jump control, the instant messaging application is automatically launched, and a session window for instant messaging with the target object is directly displayed, enabling one-click quick jump between the document and the instant messaging application. This method is simple to operate and improves collaboration efficiency. Specifically, the document processing method includes: responding to an insertion operation of an instant messaging object into the document, obtaining the target object to be inserted, displaying a page jump control for the target object in the document, and displaying a session window for instant messaging with the target object when the page jump control is triggered.
[0089] After introducing the design concept of the embodiments of this application, the following is a brief introduction to the application scenarios to which the technical solutions of the embodiments of this application can be applied. It should be noted that the application scenarios described below are only for illustrating the embodiments of this application and are not intended to limit the scope. In specific implementation, the technical solutions provided by the embodiments of this application can be flexibly applied according to actual needs.
[0090] refer to Figure 1 This diagram illustrates an application scenario of the task control method provided in this application. The application scenario includes multiple terminal devices 101 (including terminal device 101-1, terminal device 101-2, ..., terminal device 101-n) and an IM server 102. Terminal devices 101 include, but are not limited to, desktop computers, mobile phones, mobile computers, tablets, media players, smart wearable devices, smart TVs, and other electronic devices. The IM server 102 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminal devices 101 and the IM server 102 can be connected via wireless or wired communication networks.
[0091] Terminal device 101 can install document applications and IM applications, or the document application can be a mini-program within an IM application. Users can log in to the IM application within terminal device 101 and send messages to other users' terminal devices or receive messages sent to them by other users through IM server 102, enabling instant communication with other users. Multiple users can form an IM group. Any user in the IM group can send messages to the IM group through the IM application within terminal device 101, and each user in the IM group can receive messages and reply through their respective IM application within terminal device 101. Users can also open and edit documents through the document application within terminal device 101, and send documents to other users or IM groups through the IM application. Inter-process communication can be performed between the document application and the IM application within terminal device 101 to achieve communication between them. Communication between the document application and the IM application can also be achieved through jump protocols, such as the schema protocol.
[0092] The document application in this application refers to application software used for reading and editing various documents, including but not limited to Word, Excel, online collaborative documents and other office software.
[0093] Of course, the methods provided in the embodiments of this application are not limited to... Figure 1 The application scenarios shown can also be used in other possible scenarios, and this application does not impose any limitations. Figure 1 The functions that each device in the application scenario shown can achieve will be described in subsequent method embodiments, and will not be elaborated on here.
[0094] To further illustrate the technical solutions provided in the embodiments of this application, a detailed description is provided below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation steps as shown in the following embodiments or drawings, the method may include more or fewer operation steps based on conventional or non-inventive methods. In steps where there is no logically necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application.
[0095] The following is combined with Figure 1 The application scenarios shown illustrate the technical solutions provided in the embodiments of this application.
[0096] refer to Figure 2 This application provides a document processing method applicable to document applications, comprising the following steps:
[0097] S201. Respond to the insertion operation of inserting an instant messaging object into a document and obtain the target object to be inserted.
[0098] The documents in this application embodiment can be of various types, such as Word, spreadsheet, PDF (Portable Document Format), PPT (PowerPoint), etc., and are not limited thereto.
[0099] The target object to be inserted refers to the object that the user expects to communicate with instantly. This target object can be an IM group or an individual user in an instant messaging application.
[0100] Unless otherwise specified, the insertion operation in this application refers to the insertion of an instant messaging object into a document. The insertion operation can be a pre-defined operation, such as a long press, a double-click, or an operation that triggers a pre-defined insertion button; this application does not limit this. Figure 3 For example, users can right-click in the document's convenient interface 301 to open the function menu 302, and then click the "Insert Contact" button 303 in the function menu 302 to trigger the insertion operation. Alternatively, they can set the "Insert Contact" function button in the document toolbar. Figure 4 For example, users can first select the text content "Zhang San" in the document, and then long press the selected text content to trigger the insertion operation.
[0101] In practice, users insert target objects for subsequent instant messaging by performing an insert operation in the document. Specifically, the target object can be an instant messaging object manually entered by the user in the document, or an instant messaging object selected by the user from the instant messaging application.
[0102] S202. Display a page navigation control for the target object in the document, wherein when the page navigation control is triggered, a session window for real-time communication with the target object is displayed.
[0103] In specific implementation, step S202 includes the following steps: determining the insertion position in the document corresponding to the insertion operation; and displaying the page navigation control corresponding to the target object at the insertion position according to a preset display method. The insertion position can be determined based on the location of the user-input insertion operation in the document. The preset display method can be a button display (see reference). Figure 3 Alternatively, it can be displayed by adding underlines, changing the font, etc. (see reference) Figure 4 In practical applications, any display method that differs from the text in the document and prompts the user that the content is operable can be used, and the embodiments of this application are not limited to any particular method.
[0104] Furthermore, the text content displayed on the page navigation control can include the object identifier of the target object. For example, if the target object inserted by the user is "Zhang San", then the text content displayed by the page navigation control will be "Zhang San". If the target object inserted by the user is "Project Group A", then the text content displayed by the page navigation control will be "Project Group A".
[0105] by Figure 3 For example, a user opens the function menu 302 by right-clicking, then clicks the "Insert Contact" button 303 in the function menu 302 to trigger the insertion operation. The insertion position is the location of the input cursor 304 in the document, and the target object is "Zhang San". At the determined insertion position, the page navigation control 306 is displayed in a preset display mode. Figure 4 For example, after a user selects the text "Zhang San" in a document, they can long-press the selected text to trigger the insertion operation. At this time, the insertion position is the location of the selected text in the document. The display mode of the text "Zhang San" at the insertion position can be changed to the preset display mode, that is, the text "Zhang San" at the insertion position has become the page jump control 401.
[0106] Before performing step S202, the method of this application embodiment further includes the following steps: storing the object identifier of the target object associated with the page jump control and the application identifier of the instant messaging application.
[0107] In practice, document applications store the association information for each page navigation control within the document. This association information may include the object identifier of the target object and the application identifier of the instant messaging application to which the target object belongs. The object identifier can be the name or ID of the target object within the instant messaging application. The association information for page navigation controls is stored within the document. When a user sends the document to another user, this association information is sent along with the document. Thus, when another user triggers a page navigation control within the document, the document application can retrieve the association information from the document and then send a communication connection request to the instant messaging application corresponding to the application identifier in the association information. This communication connection request includes the object identifier associated with the page navigation control, enabling the instant messaging application to open a session window for instant communication with the target object. For online document applications, the association information for page navigation controls can also be stored on an online document server.
[0108] Taking the page navigation control in an IM group as an example, the storage format of its associated information can be:<IM stype="pos=x,y;color=#FFFFF"src="imid: / / opengroup / groupid / groupname / userid"> The `groupname` directive specifies the location of the page navigation control within the document. "stype="pos="x,y" indicates the position of the page navigation control in the document, "color="#FFFFF"" indicates the color of the page navigation control in the document, "imid" is the instant messaging application identifier, "opengroup" indicates opening a group chat window within the instant messaging application, "groupid" is the group ID of the IM group corresponding to the page navigation control, "groupname" is the group name of the IM group, and "userid" is the user ID of the user using the document application within the instant messaging application. "imid: / / opengroup / groupid / groupname" represents a communication connection request conforming to an inter-process communication protocol. This communication connection request is sent to the instant messaging application corresponding to `imid`, and the instant messaging application opens a group chat window with the group name `groupname` and group ID `groupid` according to the communication connection request.
[0109] The document processing method of this application embodiment can insert a page jump control associated with the target object that needs to be instantly communicated in the document. When the user clicks the page jump control, the instant messaging application can be automatically invoked and the conversation window for instant communication with the target object can be directly displayed, realizing one-click quick jump between the document and the instant messaging application. The operation is simple and improves collaboration efficiency.
[0110] In one possible implementation, step S201 specifically includes: in response to an insertion operation that inserts an instant messaging object into a document, opening the address book of the instant messaging application; and obtaining the target object to be inserted based on the instant messaging object selected in the address book.
[0111] In practice, the instant messaging application sends the object identifier of the instant messaging object selected by the user in the address book to the document application. The document application receives the object identifier sent by the instant messaging application and uses the instant messaging object corresponding to that object identifier as the target object. The object identifier can be the name or ID of the target object in the instant messaging application.
[0112] Specifically, the interaction methods between application documents and instant messaging applications are as follows: Figure 5 As shown, the specific steps include the following:
[0113] S501, The application document responds to the insertion operation of inserting an instant messaging object into the document by sending an object information retrieval request to the instant messaging application.
[0114] In practice, application documents and instant messaging applications within the same terminal device can communicate through inter-process communication protocols. For example, an application document can use pipe technology to send an object information retrieval request to the instant messaging application to start the instant messaging application on the terminal device and enable the instant messaging application to open the address book of the currently logged-in user. Here, the currently logged-in user refers to the user who is currently using the instant messaging application.
[0115] The specific format of the object information retrieval request needs to be configured according to the inter-process communication protocol used, and this application embodiment does not limit it.
[0116] In practice, an application document can communicate with one or more instant messaging applications via inter-process communication. When a document application can only communicate with a single designated instant messaging application, after the user inputs an insert operation, the document application directly generates an object information retrieval request according to the defined inter-process communication protocol with that instant messaging application and sends it to that instant messaging application. (Reference) Figure 6A When a document application can communicate with multiple instant messaging applications, the document application responds to the insertion operation by displaying an application options menu 601. This menu includes multiple instant messaging applications, and the user can select any one of them. Based on the selected instant messaging application and the defined inter-process communication protocol, the document application generates a corresponding object information retrieval request and sends it to that application. The instant messaging application opens its address book 305, and the user selects a target object. The instant messaging application then sends the object identifier of the selected target object to the document application. The document application displays a page navigation control 306 corresponding to the target object at the insertion position in the document. Therefore, the object information retrieval request can include the application identifier of the instant messaging application to distinguish the interaction information between the document application and each instant messaging application. In practical applications, it can also be configured according to... Figure 6B The page navigation control is inserted in a certain way. After the user selects the text content "Zhang San" in the document, he / she long-presses the selected text content to trigger the insertion operation. The document application responds to the insertion operation and displays the application option menu 601. After the user selects an instant messaging application, the document application generates a page navigation control for "Zhang San" according to the instant messaging application selected by the user and stores the associated information of the page navigation control.
[0117] S502: The instant messaging application responds to the object information retrieval request and opens the instant messaging application's address book.
[0118] In practice, users can open the instant messaging application before inserting input and log in using their instant messaging account. When the document application sends an object information retrieval request to the instant messaging application, the instant messaging application directly responds to the request and opens the currently logged-in user's address book. Alternatively, if the instant messaging application is not running when the document application sends the object information retrieval request, it can be launched and the user login interface can be displayed. The user can then log in by entering their instant messaging account, and the currently logged-in user's address book will be automatically opened. Or, the object information retrieval request may include the user's instant messaging account. The instant messaging application responds to the request, automatically logs in based on the account information provided, and opens the currently logged-in user's address book.
[0119] In practice, users can log in to the document application using their instant messaging account. In this case, the instant messaging account carried in the object information retrieval request sent by the document application is the same instant messaging account used by the user to log in to the document application. Alternatively, users can pre-associate their document application account with their instant messaging account. In this case, the instant messaging account carried in the object information retrieval request sent by the document application is the same instant messaging account associated with the document application account used by the user to log in to the document application.
[0120] S503, Instant messaging applications obtain target objects selected by users from their address books.
[0121] The address book includes instant messaging contacts that the currently logged-in user can reach, such as users who have already added the user as a friend, IM groups that the currently logged-in user has joined, or users who belong to the same organization as the currently logged-in user. Taking WeChat Work as an example, the organization can be a department, company, etc., meaning that users belonging to the same department or company can communicate instantly through WeChat Work.
[0122] refer to Figure 3 After the terminal device opens the address book of the instant messaging application, the user can select an instant messaging object from the address book. The instant messaging application obtains the object identifier of the instant messaging object selected by the user and sends the obtained object identifier of the target object to the document application.
[0123] In practical applications, when the target object is not in the currently logged-in user's address book, the user can also search for the target object through the instant messaging application, obtain the object identifier of the target object, and send the obtained object identifier of the target object to the document application.
[0124] S504. The instant messaging application sends the object identifier of the target object to the document application.
[0125] Similarly, the instant messaging application sends the object identifier of the target object to the document application according to a pre-defined inter-process communication protocol between the instant messaging application and the document application.
[0126] S505, Document Application: Add a page navigation control for the target object to the document.
[0127] The specific implementation of step S505 can be referred to the specific implementation of step S202, and will not be repeated here.
[0128] based on Figure 5 As shown, users can easily open the instant messaging application's address book by entering an insert operation in the document, then select the target object to communicate with based on the address book, and automatically generate a page jump control for the target object. This achieves seamless jump between the document application and the instant messaging application when inserting the target object, simplifies user operation, and allows users to obtain accurate information about the target object.
[0129] In another possible implementation, step S201 specifically includes: responding to an insertion operation that inserts an instant messaging object into the document, obtaining the object identifier of the target object input by the user based on the insertion operation. That is, the user can manually input the object identifier of the target object into the document, and the document application generates a page navigation control for the target object based on the user-input object identifier, and displays the page navigation control in the document.
[0130] In practice, the document application responds to the insertion operation of an instant messaging object into the document by displaying the instant messaging object settings window and obtaining the object identifier of the target object entered through the instant messaging object settings window. (Reference) Figure 7 When a user inserts an operation in a document, the document application responds to the insertion operation and pops up a communication object settings window 701. The user can enter the object identifier of the target object in the target object settings field 702 of the communication object settings window 701. After clicking the OK button 704, the document application obtains the object identifier of the target object entered in the communication object settings window, generates a page jump control for the target object, and stores the information associated with the page jump control, including the object identifier of the target object.
[0131] refer to Figure 7When a document application supports communication with multiple instant messaging applications, the communication object settings window can also include an application option bar 703. Clicking the drop-down button in the application option bar 703 displays multiple selectable instant messaging applications. The user can select one of these applications. The document application obtains the application identifier of the selected instant messaging application, generates a page jump control for that target object, and stores the associated information of the page jump control. This associated information includes the object identifier of the target object and the application identifier of the selected instant messaging application. Thus, when the user triggers the page jump control, the document application can obtain the inter-process communication protocol corresponding to the instant messaging application based on the application identifier in the associated information of the page jump control. Based on this inter-process communication protocol, it generates a corresponding communication connection request and sends it to the instant messaging application. This communication connection request includes at least the object identifier from the associated information of the page jump control.
[0132] Of course, for reference Figure 7 Additionally, an "Open Contacts" button 705 can be set within the communication target settings window. Clicking this button triggers the instant messaging application to open the contacts list, allowing the user to select a target contact. For specific implementation details, please refer to [link to implementation details]. Figure 4 The method shown will not be elaborated further. It should be noted that when the document application can only communicate with a single designated instant messaging application, the communication object settings window 701 does not provide an application option bar 703. After clicking the "Open Contacts" button, the contact list of the single designated instant messaging application will be opened. When the document application supports communication with multiple instant messaging applications, the user can first select an instant messaging application through the application option bar, and then click the "Open Contacts" button. At this time, the contact list of the instant messaging application selected by the user through the application option bar will be opened.
[0133] In practice, when a document application responds to an insertion operation that inserts an instant messaging object into a document, the text content selected during the insertion operation is identified as the object identifier of the target object.
[0134] refer to Figure 4 Users can first select text content in a document, and then enter the insertion operation to insert an instant messaging object into the document. The document application will then use the currently selected text content as the object identifier of the target object. The selected text content can be an object identifier that already exists in the document, or it can be an object identifier that the user enters in real-time. The insertion operation can be performed by right-clicking to open the function menu, clicking the "Insert Contact" button in the function menu, in which case the document application will use the currently selected text content as the object identifier of the target object; alternatively, users can long-press the selected text content to use it as the object identifier of the target object. There are no restrictions on which method is used.
[0135] When a user chooses to manually input a target object, in order to ensure the accuracy of the target object information entered by the user, before executing step S202, the method of this application embodiment further includes the following steps: the document application sends a verification request to the instant messaging application, the verification request including the object identifier of the target object, so that the instant messaging application can verify whether the target object exists; if a verification message indicating that the verification has passed is received from the instant messaging application, it is determined that the target object exists, and step S202 is executed; if a message indicating that the verification has failed is received from the instant messaging application, it means that the target object entered by the user does not exist. At this time, the text application can display a prompt message indicating that the target object does not exist, prompting the user to re-enter the correct target object, or choose to obtain the target object by opening the address book.
[0136] Based on the above implementation method, users can manually input a target object, and even if the user is not a friend of the target object, a page navigation control corresponding to the target object can be inserted into the document. Furthermore, the IM application can verify the existence of the user-inputted target object, ensuring the accuracy of the information.
[0137] refer to Figure 8 This application also provides a document processing method that can be applied to document applications, specifically including the following steps:
[0138] S801, responds to a trigger operation on a page navigation control in a document, the page navigation control being associated with a target object in an instant messaging application.
[0139] For instructions on adding a page navigation control for the target object to the document, please refer to [link / reference]. Figure 2 The document processing method shown.
[0140] The triggering operation for the page navigation control can be a long press on the page navigation control, a double-click on the page navigation control, etc., and this application embodiment does not limit it.
[0141] S802, Displays a session window for real-time communication with the target object.
[0142] In practice, the document application stores the association information for each page navigation control within the document. This association information may include the object identifier of the target object and the application identifier of the instant messaging application to which the target object belongs. The association information for the page navigation controls is stored in the document, and when a user sends the document to another user, this association information is sent along with the document.
[0143] When a user triggers a page navigation control in a document, the document application can obtain the associated information of the page navigation control from the document, and then send a communication connection request to the instant messaging application corresponding to the application identifier in the associated information. The communication connection request includes the object identifier associated with the page navigation control, so that the instant messaging application can open a session window for instant communication with the target object.
[0144] refer to Figure 9 In specific implementation, step S801 includes the following steps:
[0145] S901, respond to the triggering operation of the page navigation control in the document, and obtain the object identifier of the target object associated with the page navigation control.
[0146] S902. Generate a communication connection request according to the communication protocol used to communicate with the instant messaging application. The communication connection request includes the object identifier of the target object.
[0147] In practice, the document application can obtain the application identifier of the instant messaging application from the association information of the page jump control. Based on this application identifier, it can obtain the communication protocol for inter-process communication between the document application and the instant messaging application. Based on this communication protocol, it can generate a communication connection request containing the object identifier of the target object. For example, if the target object associated with the page jump control has the group name "groupname", the group ID "groupid", and the application identifier "wework", then the generated communication connection request could be: wework: / / opengroup / groupid / groupname / userid.
[0148] S903. Send a communication connection request to the instant messaging application so that the instant messaging application displays a session window for instant communication with the target object based on the communication connection request.
[0149] In practice, users can open the instant messaging application before triggering the page jump control in the document, and enter their instant messaging account and password to complete the login operation. When the document application responds to the triggering operation of the page jump control in the document and sends a communication connection request to the instant messaging application, the instant messaging application directly responds to the communication connection request, finds the target object in the address book based on the object identifier in the communication connection request, and opens a session window for instant communication with the target object.
[0150] When a document application sends a communication connection request to an instant messaging application, if the instant messaging application is not running, it will start and display the user login interface. The user enters their instant messaging account and password to complete the login. After login, the instant messaging application uses the object identifier in the communication connection request to find the target object in the currently logged-in user's address book and opens a session window to communicate with the target object instantly.
[0151] Alternatively, the document application can send a connection request to the instant messaging application containing the user's instant messaging account and password. The instant messaging application, based on this account and password, automatically logs in and, using the object identifier in the connection request, locates the target object in the currently logged-in user's address book, opening a chat window for instant messaging with that object. In practice, the user can log in to the document application using their instant messaging account; in this case, the instant messaging account and password carried in the connection request sent by the document application are the same as the account used to log in. Alternatively, the user can pre-associate their document application account with their instant messaging account; in this case, the instant messaging account carried in the connection request sent by the document application is the same instant messaging account associated with the document application account used to log in.
[0152] refer to Figure 10 User D opens the document for Project W through a document application. When reading the second part, he needs to communicate with the relevant personnel in the second part. At this time, User D can click the page jump control 1001 corresponding to the contact "Project Group A" in the document. The document application responds to the trigger operation of the page jump control "Project Group A" by sending a communication connection request to the associated instant messaging application. The instant messaging application opens a session window 1002 for instant communication with "Project Group A". The user can then communicate with the personnel of Project Group A through the session window 1002.
[0153] based on Figures 8-10 The provided implementation allows users to directly open a chat window for instant communication with a target object by clicking the page jump control in the document. There is no need to remember the target object to communicate with or manually search for the target object. This enables one-click quick jump between the document and the instant messaging application, which is simple to operate and improves collaboration efficiency.
[0154] refer to Figure 11 This application also provides an instant messaging method that can be applied to instant messaging applications, specifically including the following steps:
[0155] S1101. Respond to the communication connection request sent by the document application. The communication connection request is generated when the page jump control in the document opened by the document application is triggered. The communication connection request includes the object identifier of the target object associated with the page jump control.
[0156] S1102. Display a session window for real-time communication with the target object.
[0157] In specific implementation, step S1102 includes: obtaining the address book of the currently logged-in user in the instant messaging application; finding the target object from the address book based on the object identifier, and displaying a conversation window for instant messaging with the target object. Here, the currently logged-in user in the instant messaging application refers to the user currently using the instant messaging application.
[0158] In practice, users can open the instant messaging application before triggering the page jump control in the document, and enter their instant messaging account and password to complete the login operation. When the instant messaging application receives a communication connection request sent by the document application, it directly finds the target object from the currently logged-in user's address book based on the object identifier in the communication connection request, and opens a session window to communicate with the target object instantly.
[0159] When a document application sends a communication connection request to an instant messaging application, if the instant messaging application is not running (i.e., no user is detected logged in), it starts the instant messaging application and displays its user login interface. The user can enter their instant messaging account and password through this interface. Based on the user account information obtained through the login interface, the instant messaging application completes the login process. After login, the instant messaging application uses the object identifier from the currently logged-in user's address book to find the target object and open a chat window for instant messaging with that object. Specifically, the user can manually enter their account information (including their instant messaging account and password) on the login interface, or the interface can display a QR code, allowing the user to scan the QR code with their mobile device to enter their account information and complete the login process.
[0160] Alternatively, the document application can send a connection request to the instant messaging application containing user account information for logging into the instant messaging application. This user account information includes the instant messaging username and password. Based on the instant messaging username and password in the connection request, the instant messaging application automatically completes the login process and, based on the object identifier in the connection request, finds the target object in the currently logged-in user's address book and opens a chat window to communicate with the target object. In specific implementations, users can log into the document application using their instant messaging account. In this case, the instant messaging username and password carried in the connection request sent by the document application are the same ones used by the user to log into the document application. Alternatively, users can pre-associate their document application account with their instant messaging account. In this case, the instant messaging account carried in the connection request sent by the document application is the instant messaging account associated with the document application account used by the user to log into the document application.
[0161] Based on any of the above embodiments, the instant messaging method provided in this application further includes the following steps: if the target object does not exist in the address book, an object addition request is sent to the target object, the object addition request being used to request instant messaging with the target object; after establishing instant messaging with the target object, a session window for instant messaging with the target object is displayed.
[0162] When the target is an individual user, if the target is not in the current user's address book, it means that the target is not a friend of the current user. The instant messaging application sends a friend request to the target (which is a type of object add request). After the target accepts the friend request, the instant messaging application displays a chat window for instant messaging with the target.
[0163] When the target object is an IM group, if the currently logged-in user's address book does not contain the IM group, it means that the currently logged-in user is not in the IM group. At this time, the instant messaging application sends a join request to the IM group (which is a type of object addition request). After the IM group agrees to let the currently logged-in user join, the instant messaging application displays a session window for instant communication with the IM group.
[0164] Using the above method, when the target object is not in the currently logged-in user's address book, an object addition request can be automatically sent to the target object, simplifying the user's manual addition of the target object.
[0165] The address book includes instant messaging contacts that the currently logged-in user can reach, such as users who have already added the current logged-in user as a friend, IM groups that the current logged-in user has joined, or users who belong to the same organization as the current logged-in user. Taking WeChat Work as an example, the organization can be a department, company, etc., meaning that users belonging to the same department or company can communicate instantly through WeChat Work.
[0166] Based on any of the above embodiments, the instant messaging method provided in this application further includes the following steps: if the target object does not exist in the address book and the level of the currently logged-in user is higher than a preset level, then an instant messaging connection is established between the currently logged-in user and the target object, and a session window for instant messaging with the target object is displayed. Specifically, if the level of the currently logged-in user is higher than the preset level, the instant messaging application of the currently logged-in user can send a temporary session establishment request to the IM server. The temporary session establishment request includes the user identifier of the currently logged-in user and the object identifier of the target object. After receiving the temporary session establishment request and verifying that the level of the currently logged-in user is higher than the preset level, the IM server directly establishes a temporary session between the currently logged-in user and the target object.
[0167] The preset levels can be set according to specific application scenarios. For example, if the currently logged-in user's level is project leader or department manager, and the currently logged-in user and the target object are not friends, there is no need to wait for the target object to verify the request to add the object. The IM server can directly establish a temporary session between the currently logged-in user and the target object, and display a temporary session window for the current logged-in user to communicate with the target object in real time, reducing waiting time and improving collaboration efficiency.
[0168] Based on any of the above embodiments, before step S1001, the instant messaging method provided in this application embodiment further includes the following steps: responding to an object information retrieval request sent by a document application, opening the address book of the instant messaging application, wherein the object information retrieval request is generated when an insertion operation of inserting an instant messaging object into the document is detected; retrieving the target object selected by the user from the address book; and sending the object identifier of the retrieved target object to the document application, so that the document application adds a page jump control for the target object in the document. For detailed embodiments, please refer to... Figure 5 I will not go into details.
[0169] Based on any of the above embodiments, the instant messaging method provided in this application further includes the following steps: responding to a verification request sent by a document application, the verification request including an object identifier of the target object, and verifying the existence of the target object based on the object identifier; sending a verification message to the instant messaging application so that after receiving the verification message indicating that the verification is successful, the document application adds a page jump control for the target object in the document.
[0170] Specifically, the instant messaging application can check if the target object exists in the currently logged-in user's address book. If it exists, it returns a verification message to the document application indicating successful verification. If the target object does not exist in the currently logged-in user's address book, the instant messaging application can send a verification request to the IM server to verify the existence of the target object. If it exists, it indicates that the target object is not a friend of the currently logged-in user. In this case, the instant messaging application can return a "not a friend" message to the document application. The document application can then display an information verification window based on this message. This information verification window includes the object identifier of the target object entered by the user, allowing the user to verify whether the entered object identifier is correct. If the user confirms that it is correct, they can click the "Confirm" button in the information verification window. At this time, the document application will generate a page jump control for the target object and display it in the document. If the user's object identifier is incorrect, they can close the information verification window and try inserting it again. If the IM server verifies that the target object does not exist, the instant messaging application can return a "target object does not exist" message to the document application, and the user can try inserting it again.
[0171] Based on the above implementation method, the IM application can verify whether the target object entered by the user exists, thus ensuring the accuracy of the information of the target object entered by the user.
[0172] like Figure 12 As shown, based on the same inventive concept as the above document processing method, this application embodiment also provides a document processing device 120, including an insertion module 1201 and a display module 1202.
[0173] Insertion module 1201 is used to respond to the insertion operation of inserting an instant messaging object into a document and obtain the target object to be inserted;
[0174] Display module 1202 is used to display a page navigation control for a target object in a document, wherein when the page navigation control is triggered, a session window for real-time communication with the target object is displayed.
[0175] Optionally, the insertion module 1201 is specifically used to: respond to an insertion operation that inserts an instant messaging object into a document, open the address book of the instant messaging application; and obtain the target object to be inserted based on the instant messaging object selected in the address book.
[0176] Optionally, the insertion module 1201 is specifically used to: respond to an insertion operation that inserts an instant messaging object into a document and obtain the object identifier of the target object based on the user's input of the insertion operation.
[0177] Optionally, the insertion module 1201 is specifically used to: respond to the insertion operation of inserting an instant messaging object into the document, display the instant messaging object settings window, and obtain the object identifier of the target object entered through the instant messaging object settings window.
[0178] Optionally, the insertion module 1201 is specifically used to: respond to an insertion operation that inserts an instant messaging object into a document, and determine the text content selected when the insertion operation is performed as the object identifier of the target object.
[0179] Optionally, the document processing apparatus in this application embodiment further includes a verification module, which is used to send a verification request to an instant messaging application before displaying a page jump control for the target object in the document. The verification request includes the object identifier of the target object so that the instant messaging application can verify whether the target object exists. If a verification message indicating that the verification has passed is received from the instant messaging application, it is determined that the target object exists and the function of the display module 1202 is executed.
[0180] Optionally, the display module 1202 is specifically used to: determine the insertion position in the document corresponding to the insertion operation; and display the page navigation control corresponding to the target object at the insertion position according to a preset display method.
[0181] like Figure 13 As shown, based on the same inventive concept as the above document processing method, this application embodiment also provides a document processing device 130, including a detection module 1301 and a jump module 1302.
[0182] The detection module 1301 is used to respond to the triggering operation of the page jump control in the document, which is associated with a target object in the instant messaging application;
[0183] Jump module 1302 is used to display a session window for real-time communication with the target object.
[0184] Optionally, the detection module 1301 is specifically used for:
[0185] In response to a triggering operation on a page navigation control in the document, obtain the object identifier of the target object associated with the page navigation control;
[0186] A communication connection request is generated according to the communication protocol used to communicate with the instant messaging application. The communication connection request includes the object identifier of the target object.
[0187] Send a communication connection request to the instant messaging application so that the instant messaging application displays a session window for instant communication with the target object based on the communication connection request.
[0188] The document processing device 120 and document processing device 130 described above can be integrated into the same document application to achieve different functions.
[0189] like Figure 14 As shown, based on the same inventive concept as the above-described instant messaging method, this application embodiment also provides an instant messaging device 140, including a receiving module 1401 and a window display module 1402.
[0190] The receiving module 1401 is used to respond to a communication connection request sent by the document application. The communication connection request is generated when a page jump control in a document opened by the document application is triggered. The communication connection request includes the object identifier of the target object associated with the page jump control.
[0191] The window display module 1402 is used to display a session window for real-time communication with the target object.
[0192] Optionally, the window display module 1402 is specifically used to: obtain the address book of the currently logged-in user in the instant messaging application; find the target object from the address book based on the object identifier, and display the conversation window for instant messaging with the target object.
[0193] Optionally, the window display module 1402 is specifically used to: obtain the address book of the currently logged-in user in the instant messaging application; find the target object from the address book based on the object identifier, and display the conversation window for instant messaging with the target object.
[0194] Optionally, the instant messaging device 140 provided in this application embodiment further includes an object adding module, which is used to send an object adding request to the target object if the target object does not exist in the address book. The object adding request is used to request instant messaging with the target object.
[0195] Accordingly, the window display module 1402 is specifically used to display the conversation window for instant communication with the target object after establishing instant communication with the target object.
[0196] Optionally, the window display module 1402 is further configured to: if the target object does not exist in the address book and the level of the currently logged-in user is higher than the preset level, establish an instant messaging connection between the currently logged-in user and the target object, and display a conversation window for instant messaging with the target object.
[0197] Optionally, the instant messaging device 140 provided in this application embodiment also includes a login module.
[0198] The login module can be used to display the user login interface when no user is detected to be logged into the instant messaging application, and complete the login operation of the instant messaging application based on the user account information obtained through the login interface.
[0199] Alternatively, the login module can be used to complete the login operation of the instant messaging application based on the user account information used to log in to the instant messaging application carried in the communication connection request when no user is detected to be logged in.
[0200] Optionally, the instant messaging device 140 provided in this application embodiment further includes: an address book opening module, an object selection module, and a sending module;
[0201] The Contacts Open module is used to respond to the object information retrieval request sent by the document application and open the contact list of the instant messaging application. The object information retrieval request is generated when an insertion operation of an instant messaging object into the document is detected.
[0202] The object selection module is used to obtain the target object selected by the user from the address book;
[0203] The sending module is used to send the object identifier of the acquired target object to the document application, so that the document application can add a page jump control for the target object in the document.
[0204] Optionally, the instant messaging device 140 provided in this application embodiment further includes an object verification module, used for:
[0205] Respond to the verification request sent by the document application, which includes the object identifier of the target object;
[0206] Based on the object identifier, verify whether the target object exists;
[0207] A verification message is sent to the instant messaging application so that the document application can add a page navigation control for the target object in the document after receiving the verification message indicating that the verification has passed.
[0208] The instant messaging device proposed in this application and the instant messaging method described above adopt the same inventive concept and can achieve the same beneficial effects, which will not be repeated here.
[0209] Based on the same inventive concept as the document processing method and instant messaging method described above, this application also provides an electronic device, specifically an electronic device that is Figure 1 The terminal device shown. (For example...) Figure 15 As shown, the electronic device 150 may include a processor 1501 and a memory 1502.
[0210] Processor 1501 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0211] Memory 1502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. Memory 1502 in this embodiment may also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0212] This application provides a computer-readable storage medium for storing computer program instructions used by the aforementioned electronic device, which includes a program for performing the aforementioned document processing method or instant messaging method.
[0213] The aforementioned computer storage media can be any available medium or data storage device that a computer can access, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), solid-state drives (SSDs), etc.).
[0214] The above embodiments are only used to provide a detailed description of the technical solutions of this application. However, the descriptions of the above embodiments are only for the purpose of helping to understand the methods of the embodiments of this application and should not be construed as limiting the embodiments of this application. Any variations or substitutions that can be easily conceived by those skilled in the art should be covered within the protection scope of the embodiments of this application.
Claims
1. A document processing method, characterized in that, Applied to document applications, including: Obtain the object identifier of the target object to be inserted into the document using at least one of the following methods (one through three): Method 1: In response to the first trigger operation in the document display interface, display the function menu; in response to the insert operation triggered by selecting the insert contact option displayed in the function menu, generate an object information retrieval request and send the object information retrieval request to the instant messaging application; receive the object identifier of the target object sent by the instant messaging application; wherein, the target object is an object selected by the user from the address book of the instant messaging application; Method 2: After receiving a selection operation on the text content in the document, based on the insertion operation triggered by performing a second trigger operation on the text content, the text content is determined as the object identifier of the target object; wherein, the text content includes at least one of the following: an object identifier that originally exists in the document, or an object identifier that the user inputs in real time in the document; Method 3: In response to the insertion operation of an instant messaging object into a document, display the instant messaging object settings window; obtain the object identifier of the target object entered in the instant messaging object settings window; The target objects are individual users or groups in instant messaging applications; The instant messaging application verifies whether the target object exists in the address book of the currently logged-in user; if the verification is successful, a page jump control for the target object is generated; if the verification fails but the target object is confirmed to exist in the instant messaging application, a page jump control for the target object is generated based on the received confirmation operation for the target object. The insertion position in the document displays a page navigation control for the target object. The page navigation control displays the object identifier of the target object. The insertion position is determined according to the position of the insertion operation in the document. The insertion position corresponding to Method 1 is the position of the input cursor in the document, and the insertion position corresponding to Method 2 is the position of the text content. In response to a triggering operation on the page navigation control, a session window for real-time communication with the target object is displayed; The document also stores the associated information of the page jump control. When the document is sent to other users, the associated information is sent to the other users along with the document, so that when the other users trigger the page jump control in the document, a conversation window for real-time communication with the target object is presented to the other users.
2. The method according to claim 1, characterized in that, The step of verifying whether the target object exists in the address book of the currently logged-in user through the instant messaging application includes: Send a verification request to the instant messaging application, the verification request including the object identifier of the target object, so that the instant messaging application can verify whether the target object exists; If a verification message indicating successful verification is received from the instant messaging application, then the existence of the target object is confirmed.
3. The method according to any one of claims 1 to 2, characterized in that, The insertion point in the document displays a page navigation control for the target object, specifically including: Determine the insertion position in the document corresponding to the insertion operation; According to the preset display method, the page navigation control corresponding to the target object is displayed at the insertion position.
4. A document processing method, characterized in that, include: Respond to a triggering operation on a page navigation control in the document, the page navigation control being associated with a target object in an instant messaging application; Displays a session window for real-time communication with the target object; The process of inserting the page navigation control into the document includes: Obtain the object identifier of the target object to be inserted into the document using at least one of the following methods one through three: Method 1: In response to the first trigger operation in the document display interface, display the function menu; in response to the insert operation triggered by selecting the insert contact option displayed in the function menu, generate an object information retrieval request and send the object information retrieval request to the instant messaging application; receive the object identifier of the target object sent by the instant messaging application; wherein, the target object is an object selected by the user from the address book of the instant messaging application; Method 2: After receiving a selection operation on the text content in the document, based on the insertion operation triggered by performing a second trigger operation on the text content, the text content is determined as the object identifier of the target object; wherein, the text content includes at least one of the following: an object identifier that originally exists in the document, or an object identifier that the user inputs in real time in the document; Method 3: In response to the insertion operation of an instant messaging object into a document, display the instant messaging object settings window; obtain the object identifier of the target object entered in the instant messaging object settings window; The target objects are individual users or groups in instant messaging applications; The instant messaging application verifies whether the target object exists in the address book of the currently logged-in user; if the verification is successful, a page jump control for the target object is generated; if the verification fails but the target object is confirmed to exist in the instant messaging application, a page jump control for the target object is generated based on the received confirmation operation for the target object. The insertion position in the document displays a page navigation control for the target object. The page navigation control displays the object identifier of the target object. The insertion position is determined according to the position of the insertion operation in the document. The insertion position corresponding to Method 1 is the position of the input cursor in the document, and the insertion position corresponding to Method 2 is the position of the text content. The document also stores the associated information of the page jump control. When the document is sent to other users, the associated information is sent to the other users along with the document, so that when the other users trigger the page jump control in the document, a conversation window for real-time communication with the target object is presented to the other users.
5. The method according to claim 4, characterized in that, The response triggers page navigation controls in the document, specifically including: In response to a triggering operation on a page navigation control in the document, obtain the object identifier of the target object associated with the page navigation control; A communication connection request is generated according to the communication protocol used to communicate with the instant messaging application, the communication connection request including the object identifier of the target object; Send the communication connection request to the instant messaging application so that the instant messaging application displays a session window for instant communication with the target object based on the communication connection request.
6. An instant messaging method, characterized in that, include: The document responds to a communication connection request sent by the document application. The communication connection request is generated when a page navigation control in a document opened by the document application is triggered. The communication connection request includes the object identifier of the target object associated with the page navigation control. Displays a session window for real-time communication with the target object; The page navigation control is inserted into the document by the document application in the following manner: Obtain the object identifier of the target object to be inserted into the document using at least one of the following methods one through three: Method 1: In response to the first trigger operation in the document display interface, display the function menu; in response to the insert operation triggered by selecting the insert contact option displayed in the function menu, generate an object information retrieval request and send the object information retrieval request to the instant messaging application; receive the object identifier of the target object sent by the instant messaging application; wherein, the target object is an object selected by the user from the address book of the instant messaging application; Method 2: After receiving a selection operation on the text content in the document, based on the insertion operation triggered by performing a second trigger operation on the text content, the text content is determined as the object identifier of the target object; wherein, the text content includes at least one of the following: an object identifier that originally exists in the document, or an object identifier that the user inputs in real time in the document; Method 3: In response to the insertion operation of an instant messaging object into a document, display the instant messaging object settings window; obtain the object identifier of the target object entered in the instant messaging object settings window; The target objects are individual users or groups in instant messaging applications; The instant messaging application verifies whether the target object exists in the address book of the currently logged-in user; if the verification is successful, a page jump control for the target object is generated; if the verification fails but the target object is confirmed to exist in the instant messaging application, a page jump control for the target object is generated based on the received confirmation operation for the target object. The insertion position in the document displays a page navigation control for the target object. The page navigation control displays the object identifier of the target object. The insertion position is determined according to the position of the insertion operation in the document. The insertion position corresponding to Method 1 is the position of the input cursor in the document, and the insertion position corresponding to Method 2 is the position of the text content. The document also stores the associated information of the page jump control. When the document is sent to other users, the associated information is sent to the other users along with the document, so that when the other users trigger the page jump control in the document, a conversation window for real-time communication with the target object is presented to the other users.
7. The method according to claim 6, characterized in that, The session window that displays real-time communication with the target object specifically includes: Retrieve the address book of the currently logged-in user in the instant messaging application; The target object is located in the address book based on the object identifier, and a chat window for instant communication with the target object is displayed.
8. The method according to claim 7, characterized in that, The method further includes: If the target object does not exist in the address book, an object addition request is sent to the target object. The object addition request is used to request instant communication with the target object. After establishing instant communication with the target object, a session window for instant communication with the target object is displayed.
9. The method according to claim 7, characterized in that, The method further includes: If the target object is not in the address book and the level of the currently logged-in user is higher than the preset level, then an instant messaging connection is established between the currently logged-in user and the target object, and a session window for instant messaging with the target object is displayed.
10. The method according to any one of claims 7 to 9, characterized in that, When it is detected that no user has logged into the instant messaging application, the method further includes: Display the user login interface, and complete the login operation of the instant messaging application based on the user account information obtained through the login interface; or, The login operation of the instant messaging application is completed based on the user account information carried in the communication connection request for logging into the instant messaging application.
11. The method according to any one of claims 7 to 9, characterized in that, Before the response document application sends a communication connection request, the method further includes: In response to the object information retrieval request sent by the document application, the address book of the instant messaging application is opened. The object information retrieval request is generated when an insertion operation of an instant messaging object into the document is detected. Obtain the target object selected by the user from the address book; The object identifier of the target object is sent to the document application so that the document application adds a page navigation control for the target object in the document.
12. The method according to any one of claims 7 to 9, characterized in that, The method further includes: In response to a verification request sent by the document application, the verification request includes the object identifier of the target object; Based on the object identifier, verify whether the target object exists; A verification message is sent to the instant messaging application so that, upon receiving the verification message indicating successful verification, the document application adds a page navigation control for the target object in the document.
13. A document processing apparatus, characterized in that, include: The insertion module is used to obtain the object identifier of the target object to be inserted in the document through at least one of the following methods: Method 1: In response to the first trigger operation in the document display interface, display the function menu; in response to the insert operation triggered by selecting the insert contact option displayed in the function menu, generate an object information retrieval request and send the object information retrieval request to the instant messaging application; Receive the object identifier of the target object sent by the instant messaging application; wherein the target object is an object selected by the user from the address book of the instant messaging application; Method 2: After receiving a selection operation on the text content in the document, based on the insertion operation triggered by performing a second trigger operation on the text content, the text content is determined as the object identifier of the target object; wherein, the text content includes at least one of the following: an object identifier that originally exists in the document, or an object identifier that the user inputs in real time in the document; Method 3: In response to the insertion operation of an instant messaging object into a document, display the instant messaging object settings window; obtain the object identifier of the target object entered in the instant messaging object settings window; The target objects are individual users or groups in instant messaging applications; The verification module is used to verify whether the target object exists in the address book of the currently logged-in user through the instant messaging application; if the verification is successful, a page jump control for the target object is generated; if the verification fails but the target object is confirmed to exist in the instant messaging application, a page jump control for the target object is generated based on the received confirmation operation for the target object. The display module is used to display a page jump control for the target object at the insertion position in the document. The page jump control displays the object identifier of the target object. The insertion position is determined according to the position of the insertion operation in the document. The insertion position corresponding to the first method is the position of the input cursor in the document, and the insertion position corresponding to the second method is the position of the text content. Module for performing the following steps: In response to a triggering operation on the page navigation control, displaying a session window for real-time communication with the target object; The document also stores the association information of the page jump control, which is used to send the association information to other users along with the document when the document is sent to them, so that when the other user triggers the page jump control in the document, a conversation window for real-time communication with the target object is presented to the other user.
14. A document processing apparatus, characterized in that, include: The detection module is used to respond to trigger operations on page navigation controls in the document, which are associated with target objects in an instant messaging application; A jump module is used to display a session window for real-time communication with the target object; The process of inserting the page navigation control into the document includes: Obtain the object identifier of the target object to be inserted into the document using at least one of the following methods one through three: Method 1: In response to the first trigger operation in the document display interface, display the function menu; in response to the insert operation triggered by selecting the insert contact option displayed in the function menu, generate an object information retrieval request and send the object information retrieval request to the instant messaging application; receive the object identifier of the target object sent by the instant messaging application; wherein, the target object is an object selected by the user from the address book of the instant messaging application; Method 2: After receiving a selection operation on the text content in the document, based on the insertion operation triggered by performing a second trigger operation on the text content, the text content is determined as the object identifier of the target object; wherein, the text content includes at least one of the following: an object identifier that originally exists in the document, or an object identifier that the user inputs in real time in the document; Method 3: In response to the insertion operation of an instant messaging object into a document, display the instant messaging object settings window; obtain the object identifier of the target object entered in the instant messaging object settings window; The target objects are individual users or groups in instant messaging applications; The instant messaging application verifies whether the target object exists in the address book of the currently logged-in user; if the verification is successful, a page jump control for the target object is generated; if the verification fails but the target object is confirmed to exist in the instant messaging application, a page jump control for the target object is generated based on the received confirmation operation for the target object. The insertion position in the document displays a page navigation control for the target object. The page navigation control displays the object identifier of the target object. The insertion position is determined according to the position of the insertion operation in the document. The insertion position corresponding to Method 1 is the position of the input cursor in the document, and the insertion position corresponding to Method 2 is the position of the text content. The document also stores the association information of the page jump control, which is used to send the association information to other users along with the document when the document is sent to them, so that when the other user triggers the page jump control in the document, a conversation window for real-time communication with the target object is presented to the other user.
15. An instant messaging device, characterized in that, include: A receiving module is used to respond to a communication connection request sent by a document application. The communication connection request is generated when a page jump control in a document opened by the document application is triggered. The communication connection request includes the object identifier of the target object associated with the page jump control. A window display module is used to display a session window for real-time communication with the target object; The page navigation control is inserted into the document by the document application in the following manner: Obtain the object identifier of the target object to be inserted into the document using at least one of the following methods one through three: Method 1: In response to the first trigger operation in the document display interface, display the function menu; in response to the insert operation triggered by selecting the insert contact option displayed in the function menu, generate an object information retrieval request and send the object information retrieval request to the instant messaging application; receive the object identifier of the target object sent by the instant messaging application; wherein, the target object is an object selected by the user from the address book of the instant messaging application; Method 2: After receiving a selection operation on the text content in the document, based on the insertion operation triggered by performing a second trigger operation on the text content, the text content is determined as the object identifier of the target object; wherein, the text content includes at least one of the following: an object identifier that originally exists in the document, or an object identifier that the user inputs in real time in the document; Method 3: In response to the insertion operation of an instant messaging object into a document, display the instant messaging object settings window; obtain the object identifier of the target object entered in the instant messaging object settings window; The target objects are individual users or groups in instant messaging applications; The instant messaging application verifies whether the target object exists in the address book of the currently logged-in user; if the verification is successful, a page jump control for the target object is generated; if the verification fails but the target object is confirmed to exist in the instant messaging application, a page jump control for the target object is generated based on the received confirmation operation for the target object. The insertion position in the document displays a page navigation control for the target object. The page navigation control displays the object identifier of the target object. The insertion position is determined according to the position of the insertion operation in the document. The insertion position corresponding to Method 1 is the position of the input cursor in the document, and the insertion position corresponding to Method 2 is the position of the text content. The document also stores the associated information of the page jump control. When the document is sent to other users, the associated information is sent to the other users along with the document, so that when the other users trigger the page jump control in the document, a conversation window for real-time communication with the target object is presented to the other users.
16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 12.
17. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Terminal and interface interaction control method, contact object creation method and device
CN106873854A
Document problem feedback method and device, medium and electronic equipment
CN110069760A