Document editing method and device

By simultaneously displaying the document editing interface and the target interface on the electronic device screen, users are allowed to input and edit in the same screen area, solving the problem of cumbersome operations in the prior art and improving the efficiency and flexibility of document editing.

CN114564921BActive Publication Date: 2024-12-10VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210153567.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-12-10
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

In the prior art, users need to frequently switch applications when inserting or editing pictures in documents, resulting in cumbersome operations, time-consuming and low document editing efficiency and flexibility of electronic devices.

Method used

By simultaneously displaying the document editing interface and the target interface associated with document editing on the screen of the electronic device, users are allowed to input and edit processing in the same screen area, avoiding the need to switch applications and simplifying the operation process.

Benefits of technology

It improves the simplicity and efficiency of user operations, improves the flexibility and processing efficiency of electronic devices in document editing, and reduces operating time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564921B_ABST
    Figure CN114564921B_ABST
Patent Text Reader

Abstract

The present application discloses a document editing method and device thereof, belonging to the field of communication. The method comprises: when an electronic device displays a document editing interface, receiving a first input from a screen of a user's electronic device; in response to the first input, displaying the document editing interface in a first screen area of ​​the screen, and displaying a target interface associated with the document editing interface in a second screen area of ​​the screen; receiving a second input from the user on a target object in the target interface; in response to the second input, editing the document editing interface in the first screen area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communications, and specifically relates to a document editing method and a device thereof. Background Art

[0002] Currently, users can edit documents through electronic devices. If they need to insert pictures into documents, they can open other applications, obtain the required pictures and other resources, and load them into the document, thereby realizing the user's need to insert pictures into the document.

[0003] However, in the above method, if the user needs to edit the picture, the user needs to exit the current document editing application and enter other applications to edit the picture to obtain a picture that meets the user's needs, and then open the document editing application and load the edited picture into the document through other applications. Therefore, the user's operation is cumbersome and time-consuming. As a result, the electronic device has low efficiency and poor flexibility in processing documents. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a document editing method that can improve the efficiency and flexibility of electronic devices in processing documents.

[0005] In a first aspect, an embodiment of the present application provides a document editing method, the method comprising: when the electronic device displays a document editing interface, receiving a first input from a user on a screen of the electronic device; in response to the first input, displaying the document editing interface in a first screen area of ​​the screen, and displaying a target interface associated with the document editing interface in a second screen area of ​​the screen; receiving a second input from the user on a target object in the target interface; and in response to the second input, editing the document editing interface in the first screen area.

[0006] In a second aspect, an embodiment of the present application provides a document editing device, comprising a receiving module, a display module, and an editing module. The receiving module is used to receive a first input from a user on a screen of an electronic device when the electronic device displays a document editing interface. The display module is used to display the document editing interface in a first screen area of ​​the screen in response to the first input received by the receiving module, and to display a target interface associated with the document editing interface in a second screen area of ​​the screen. The receiving module is also used to receive a second input from the user on a target object in the target interface. The editing module is used to edit the document editing interface in the first screen area in response to the second input received by the receiving module.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, when the electronic device displays a document editing interface, the electronic device can receive a first input from a user on the screen of the electronic device, and in response to the first input, display the document editing interface in a first screen area of ​​the screen, and display a target interface associated with the document editing interface in a second screen area of ​​the screen, so that the electronic device can receive a second input from the user on a target object in the target interface, and in response to the second input, edit the document editing interface in the first screen area. Since the user can make a first input to the screen of the electronic device when the electronic device displays the document editing interface, so as to trigger the electronic device to divide the screen display area into two areas, display the document editing interface in the first screen area, and display the target interface associated with the document editing interface in the second screen area, without the user having to open an application in the document editing interface, select an object in the application, and then edit the document editing interface by loading, the user's operation is simplified and the operation time is saved; and the electronic device can directly edit the document editing interface in the first screen area according to the user's input on the target object in the second screen area, so that the user can quickly edit the document in the document editing interface; thus, the flexibility of the electronic device in displaying the document editing interface and the flexibility of document editing are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of a document editing method provided in an embodiment of the present application;

[0013] Figure 2This is one of the example schematic diagrams of a mobile phone interface provided in an embodiment of the present application;

[0014] Figure 3 This is a second example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0015] Figure 4 This is a third example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0016] Figure 5 This is a fourth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0017] Figure 6 This is a fifth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0018] Figure 7 It is a structural schematic diagram of a document editing device provided in an embodiment of the present application;

