Document processing method, device, medium and electronic device
By responding to the document embedding operation in the document processing software, determining the target document and creating a display window, the problem in the prior art that the content of the target document is not displayed in real time is solved, and the document collaboration efficiency and multi-person collaboration capabilities are improved.
Patent Information
- Application Number
- CN202311204277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-09-18
AI Technical Summary
When embedding documents in existing document processing software, it is difficult to display the content of the target document in the current document in real time, and it is difficult to distinguish the content of the target document and the current document, which affects the efficiency of document collaboration.
By responding to the document embedding operation, the target document to be embedded and its real-time content are determined, and a display window is created in the current document to display the content of the target document in real time, supporting multi-person collaboration and real-time updating of document content.
It realizes the real-time display of the content of the target document in the current document, improves the efficiency of document collaboration, and supports multi-person collaboration and real-time updating of document content.
Smart Images

Figure CN117172216B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of online document processing, and in particular to a document processing method, device, medium and electronic device. Background Art
[0002] The document processing software currently on the market is mainly MS-Office office software such as Word. Word supports document embedding, where document embedding refers to embedding another document into the current document.
[0003] Word is provided with an insert control, and document embedding can be achieved based on the insert control. Specifically, by clicking the insert control in Word, the target document to be embedded can be embedded into the current document. However, the target document only exists in the form of an icon in the current document. If you want to view the document content of the target document, you need to click the document icon again. You can also embed the document content in the target document directly into the current document through the insert control. However, after such embedding, it is difficult to distinguish the document content in the target document from the document content of the current document. In addition, after the target document is embedded in the current document based on the above method, the content changes of the target document cannot be seen and cannot be displayed in the current document in real time. Summary of the invention
[0004] The present application provides a document processing method, device, medium and electronic device, which can realize document embedding and display the real-time content of the target document in the current document, which is conducive to improving the efficiency of document collaboration.
[0005] According to a first aspect of the present application, a document processing method is provided, the method comprising:
[0006] In response to a document embedding operation acting on a current document, determining a target document to be embedded and real-time content of the target document;
[0007] Creating a display window for the target document in the current document;
[0008] The real-time content of the target document is displayed in the current document through the display window.
[0009] According to a second aspect of the present application, there is provided a document processing device, the device comprising:
[0010] A target document determination module, for determining a target document to be embedded and real-time content of the target document in response to a document embedding operation acting on a current document;
[0011] A display window creation module, used to create a display window for the target document in the current document;
[0012] The real-time content display module is used to display the real-time content of the target document in the current document through the display window.
[0013] According to a third aspect of the present invention, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the document processing method as described in the embodiment of the present application is implemented.
[0014] According to the fourth aspect of the present invention, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the document processing method as described in the embodiment of the present application is implemented.
[0015] The technical solution of the present application, in response to a document embedding operation acting on a current document, determines a target document to be embedded and the real-time content of the target document; creates a display window for the target document in the current document; and displays the real-time content of the target document in the current document through the display window. Executing the technical solution provided by the present application can display the real-time content of the target document in the current document, which is conducive to improving document collaboration efficiency.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 is a flowchart of a document processing method provided according to Embodiment 1;
[0019] Figure 2 is a flowchart of a document processing method provided according to Embodiment 2;
[0020] Figure 3 is a structural diagram of a document processing device provided in Embodiment 3 of the present application;
[0021] Figure 4 It is a structural schematic diagram of an electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", "target" and "candidate" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] Embodiment 1
[0025] Figure 1 This is a flowchart of a document processing method provided according to the first embodiment. This embodiment is applicable to the case of embedding documents into online documents. The method can be executed by a document processing device, which is implemented in the form of hardware and / or software and can be integrated into an electronic device running this system.
[0026] like Figure 1 As shown, the method includes:
[0027] S110: In response to the document embedding operation acting on the current document, determine the target document to be embedded and the real-time content of the target document.
[0028] Among them, the current document and the target document are both online documents. Online documents are different from local documents. Local documents refer to documents stored on local computers or other storage devices, while online documents refer to documents stored on the Internet. Online documents support multi-person collaboration, so the document content in the target document may change due to the document editing operations of the collaborative users. After determining the target document, the real-time content of the target document is obtained.
[0029] The document embedding operation acts on the editing page of the current document. Exemplarily, the document embedding operation can be a click operation of the embedding control in the editing page. The document embedding operation is used to embed the target document into the current document. Specifically, the document embedding operation is used to simultaneously display the real-time content of the target document on the editing page of the current document.
[0030] In an optional embodiment, the target document to be embedded and the real-time content of the target document are determined in response to a document embedding operation performed on the current document, including: displaying embeddable candidate documents in response to a document embedding operation performed on the current document; determining the target document to be embedded in response to a document selection operation performed on the candidate document; establishing a long connection between the target document and the current document, and acquiring the real-time content of the target document based on the long connection.
[0031] In response to a document embedding operation acting on a current document, candidate documents that can be embedded are obtained and displayed. Optionally, there are at least two candidate documents. The document processing method provided in the present application also supports embedding a local document into an online document. The candidate documents include a local document and a target document.
[0032] In response to a document selection operation on a candidate document, a target document to be embedded is determined. The target document refers to an online document that needs to be embedded in the current document. The document selection operation is used to determine the target document from the candidate documents. Exemplarily, the document selection operation can be a click operation on the target document in the candidate document.
[0033] The current document and the target document are both online documents, a persistent connection is established between the current document and the target document, and the real-time content of the target document is obtained based on the persistent connection. It is understandable that the target document may also be a local document, and if the target document is a local document, the document content of the target document is read based on the document storage address of the target document.
[0034] The above technical solution provides a practical method for determining a target document, which can obtain the real-time content of the target document and provide data support for subsequently displaying the real-time content of the target document in the current document through a display window.
[0035] S120: Create a display window for the target document in the current document.
[0036] The display window is set in the editing page of the current document, and is used to display the real-time content of the target document in the current document.
[0037] Optionally, the display window includes at least two window elements. Exemplarily, the window elements may be a window title, a window border, a work area, a window menu, a window status, etc. Optionally, the display window corresponds to the target document. There may be multiple target documents, that is, multiple documents may be embedded in the current document. Each target document has a corresponding display window. Only one target document is displayed in a display window. When there are at least two target documents, the at least two target documents may be embedded in any position in the current document according to actual business needs.
[0038] In an optional embodiment, creating a display window for the target document in the current document includes: determining a cursor position in the current document in response to the document embedding operation; creating a display window in a document page of the current document based on the cursor position and preset element attributes; the display window includes at least two window elements; and determining a title content of a window title in the window element based on a document identifier of the target document.
[0039] In response to the document embedding operation, a cursor position is determined in the editing page of the current document. The cursor position is used to indicate the embedding position of the target document. The target document is embedded in the current document through a display window. Based on the cursor position, the creation position of the target document in the current document can be determined. The display window includes at least two window elements, and each window element has a corresponding preset element attribute. The preset element attribute is used to determine the display style and element function of the window element in the display window.
[0040] The window element includes a window title, and the title content of the window title is determined according to the document identifier of the target document. The document identifier is used to distinguish different documents, and different documents have different document identifiers. Optionally, the document identifier is a document name. This makes it easy to distinguish different target documents embedded in the current document.
[0041] The above technical solution provides a practical method for creating a display window, and provides technical support for subsequently displaying the real-time content of the target document in the current document through the display window.
[0042] S130: Display the real-time content of the target document in the current document through the display window.
[0043] The display window is set on the editing page of the current file. Optionally, the display window is embedded in the document content of the current document in a preset layout. The preset layout is used to determine the relative position relationship between the document content of the current document and the display window. The preset layout is not limited here and is determined according to actual business needs. For example, the preset layout can be a top-bottom wraparound or embedded layout. The layout of the display window in the editing page can be adjusted according to actual business needs after the display window is created.
[0044] The real-time content of the target document is displayed through the display window in the current document. The real-time content of the target document is displayed in the working area of the display window, and the document content of the current document is displayed outside the display window. The working area in the display window is the visible area in the display window.
[0045] The technical solution of the present application, in response to a document embedding operation acting on a current document, determines a target document to be embedded and the real-time content of the target document; creates a display window for the target document in the current document; and displays the real-time content of the target document in the current document through the display window. Executing the technical solution provided by the present application can display the real-time content of the target document in the current document, which is conducive to improving document collaboration efficiency.
[0046] In an optional embodiment, displaying the real-time content of the target document in the current document through the display window includes: monitoring scroll events of the display window in the current document and determining a scroll direction and a scroll position; determining display content in the real-time content of the target document according to the scroll direction and the scroll position; and rendering the display content of the target document into the display window of the target document.
[0047] The target document is shown through the working area in the display window. It is understandable that the working area in the display window is limited and is usually smaller than the document length of the target document. The document content of the target document can be displayed by scrolling. Optionally, the window element also includes a scrolling element. The scrolling element is in the working area of the window element. Listen to the scrolling event of the display window in the current document. Optionally, listen to the working area of the display window in the current document to monitor whether the scrolling element in the working area scrolls. When the scrolling element scrolls, determine the scrolling direction and scrolling position. Among them, the scrolling direction refers to the scrolling direction of the scrolling element, and the scrolling position is determined according to the scrolling distance of the scrolling element. According to the scrolling direction and the scrolling position, the display content is determined in the real-time content of the target document. The display content belongs to real-time content, which is the document content that needs to be loaded and displayed in the display window.
[0048] When the display content is loaded, the display content of the target document is rendered into the display window of the target document, and the display content of the target document is displayed in the current document through the display window.
[0049] The above technical solution monitors the scrolling events of the display window in the current document and determines the scrolling direction and scrolling position; determines the display content in the real-time content of the target document according to the scrolling direction and scrolling position; renders the display content of the target document into the display window of the target document, and only renders part of the content in the target document. This can reduce performance consumption and improve page performance without affecting the display of the document content in the target document, and can avoid the situation where the display window content display is stuck due to excessive document content.
[0050] In an optional embodiment, the method further includes: determining adjustment parameters of the display window in response to a window adjustment operation acting on the display window; wherein the window adjustment operation includes: at least one of a window zoom operation, a window move operation, a window close operation and a window removal operation; and adjusting the display window and the real-time content displayed in the display window based on the adjustment parameters.
[0051] Among them, the window adjustment operation is used to adjust the display window, and the window adjustment operation is associated with the adjustment parameters of the display window. Optionally, the window adjustment operation includes: at least one of: window scaling operation, window moving operation, window closing operation and window removal operation. Among them, the window scaling operation is used to adjust the window size of the display window. The area size of the working area in the display window will change with the size of the display window. When the display window becomes smaller, the working area in the display window will become smaller accordingly. The real-time content displayed in the working area will also become less. The window moving operation is used to change the position of the display window. The working area is a window element in the display window, and the area position of the working area in the display window will change as the display window moves. The real-time content displayed in the working area will also move. The window removal operation is used to remove the display window from the editing page of the current document.
[0052] The display window in the above technical solution supports multiple window adjustment operations, and the size of the visible area can be customized to meet the requirements of diversified display of various scenes.
[0053] Embodiment 2
[0054] Figure 2 It is a flow chart of a document processing method provided according to Embodiment 2. This embodiment is further optimized on the basis of the above embodiment.
[0055] like Figure 2 As shown, the method includes:
[0056] S210: In response to the document embedding operation acting on the current document, determine the target document to be embedded and the real-time content of the target document.
[0057] S220: Create a display window for the target document in the current document.
[0058] S230: In response to a document collaboration operation performed on a target document, acquire collaboration data of the target document.
[0059] The document collaboration operation is initiated by the collaborative user of the target document and is used to modify the document content of the target document. The target document supports multi-person collaboration, and the users who participate in editing the target document are the collaborative users of the target document. The collaborative user modifies the document content of the target document through the document collaboration operation. The collaborative data of the target document is generated based on the document collaboration operation of the target document and is used to determine the collaborative users and collaborative content.
[0060] S240: Based on the collaboration data, determine the collaboration content of the target document and the collaboration time and collaboration users corresponding to the collaboration content in the real-time content.
[0061] The collaborative content refers to the document content edited by the collaborative user. The collaborative user refers to the user who edits the document content in the target document. The collaborative time refers to the time when the collaborative user edits the document content in the target document. The collaborative time can be used to determine the document version of the target document. The document version of the target document corresponding to the most recent collaborative time is the latest. The collaborative content has corresponding collaborative time and collaborative users.
[0062] S250: Determine a display style of the collaborative content in the target document according to the collaboration time and the collaborative users.
[0063] The display style refers to the visual effect of the collaborative content in the target document. The display style of the collaborative content is associated with the collaboration time and the collaborative user. For example, the display style can be font, font size, color, line and background color.
[0064] S260: Using the display style, display the collaborative content of the target document in the current document.
[0065] The real-time data includes collaborative content and other content besides collaborative content. Collaborative content refers to the document content edited by collaborative users. Collaborative data and other data are displayed in different display styles in the display window. Based on the display style of the real-time content in the display window, the collaborative content can be intuitively located from the real-time content. Furthermore, the collaborative time corresponding to the collaborative content can be determined based on the display style.
[0066] The technical solution of the present application obtains the collaboration data of the target document in response to the document collaboration operation acting on the target document, determines the collaboration content of the target document and the collaboration time and collaboration user corresponding to the collaboration content in the real-time content based on the collaboration data, determines the display style of the collaboration content in the target document according to the collaboration time and collaboration user, and displays the collaboration content of the target document in the current document using the display style. The collaboration content can be intuitively located from the real-time content, which is conducive to improving the efficiency of document collaboration.
[0067] In an optional embodiment, the method further includes: in response to a window selection operation acting on the display window, creating an editing page for the target document; jumping from the display window to the editing page of the target document, and obtaining the editing content of the target document through the editing page; in response to a content save operation acting on the target document, determining the collaborative data of the target document according to the editing content of the target document; and updating the real-time content of the target document in the display window of the current document based on the collaborative data of the target document.
[0068] The window selection operation is used to edit the target document. Exemplarily, the window selection operation may be a double-click operation on a specific area in the display window, such as a window element. In response to the window selection operation on the display window, an editing page is created for the target document.
[0069] The editing page of the target document supports editing the document content in the target document. The display window in the current document is only used to display the real-time content of the target document. If the target document is to be edited, an editing page needs to be created for the target document.
[0070] Jump from the editing page of the current document to the editing page of the target document, and obtain the editing content of the target document by the collaborative user through the editing page. In response to the content saving operation acting on the target document, determine the collaborative data of the target document according to the editing content of the target document.
[0071] The content saving operation is used to save the edits made by the collaborative user to the target document. The edited content is the collaborative content corresponding to the collaborative data. The collaborative data is determined based on the collaborative user corresponding to the edited content and the collaborative time.
[0072] Based on the collaborative data of the target document, the real-time content of the target document is updated in the display window of the current document. Optionally, based on the collaborative data, the collaborative content of the target document and the collaborative time and collaborative users corresponding to the collaborative content are determined in the real-time content. Based on the collaborative time and collaborative users, the display style of the collaborative content in the target document is determined, and the collaborative content of the target document is displayed in the current document using the display style.
[0073] The above technical solution realizes editing of the target document by creating an editing page for the target document and obtaining the editing content of the target document through the editing page, which is conducive to improving the efficiency of document collaboration.
[0074] Embodiment 3
[0075] Figure 3 It is a structural diagram of the document processing device provided in Example 3 of the present application. This embodiment can be applied to the case of embedding documents into online documents. The device can be implemented by software and / or hardware and can be integrated into an electronic device.
[0076] like Figure 3 As shown, the device may include:
[0077] A target document determination module 310, for determining a target document to be embedded and real-time content of the target document in response to a document embedding operation acting on a current document;
[0078] A display window creation module 320, used to create a display window for the target document in the current document;
[0079] The real-time content display module 330 is used to display the real-time content of the target document in the current document through the display window.
[0080] The technical solution of the present application, in response to a document embedding operation acting on a current document, determines a target document to be embedded and the real-time content of the target document; creates a display window for the target document in the current document; and displays the real-time content of the target document in the current document through the display window. Executing the technical solution provided by the present application can display the real-time content of the target document in the current document, which is conducive to improving document collaboration efficiency.
[0081] Optionally, the real-time content display module 330 includes: a collaborative data acquisition submodule, used to acquire the collaborative data of the target document in response to a document collaboration operation acting on the target document; a collaborative content determination submodule, used to determine the collaborative content of the target document and the collaborative time and collaborative users corresponding to the collaborative content in the real-time content based on the collaborative data; a display style determination submodule, used to determine the display style of the collaborative content in the target document according to the collaborative time and the collaborative users; and a collaborative content display submodule, used to display the collaborative content of the target document in the current document using the display style.
[0082] Optionally, the device 300 also includes: an editing page creation module, which is used to create an editing page for the target document in response to a window selection operation acting on the display window; an editing content acquisition module, which is used to jump from the display window to the editing page of the target document and obtain the editing content of the target document through the editing page; a collaborative data determination module, which is used to determine the collaborative data of the target document according to the editing content of the target document in response to a content save operation acting on the target document; and a real-time content update module, which is used to update the real-time content of the target document in the display window of the current document based on the collaborative data of the target document.
[0083] Optionally, the real-time content display module 330 includes: a scrolling event monitoring submodule, used to monitor the scrolling events of the display window in the current document and determine the scrolling direction and scrolling position; a display content determination submodule, used to determine the display content in the real-time content of the target document according to the scrolling direction and the scrolling position; and a display content rendering submodule, used to render the display content of the target document into the display window of the target document.
[0084] Optionally, the target document determination module 310 includes: a candidate document display submodule, which is used to display embeddable candidate documents in response to a document embedding operation acting on the current document; a target document determination submodule, which is used to determine the target document to be embedded in response to a document selection operation acting on the candidate document; and a real-time content acquisition submodule, which is used to establish a long connection between the target document and the current document, and acquire the real-time content of the target document based on the long connection.
[0085] Optionally, the display window creation module 320 includes: a cursor position determination submodule, used to determine the cursor position in the current document in response to the document embedding operation; a display window creation submodule, used to create a display window in the document page of the current document based on the cursor position and preset element attributes; the display window includes at least two window elements; a title content determination submodule, used to determine the title content of the window title in the window element based on the document identifier of the target document.
[0086] Optionally, the device 300 also includes: an adjustment parameter determination module, used to determine the adjustment parameters of the display window in response to a window adjustment operation acting on the display window; wherein the window adjustment operation includes: at least one of a window zoom operation, a window move operation, a window close operation and a window move out operation; a real-time content adjustment module, used to adjust the display window and the real-time content displayed in the display window based on the adjustment parameters.
[0087] The document processing device provided in the embodiment of the invention can execute the document processing method provided in any embodiment of the present application, and has the corresponding performance modules and beneficial effects for executing the document processing method.
[0088] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user data involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0089] Embodiment 4
[0090] Figure 4 The schematic diagram of the structure of the electronic device 410 of the embodiment that can be used to implement is shown. The electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0091] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0092] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as a document processing method.
[0093] In some embodiments, the document processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the document processing method described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to execute the document processing method in any other appropriate manner (e.g., by means of firmware).
[0094] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0096] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0097] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0098] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data processing server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0099] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0101] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A document processing method, characterized in that: The method comprises: In response to a document embedding operation acting on a current document, determining a target document to be embedded and real-time content of the target document; Creating a display window for the target document in the current document; Displaying the real-time content of the target document in the current document through the display window; The step of displaying the real-time content of the target document in the current document through the display window includes: In response to a document collaboration operation performed on a target document, acquiring collaboration data of the target document; Based on the collaboration data, determining the collaboration content of the target document and the collaboration time and collaboration users corresponding to the collaboration content in the real-time content; Determine, according to the collaboration time and the collaboration users, a display style of the collaboration content in the target document; Using the display style, displaying the collaborative content of the target document in the current document; The display window is only used to display the real-time content of the target document. If the target document is to be edited, an editing page is created for the target document. The step of creating a display window for the target document in the current document includes: In response to the document embedding operation, determining a cursor position in the current document; Based on the cursor position and the preset element attributes, a display window is created in the document page of the current document; the display window includes at least two window elements; each window element has a corresponding preset element attribute; the window elements include a window title, a window border, a work area, a window menu and a window state; the preset element attributes are used to determine the display style and element function of the window elements in the display window; Determining the title content of the window title in the window element based on the document identifier of the target document; The step of displaying the real-time content of the target document in the current document through the display window includes: Listening to the scrolling event of the display window in the current document, and determining the scrolling direction and scrolling position; Determining display content in the real-time content of the target document according to the scrolling direction and the scrolling position; Rendering the display content of the target document into the display window of the target document.
2. The method according to claim 1, characterized in that The method further comprises: In response to a window selection operation acting on the presentation window, creating an edit page for the target document; Jumping from the display window to the editing page of the target document, and obtaining the editing content of the target document through the editing page; In response to a content saving operation acting on the target document, determining collaborative data of the target document according to edited content of the target document; Based on the collaborative data of the target document, the real-time content of the target document is updated in the display window of the current document.
3. The method according to claim 1, characterized in that The step of determining a target document to be embedded and real-time content of the target document in response to a document embedding operation on the current document includes: In response to a document embedding operation acting on the current document, displaying candidate documents that can be embedded; In response to a document selection operation acting on the candidate document, determining a target document to be embedded; A persistent connection is established between the target document and the current document, and real-time content of the target document is acquired based on the persistent connection.
4. The method according to claim 1, characterized in that: The method further comprises: In response to a window adjustment operation acting on the display window, an adjustment parameter of the display window is determined; wherein the window adjustment operation includes: at least one of a window zoom operation, a window move operation, a window close operation and a window remove operation; the window zoom operation is used to adjust the window size of the display window; the area size of the working area in the display window changes with the size of the display window; The presentation window and the real-time content presented in the presentation window are adjusted based on the adjustment parameters.
5. A document processing device, characterized in that: The device comprises: A target document determination module, for determining a target document to be embedded and real-time content of the target document in response to a document embedding operation acting on a current document; A display window creation module, used to create a display window for the target document in the current document; A real-time content display module, used to display the real-time content of the target document in the current document through the display window; Wherein, the real-time content display module includes: A collaboration data acquisition submodule, for acquiring the collaboration data of the target document in response to a document collaboration operation acting on the target document; a collaboration content determination submodule, for determining the collaboration content of the target document and the collaboration time and collaboration users corresponding to the collaboration content in the real-time content based on the collaboration data; a display style determination submodule, for determining the display style of the collaboration content in the target document according to the collaboration time and the collaboration users; and a collaboration content display submodule, for displaying the collaboration content of the target document in the current document using the display style; The display window is only used to display the real-time content of the target document. If the target document is to be edited, an editing page is created for the target document. Wherein, the display window creation module includes: A cursor position determination submodule, for determining the cursor position in the current document in response to the document embedding operation; a display window creation submodule, for creating a display window in the document page of the current document based on the cursor position and preset element attributes; the display window includes at least two window elements; a title content determination submodule, for determining the title content of the window title in the window element based on the document identifier of the target document; wherein each window element has a corresponding preset element attribute; the window elements include a window title, a window border, a work area, a window menu and a window state; the preset element attributes are used to determine the display style and element function of the window element in the display window; Wherein, the real-time content display module includes: A scroll event monitoring submodule is used to monitor the scroll events of the display window in the current document and determine the scroll direction and scroll position; a display content determination submodule is used to determine the display content in the real-time content of the target document according to the scroll direction and the scroll position; a display content rendering submodule is used to render the display content of the target document into the display window of the target document.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the document processing method according to any one of claims 1 to 4 is implemented.
7. 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, the document processing method according to any one of claims 1 to 4 is implemented.
