Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a document processing scheme which can be applied to a communication session system shown in fig. 1; the communication session system may comprise a plurality of terminals, such as the terminals indicated by the reference numerals 1, 2, 3, 4 in fig. 1. Each terminal can execute the document processing scheme, so that the document functions of creating, editing, sharing and the like of a target shared document are realized in a conversation session, and the target shared document can be updated timely and efficiently; terminals herein may include, but are not limited to: portable intelligent devices such as mobile terminals, laptop computers, tablet computers, desktop computers, instant messaging devices with instant messaging functions, and the like. The embodiment of the invention is illustrated by taking the case that the first terminal executes the document processing scheme; the first terminal may be any terminal in the communication session system, and a communication application is installed in the first terminal, where the communication application may include an instant messaging application, such as enterprise WeChat, tencel QQ, and the like; optionally, the communication application may also include a social application, such as a microblog or the like.
The first user can conduct a communication session with a second user corresponding to at least one second terminal through a communication application in the first terminal; during the communication session, the first terminal may provide a user interface for the first user in the session window of the communication session, which may be presented to the first user in the form of a "+" sign button 21 in fig. 2 a. The first user may open a corresponding operation interface by clicking on the user interface, which may include a document card 22 of the shared document, as shown in fig. 2 a. If the first user wants to create the target shared document, the document card 22 may be clicked, and at this time, the first terminal may output the document creation window 23 in response to the clicking operation of the document card by the first user. The first terminal may output the document creation window 23 in the current interface in which the session window 24 is located, in which case the document creation window 23 may be overlaid on the session window 24, as shown in fig. 2 b; the first terminal may also output a document creation interface and output the document creation window 23 in the document creation interface, as shown in fig. 2 c. Referring to fig. 2b or fig. 2c, the first terminal may further provide a plurality of text editing functions such as project numbers, fonts, word sizes, colors, and codes in the document creation window, so that the first user can more conveniently input the document content. The first terminal can acquire document content input by a first user and generate a target shared document according to the document content; upon detecting a publication confirmation operation of the target shared document by the first user, document information of the target shared document may be displayed in a session window, where the document information may include, but is not limited to: summary information of the target shared document, document content of the target shared document, or links, such as hyperlinks, of the target shared document; the summary information refers to information obtained by refining the document content of the target shared document, and the summary information can reflect the central thought of the target shared document. For ease of description, the summary information of the target shared document may be presented in the form of a message bubble in the session window, as shown in fig. 2d, all of which are described later by taking the example that the document information includes summary information. Where 230 in FIG. 2d represents a document, 231 represents a document title, 232 represents a document body, 233 and 234 each represent a document option, 235 represents a project number, and 236 represents project content.
Any member user (including the first user) in the communication session can open the document display window by clicking the summary information to edit the target shared document; the specific flow can be seen in fig. 2e: (1) the member user may click on the summary information to preview the target shared document. (2) And the terminal checks the identity of the member user according to the user ID, the session identifier and the online identifier of the target shared document, and judges whether the member user has authority. (3) If the user has no authority, the user prohibits previewing and prompts the member user to have no authority; if the preview authority is available, outputting a document display window, and displaying a target shared document in the document display window in a read-only mode, wherein in the case, a member user can preview the target shared document but cannot edit the target shared document; if the editing authority is available, the document display window is output by default, and the target shared document is displayed in the document display window, in which case the member user can click on any position of the document display window to trigger entering the editing mode, so that the document content of the target shared document is edited. After the editing is completed, the terminal can prompt the member user whether to notify the update. If the member user selects the notification, the terminal stores the updated content and notifies the target shared document of the update; if the member user selects not to notify, the terminal stores the updated content as a draft, and the cloud roams the draft so that the member user can open other terminals to continue editing. Optionally, the first terminal may further provide a rights control function, so that the first user (document creator) may perform editing operations on the user rights of the target shared document; that is, the document creator of the target shared document can effectively control the preview authority and editing authority of other member users on the target shared document through the authority control function, thereby improving the security of the target shared document.
If there is a member user editing the user rights and/or document content of the target shared document and selecting a notification in the communication session, the first terminal may know that the user rights and/or document content of the target shared document are updated, and the first terminal may output an update prompt in response to the update of the target shared document, where the update prompt may include: update cues regarding user rights and/or update cues regarding document content. For example, if the first user performs an editing operation on the user rights, the specific content of the update prompt 25, 25 regarding the user rights as shown in fig. 2f may be "you modify [ document title ] to" editable ""; if user B performs an editing operation on the document content, a specific content of update cues 26, 26 about the document content as shown in fig. 2f may be "user B edited [ document title ]". The first user may perform a corresponding update viewing trigger operation on the target shared document to view the updated target shared document, and the first terminal at this time may respond to the update viewing trigger operation and display the updated target shared document according to the update prompt, as shown in fig. 2 g.
The embodiment of the invention can display the document information of the target shared document in the session window of the communication session between the first terminal and at least one second terminal; the first terminal or the second terminal in the communication session can edit the target shared document, so that the convenience of document collaborative editing is realized; when the target shared document is updated due to editing, an update prompt is output, and in response to update checking triggering operation of the target shared document, the updated target shared document is displayed according to the update prompt; therefore, the user can timely acquire the update condition of the target shared document, and can conveniently check the updated target shared document, so that the user is prevented from executing complicated operation flows such as downloading, uploading, manual comparison checking and the like, the document processing flow is effectively simplified, and the document processing efficiency is improved.
Based on the above description, the embodiment of the present invention proposes a document processing method, which is applicable to a first terminal, which may be any one of the above-mentioned communication session systems. Referring to fig. 3, the document processing method may include the following steps S301 to S303:
s301, displaying document information of a target shared document in a session window of a communication session between the first terminal and at least one second terminal.
The first terminal may establish a communication session directly with the at least one second terminal through near field communication, in which case the first terminal may interact directly with the second terminal with related data about the target shared document. The first terminal can also establish a communication session with at least one second terminal through the server, and in this communication scenario, both the first terminal and the second terminal interact with the server, i.e. the first terminal can obtain relevant data about the target shared document from the second terminal through the server. It should be noted that, in the embodiments of the present invention, a communication scenario in which a first terminal establishes a communication session with a second terminal through a server is taken as an example later, a document processing method provided in the embodiments of the present invention is described; in a communication scenario in which a first terminal directly establishes a communication session with a second terminal, a specific implementation of the document processing method performed by the first terminal may be referred to in the embodiment of the present invention.
The document information may include: summary information of the target shared document, document content of the target shared document, or links of the target shared document. Wherein, the document content of the target shared document may include: text information and/or image information; the text information may include: text words, program code, tables, and the like. From the foregoing, summary information refers to information obtained by refining the document content of the target shared document, that is, summary information may be generated according to the document content of the target shared document. Thus, summary information of the target shared document may include: text abstracts corresponding to the text information and/or thumbnails corresponding to the image information; the thumbnail here refers to an image obtained by compressing an original image in image information.
The first terminal may acquire the document information of the target shared document first and then display the document information of the target shared document. Taking the example that the document information includes summary information as an example, the specific implementation manner of obtaining the document information of the target shared document includes the following two types: first embodiment: the first terminal may acquire document contents of the target shared document and generate summary information of the target shared document according to the acquired document contents. Because the target shared document can be shared into the communication session by the first terminal, and can also be shared into the communication session by any one of the second terminals in the communication session; thus, the first terminal may obtain the document content directly from the storage space of the first terminal, or may obtain the document content from the server. Second embodiment: to save processing resources of the first terminal, the first terminal may obtain document information (i.e., summary information) of the target shared document directly from the server. Specifically, the first terminal may send an information acquisition request to the server to request the server to issue summary information of the target shared document. Correspondingly, after receiving the acquisition request of the first terminal, the server can acquire the document content of the target shared document and generate the summary information according to the acquired document content; the document content may be uploaded to the server by the first terminal or may be uploaded to the server by any one of the second terminals. The first terminal receives the summary information of the target document issued by the server. When the document information includes a link, the specific embodiment of obtaining the document information of the target shared document may be referred to the above embodiment, and will not be described herein.
When the first terminal displays the document information of the target shared document, the first terminal can acquire a sharer identifier of a sharer who shares the target shared document in the communication session, and the sharer identifier and the document information of the target shared document are displayed in a correlated manner. Wherein the sharer identification may include, but is not limited to: a user head portrait of a sharer, an instant messaging account number of the sharer, a user name of the sharer, and the like; the document information may be displayed in the form of a session message in the session window. See, for example, fig. 2 d: and the user A shares the target shared document into the communication session, so that the document information of the target shared document can be displayed in a message bubble beside a user head portrait of the user A, and the associated display of the sharer identification and the document information of the target shared document is realized.
S302, responding to the update of the target sharing document, and outputting an update prompt.
Updating the target shared document is generated by editing the target shared document by the first terminal or any one or more second terminals in the communication session; the update prompt may be generated by the first terminal or may be issued by the server to the first terminal. When the target shared document is updated, in order to improve the updating timeliness of the target shared document, the first terminal can respond to the updating of the target shared document and output an updating prompt to prompt a user to update the target shared document in time. In one embodiment, if the first terminal detects that the current display interface includes a session window, the first terminal may output the update prompt in the session window, as shown in fig. 2 f. In still another embodiment, if the first terminal detects that the current display interface includes a document display window, the first terminal may output the update prompt in the document display window. For example, the user of the first terminal is viewing the target shared document or editing the target shared document in the document display window, and the current display interface of the first terminal at this time includes the document display window 41, the first terminal may output the update prompt 42 in the document display window 41, i.e., the user may also receive the update prompt 42 in the document display window, as shown in fig. 4 a. In still another embodiment, if the first terminal detects that the current display interface does not include the session window and the document display window, the update prompt may also be output in a message notification field of the terminal system. For example, when the user of the first terminal closes the session window and the document display window and is capturing a landscape image using the camera application, the first terminal may output the message notification bar 43 at the current display interface and output the update prompt 42 in the message notification bar 43, as shown in fig. 4 b.
The update-hint herein may refer to: the first terminal detects a prompt generated after the target shared document is updated due to the fact that the editing confirmation operation of the target shared document is performed; and the method can also refer to a prompt which is generated after the server detects that the target shared document has updated and is issued to the first terminal through the control message. The updating of the target shared document may include: updating user rights of the target shared document and/or updating document content of the target shared document; the corresponding update-prompting may include: an update hint of the user rights and/or an update hint of the document content.
S303, responding to update viewing triggering operation of the target shared document, and displaying the updated target shared document according to the update prompt.
The first terminal can know that the target shared document is updated according to the update prompt, so that if the first terminal detects the update checking trigger operation of the target shared document, the first terminal can respond to the update checking trigger operation, update the target shared document according to the update prompt, and display the updated target shared document. Wherein the update view trigger operation may include any one or more of: a first triggering operation performed on the document information in the session window, wherein the first triggering operation can be a clicking operation, a pressing operation and the like performed on the document information in the session window; a second triggering operation on the update prompt, wherein the update prompt can comprise a hyperlink of the updated target shared document, and the second triggering operation can be a clicking operation, a pressing operation and the like on the hyperlink in the update prompt; and refreshing the target shared document in the document display window.
The embodiment of the invention can display the document information of the target shared document in the session window of the communication session between the first terminal and at least one second terminal; the first terminal or the second terminal in the communication session can edit the target shared document, so that the convenience of document collaborative editing is realized; when the target shared document is updated due to editing, an update prompt is output, and in response to update checking triggering operation of the target shared document, the updated target shared document is displayed according to the update prompt; therefore, the user can timely acquire the update condition of the target shared document, and can conveniently check the updated target shared document, so that the user is prevented from executing complicated operation flows such as downloading, uploading, manual comparison checking and the like, the document processing flow is effectively simplified, and the document processing efficiency is improved.
Fig. 5 is a schematic flow chart of another document processing method according to an embodiment of the present invention. The document processing method may be applied to a first terminal, which may be any of the above-mentioned communication session systems. Referring to fig. 5, the document processing method may include the following steps S501 to S505:
S501, acquiring a target shared document, and storing the target shared document in a storage space of the first terminal.
In one embodiment, when the first terminal acquires the target shared document, the first terminal may acquire the uploaded target shared document in response to a document uploading instruction in the session window. In the implementation process, the first terminal can respond to a document uploading instruction in the session window to output a document uploading window; the user can select the target document in the storage space of the first terminal through the document uploading window and upload the target document, and the first terminal can take the target document selected by the user as the target shared document according to the selection operation of the user. In still another embodiment, when the first terminal acquires the target shared document, the first terminal may acquire the input document content in response to the document creation instruction in the session window; a target shared document is generated from the input document content. In the specific implementation process, the first terminal can respond to the document creation instruction in the session window and output a document creation window; the user may input document contents through the document creation window, the document contents may include text information and/or image information, and the first terminal may acquire the document contents input in the document creation window and generate a target shared document according to the input document contents. It should be noted that, in other embodiments, the target shared document may be forwarded by the user to the communication session established between the first terminal and the at least one second terminal, where the target shared document is a copy. After the first terminal acquires the target shared document, the target shared document and the communication session can be associated and stored, so that the user can find the target shared document whenever and wherever the communication session is found, and convenience is improved.
The embodiment of the invention considers the complexity of the network condition of the first terminal, and the first terminal can provide the document function of offline editing and storing the target shared document for the user at any time, so that the editing of the target shared document does not depend on the network, thereby meeting the business requirement of editing/creating the target shared document when the network condition of the first terminal is poor. Correspondingly, after the first terminal acquires the target shared document, the target shared document can be stored in a storage space of the first terminal; the target shared document in the storage space is an offline document, and can support editing and saving of a user. It can be understood that the first terminal can also convert the target sharing document in the storage space from an offline document to an online document, and the online document can support direct sharing and release of users; the specific flow of converting the target shared document from the offline document to the online document can be seen in fig. 6:
A. after the target shared document is acquired, a unique offline identifier (indicated by localkey) is locally generated at the terminal according to the session identifier (indicated by session Key) of the communication session, namely, the default target shared document is an offline document.
B. The online identity (denoted by server key) is swapped to the server according to localkey.
C. If the server key is successfully replaced, the document identification (expressed by dock) of the target shared document is updated by adopting the replaced server key, so that the target shared document is converted from an offline document to an online document; optionally, after the target shared document is converted into the online document, the target shared document may be published after detecting the user's publication confirmation operation on the target shared document.
D. If the server key is not replaced, the target shared document is kept to be an offline document, and when the network of the first terminal is detected to be changed or the release confirmation operation of the target shared document is carried out, the server key is replaced again according to the localkey.
S502, synchronizing the target shared document in the storage space of the first terminal to the user terminal associated with the first terminal when the network information meets the preset network condition.
Currently, most communication applications (e.g., instant messaging applications, social applications) support multi-point login, which refers to: the same user may log in to the same communication application in a plurality of different terminals using the same or related user identification. A plurality of terminals related to the multipoint login are associated; taking a communication application as an instant messaging application as an example, if the user 1 logs in the instant messaging application 1 in both the first terminal and the terminal a by adopting the same user identifier (such as an instant messaging account), the first terminal is associated with the terminal a, i.e. the terminal a is a user terminal associated with the first terminal; for another example, if the user 1 logs in the instant messaging application 1 in the first terminal by using the user identifier 1 (such as the first instant messaging account), and logs in the instant messaging application 1 in the terminal B by using the user identifier 2 related to the user identifier 1 (such as the mobile phone number related to the first instant messaging account or the second instant messaging account related to the first instant messaging account), the first terminal and the terminal B are related, that is, the terminal B is a user terminal related to the first terminal.
In practical application, the situation that the same user performs document processing on a plurality of terminals usually exists, so that the first terminal in the embodiment of the invention can also support the multi-terminal roaming to store the target shared document, so that the user can open and continuously edit the target shared document in other related user terminals, the user can write the document conveniently at any time and any place, and the practicability of the first terminal is improved. In a specific implementation process, when the network information meets a preset network condition, the first terminal may first acquire a user terminal associated with the first terminal, and then synchronize a target shared document in a storage space of the first terminal to the user terminal. Wherein, the network information may include network speed information, and the network information meeting the preset network condition means that: the first terminal supports a network, and the current network speed is larger than a preset network speed.
Optionally, the first terminal may further support forwarding the sharing target shared document; specifically, the first terminal may detect whether there is a sharing operation of the target shared document; if so, generating a copy document of the target shared document in response to detecting the sharing operation for the target shared document; sending the duplicate document to a target session corresponding to the sharing operation; wherein the update processing is performed on the duplicate document in response to the update of the duplicate document, and the target shared document is kept unchanged. Therefore, the editing operation of the duplicate document only takes effect in the target session, only updates the duplicate document, and does not influence the target shared document, so that the independence of document editing can be ensured.
S503, displaying the document information of the target shared document in a session window of the communication session between the first terminal and the at least one second terminal.
The first terminal may perform step S503 after detecting the release confirmation operation for the target shared document; step S503 may also be executed after receiving the document information issued by the server; the embodiment of the present invention is not limited thereto. It should be understood that the step S503 and the step S502 are not sequential, and the step S502 may be performed first and then the step S503 may be performed first and then the step S502 may be performed, or the step S502 and the step S503 may be performed simultaneously.
After the first terminal displays the document information of the target shared document in the session window of the communication session, the first terminal can also detect whether a preview instruction for the target shared document exists in the session window; the preview instructions for the target shared document may include click instructions, press instructions, etc. on the document information. If yes, responding to a preview instruction aiming at the target shared document in the session window, and checking whether a previewer has preview authority; if the preview authority is provided, the document content of the target shared document is displayed in the document display window according to the document information of the target shared document. Optionally, when displaying the document content of the target shared document, the first terminal may further detect whether an editing instruction for the target shared document exists in the document display window. If yes, responding to an editing instruction aiming at the target shared document in the document display window, and checking whether an editor has editing rights; if the editing authority is provided, the state of the target shared document is set to be an editing state, and updated contents generated by editing the target shared document by an editor are received. The editor and the previewer may be the same user or different users.
S504, responding to the update of the target sharing document, and outputting an update prompt.
S505, in response to the update viewing trigger operation of the target shared document, the updated target shared document is displayed according to the update prompt.
In one embodiment, the update prompt may carry the updated first shortcut of the target shared document, and accordingly, the specific embodiment of step S505 may be: responding to an update viewing triggering operation of the target shared document, and acquiring the updated target shared document according to a first shortcut carried by an update prompt; and displaying the updated target shared document in the document display window. In yet another embodiment, the update hint carries a second shortcut of the updated content of the target shared document; accordingly, the specific implementation manner of step S505 may be: responding to update viewing triggering operation of the target shared document, and acquiring update content according to a second shortcut carried by the update prompt; and merging the updated content into the target shared document to obtain an updated target shared document, and displaying the updated target shared document.
From the foregoing, the update view trigger operation may include any one or more of the following: a first triggering operation for document information in a session window, a second triggering operation for an update prompt, and a refreshing operation for a target shared document in a document display window. If the update prompt is an update prompt about the document content, the first terminal may respond to the update viewing trigger operation and display the document content of the updated target shared document after determining that the preview authority of the updated target shared document is available, as shown in fig. 2 g; if the updated target shared document does not have the preview authority, the prompt information can be output. If the update prompt is an update prompt about user rights, the first terminal may display the user rights of the updated target shared document in response to the update view trigger operation.
In the case where the update view trigger operation includes a refresh operation, if the update hint is an update hint regarding document content and the document display window is displaying document content of the target shared document, the first terminal may display the updated document content of the target shared document in the document display window in response to the refresh operation. For example, referring to FIG. 7a, an update prompt 71 for document content and document content 72 for a target shared document are displayed in the document display window; the user may click on the refresh button 73 to perform a refresh operation, at which point the first terminal may display the updated document content 74 of the target shared document in the document display window in response to the refresh operation. If the update prompt is an update prompt regarding user rights and the document display window is displaying user rights of the target shared document, the first terminal may display the updated user rights of the target shared document in response to the refresh operation. Optionally, if the update prompt is an update prompt about user rights and the document display window is displaying document content of the target shared document, the first terminal may determine whether to have preview rights of the updated target shared document in response to the refresh operation; if yes, displaying the document content and/or the authority of the updated target shared document; if not, the process switches to the session window and outputs a prompt 75 to prompt the user that the user is not authorized to view the updated target shared document, as shown in FIG. 7 b.
The embodiment of the invention can display the document information of the target shared document in the session window of the communication session between the first terminal and at least one second terminal; the first terminal or the second terminal in the communication session can edit the target shared document, so that the convenience of document collaborative editing is realized; when the target shared document is updated due to editing, an update prompt is output, and in response to update checking triggering operation of the target shared document, the updated target shared document is displayed according to the update prompt; therefore, the user can timely acquire the update condition of the target shared document, and can conveniently check the updated target shared document, so that the user is prevented from executing complicated operation flows such as downloading, uploading, manual comparison checking and the like, the document processing flow is effectively simplified, and the document processing efficiency is improved.
Based on the description of the above embodiments of the document processing method, the embodiments of the present invention also disclose a document processing apparatus, which is applicable to the above-mentioned first terminal, and which may be a computer program (including program code) running in the terminal. The document processing apparatus may perform the method shown in fig. 3 or fig. 5. Referring to fig. 8, the document processing apparatus may operate the following units:
An output unit 101 for displaying document information of a target shared document in a session window of a communication session between a first terminal and at least one second terminal;
the output unit 101 is configured to output an update hint in response to an update of the target shared document, the update of the target shared document being generated by an editing operation of the target shared document by the first terminal or any one or more second terminals in the communication session;
and the display unit 102 is used for responding to the update viewing triggering operation of the target shared document and displaying the updated target shared document according to the update prompt.
In one embodiment, the document processing apparatus may further include a processing unit 103 for:
acquiring a target shared document, and storing the target shared document in a storage space of the first terminal;
and synchronizing the target shared document in the storage space of the first terminal to a user terminal associated with the first terminal when the network information meets the preset network condition.
In still another embodiment, the processing unit 103, when configured to obtain the target shared document, may be specifically configured to:
Responding to a document uploading instruction in the session window, and acquiring an uploaded target shared document; or,
responding to a document creation instruction in the session window, and acquiring input document content; and generating the target shared document according to the input document content.
In yet another embodiment, the display unit 102 may be further configured to:
responding to a preview instruction aiming at the target shared document in the session window, and checking whether a previewer has preview authority;
and if the preview authority is provided, displaying the document content of the target shared document in a document display window according to the document information of the target shared document.
In yet another embodiment, the processing unit 103 may be further configured to:
responding to an editing instruction aiming at the target shared document in the document display window, and checking whether an editor has editing authority;
and if the editing authority is provided, setting the state of the target shared document as an editing state, and receiving updated contents generated by editing the target shared document by the editor.
In yet another embodiment, the document information includes: summary information of the target shared document, document content of the target shared document, or links of the target shared document;
The update view trigger operation includes any one or more of: a first triggering operation for the document information in the session window, a second triggering operation for the update prompt, and a refreshing operation for the target shared document in the document display window.
In yet another embodiment, the update hint carries a first shortcut of the updated target shared document; accordingly, when the display unit 102 is configured to respond to the update view triggering operation of the target shared document, and display the updated target shared document according to the update prompt, the display unit may be specifically configured to:
responding to the update viewing triggering operation of the target shared document, and acquiring the updated target shared document according to the first shortcut carried by the update prompt;
and displaying the updated target shared document in a document display window.
In yet another embodiment, the update hint carries a second shortcut of updated content of the target shared document; accordingly, when the display unit 102 is configured to respond to the update view triggering operation of the target shared document, and display the updated target shared document according to the update prompt, the display unit may be specifically configured to:
Responding to the update viewing triggering operation of the target shared document, and acquiring update content according to the second shortcut carried by the update prompt;
and merging the updated content into the target shared document to obtain an updated target shared document, and displaying the updated target shared document.
In yet another embodiment, the processing unit 103 may be further configured to:
generating a duplicate document of the target shared document in response to detecting a sharing operation for the target shared document;
sending the duplicate document to a target session corresponding to the sharing operation;
and when the update of the duplicate document is responded, the update processing is carried out on the duplicate document, and the target shared document is kept unchanged.
According to one embodiment of the invention, the steps involved in the method shown in fig. 3 or 5 may be performed by the units in the document processing apparatus shown in fig. 8. For example, steps S301 and S302 shown in fig. 3 may be performed by the output unit 101 shown in fig. 8, and step S303 may be performed by the display unit 102 shown in fig. 8; as another example, steps S501 and S502 shown in fig. 5 may be performed by the processing unit 103 shown in fig. 8, steps S503 and S504 may be performed by the output unit 101 shown in fig. 8, and step S505 may be performed by the display unit 102 shown in fig. 8.
According to another embodiment of the present invention, each unit in the document processing apparatus shown in fig. 8 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units having smaller functions, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present invention. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present invention, the document-based processing apparatus may also include other units, and in actual practice, these functions may also be implemented with the assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, a document processing apparatus device as shown in fig. 8 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 3 or 5 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and a document processing method of an embodiment of the present invention is implemented. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and executed by the above-described computing device via the computer-readable recording medium.
The embodiment of the invention can display the document information of the target shared document in the session window of the communication session between the first terminal and at least one second terminal; the first terminal or the second terminal in the communication session can edit the target shared document, so that the convenience of document collaborative editing is realized; when the target shared document is updated due to editing, an update prompt is output, and in response to update checking triggering operation of the target shared document, the updated target shared document is displayed according to the update prompt; therefore, the user can timely acquire the update condition of the target shared document, and can conveniently check the updated target shared document, so that the user is prevented from executing complicated operation flows such as downloading, uploading, manual comparison checking and the like, the document processing flow is effectively simplified, and the document processing efficiency is improved.
Based on the description of the method embodiment and the apparatus embodiment, the embodiment of the present invention further provides a terminal, which may be the first terminal mentioned above. Referring to fig. 9, the terminal includes at least a processor 201, an input device 202, an output device 203, and a computer storage medium 204. Wherein the processor 201, input device 202, output device 203, and computer storage medium 204 within the terminal may be connected by a bus or other means. Optionally, the terminal may also include a communication application.
The computer storage medium 204 may be stored in a memory of the terminal, the computer storage medium 204 being for storing a computer program comprising program instructions, the processor 201 being for executing the program instructions stored by the computer storage medium 204. The processor 201 (or CPU (Central Processing Unit, central processing unit)) is a computing core and a control core of the terminal, which are adapted to implement one or more instructions, in particular to load and execute one or more instructions to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 201 according to the embodiment of the present invention may perform a series of document processing, including: displaying document information of a target shared document in a session window of a communication session between a first terminal and at least one second terminal; outputting an update prompt in response to an update of the target shared document, the update of the target shared document resulting from an editing operation of the target shared document by the first terminal or any one or more second terminals in the communication session; and responding to an update viewing triggering operation of the target shared document, displaying the updated target shared document according to the update prompt, and the like.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It will be appreciated that the computer storage medium herein may include both a built-in storage medium in the terminal and an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor 201. The computer storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory; optionally, at least one computer storage medium remote from the processor may be present.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 201 to implement the respective steps of the methods described above in connection with the document processing embodiments; in particular implementations, one or more instructions in a computer storage medium are loaded by processor 201 and perform the steps of:
Displaying document information of a target shared document in a session window of a communication session between a first terminal and at least one second terminal;
outputting an update prompt in response to an update of the target shared document, the update of the target shared document resulting from an editing operation of the target shared document by the first terminal or any one or more of the second terminals in the communication session;
and responding to the update viewing triggering operation of the target shared document, and displaying the updated target shared document according to the update prompt.
In one implementation, the one or more instructions may also be loaded and executed in particular by the processor 201:
acquiring a target shared document, and storing the target shared document in a storage space of the first terminal;
and synchronizing the target shared document in the storage space of the first terminal to a user terminal associated with the first terminal when the network information meets the preset network condition.
In yet another embodiment, the one or more instructions may be loaded and executed in particular by the processor 201 when the target shared document is obtained:
responding to a document uploading instruction in the session window, and acquiring an uploaded target shared document; or,
Responding to a document creation instruction in the session window, and acquiring input document content; and generating the target shared document according to the input document content.
In yet another embodiment, the one or more instructions may also be loaded and executed in particular by the processor 201:
responding to a preview instruction aiming at the target shared document in the session window, and checking whether a previewer has preview authority;
and if the preview authority is provided, displaying the document content of the target shared document in a document display window according to the document information of the target shared document.
In yet another embodiment, the one or more instructions may also be loaded and executed in particular by the processor 201:
responding to an editing instruction aiming at the target shared document in the document display window, and checking whether an editor has editing authority;
and if the editing authority is provided, setting the state of the target shared document as an editing state, and receiving updated contents generated by editing the target shared document by the editor.
In yet another embodiment, the document information includes: summary information of the target shared document, document content of the target shared document, or links of the target shared document;
The update view trigger operation includes any one or more of: a first triggering operation for the document information in the session window, a second triggering operation for the update prompt, and a refreshing operation for the target shared document in the document display window.
In yet another embodiment, the update hint carries a first shortcut of the updated target shared document; accordingly, when displaying the updated target shared document according to the update prompt in response to the update view trigger operation on the target shared document, the one or more instructions may be loaded and specifically executed by the processor 201:
responding to the update viewing triggering operation of the target shared document, and acquiring the updated target shared document according to the first shortcut carried by the update prompt;
and displaying the updated target shared document in a document display window.
In yet another embodiment, the update hint carries a second shortcut of updated content of the target shared document; accordingly, when displaying the updated target shared document according to the update prompt in response to the update view trigger operation on the target shared document, the one or more instructions may be loaded and specifically executed by the processor 201:
Responding to the update viewing triggering operation of the target shared document, and acquiring update content according to the second shortcut carried by the update prompt;
and merging the updated content into the target shared document to obtain an updated target shared document, and displaying the updated target shared document.
In yet another embodiment, the one or more instructions may also be loaded and executed in particular by the processor 201:
generating a duplicate document of the target shared document in response to detecting a sharing operation for the target shared document;
sending the duplicate document to a target session corresponding to the sharing operation;
and when the update of the duplicate document is responded, the update processing is carried out on the duplicate document, and the target shared document is kept unchanged.
The embodiment of the invention can display the document information of the target shared document in the session window of the communication session between the first terminal and at least one second terminal; the first terminal or the second terminal in the communication session can edit the target shared document, so that the convenience of document collaborative editing is realized; when the target shared document is updated due to editing, an update prompt is output, and in response to update checking triggering operation of the target shared document, the updated target shared document is displayed according to the update prompt; therefore, the user can timely acquire the update condition of the target shared document, and can conveniently check the updated target shared document, so that the user is prevented from executing complicated operation flows such as downloading, uploading, manual comparison checking and the like, the document processing flow is effectively simplified, and the document processing efficiency is improved.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.