[0019] Figure 8 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0020] Fig. 9 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The document editing method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0024] At present, with the development of technology, users can edit documents through applications in electronic devices, and insert pictures into documents during the editing process. However, when a user needs to insert a picture into a document, the user is usually required to click the insert control to open other applications, and after obtaining the corresponding image resources, click the load control so that the electronic device can insert the user's selected picture into the document. If there are no image resources that meet the user's needs in the existing resources, the user is required to exit the currently used document editing application, then search or take pictures, and save the image resources that meet the needs, so that the user can open the document editing application again and select the saved image resources.

[0025] However, if a user uses the above method to edit a document, the steps are complicated and time-consuming, and thus the electronic device has poor flexibility in editing a document.

[0026] An embodiment of the present application provides a document editing method, whereby an electronic device can simultaneously display an interface of an application program that needs to obtain resources and a document editing interface on a screen, so that a user can edit a document quickly and easily.

[0027] An embodiment of the present application provides a document editing method. Figure 1 A flowchart of a document editing method provided by an embodiment of the present application is shown, and the method can be applied to electronic devices. Figure 1 As shown, the document editing method provided in the embodiment of the present application may include the following steps 201 to 204.

[0028] Step 201: When the electronic device displays a document editing interface, the electronic device receives a first input from a user on the screen of the electronic device.

[0029] In an embodiment of the present application, a user can open a document editing application in an electronic device so that the electronic device can display the interface of the document editing application in the screen display area. Then, the user can make a first input on the screen of the electronic device when the electronic device displays the document editing interface, so that the electronic device can simultaneously display the document editing interface and the interface associated with the document editing interface in the screen display area after receiving the user's first input.

[0030] Optionally, in the embodiment of the present application, the document editing method can be used for an electronic device whose screen can be a flexible screen (including a foldable screen), and the electronic device can include one or more flexible screens, and it should be understood that the bending ability and bending mode of the flexible screen in this embodiment can be flexibly set according to needs. And the specific structure of the flexible screen electronic device that realizes the above bending ability can adopt any existing structure and material that can realize the above function, which is not the focus of the present invention and will not be repeated here.

[0031] Optionally, in an embodiment of the present application, the above-mentioned first input user triggers the electronic device to simultaneously display a document editing interface and an interface associated with the document editing interface in the screen display area.

[0032] Optionally, in the embodiment of the present application, the above-mentioned first input can be a click input (such as a single-click input, a double-click input, or an input of a preset number of clicks, etc.) by the user on the folding screen, a long press input, or a sliding input, etc., to trigger the electronic device to display the document editing interface and the interface associated with the document editing interface in the screen display area at the same time; or, the above-mentioned first input can also be a physical key or a combination of physical keys input by the user to the electronic device, to trigger the electronic device to display the document editing interface and the interface associated with the document editing interface in the screen display area at the same time; or, the above-mentioned first input can also be a folding input by the user to the folding screen, to trigger the electronic device to display the document editing interface and the interface associated with the document editing interface in the screen display area at the same time. The specific setting can be based on actual use requirements, and is not limited in the embodiment of the present application.

[0033] Step 202: In response to a first input, the electronic device displays a document editing interface in a first screen area of ​​the screen, and displays a target interface associated with the document editing interface in a second screen area of ​​the screen.

[0034] In an embodiment of the present application, after receiving the user's first input, the electronic device can divide the screen into two screen areas, display a document editing interface in the first screen area, and display a target interface associated with the document editing interface in the second screen area of ​​the screen.

[0035] Optionally, in an embodiment of the present application, the electronic device can use the folding line of the screen as a dividing line to divide the screen into two screen areas, each screen area displays an area (for example, a first screen area and a second screen area) to display a corresponding interface in the screen display area; or, the electronic device can use the central axis of the electronic device screen as a dividing line to divide the screen into two screen areas, each screen area displays an area (for example, a first screen area and a second screen area) to display a corresponding interface in the screen display area; or, the electronic device can use the diagonal line of the electronic device screen as a dividing line to divide the screen into two screen areas, each screen area displays an area (for example, a first screen area and a second screen area) to display a corresponding interface in the screen display area; or, the electronic device can divide the screen into two screen areas with different preset areas, each screen area displays an area (for example, a first screen area and a second screen area) to display a corresponding interface in the screen display area; the specific area can be determined according to actual usage, and the embodiment of the present application does not impose any limitation.

[0036] Optionally, in an embodiment of the present application, the above-mentioned target interface can be an interface of a preset application, so that the user can input in the interface of the preset application; or, the above-mentioned target interface can include an interface of an icon of at least one application, so that the user can select any application so that the electronic device can display the interface of the application, i.e., the target interface, in the second screen area of ​​the screen.

[0037] Optionally, in an embodiment of the present application, the above-mentioned screen is a foldable screen, and before the above-mentioned step 201, the document editing method provided in the embodiment of the present application also includes the following step 301, and the above-mentioned step 202 can be specifically implemented by the following step 202a.

[0038] Step 301: The electronic device folds the screen based on a folding position and a folding direction corresponding to a first input to obtain a first screen area and a second screen area.

[0039] In an embodiment of the present application, when the first input is a user's folding input to the electronic device, the electronic device can perform a folding operation on the foldable screen based on the folding position and folding direction corresponding to the first input, thereby obtaining a first screen area and a second screen area.

[0040] Optionally, in an embodiment of the present application, the folding position corresponding to the first input may be the position of a preset folding line of the foldable screen; or, the folding position corresponding to the first input may be the position where the user folds the foldable screen; the specific position may be determined based on actual usage, and the embodiment of the present application does not impose any limitations thereto.

[0041] Optionally, in the embodiment of the present application, the folding direction may include an inward folding direction and an outward folding direction.

[0042] It should be noted that the inward folding direction is the direction pointing to the screen; the outward folding direction is just the opposite direction to the screen.

[0043] Optionally, the user's folding operation on the screen may be an inward folding operation on the screen, or the user's folding operation on the screen may be an inward folding operation on the screen first and then an unfolding operation on the screen, so that the multiple display screens of the electronic device are in the same plane.

[0044] Optionally, in an embodiment of the present application, the above-mentioned different folding operations correspond to a folding angle respectively.

[0045] Step 202a: When the folding angle value of the screen is less than or equal to the preset angle value, the electronic device displays the document editing interface in the first screen area and displays the target interface in the second screen area.

[0046] Optionally, in an embodiment of the present application, when the electronic device performs a folding operation on the screen based on the folding position and folding direction corresponding to the first input, different folding operations correspond to a folding angle respectively. The electronic device can display a document editing interface in the first screen area and display a target interface in the second screen area when the folding angle value of the screen is less than or equal to a preset angle value.

[0047] It should be noted that the above-mentioned folding angle refers to: the angle between the two screens when the screens are folded.

[0048] Optionally, in an embodiment of the present application, the above-mentioned preset angle value can be 180 degrees, and the specific value can be determined according to actual usage conditions. The embodiment of the present application does not impose any limitation on this.

[0049] In an embodiment of the present application, a user can perform a folding operation on the electronic device when the electronic device displays a document editing interface, so that after responding to the operation, the electronic device can, when the folding angle value of the screen is less than or equal to a preset angle value, divide the screen display area into two areas according to the position and direction of the folding operation. The electronic device can thereby simultaneously display the target interface and the document editing interface, and the user can view and operate the two interfaces at the same time, thereby improving the flexibility of the electronic device in displaying the document editing interface.

[0050] Optionally, in an embodiment of the present application, the above-mentioned target interface is the interface of the target application, and the "displaying the target interface associated with the document editing interface in the second screen area of ​​the screen" in the above-mentioned step 202 can be specifically implemented through the following steps 202b to 202d.

[0051] Step 202b: The electronic device displays the first interface in the second screen area.

[0052] In the embodiment of the present application, the first interface includes at least one application icon, and each application icon indicates an application program in the electronic device.

[0053] In the embodiment of the present application, the electronic device can display multiple application icons in the second screen display area, so that the user can select any one icon (such as a target application icon) from the multiple application icons and input the target application icon.

[0054] Optionally, in the embodiment of the present application, the at least one application icon may be a system preset application icon; or a user-defined application icon.

[0055] Optionally, in the embodiment of the present application, if there is no application icon corresponding to the application program required by the user in the at least one application icon, the user can make an input in the interface to trigger the electronic device to manage the application icons in the interface according to the input (for example, add an application icon, etc.).

[0056] For example, the electronic device is a mobile phone with a foldable screen. Figure 2 As shown, after receiving the user's first input to the folding screen (for example, folding input), the mobile phone can divide the mobile phone screen display area into two screen areas, namely, the first screen area and the second screen area, and display the document editing interface 10 in the first screen area of ​​the folding screen, and display the first interface 11 in the second screen area of ​​the folding screen, and display multiple application icons (for example, APPA, APPB, APPC and APPD) in the first interface 11, where APPA is a camera application, APPB is a recording application, APPC is a gallery application, and APPD is a document editing application, so that the user can select any application icon (for example, the target application icon).

[0057] Step 202c: The electronic device receives a third input from the user on a target application icon among the at least one application icon.

[0058] In the embodiment of the present application, the target application icon is used to indicate the target application program.

[0059] In the embodiment of the present application, the third input is used to select an application icon from at least one application icon.

[0060] Optionally, in an embodiment of the present application, the above-mentioned third input can be a user's click input (such as a single input, a double-click input, or a preset number of inputs), a sliding input, or a dragging input, etc., on the target application icon, so as to trigger the electronic device to select the target application icon according to the user's third input; the specific input can be determined based on actual usage, and the embodiment of the present application does not impose any limitations on this.

[0061] Step 202d: The electronic device displays the interface of the target application in the second screen area in response to the third input.

[0062] In an embodiment of the present application, after receiving the user's third input to the target application icon in the first interface, the electronic device triggers the electronic device to start the target application corresponding to the target application icon and displays the interface of the target application in the second screen display area.

[0063] For example, in combination Figure 2 ,like Figure 3 As shown, the user can click and input APPD, ie, the application icon corresponding to the gallery application, in the first interface 11, so that the mobile phone can display the interface corresponding to the gallery application, ie, the target interface 12, in the second screen area.

[0064] In an embodiment of the present application, the electronic device can simultaneously display a document editing interface and multiple application icons, so that the user can select a target application icon from the multiple application icons as needed and input the target application icon, so that the user can simultaneously display the interface of the target application icon and the document editing interface in different areas of the screen. In this way, the flexibility of the electronic device in displaying the document editing interface is improved.

[0065] Step 203: The electronic device receives a second input from the user on the target object in the target interface.

[0066] In an embodiment of the present application, the electronic device displays at least one object in the target interface, and the user can input any object (such as the target object) so that the electronic device can receive the user's second input to the target object.

[0067] Optionally, the target object may include at least one of the following: text, image, music, video, link, text attribute (such as text color, text size, text format, text font, etc.).

[0068] Optionally, in an embodiment of the present application, the second input can be a user's click input (such as a single input, a double-click input, or a preset number of inputs), a sliding input, a dragging input, a circle input, an input of a preset trajectory, or a preset gesture input, etc., to trigger the electronic device to select the target object according to the user's second input; the specific amount can be determined based on actual usage, and the embodiment of the present application does not impose any restrictions on this.

[0069] Optionally, in an embodiment of the present application, the second input may also be a voice input or a video input of the user, that is, recording a voice or a video.

[0070] Step 204: The electronic device edits the document editing interface in the first screen area in response to the second input.

[0071] In the embodiment of the present application, the electronic device can edit the document editing interface in the first screen area after receiving the second input of the user to the target object.

[0072] Optionally, in the embodiment of the present application, the “editing the document editing interface in the first screen area” in the above step 204 can be specifically implemented by the following step 204a or step 204b.

[0073] Step 204a: The electronic device adds the target object to the document editing interface in the first screen area.

[0074] In the embodiment of the present application, the electronic device may add the target object to the document editing interface of the first screen area after receiving the second input of the user on the target object in the second screen display area.

[0075] Exemplarily, if there is a recording control in the second screen area, the user can click and input the recording control to trigger the electronic device to start recording and record a voice of the user, so that the electronic device can add the recording to the document editing interface in the first screen area. Alternatively, the user can click and input the recording control to trigger the electronic device to start recording and convert the recorded voice into text, so that the electronic device can add the converted text from the recording to the document editing interface in the first screen area.

[0076] As another example, if there is no image that meets the user's needs among the images displayed in the second screen area, the user can start a shooting application in the second screen area and take a picture using the shooting application, so that the electronic device can add the image taken by the user to the document editing interface.

[0077] Again exemplarily, in combination Figure 3 ,like Figure 4As shown, the user can click and input any one of the multiple images (such as the target image) in the target interface 12 in the second screen area to trigger the mobile phone to add the target image to the document editing interface 10.

[0078] Step 204b: The electronic device edits the object matching the target object in the document editing interface in the first screen area.

[0079] In the embodiment of the present application, after receiving the second input of the user on the target object in the second screen display area, the electronic device can edit the object matching the target object in the document editing interface.

[0080] It should be noted that the object that matches the target object can be understood as an object that matches the position of the target object, or an object that matches the attribute of the target object.

[0081] Optionally, in an embodiment of the present application, the electronic device may, based on the user's input on the target object in the second screen area, edit an object at a position corresponding to the target object in the second screen area based on attributes of the target object; or, the electronic device may, based on the user's input on the target object in the second screen area, edit an object of the same category as the target object in the second screen area based on attributes of the target object.

[0082] Exemplarily, the user can select the second paragraph in the first document when the first document is displayed in the second screen area to trigger the electronic device to apply the properties of the second paragraph of the first document (such as text font and line spacing, etc.) to the second paragraph of the target document in the document editing interface, so that the font and line spacing of the second paragraph of the target document are the same as the font and line spacing of the second paragraph of the first document.

[0083] As another example, when the target image is displayed in the second screen area, the user can perform a long press input on the target image to trigger the electronic device to apply the properties of the target image (such as resolution, etc.) to the image in the document editing interface, thereby making the resolution of the target image consistent with the resolution of the image in the document editing interface.

[0084] In an embodiment of the present application, the electronic device can trigger the electronic device to add the target object to the document editing interface based on the user's input of the target object in the second screen area, or edit the object that matches the target object in the document editing interface. Therefore, the user does not need to open the application in the document editing interface and then select the target object. The user can intuitively see the target object and the operation process, thereby improving the flexibility of the electronic device in editing documents.

[0085] The embodiment of the present application provides a document editing method. In the embodiment of the present application, when displaying a document editing interface, the electronic device can receive a first input from a user on the screen of the electronic device, and in response to the first input, display the document editing interface in a first screen area of ​​the screen, and display a target interface associated with the document editing interface in a second screen area of ​​the screen, so that the electronic device can receive a second input from the user on a target object in the target interface, and in response to the second input, edit the document editing interface in the first screen area. Since the user can make a first input to the screen when displaying the document editing interface to trigger the electronic device to divide the screen display area into two areas, display the document editing interface in the first screen area, and display the target interface associated with the document editing interface in the second screen area, without the user opening an application in the document editing interface, selecting an object in the application, and then editing the document editing interface by loading, the user's operation is simplified and the operation time is saved; and the electronic device can directly edit the document editing interface in the first screen area according to the user's input on the target object in the second screen area, so that the user can quickly edit the document in the document editing interface; thus, the flexibility of the electronic device in displaying the document editing interface and the flexibility of document editing are improved.

[0086] Optionally, in an embodiment of the present application, after the above step 204, the document editing method provided in the embodiment of the present application further includes the following steps 401 and 402.

[0087] Step 401: The electronic device receives a fourth input of a user on a target object in a target interface.

[0088] In an embodiment of the present application, after the electronic device receives the user's second input on the target object and adds the target object to the document editing interface in the first screen area, or edits the object that matches the target object in the document editing interface in the first screen area, the user can make a fourth input on the target object, so that the electronic device can edit the target object in the target interface according to the user's fourth input.

[0089] Optionally, in an embodiment of the present application, the fourth input is an editing input of the target object by the user, and the fourth input is used to edit the target object in the second screen area.

[0090] Optionally, in an embodiment of the present application, the fourth input is a user click input (such as a single click input, a double click input, or a preset number of click inputs), a sliding input, or a dragging input, etc., on the target object, thereby triggering the electronic device to edit the target object.

[0091] Step 402: In response to the fourth input, the electronic device edits the target object in the target interface using the editing method corresponding to the fourth input, and simultaneously edits the target object in the document editing interface using the editing method corresponding to the fourth input.

[0092] In an embodiment of the present application, after receiving the fourth input of the user on the target object, the electronic device can edit the target object in the target interface of the second screen area using the editing method corresponding to the fourth input, and simultaneously use the editing method to edit the target object in the document editing interface in the first screen area.

[0093] Exemplarily, if the target object is a paragraph of text, and the paragraph of text has been added to the document editing interface, the user can perform editing operations on the paragraph of text in the target interface, such as deleting or adding part of the text content, so that the electronic device can delete or add part of the text content of the paragraph of text added to the document editing interface in the same editing method according to the user's input in the target interface.

[0094] Again illustratively, in combination Figure 4 ,like Figure 5 As shown, after the mobile phone responds to the user's input of the target image in the target interface 12, the target image is added to the document editing interface 10 and the target image is displayed in the interface. Then, the user can crop the target image in the target interface 12, thereby triggering the mobile phone to use the same editing method to crop the target image in the document editing interface 10.

[0095] In an embodiment of the present application, the electronic device can synchronously edit the target object in the document editing interface in the same manner as the user edits the target object in the target interface. This saves user operations and improves the flexibility of the electronic device in document editing.

[0096] Optionally, in an embodiment of the present application, after the above step 204, the document editing method provided in the embodiment of the present application further includes the following steps 501 and 502.

[0097] Step 501: The electronic device receives a fifth input from a user on the screen.

[0098] In the embodiment of the present application, the user can make a fifth input on the screen, so that the electronic device can cancel displaying the target interface after receiving the fifth input from the user.

[0099] Optionally, in the embodiment of the present application, the fifth input may be an outward folding input of the screen by the user when the electronic device simultaneously displays the target interface and the document editing interface.

[0100] Step 502: In response to the fifth input, the electronic device cancels display of the target interface and displays a document editing interface on the screen when the folding direction corresponding to the fifth input is opposite to the folding direction corresponding to the first input.

[0101] In an embodiment of the present application, after the electronic device receives the fifth input from the user on the screen, if the folding direction corresponding to the input is opposite to the folding direction corresponding to the first input, the target interface is canceled and a document editing interface is displayed on the screen.

[0102] Optionally, in an embodiment of the present application, after canceling display of the target interface, the electronic device may display a document editing interface in the screen display area, or, after canceling display of the target interface, the electronic device may continue to display the document editing interface in the first screen area and display other interfaces (such as the first interface) in the second screen area.

[0103] It should be noted that the folding direction and folding position of the fifth input may refer to the first input mentioned above, and will not be described again here.

[0104] For example, in combination Figure 5 ,like Figure 6 As shown, after the user completes the editing process of the target image, the folding screen can be reversely folded to trigger the electronic device to cancel the display of the target interface and display the document editing interface 10 in the mobile phone screen display area.

[0105] In an embodiment of the present application, after the user completes editing the document editing interface based on the two screen areas, the user can make a fifth input on the screen of the electronic device, so that the electronic device can cancel display of the target interface based on the fifth input and display the document editing interface, thereby improving the flexibility of the electronic device in displaying the document editing interface.

[0106] The document editing method provided in the embodiment of the present application can be executed by a document editing device. In the embodiment of the present application, the document editing device provided in the embodiment of the present application is described by taking the document editing device executing the document editing method as an example.

[0107] Figure 7 A possible structural diagram of a document editing device involved in an embodiment of the present application is shown. Figure 7 As shown, the document editing device 40 may include: a receiving module 41 , a display module 42 and an editing module 43 .

[0108] The receiving module 41 is used to receive a first input from a user on the screen of the electronic device when the document editing interface is displayed. The display module 42 is used to display the document editing interface in a first screen area of ​​the screen in response to the first input received by the receiving module 41, and to display a target interface associated with the document editing interface in a second screen area of ​​the screen. The receiving module 41 is also used to receive a second input from a user on a target object in the target interface. The editing module 43 is used to edit the document editing interface in the first screen area in response to the second input received by the receiving module 41.

[0109] An embodiment of the present application provides a document editing device. Since a user can make a first input on the screen of an electronic device when a document editing interface is displayed, so as to trigger the electronic device to divide the screen display area into two areas, display the document editing interface in the first screen area, and display a target interface associated with the document editing interface in the second screen area, the user does not need to open an application in the document editing interface, select an object in the application, and then edit the document editing interface by loading it. Therefore, the user's operation is simplified and the operation time is saved. Moreover, the electronic device can directly edit the document editing interface in the first screen area according to the user's input on the target object in the second screen area, so that the user can quickly edit the document in the document editing interface. In this way, the flexibility of the electronic device in displaying the document editing interface and the flexibility in editing documents are improved.

[0110] In a possible implementation, the screen is a foldable screen, and the document editing device further includes: a folding module. The folding module is used to fold the screen based on the folding position and folding direction corresponding to the first input before the display module 42 displays the document editing interface in the first screen area of ​​the screen, to obtain the first screen area and the second screen area. The display module 42 is specifically used to display the document editing interface in the first screen area and display the target interface in the second screen area when the folding angle value of the screen is less than or equal to the preset angle value.

[0111] In a possible implementation, the target interface is the interface of the target application; the display module 42 is specifically used to display the first interface in the second screen area, wherein the first interface includes at least one application icon, and each application icon indicates an application in the electronic device. The receiving module 41 is also used to receive a third input from the user to a target application icon in the at least one application icon, wherein the target application icon is used to indicate the target application. The display module 42 is also used to display the interface of the target application in the second screen area in response to the third input received by the receiving module 41.

[0112] In a possible implementation, the editing module 43 is specifically configured to add the target object to the document editing interface in the first screen area; or, in the first screen area, edit an object in the document editing interface that matches the target object.

[0113] In a possible implementation, the receiving module 41 is further used to receive a fourth input of the user on the target object in the target interface after the editing module 43 edits the document editing interface in the first screen area. The editing module 43 is further used to edit the target object in the target interface in response to the fourth input received by the receiving module 41 using the editing method corresponding to the fourth input, and simultaneously edit the target object in the document editing interface using the editing method corresponding to the fourth input.

[0114] In a possible implementation, the document editing device further includes: a cancel module. The receiving module 41 is further used to receive a fifth input from the user on the screen after the editing module 43 edits the document editing interface in the first screen area. The cancel module is further used to cancel the display of the target interface in response to the fifth input received by the receiving module 41 when the folding direction corresponding to the fifth input is opposite to the folding direction corresponding to the first input. The display module 42 is further used to display the document editing interface on the screen.

[0115] The document editing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0116] The document editing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0117] The document editing device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0118] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned document editing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0119] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0120] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0121] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0122] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0123] The user input unit 107 is used to receive a first input from a user on the screen of the electronic device when the document editing interface is displayed. The display unit 106 is used to display the document editing interface in a first screen area of ​​the screen in response to the first input, and to display a target interface associated with the document editing interface in a second screen area of ​​the screen. The user input unit 107 is also used to receive a second input from a user on a target object in the target interface. The processor 110 is used to edit the document editing interface in the first screen area in response to the second input.

[0124] An embodiment of the present application provides an electronic device. When a document editing interface is displayed, a user can make a first input on the screen to trigger the electronic device to divide the screen display area into two areas, display the document editing interface in the first screen area, and display a target interface associated with the document editing interface in the second screen area. The user does not need to open an application in the document editing interface, select an object in the application, and then edit the document editing interface by loading it. This simplifies the user's operation and saves operation time. In addition, the electronic device can directly edit the document editing interface in the first screen area based on the user's input on the target object in the second screen area, so that the user can quickly edit the document in the document editing interface. In this way, the flexibility of the electronic device in displaying the document editing interface and the flexibility in editing documents are improved.

[0125] Optionally, in an embodiment of the present application, the screen is a foldable screen; the processor 110 is used to fold the screen based on the folding position and folding direction corresponding to the first input before displaying the document editing interface in the first screen area of ​​the screen, so as to obtain the first screen area and the second screen area. The display unit 106 is specifically used to display the document editing interface in the first screen area and the target interface in the second screen area when the folding angle value of the screen is less than or equal to the preset angle value.

[0126] Optionally, in an embodiment of the present application, the target interface is an interface of a target application; the display unit 106 is specifically used to display a first interface in the second screen area, wherein the first interface includes at least one application icon, and each application icon indicates an application in the electronic device. The user input unit 107 is also used to receive a third input from a user for a target application icon in at least one application icon, wherein the target application icon is used to indicate a target application. The display unit 106 is also used to display the interface of the target application in the second screen area in response to the third input.

[0127] Optionally, in an embodiment of the present application, the processor 110 is specifically used to add the target object to the document editing interface in the first screen area; or, in the first screen area, edit the object in the document editing interface that matches the target object.

[0128] Optionally, in the embodiment of the present application, the user input unit 107 is further configured to receive a fourth input of the user on the target object in the target interface after the document editing interface is edited in the first screen area. The processor 110 is further configured to respond to the fourth input, edit the target object in the target interface using the editing method corresponding to the fourth input, and simultaneously edit the target object in the document editing interface using the editing method corresponding to the fourth input.

[0129] Optionally, in the embodiment of the present application, the user input unit 107 is further used to receive a fifth input from the user on the screen after the document editing interface is edited in the first screen area. The processor 110 is further used to cancel the display of the target interface in response to the fifth input when the folding direction corresponding to the fifth input is opposite to the folding direction corresponding to the first input. The display unit 106 is also used to display the document editing interface on the screen.

[0130] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0131] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0132] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0133] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned document editing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0134] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0135] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned document editing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0136] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0137] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the document editing method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0138] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0140] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A document editing method, characterized in that: The method comprises: When the electronic device displays a document editing interface, receiving a first input from a user on the screen of the electronic device; In response to the first input, displaying the document editing interface in a first screen area of ​​the screen, and displaying a target interface associated with the document editing interface in a second screen area of ​​the screen; receiving a second input of the user on the target object in the target interface; In response to the second input, editing the document editing interface in the first screen area; The editing process of the document editing interface in the first screen area includes: In the first screen area, objects matching the target object in the document editing interface are edited based on the attributes of the target object.

2. The method according to claim 1, characterized in that: The screen is a foldable screen, and before the document editing interface is displayed in the first screen area of ​​the screen, the method further includes: determining the first screen area and the second screen area based on a folding position and a folding direction corresponding to the first input; The step of displaying the document editing interface in the first screen area of ​​the screen and displaying a target interface associated with the document editing interface in the second screen area of ​​the screen includes: When the folding angle value of the screen is less than or equal to the target angle value, the document editing interface is displayed in the first screen area, and the target interface is displayed in the second screen area.

3. The method according to claim 1 or 2, characterized in that: The target interface is the interface of the target application; The displaying of a target interface associated with the document editing interface in the second screen area of ​​the screen includes: Displaying a first interface in the second screen area, the first interface including at least one application icon, each application icon indicating an application program in the electronic device; receiving a third input from a user on a target application icon among the at least one application icon, wherein the target application icon is used to indicate the target application program; In response to the third input, an interface of the target application is displayed in the second screen area.

4. The method according to claim 1, characterized in that: The editing process of the document editing interface in the first screen area further includes: In the first screen area, the target object is added to the document editing interface.

5. The method according to claim 1 or 4, characterized in that: After the document editing interface is edited in the first screen area, the method further includes: receiving a fourth input of the user on the target object in the target interface; In response to the fourth input, the target object in the target interface is edited using the editing method corresponding to the fourth input, and the target object in the document editing interface is edited simultaneously using the editing method corresponding to the fourth input.

6. The method according to claim 1 or 2, characterized in that: After editing the document editing interface in the first screen area based on the target object, the method further includes: receiving a fifth input from the user on the screen; In response to the fifth input, when the folding direction corresponding to the fifth input is opposite to the folding direction corresponding to the first input, the target interface is canceled from being displayed, and the document editing interface is displayed on the screen.

7. A document editing device, characterized in that: The device comprises: a receiving module, a display module and an editing module; The receiving module is used to receive a first input from a user on the screen of the electronic device when the electronic device displays a document editing interface; The display module is configured to display the document editing interface in a first screen area of ​​the screen and display a target interface associated with the document editing interface in a second screen area of ​​the screen in response to the first input received by the receiving module; The receiving module is further used to receive a second input of the user on the target object in the target interface; The editing module is configured to edit the document editing interface in the first screen area in response to the second input received by the receiving module; The editing module is specifically configured to edit the object matching the target object in the document editing interface based on the attributes of the target object in the first screen area.

8. The device according to claim 7, characterized in that The screen is a foldable screen, and the device further comprises: a folding module; The folding module is configured to, before the display module displays the document editing interface in the first screen area of ​​the screen, perform a folding operation on the screen based on a folding position and a folding direction corresponding to the first input to obtain the first screen area and the second screen area; The display module is specifically used to display the document editing interface in the first screen area and the target interface in the second screen area when the folding angle value of the screen is less than or equal to a preset angle value.

9. The device according to claim 7 or 8, characterized in that The target interface is the interface of the target application; The display module is specifically configured to display a first interface in the second screen area, wherein the first interface includes at least one application icon, each application icon indicating an application program in the electronic device; The receiving module is further configured to receive a third input from a user on a target application icon among the at least one application icon, wherein the target application icon is used to indicate the target application program; The display module is further configured to display the interface of the target application in the second screen area in response to the third input received by the receiving module.

10. The device according to claim 7, characterized in that The editing module is further used to add the target object to the document editing interface in the first screen area.

11. The device according to claim 7 or 10, characterized in that The receiving module is further configured to receive a fourth input of the user on the target object in the target interface after the editing module edits the document editing interface in the first screen area based on the target object; The editing module is also used to respond to the fourth input received by the receiving module, adopt the editing method corresponding to the fourth input to edit the target object in the target interface, and simultaneously adopt the editing method corresponding to the fourth input to edit the target object in the document editing interface.

12. The device according to claim 7 or 8, characterized in that The device further comprises: a cancellation module; The receiving module is further configured to receive a fifth input from the user on the screen after the editing module edits the document editing interface in the first screen area based on the target object; The canceling module is further configured to, in response to the fifth input received by the receiving module, cancel display of the target interface when the folding direction corresponding to the fifth input is opposite to the folding direction corresponding to the first input; The display module is also used for displaying the document editing interface on the screen.

13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the document editing method according to any one of claims 1 to 6 are implemented.

14. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the document editing method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • File transmission method, terminal and storage medium

    CN109582477A