WO2023155858A1 - Document editing method and apparatus - Google Patents

Document editing method and apparatus Download PDF

Info

Publication number
WO2023155858A1
WO2023155858A1 PCT/CN2023/076601 CN2023076601W WO2023155858A1 WO 2023155858 A1 WO2023155858 A1 WO 2023155858A1 CN 2023076601 W CN2023076601 W CN 2023076601W WO 2023155858 A1 WO2023155858 A1 WO 2023155858A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
screen
input
document editing
target
Prior art date
Application number
PCT/CN2023/076601
Other languages
French (fr)
Chinese (zh)
Inventor
程倩
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023155858A1 publication Critical patent/WO2023155858A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application belongs to the communication field, and in particular relates to a document editing method and a device thereof.
  • users can edit and process documents through electronic devices. If they need to insert pictures in the document, the user can open other applications to obtain the required pictures and other resources, and load them into the document. The need to insert pictures in.
  • the purpose of the embodiments of the application is to provide a document editing method, which can improve the efficiency and flexibility of electronic devices in processing documents.
  • the embodiment of the present application provides a document editing method, the method includes: when the electronic device displays a document editing interface, receiving a user's first input on the screen of the electronic device; in response to the first input, in the The first screen area of the screen displays the document editing interface, and the target interface associated with the document editing interface is displayed in the second screen area of the screen; the second input of the user on the target object in the target interface is received; in response to the second input, the Editing is performed on the document editing interface in the first screen area.
  • the embodiment of the present application provides a document editing device, including a receiving module, a display module and an editing module.
  • the receiving module is configured to receive the user's first input to the screen of the electronic device when the electronic device displays the document editing interface.
  • the display module is configured to display the document editing interface in the first screen area of the screen in response to the first input received by the receiving module, and display the target interface associated with the document editing interface in the second screen area of the screen.
  • the receiving module is further configured to receive a second input from 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 embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are processed by the The steps of the method described in the first aspect are realized when the controller is executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
  • the electronic device when the electronic device displays the document editing interface, the electronic device may receive the first input from the user on the screen of the electronic device, and in response to the first input, display the document editing interface on the first screen area of the screen , and display the target interface associated with the document editing interface in the second screen area of the screen, so that the electronic device can receive the user's second input on the target object in the target interface, and respond to the second input, in the first screen area Edit the document editing interface.
  • the user can perform a first input on 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
  • the second screen area displays the target interface associated with the document editing interface, without the need for the user to open the application in the document editing interface, select objects in the application, and then load the document editing interface.
  • Editing processing thus simplifying the user's operation and saving time-consuming operation; 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 displaying the document editing interface of the electronic device and the flexibility of editing the document are improved.
  • FIG. 1 is a schematic diagram of a document editing method provided by an embodiment of the present application
  • Fig. 2 is one of the example schematic diagrams of the interface of a mobile phone provided by the embodiment of the present application;
  • Fig. 3 is the second schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 4 is the third schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 5 is the fourth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 6 is the fifth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a document editing device provided in an embodiment of the present application.
  • Fig. 8 is one of the schematic diagrams of the hardware structure of an electronic device provided by the embodiment of the present application.
  • FIG. 9 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • An embodiment of the present application provides a document editing method.
  • An electronic device can simultaneously display an interface of an application program that needs to acquire resources and a document editing interface on a screen, so that a user can quickly and easily edit a document.
  • FIG. 1 shows a flow chart of a document editing method provided by an embodiment of the present application, and the method can be applied to electronic devices.
  • the document editing method provided by the embodiment of the present application may include the following steps 201 to 204 .
  • Step 201 When the electronic device displays a document editing interface, the electronic device receives a first input from a user on a screen of the electronic device.
  • the user can open the document editing application program in the electronic device, so that the electronic device can display the interface of the document editing application program in the screen display area, and then the user can display the document editing interface on the electronic device , performing the first input on the screen of the electronic device, 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.
  • the above-mentioned document editing method may be used for an electronic device whose screen may be a flexible screen (including a foldable screen), and the electronic device may include one or more flexible screens, and it should be understood that Yes, the bending ability and bending method of the flexible screen in this embodiment can be flexibly set according to requirements. And the specific structure of the flexible screen electronic device that realizes the above-mentioned bending ability can adopt any existing structure and material that can realize the above-mentioned function, which is not the focus of the discussion of the present invention, and will not be repeated here.
  • the above-mentioned first input user triggers the electronic device to simultaneously display the document editing interface and interfaces associated with the document editing interface in the display area of the screen.
  • the above-mentioned first input may be a user's click input on the folding screen (such as single-click input, double-click input, or input of a preset number of clicks, etc.), long-press input or sliding input, etc.,
  • the above-mentioned first input can also be the user’s physical button on the electronic device or a combination of physical buttons input to trigger the electronic device
  • the document editing interface and the interface associated with the document editing interface are simultaneously displayed in the screen display area; or, the above-mentioned first input can also be the user's folding input to the folding screen, so as to trigger the electronic device to simultaneously display the document editing interface and the document editing interface in the screen display area.
  • the interface associated with the document editing interface Specifically, it can be set according to actual usage requirements, and is not limited in this embodiment of the application.
  • Step 202 In response to the 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.
  • the electronic device may divide the screen into two screen areas, display the document editing interface in the first screen area, and display the document editing interface in the second screen area of the screen.
  • the target interface associated with the document editing interface.
  • the electronic device may use the folding line of the screen as the dividing line to divide the screen into two Each screen area displays an area (such as the first screen area and the second screen area) respectively, so as to display the corresponding interface in the screen display area; or, the electronic device can be divided by the central axis of the electronic device screen line, divide the screen into two screen areas, and each screen area displays an area (for example, the first screen area and the second screen area), so as to display the corresponding interface in the screen display area;
  • the diagonal line of the device screen is a dividing line, which divides the screen into two screen areas, and each screen area displays an area (for example, the first screen area and the second screen area) to display the corresponding interface in the screen display area or, the electronic device may divide the screen into two screen areas with different preset areas, and each screen area displays an area (such as the first screen area and the second screen area) respectively, so as to display the corresponding screen area in the screen display area; Interface; the specific one can be determined according to the actual
  • the above-mentioned target interface may be an interface of a preset application program, so that the user can perform input in the interface of the preset application program; or, the above-mentioned target interface may include an icon of at least one application program interface, so that the user can select any application program, so that the electronic device can display the interface of the application program in the second screen area of the screen, that is, the target interface.
  • the above screen is a foldable screen
  • the document editing method provided by the embodiment of the present application further includes the subordinate step 301, and the above step 202 can be specifically implemented through the following Step 202a is implemented.
  • Step 301 The electronic device performs a folding operation on the screen based on the folding position and the folding direction corresponding to the first input, to obtain a first screen area and a second screen area.
  • the electronic device when the first input is the 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, so as to obtain the first screen area and second screen area.
  • the folding position corresponding to the first input may be the position of the preset folding line of the foldable screen; or, the folding position corresponding to the first input may be the folded position of the user on the foldable screen location; the specific location can be determined according to the actual use situation, and this embodiment of the application does not make any limitation here.
  • the folding direction may include an inward folding direction and an outward folding direction.
  • the inward folding direction is the direction pointing to the screen; the outward folding direction is the opposite direction to the screen.
  • the user's folding operation of the screen may be the user's inward folding operation of the screen, or the user's user's folding operation of the screen may be the user's first inward folding operation of the screen, and then the unfolding operation of the screen, so that Multiple display screens of an electronic device are in one plane.
  • the above-mentioned different folding operations respectively correspond to a folding angle.
  • Step 202a When the folding angle 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.
  • the electronic device 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, and the electronic device can adjust the folding angle of the screen.
  • the value is less than or equal to the preset angle value, the document editing interface is displayed in the first screen area, and the target interface is displayed in the second screen area.
  • folding angle refers to an angle between two screens when the screens are folded.
  • the above-mentioned preset angle value may be 180 degrees, and the specific value may be based on actual use The situation is determined, and the embodiment of the present application does not make any limitation here.
  • the user can perform a folding operation on the electronic device when the electronic device displays the document editing interface, so that after the electronic device responds to the operation, the folding angle value of the screen is less than or equal to the preset angle
  • the screen display area is divided into two areas, so that the electronic device can display the target interface and the document editing interface at the same time, and the user can view and operate these two interfaces at the same time In this way, the flexibility of displaying the document editing interface by the electronic device is improved.
  • the above-mentioned target interface is the interface of the target application program, and the "display 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 performed through the following steps Steps 202b to 202d are realized.
  • Step 202b the electronic device displays the first interface in the second screen area.
  • the first interface includes at least one application icon, and each application icon respectively indicates an application program in the electronic device.
  • the electronic device may display a plurality of application icons in the display area of the second screen, so that the user may select any icon (such as a target application icon) from the plurality of application icons, and perform an operation on the target application icon. enter.
  • any icon such as a target application icon
  • the above at least one application icon may be an application icon preset by the system; or an application icon defined by the user.
  • the user can make an input in the interface to trigger the electronic device to trigger the input in the interface according to the input.
  • Application icons for management (such as adding application icons, etc.)
  • the electronic device is a mobile phone with a folding screen as an example for description.
  • the display area of the mobile phone screen can be divided into two screen areas, that is, the first screen area and the second screen area, and
  • the document editing interface 10 is displayed in the first screen area of the folding screen, and the first interface 11 is displayed in the second screen area of the folding screen, and a plurality of application icons (such as APPA, APPB, APPC are displayed in the first interface 11) and APPD), wherein 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 (such as the target application icon).
  • APPA is a camera application
  • APPB is a recording application
  • APPC is a gallery application
  • APPD is a document editing application
  • step 202c the electronic device receives a third input from the user on a target application icon in at least one application icon.
  • the target application icon is used to indicate the target application.
  • the above-mentioned third input is used to select a Mubaioh application icon from at least one application icon.
  • the above-mentioned third input may be the user's click input (such as single-machine input, double-click input, or input of a preset number of times), sliding input, or drag input, etc., on the target application icon to trigger the electronic
  • the device can select the target application icon according to the third input of the user; the specific one can be determined according to the actual use situation, and this embodiment of the present application does not make any limitation here.
  • Step 202d the electronic device displays the interface of the target application program in the second screen area in response to the third input.
  • the electronic device after receiving the user's third input on 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 target application in the second screen display area The interface of the program.
  • FIG. 2 As shown in FIG. 2, as shown in FIG. Use the application icon corresponding to the program to click and input, so that the mobile phone can display the interface corresponding to the gallery application program in the second screen area, that is, the target interface 12 .
  • the electronic device can display the document editing interface and multiple application icons at the same time, so that the user can select the target application icon from the multiple application icons according to the requirement, and input the target application icon, so that the user can display the target application icon on the screen.
  • the interface of the target application icon and the document editing interface are simultaneously displayed, thus improving the flexibility of displaying the document editing interface of the electronic device.
  • Step 203 the electronic device receives a second input from the user on the target object in the target interface.
  • the electronic device displays at least one object on 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 on the target object.
  • the above-mentioned target object may include at least one of the following: text, image, music, video, link, text attribute (such as text color, text font size, text format, text font, etc.).
  • text attribute such as text color, text font size, text format, text font, etc.
  • the above-mentioned second input may be the user's click input on the target object (such as single-click input, double-click input, or input of a preset number of times), sliding input, dragging input, circle selection input, preset Set track input or preset gesture input to trigger the electronic device to select the target object according to the user's second input; the specific can be determined according to the actual use situation, and the embodiment of the present application does not make any limitation here.
  • the above-mentioned second input may also be a user's voice input or video input, that is, to record a piece of voice or a piece of video.
  • step 204 the electronic device performs editing processing on the document editing interface in the first screen area in response to the second input.
  • the electronic device may edit the document editing interface in the first screen area after receiving the user's second input on the target object.
  • step 204 "editing the document editing interface in the first screen area" in the above step 204 may be specifically implemented through the following step 204a or step 204b.
  • Step 204a the electronic device adds the target object to the document editing interface in the first screen area.
  • the electronic device may add the target object to the document editing interface in the first screen area after receiving the user's second input on the target object in the second screen display area.
  • the user can click on the recording control to trigger the electronic device to start recording and record a voice of the user, so that the electronic device can, in the first screen area, set the The recording is added to the document editing interface, or the user can click on the recording control to trigger the electronic device to start recording and convert the recorded voice into text, so that the electronic device can display the recording in the first screen area
  • the following text is added to the document editing interface.
  • the user can start a shooting application program in the second screen area, and use the shooting application program to take pictures, so that the electronic device can Add the image captured by the user to the document editing interface.
  • the user can click on 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 adds the target image to the document editing interface 10 .
  • step 204b the electronic device performs editing processing on the object matching the target object in the document editing interface in the first screen area.
  • the electronic device may edit the object matching the target object in the document editing interface.
  • the object matched with the target object may be understood as an object matching the location of the target object, or an object matching the attribute of the target object.
  • the electronic device may, based on the user's input on the target object in the second screen area, in the second screen area, based on the attributes of the target object, edit the Objects of the category are edited.
  • the user can select the second paragraph in the first document, so as to trigger the electronic device to change the attributes (such as text font and line) of the second paragraph of the first document to Spacing, etc.), applied 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.
  • the attributes such as text font and line
  • Spacing etc.
  • the user can long-press 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 , so that the resolution of the target image is consistent with the resolution of the image in the document editing interface.
  • the properties of the target image such as resolution, etc.
  • the electronic device may trigger the electronic device to add the target object to the document editing interface according to the user's input on the target object in the second screen area, or perform an operation on the object matching the target object in the document editing interface Editing processing, therefore, the user does not need to open the application program in the document editing interface to select the target object, and the user can intuitively see the target object and the operation process, thus improving the flexibility of electronic devices to edit documents.
  • An embodiment of the present application provides a document editing method.
  • the electronic device may receive the user's first input on the screen of the electronic device, and in response to the first input, the The document editing interface is displayed in the first screen area of the screen, and the target interface associated with the document editing interface is displayed in the second screen area of the screen, so that the electronic device can receive the user's second input on the target object in the target interface, and respond to the second The second input is to edit the document editing interface in the first screen area.
  • the user can perform a first input on the screen when the document editing interface is displayed, to trigger the electronic device to divide the screen display area into two areas, the document editing interface is displayed in the first screen area, and the document editing interface is displayed in the second screen area.
  • the target interface associated with the document editing interface does not require the user to open the application in the document editing interface, select objects in the application, and then load the document editing interface to edit the document, thus simplifying the The user's operation saves time-consuming operation; 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 The document in the document editing interface is edited; in this way, the flexibility of displaying the document editing interface of the electronic device and the flexibility of editing the document are improved.
  • the document editing method provided in the embodiment of the present application further includes the following steps 401 and 402.
  • Step 401 The electronic device receives a fourth input from a user on a target object in a target interface.
  • the target object is added to the document editing interface in the first screen area, or, in the first screen area, the document editing interface is combined with the After the object matching the target object is edited, the user can perform a fourth input on the target object, so that the electronic device can According to the user's fourth input, the target object is edited in the target interface.
  • 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.
  • the above-mentioned fourth input is the user's click input on the target object (such as single-click input, double-click input, or preset click input), sliding input, or dragging input, etc., thereby triggering the electronic device Edit the target object.
  • Step 402 In response to the fourth input, the electronic device uses the editing method corresponding to the fourth input to edit the target object in the target interface, and simultaneously adopts the editing method corresponding to the fourth input to edit the target object in the document editing interface Do editing.
  • the electronic device after receiving the user's fourth input on the target object, can edit the target object in the target interface in the second screen area using the editing method corresponding to the fourth input, and simultaneously adopt the In this editing mode, in the first screen area, the target object in the document editing interface is edited.
  • the user can edit the piece of text in the target interface, such as deleting or adding part of the text content, so that the electronic device According to the user's input in the target interface, the same editing method can be used to delete or add part of the text added to the document editing interface.
  • the target image is added to the document editing interface 10, and the target is displayed in the interface Then, the user can cut and input the target image in the target interface 12, thereby triggering the mobile phone to use the same editing method to cut the target image in the document editing interface 10.
  • the electronic device can synchronously edit the target object in the document editing interface in the same way according to the editing process of the target object by the user in the target interface, thus saving the user's operation and improving the The flexibility of electronic devices for document editing and processing.
  • the document editing method provided in the embodiment of the present application further includes the following steps 501 and 502.
  • Step 501 The electronic device receives a fifth input from a user on a screen.
  • the user may perform a fifth input on the screen, so that the electronic device may cancel displaying the target interface after receiving the fifth input from the user.
  • the above-mentioned 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.
  • Step 502 In response to the fifth input, the electronic device cancels displaying the target interface and displays the 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.
  • the target interface is canceled and displayed on the screen.
  • Document editing interface 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 displayed on the screen. Document editing interface.
  • the electronic device may display the document editing interface in the screen display area, or, after canceling the display of the target interface, the electronic device continues to remain in the first screen area
  • the document editing interface is displayed, and other interfaces (such as the first interface) are displayed in the second screen area.
  • the folding screen can be reversely folded and input, thereby triggering the electronic device to cancel displaying the target interface, and the display area of the mobile phone screen A document editing interface 10 is displayed.
  • the user after the user finishes editing the document editing interface based on the two screen areas, he can perform a fifth input on the screen of the electronic device, so that the electronic device can cancel displaying the target interface based on the fifth input, and Displaying the document editing interface improves the flexibility of the electronic device for displaying the document editing interface.
  • the document editing method provided in the embodiment of the present application may be executed by a document editing device.
  • 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.
  • Fig. 7 shows a possible structural diagram of a document editing device involved in the embodiment of the present application.
  • the document editing device 40 may include: a receiving module 41 , a display module 42 and an editing module 43 .
  • the receiving module 41 is configured to receive the user's first input to the screen of the electronic device when the document editing interface is displayed.
  • the display module 42 is configured to display the document editing interface in the first screen area of the screen in response to the first input received by the receiving module 41, and display the target interface associated with the document editing interface in the second screen area of the screen.
  • the receiving module 41 is further configured to receive a second input from the user on the target object in the target interface.
  • the editing module 43 is configured to edit the document editing interface in the first screen area in response to the second input received by the receiving module 41 .
  • the embodiment of the present application provides a document editing device. Since the user can make a first input to the screen of the electronic device when the document editing interface is displayed, so as to trigger the electronic device to divide the screen display area into two areas, in the first
  • the document editing interface is displayed in the screen area, and the target interface associated with the document editing interface is displayed in the second screen area, without the need for the user to open the application in the document editing interface, select objects in the application, and then load the Only in this way can the document editing interface be edited, thus simplifying the user's operation and saving time-consuming operation; and, the electronic device can directly edit the target object in the first screen area according to the user's input on the target object in the second screen area.
  • the editing process is performed on the document editing interface, so that the user can quickly edit the document in the document editing interface; in this way, the flexibility of displaying the document editing interface and the flexibility of editing the document on the electronic device are improved.
  • the above-mentioned screen is a foldable screen
  • the document editing device further includes: a folding module.
  • the folding module is configured to perform a folding operation on 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 configured 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.
  • the target interface is the interface of the target application program;
  • the display module 42 is specifically configured to display the first interface in the second screen area, the first interface includes at least one application icon, and each application icon is respectively Indicates an application program in an electronic device.
  • the receiving module 41 is further configured to receive a third input from the user on a target application icon in the at least one application icon, where the target application icon is used to indicate the target application program.
  • the display module 42 is further configured to display the interface of the target application program in the second screen area in response to the third input received by the receiving module 41 .
  • 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, add the target object to the document editing interface in the first screen area Matching objects are edited.
  • the receiving module 41 is further configured to receive a fourth user input on the target object in the target interface after the editing module 43 edits the document editing interface in the first screen area.
  • edit mode Block 43 is also used to respond to the fourth input received by the receiving module 41, 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 document The target object in the editing interface is edited.
  • the document editing device further includes: a cancel module.
  • the receiving module 41 is further configured 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 canceling module is further configured to, in response to the fifth input received by the receiving module 41 , cancel displaying 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 42 is also used for an in-screen document editing interface.
  • the document editing apparatus in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • the document editing device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the document editing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 6 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores programs or instructions that can run on the processor 801.
  • the programs or instructions are executed by the processor 801, the various steps of the above-mentioned document editing method embodiments can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: 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, etc. part.
  • the electronic device 100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 107 is configured to receive a first input from the user on the screen of the electronic device when the document editing interface is displayed.
  • the display unit 107 is configured to, in response to the first input, display a 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.
  • user input form The element 107 is further configured to receive a second input from the user on the target object in the target interface.
  • the processor 110 is configured to, in response to the second input, edit the document editing interface in the first screen area.
  • the embodiment of the present application provides an electronic device, because the user can make a first input to the screen when the document editing interface is displayed, so as to trigger the electronic device to divide the screen display area into two areas, and display the document in the first screen area editing interface, and display the target interface associated with the document editing interface in the second screen area, without the need for the user to open the application in the document editing interface, select objects in the application, and then load them.
  • Editing the document editing interface simplifies the user's operation and saves time-consuming operation; 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. Editing processing, so that the user can quickly edit the document in the document editing interface; in this way, the flexibility of displaying the document editing interface of the electronic device and the flexibility of editing the document are improved.
  • the above-mentioned screen is a foldable screen;
  • the processor 110 is configured to, before displaying the document editing interface in the first screen area of the screen, based on the folding position and folding direction corresponding to the first input, edit the screen Perform a folding operation to obtain the first screen area and the second screen area.
  • the display unit 107 is specifically configured 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.
  • the target interface is the interface of the target application program;
  • the display unit 107 is specifically configured to display the first interface in the second screen area, the first interface includes at least one application icon, and each application icon Each indicates an application program in the electronic device.
  • the user input unit 107 is further configured to receive a third input from the user on the target application icon in the at least one application icon, where the target application icon is used to indicate the target application program.
  • the display unit 107 is further configured to display the interface of the target application program in the second screen area in response to the third input.
  • the processor 110 is specifically configured to add the target object to the document editing interface in the first screen area; or, in the first screen area, add the target object to the document editing interface in the first screen area.
  • Objects matching objects are processed for editing.
  • the user input unit 107 is further configured to receive a fourth input from the user on the target object in the target interface after editing the document editing interface in the first screen area.
  • the processor 110 is further configured to, in response to the fourth input, use the editing mode corresponding to the fourth input to edit the target object in the target interface, and simultaneously adopt the editing mode corresponding to the fourth input to edit the target object in the document editing interface.
  • the target object is edited.
  • the user input unit 107 is further configured to receive a fifth input from the user on the screen after editing the document editing interface in the first screen area.
  • the processor 110 is further configured to, in response to the fifth input, cancel displaying 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 unit 107 is also used for an on-screen document editing interface.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 is compatible with the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • 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, or the like.
  • the user input unit 107 includes at least one of a touch panel 1071 and 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, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 109 can be used to store software programs as well as various data.
  • the memory 109 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 109 may include volatile memory or nonvolatile memory, or, memory 109 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically programmable Erase Programmable Read-Only Memory
  • Flash Flash.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • 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 handles operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned document editing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • 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, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned document editing method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to implement the above-mentioned document editing method embodiment
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned document editing method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the field of communications, and discloses a document editing method and apparatus. The method comprises: in the case that an electronic device displays a document editing interface, receiving a user's first input to a screen of the electronic device; in response to the first input, displaying the document editing interface in a first screen region of the screen, and displaying, in a second screen region of the screen, a target interface associated with the document editing interface; receiving the user's second input to a target object in the target interface; and in response to the second input, editing the document editing interface in the first screen region.

Description

文档编辑方法及其装置Document editing method and device thereof
相关申请的交叉引用Cross References to Related Applications
本申请主张在2022年2月18日在中国提交的中国专利申请号202210153567.7的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202210153567.7 filed in China on February 18, 2022, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信领域,具体涉及一种文档编辑方法及其装置。The present application belongs to the communication field, and in particular relates to a document editing method and a device thereof.
背景技术Background technique
目前,用户可以通过电子设备对文档进行编辑处理,若需求在文档中插入图片,则用户可以打开其他应用程序,获取需求的图片等资源,并通过载入到文档中,从而可以实现用户在文档中插入图片的需求。At present, users can edit and process documents through electronic devices. If they need to insert pictures in the document, the user can open other applications to obtain the required pictures and other resources, and load them into the document. The need to insert pictures in.
然而,上述方法中,若用户需求对图片进行编辑,则用户需要退出当前编辑文档类应用程序,并进入至其他应用程序对图片进行编辑,以得到符合用户需求的图片,然后再打开文档编辑类应用程序,并将编辑好的图片通过其他应用程序载入至文档中,因此,用户的操作繁琐且耗时,如此,电子设备处理文档的效率较低,灵活性较差。However, in the above method, if the user needs to edit the picture, the user needs to exit the current editing document application program, and enter other application programs to edit the picture to obtain a picture that meets the user's needs, and then open the document editing program. application program, and the edited picture is loaded into the document through other application programs. Therefore, the user's operation is cumbersome and time-consuming. In this way, the electronic device is less efficient and less flexible in processing documents.
发明内容Contents of the invention
申请实施例的目的是提供一种文档编辑方法,能够提升电子设备处理文档的效率和灵活性。The purpose of the embodiments of the application is to provide a document editing method, which can improve the efficiency and flexibility of electronic devices in processing documents.
第一方面,本申请实施例提供了一种文档编辑方法,该方法包括:在电子设备显示文档编辑界面的情况下,接收用户对电子设备的屏幕的第一输入;响应于第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面;接收用户在目标界面中对目标对象的第二输入;响应于第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。In the first aspect, the embodiment of the present application provides a document editing method, the method includes: when the electronic device displays a document editing interface, receiving a user's first input on the screen of the electronic device; in response to the first input, in the The first screen area of the screen displays the document editing interface, and the target interface associated with the document editing interface is displayed in the second screen area of the screen; the second input of the user on the target object in the target interface is received; in response to the second input, the Editing is performed on the document editing interface in the first screen area.
第二方面,本申请实施例提供了一种文档编辑的装置,接收模块、显示模块和编辑模块。接收模块,用于在电子设备显示文档编辑界面的情况下,接收用户对电子设备的屏幕的第一输入。显示模块,用于响应于接收模块接收的第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面。接收模块,还用于接收用户在目标界面中对目标对象的第二输入。编辑模块,用于响应于接收模块接收的第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。In a second aspect, the embodiment of the present application provides a document editing device, including a receiving module, a display module and an editing module. The receiving module is configured to receive the user's first input to the screen of the electronic device when the electronic device displays the document editing interface. The display module is configured to display the document editing interface in the first screen area of the screen in response to the first input received by the receiving module, and display the target interface associated with the document editing interface in the second screen area of the screen. The receiving module is further configured to receive a second input from 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.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In the third aspect, the embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are processed by the The steps of the method described in the first aspect are realized when the controller is executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。 In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
在本申请实施例中,在电子设备显示文档编辑界面的情况下,电子设备可以接收用户对电子设备的屏幕的第一输入,响应于第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面,从而电子设备可以接收用户在目标界面中对目标对象的第二输入,并响应于第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。由于用户可以在电子设备显示文档编辑界面的情况下,对电子设备的屏幕进行第一输入,以触发电子设备将屏幕显示区域划分为两个区域,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示与文档编辑界面相关联的目标界面,而无需用户在文档编辑界面中打开应用程序,并对应用程序中的对象进行选择,再通过载入的方式,才能对文档编辑界面进行编辑处理,因此简化了用户的操作,同时也节省了操作耗时;并且,电子设备可以根据用户在第二屏幕区域中对目标对象的输入,直接在第一屏幕区域对文档编辑界面进行编辑处理,以便于用户能够快捷地对文档编辑界面中的文档进行编辑;如此,提升了电子设备显示文档编辑界面的灵活性和对文档编辑的灵活性。In the embodiment of the present application, when the electronic device displays the document editing interface, the electronic device may receive the first input from the user on the screen of the electronic device, and in response to the first input, display the document editing interface on the first screen area of the screen , and display the target interface associated with the document editing interface in the second screen area of the screen, so that the electronic device can receive the user's second input on the target object in the target interface, and respond to the second input, in the first screen area Edit the document editing interface. Since the user can perform a first input on 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 The second screen area displays the target interface associated with the document editing interface, without the need for the user to open the application in the document editing interface, select objects in the application, and then load the document editing interface. Editing processing, thus simplifying the user's operation and saving time-consuming operation; 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 displaying the document editing interface of the electronic device and the flexibility of editing the document are improved.
附图说明Description of drawings
图1是本申请实施例提供的一种文档编辑方法的示意图;FIG. 1 is a schematic diagram of a document editing method provided by an embodiment of the present application;
图2是本申请实施例提供的一种手机的界面的实例示意图之一;Fig. 2 is one of the example schematic diagrams of the interface of a mobile phone provided by the embodiment of the present application;
图3是本申请实施例提供的一种手机的界面的实例示意图之二;Fig. 3 is the second schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图4是本申请实施例提供的一种手机的界面的实例示意图之三;Fig. 4 is the third schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图5是本申请实施例提供的一种手机的界面的实例示意图之四;Fig. 5 is the fourth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图6是本申请实施例提供的一种手机的界面的实例示意图之五;Fig. 6 is the fifth schematic diagram of an example of the interface of a mobile phone provided by the embodiment of the present application;
图7是本申请实施例提供的一种文档编辑装置的结构示意图;FIG. 7 is a schematic structural diagram of a document editing device provided in an embodiment of the present application;
图8是本申请实施例提供的一种电子设备的硬件结构示意图之一;Fig. 8 is one of the schematic diagrams of the hardware structure of an electronic device provided by the embodiment of the present application;
图9是本申请实施例提供的一种电子设备的硬件结构示意图之二。FIG. 9 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文档编辑方法进行详细地说明。The document editing method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
目前,随着科技的发展,用户可以通过电子设备中的应用程序对文档进行编辑操作,并在编辑操作过程中,在文档中插入图片等操作。然而,当用户需求在文档中插入图片时, 通常需要用户点击插入控件,从而打开其他应用程序,在获取到对应的图片资源后,再点击载入控件,以使得电子设备可以将用户选择的图片插入到文档中。若现有资源中并无满足用户需求的图片资源,则需要用户退出当前使用的文档编辑类应用程序,然后搜索或拍摄图片,并对满足需求的图片资源进行保存,从而用户可以再次打开文档编辑类应用程序,并对保存的图片资源进行选择。At present, with the development of technology, users can edit documents through application programs in electronic devices, and insert pictures into documents during the editing process. However, when the user needs to insert a picture in the document, Usually, the user needs to click the insert control to open other applications, and then click the load control after obtaining the corresponding picture resource, so that the electronic device can insert the picture selected by the user into the document. If there is no picture resource that meets the user's needs in the existing resources, the user needs to exit the document editing application currently in use, then search or take a picture, and save the picture resource that meets the demand, so that the user can open the document again for editing class application, and select the saved picture resources.
然而,若用户使用上述方法对文档进行编辑操作,则步骤繁琐且耗时,如此,电子设备对文档进行编辑的灵活性较差。However, if the user uses the above-mentioned method to edit the document, the steps are cumbersome and time-consuming, thus, the flexibility of editing the document by the electronic device is poor.
本申请实施例提供一种文档编辑方法,电子设备可以在屏幕中同时显示需要获取资源的应用程序的界面和文档编辑界面,从而用户可以快速简单地对文档进行编辑。An embodiment of the present application provides a document editing method. An electronic device can simultaneously display an interface of an application program that needs to acquire resources and a document editing interface on a screen, so that a user can quickly and easily edit a document.
本申请实施例提供一种文档编辑方法。图1示出了本申请实施例提供的一种文档编辑方法的流程图,该方法可以应用于电子设备。如图1所示,本申请实施例提供的文档编辑方法可以包括下述的步骤201至步骤204。An embodiment of the present application provides a document editing method. Fig. 1 shows a flow chart of a document editing method provided by an embodiment of the present application, and the method can be applied to electronic devices. As shown in FIG. 1 , the document editing method provided by the embodiment of the present application may include the following steps 201 to 204 .
步骤201、在电子设备显示文档编辑界面的情况下,电子设备接收用户对电子设备的屏幕的第一输入。Step 201. When the electronic device displays a document editing interface, the electronic device receives a first input from a user on a screen of the electronic device.
本申请实施例中,用户可以在电子设备中打开文档编辑类应用程序,以使得电子设备可以在屏幕显示区域显示文档编辑类应用程序的界面,然后用户可以在电子设备显示文档编辑界面的情况下,对电子设备的屏幕进行第一输入,从而电子设备可以在接收到用户的第一输入之后,在屏幕显示区域同时显示文档编辑界面和与文档编辑界面关联的界面。In the embodiment of the present application, the user can open the document editing application program in the electronic device, so that the electronic device can display the interface of the document editing application program in the screen display area, and then the user can display the document editing interface on the electronic device , performing the first input on the screen of the electronic device, 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.
可选地,本申请实施例中,上述文档编辑方法可以是用于屏幕可以为柔性屏(包括可折叠屏幕)的电子设备,该电子设备中可以包括一个或多个柔性屏,且应当理解的是,本实施例中的柔性屏的弯曲能力和弯曲方式可以根据需求灵活设置。且实现上述弯曲能力的柔性屏电子设备的具体结构实现可采用现有任意能实现上述功能的结构和材质,此并非本发明讨论的重点,在此不再赘述。Optionally, in this embodiment of the present application, the above-mentioned document editing method may be used for an electronic device whose screen may be a flexible screen (including a foldable screen), and the electronic device may include one or more flexible screens, and it should be understood that Yes, the bending ability and bending method of the flexible screen in this embodiment can be flexibly set according to requirements. And the specific structure of the flexible screen electronic device that realizes the above-mentioned bending ability can adopt any existing structure and material that can realize the above-mentioned function, which is not the focus of the discussion of the present invention, and will not be repeated here.
可选地,本申请实施例中,上述第一输入用户触发电子设备同时在屏幕显示区域显示文档编辑界面和与文档编辑界面相关联的界面。Optionally, in this embodiment of the present application, the above-mentioned first input user triggers the electronic device to simultaneously display the document editing interface and interfaces associated with the document editing interface in the display area of the screen.
可选地,本申请实施例中,上述第一输入可以为用户在折叠屏上的点击输入(例如单击输入、双击输入或预设点击次数的输入等)、长按输入或滑动输入等,以触发电子设备在屏幕显示区域同时文档编辑界面和与文档编辑界面相关联的界面;或者,上述第一输入还可以为用户对电子设备的物理按键或是物理按键的组合输入,以触发电子设备在屏幕显示区域同时显示文档编辑界面和与文档编辑界面相关联的界面;或者,上述第一输入还可以为用户对折叠屏的折叠输入,以触发电子设备在屏幕显示区域同时显示文档编辑界面和与文档编辑界面相关联的界面。具体的可以根据实际使用需求设置,本申请实施例中不作限制。Optionally, in this embodiment of the present application, the above-mentioned first input may be a user's click input on the folding screen (such as single-click input, double-click input, or input of a preset number of clicks, etc.), long-press input or sliding input, etc., To trigger the electronic device to simultaneously display the document editing interface and the interface associated with the document editing interface in the screen display area; or, the above-mentioned first input can also be the user’s physical button on the electronic device or a combination of physical buttons input to trigger the electronic device The document editing interface and the interface associated with the document editing interface are simultaneously displayed in the screen display area; or, the above-mentioned first input can also be the user's folding input to the folding screen, so as to trigger the electronic device to simultaneously display the document editing interface and the document editing interface in the screen display area. The interface associated with the document editing interface. Specifically, it can be set according to actual usage requirements, and is not limited in this embodiment of the application.
步骤202、电子设备响应于第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面。Step 202: In response to the 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.
本申请实施例中,电子设备在接收到用户的第一输入之后,可以在将屏幕分为两个屏幕区域,并在第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面。In the embodiment of the present application, after receiving the first input from the user, the electronic device may divide the screen into two screen areas, display the document editing interface in the first screen area, and display the document editing interface in the second screen area of the screen. The target interface associated with the document editing interface.
可选地,本申请实施例中,电子设备可以以屏幕的折叠线为分割线,将屏幕划分为两 个屏幕区域,每个屏幕区域分别显示一个区域(例如第一屏幕区域和第二屏幕区域),以在屏幕显示区域内显示对应的界面;或者,电子设备可以以电子设备屏幕的中轴线为分割线,将屏幕划分为两个屏幕区域,每个屏幕区域分别显示一个区域(例如第一屏幕区域和第二屏幕区域),以在屏幕显示区域内显示对应的界面;或者,电子设备可以以电子设备屏幕的对角线为分割线,将屏幕划分为两个屏幕区域,每个屏幕区域分别显示一个区域(例如第一屏幕区域和第二屏幕区域),以在屏幕显示区域内显示对应的界面;或者,电子设备可以将屏幕划分为两个不同预设面积的屏幕区域,每个屏幕区域分别显示一个区域(例如第一屏幕区域和第二屏幕区域),以在屏幕显示区域内显示对应的界面;具体的可以根据实际使用情况确定,本申请实施例不做任何限制。Optionally, in this embodiment of the application, the electronic device may use the folding line of the screen as the dividing line to divide the screen into two Each screen area displays an area (such as the first screen area and the second screen area) respectively, so as to display the corresponding interface in the screen display area; or, the electronic device can be divided by the central axis of the electronic device screen line, divide the screen into two screen areas, and each screen area displays an area (for example, the first screen area and the second screen area), so as to display the corresponding interface in the screen display area; The diagonal line of the device screen is a dividing line, which divides the screen into two screen areas, and each screen area displays an area (for example, the first screen area and the second screen area) to display the corresponding interface in the screen display area or, the electronic device may divide the screen into two screen areas with different preset areas, and each screen area displays an area (such as the first screen area and the second screen area) respectively, so as to display the corresponding screen area in the screen display area; Interface; the specific one can be determined according to the actual use situation, and the embodiment of this application does not make any limitation.
可选地,本申请实施例中,上述目标界面可以为预设应用程序的界面,从而用户可以在预设的应用程序的界面中进行输入;或者,上述目标界面可以包括至少一个应用程序的图标的界面,从而用户可以选择任意一个应用程序,以使得电子设备可以在屏幕的第二屏幕区域显示该应用程序的界面,即目标界面。Optionally, in the embodiment of the present application, the above-mentioned target interface may be an interface of a preset application program, so that the user can perform input in the interface of the preset application program; or, the above-mentioned target interface may include an icon of at least one application program interface, so that the user can select any application program, so that the electronic device can display the interface of the application program in the second screen area of the screen, that is, the target interface.
可选地,本申请实施例中,上述屏幕为可折叠屏幕,并且在上述步骤201之前,本申请实施例提供的文档编辑方法还包括下属的步骤301,并且上述步骤202具体可以通过下述的步骤202a实现。Optionally, in the embodiment of the present application, the above screen is a foldable screen, and before the above step 201, the document editing method provided by the embodiment of the present application further includes the subordinate step 301, and the above step 202 can be specifically implemented through the following Step 202a is implemented.
步骤301、电子设备基于第一输入对应的折叠位置和折叠方向,对屏幕进行折叠操作,得到第一屏幕区域和第二屏幕区域。Step 301: The electronic device performs a folding operation on the screen based on the folding position and the folding direction corresponding to the first input, to obtain a first screen area and a second screen area.
本申请实施例中,在第一输入为用户对电子设备的折叠输入的情况下,电子设备可以基于第一输入对应的折叠位置和折叠方向,对可折叠屏幕进行折叠操作,从而得到第一屏幕区域和第二屏幕区域。In the embodiment of the present application, when the first input is the 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, so as to obtain the first screen area and second screen area.
可选地,本申请实施例中,第一输入对应的折叠位置可以为可折叠屏幕的预设折叠线的位置;或者,第一输入对应的折叠位置可以为用户在可折叠屏幕上进行折叠的位置;具体的可以根据实际使用情况确定,本申请实施例在此不做任何限制。Optionally, in the embodiment of the present application, the folding position corresponding to the first input may be the position of the preset folding line of the foldable screen; or, the folding position corresponding to the first input may be the folded position of the user on the foldable screen location; the specific location can be determined according to the actual use situation, and this embodiment of the application does not make any limitation here.
可选地,本申请实施例中,折叠方向可以包括向内折叠方向和向外折叠方向。Optionally, in this embodiment of the present application, the folding direction may include an inward folding direction and an outward folding direction.
需要说明的是,向内折叠方向是指向屏幕的方向;向外折叠方向只是向屏幕的相反方向。It should be noted that the inward folding direction is the direction pointing to the screen; the outward folding direction is the opposite direction to the screen.
可选地,用户对屏幕进行折叠操作可以为用户对屏幕的向内折叠操作,或者,用户对屏幕进行折叠操作可以为用户先对屏幕进行向内折叠操作,再对屏幕进行展开操作,从而使得电子设备的多个显示屏在一个平面中。Optionally, the user's folding operation of the screen may be the user's inward folding operation of the screen, or the user's user's folding operation of the screen may be the user's first inward folding operation of the screen, and then the unfolding operation of the screen, so that Multiple display screens of an electronic device are in one plane.
可选地,本申请实施例中,上述不同的折叠操作分别对应一个折叠角度。Optionally, in the embodiment of the present application, the above-mentioned different folding operations respectively correspond to a folding angle.
步骤202a、电子设备在屏幕的折叠角度值小于或等于预设角度值的情况下,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示目标界面。Step 202a: When the folding angle 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.
可选地,本申请实施例中,电子设备在基于第一输入对应的折叠位置和折叠方向,对屏幕进行折叠操作时,不同的折叠操作分别对应一个折叠角度,电子设备可以在屏幕的折叠角度值小于或等于预设角度值的情况下,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示目标界面。Optionally, in this embodiment of the 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, and the electronic device can adjust the folding angle of the screen. When the value is less than or equal to the preset angle value, the document editing interface is displayed in the first screen area, and the target interface is displayed in the second screen area.
需要说明的是,上述折叠角度是指:在屏幕进行折叠时,两个屏幕之间的夹角。It should be noted that the above-mentioned folding angle refers to an angle between two screens when the screens are folded.
可选地,本申请实施例中,上述预设角度值可以为180度,具体的可以根据实际使用 情况确定,本申请实施例在此不做任何限制。Optionally, in the embodiment of the present application, the above-mentioned preset angle value may be 180 degrees, and the specific value may be based on actual use The situation is determined, and the embodiment of the present application does not make any limitation here.
本申请实施例中,用户可以在电子设备显示文档编辑界面的情况下,对电子设备进行折叠操作,以使得电子设备可以在响应到该操作后,在屏幕的折叠角度值小于或等于预设角度值得情况下,根据该折叠操作的位置和方向,将屏幕显示区域划分为两个区域,从而电子设备可以同时显示目标界面和文档编辑界面,并且,用户可以同时对这两个界面进行查看和操作,如此,提升了电子设备显示文档编辑界面的灵活性。In this embodiment of the application, the user can perform a folding operation on the electronic device when the electronic device displays the document editing interface, so that after the electronic device responds to the operation, the folding angle value of the screen is less than or equal to the preset angle In some cases, according to the position and direction of the folding operation, the screen display area is divided into two areas, so that the electronic device can display the target interface and the document editing interface at the same time, and the user can view and operate these two interfaces at the same time In this way, the flexibility of displaying the document editing interface by the electronic device is improved.
可选地,本申请实施例中,上述目标界面为目标应用程序的界面,上述步骤202中的“在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面”具体可以通过下述的步骤202b至步骤202d实现。Optionally, in the embodiment of the present application, the above-mentioned target interface is the interface of the target application program, and the "display 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 performed through the following steps Steps 202b to 202d are realized.
步骤202b、电子设备在第二屏幕区域显示第一界面。Step 202b, the electronic device displays the first interface in the second screen area.
本申请实施例中,第一界面中包括至少一个应用图标,每个应用图标分别指示电子设备中的一个应用程序。In the embodiment of the present application, the first interface includes at least one application icon, and each application icon respectively indicates an application program in the electronic device.
本申请实施例中,电子设备可以在第二屏幕显示区域中,显示多个应用图标,从而用户可以从多个应用图标中选择任意一个图标(例如目标应用图标),并对该目标应用图标进行输入。In this embodiment of the present application, the electronic device may display a plurality of application icons in the display area of the second screen, so that the user may select any icon (such as a target application icon) from the plurality of application icons, and perform an operation on the target application icon. enter.
可选地,本申请实施例中,上述至少一个应用图标可以为系统预设的应用图标;或者用户自定义的应用图标。Optionally, in the embodiment of the present application, the above at least one application icon may be an application icon preset by the system; or an application icon defined by the user.
可选地,本申请实施例中,若上述至少一个应用图标中无用户需求的应用程序对应的应用图标,用户可以在该界面中进行输入,以触发电子设备根据该输入,对该界面中的应用图标进行管理(例如增加应用图标等。)Optionally, in this embodiment of the present application, if there is no application icon corresponding to the application program required by the user among the above at least one application icon, the user can make an input in the interface to trigger the electronic device to trigger the input in the interface according to the input. Application icons for management (such as adding application icons, etc.)
示例性地,以电子设备为具有折叠屏的手机为例进行说明。如图2所示,手机在接收到用户对折叠屏的第一输入(例如折叠输入)之后,可以将手机屏幕显示区域划分为两个屏幕区域,即第一屏幕区域和第二屏幕区域,并在折叠屏的第一屏幕区域显示文档编辑界面10,并在折叠屏的第二屏幕区域显示与第一界面11,并在该第一界面11中显示多个应用图标(例如APPA、APPB、APPC和APPD),其中APPA为相机应用程序,APPB为录音应用程序,APPC为图库应用程序,APPD为文档编辑应用程序,从而用户可以选择任意一个应用图标(例如目标应用图标)。Exemplarily, the electronic device is a mobile phone with a folding screen as an example for description. As shown in FIG. 2, after the mobile phone receives the user's first input (for example, folding input) to the folding screen, the display area of the mobile phone screen can be divided into two screen areas, that is, the first screen area and the second screen area, and The document editing interface 10 is displayed in the first screen area of the folding screen, and the first interface 11 is displayed in the second screen area of the folding screen, and a plurality of application icons (such as APPA, APPB, APPC are displayed in the first interface 11) and APPD), wherein 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 (such as the target application icon).
步骤202c、电子设备接收用户对至少一个应用图标中的目标应用图标的第三输入。In step 202c, the electronic device receives a third input from the user on a target application icon in at least one application icon.
本申请实施例中,目标应用图标用于指示目标应用程序。In the embodiment of the present application, the target application icon is used to indicate the target application.
本申请实施例中,上述第三输入用于从至少一个应用图标中选择木白哦应用图标。In the embodiment of the present application, the above-mentioned third input is used to select a Mubaioh application icon from at least one application icon.
可选地,本申请实施例中,上述第三输入可以为用户对目标应用图标的点击输入(例如单机输入、双击输入或预设次数的输入)、滑动输入或拖动输入等,以触发电子设备可以根据用户的第三输入,选择目标应用图标;具体的可以根据实际使用情况确定,本申请实施例在此不作任何限制。Optionally, in this embodiment of the present application, the above-mentioned third input may be the user's click input (such as single-machine input, double-click input, or input of a preset number of times), sliding input, or drag input, etc., on the target application icon to trigger the electronic The device can select the target application icon according to the third input of the user; the specific one can be determined according to the actual use situation, and this embodiment of the present application does not make any limitation here.
步骤202d、电子设备响应于第三输入,在第二屏幕区域显示目标应用程序的界面。Step 202d, the electronic device displays the interface of the target application program in the second screen area in response to the third input.
本申请实施例中,电子设备在接收用户在第一界面中对目标应用图标的第三输入之后,触发电子设备启动目标应用图标对应的目标应用程序,并在第二屏幕显示区显示该目标应用程序的界面。In the embodiment of the present application, after receiving the user's third input on 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 target application in the second screen display area The interface of the program.
示例性地,结合图2,如图3所示,用户可以在第一界面11中,对APPD,即图库应 用程序对应的应用图标进行点击输入,从而手机可以在第二屏幕区域显示图库应用程序对应的界面,即目标界面12。Exemplarily, referring to FIG. 2, as shown in FIG. Use the application icon corresponding to the program to click and input, so that the mobile phone can display the interface corresponding to the gallery application program in the second screen area, that is, the target interface 12 .
本申请实施例中,电子设备可以同时显示文档编辑界面和多个应用图标,从而用户可以根据需求,从多个应用图标中选择目标应用图标,并对目标应用图标进行输入,以使得用户在屏幕的不同区域,同时显示目标应用图标的界面和文档编辑界面,如此,提升了电子设备显示文档编辑界面的灵活性。In the embodiment of the present application, the electronic device can display the document editing interface and multiple application icons at the same time, so that the user can select the target application icon from the multiple application icons according to the requirement, and input the target application icon, so that the user can display the target application icon on the screen. In different areas of the device, the interface of the target application icon and the document editing interface are simultaneously displayed, thus improving the flexibility of displaying the document editing interface of the electronic device.
步骤203、电子设备接收用户在目标界面中对目标对象的第二输入。Step 203, the electronic device receives a second input from the user on the target object in the target interface.
本申请实施例中,电子设备在目标界面中显示至少一个对象,用户可以对任意一个对象(例如目标对象)进行输入,以使得电子设备可以接收用户对目标对象的第二输入。In the embodiment of the present application, the electronic device displays at least one object on 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 on the target object.
可选地,上述目标对象可以包括以下至少一项:文字、图像、音乐、视频、链接、文字属性(例如文字颜色、文字字号、文字格式、文字字体等)。Optionally, the above-mentioned target object may include at least one of the following: text, image, music, video, link, text attribute (such as text color, text font size, text format, text font, etc.).
可选地,本申请实施例中,上述第二输入可以为用户对目标对象的点击输入(例如单机输入、双击输入或预设次数的输入)、滑动输入、拖动输入、圈选输入、预设轨迹的输入或预设手势输入等,以触发电子设备可以根据用户的第二输入,选择目标对象;具体的可以根据实际使用情况确定,本申请实施例在此不作任何限制。Optionally, in the embodiment of the present application, the above-mentioned second input may be the user's click input on the target object (such as single-click input, double-click input, or input of a preset number of times), sliding input, dragging input, circle selection input, preset Set track input or preset gesture input to trigger the electronic device to select the target object according to the user's second input; the specific can be determined according to the actual use situation, and the embodiment of the present application does not make any limitation here.
可选地,本申请实施例中,上述第二输入还可以为用户的语音输入或视频输入,即录入一段语音或录入一段视频。Optionally, in this embodiment of the present application, the above-mentioned second input may also be a user's voice input or video input, that is, to record a piece of voice or a piece of video.
步骤204、电子设备响应于第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。In step 204, the electronic device performs editing processing on the document editing interface in the first screen area in response to the second input.
本申请实施例中,电子设备可以在接收到用户对目标对象的第二输入之后,在第一屏幕区域中对文档编辑界面进行编辑处理。In this embodiment of the present application, the electronic device may edit the document editing interface in the first screen area after receiving the user's second input on the target object.
可选地,本申请实施例中,上述步骤204中的“在第一屏幕区域中对文档编辑界面进行编辑处理”具体可以通过下述的步骤204a或步骤204b实现。Optionally, in the embodiment of the present application, "editing the document editing interface in the first screen area" in the above step 204 may be specifically implemented through the following step 204a or step 204b.
步骤204a、电子设备在第一屏幕区域中,将目标对象添加至文档编辑界面中。Step 204a, the electronic device adds the target object to the document editing interface in the first screen area.
本申请实施例中,电子设备可以在接收到用户在第二屏幕显示区中对目标对象的第二输入之后,将目标对象添加至第一屏幕区域的文档编辑界面中。In this embodiment of the present application, the electronic device may add the target object to the document editing interface in the first screen area after receiving the user's second input on the target object in the second screen display area.
示例性地,若第二屏幕区域中录音控件,则用户可以对录音控件进行点击输入,以触发电子设备开始录音,并录入用户的一段语音,从而电子设备可以在第一屏幕区域中,将该录音添加至文档编辑界面中,或者,用户可以对录音控件进行点击输入,以触发电子设备开始录音,并将录入的语音转换为文字,从而电子设备可以在第一屏幕区域总,将该录音转换后的文字添加至文档编辑界面中。For example, if there is a recording control in the second screen area, the user can click on the recording control to trigger the electronic device to start recording and record a voice of the user, so that the electronic device can, in the first screen area, set the The recording is added to the document editing interface, or the user can click on the recording control to trigger the electronic device to start recording and convert the recorded voice into text, so that the electronic device can display the recording in the first screen area The following text is added to the document editing interface.
又示例性地,若第二屏幕区域中显示的图像中无满足用户需求的图像,则用户可以在第二屏幕区域中启动拍摄类应用程序,并通过拍摄类应用程序进行拍摄,从而电子设备可以将用户拍摄得到的图像添加至文档编辑界面中。For 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 program in the second screen area, and use the shooting application program to take pictures, so that the electronic device can Add the image captured by the user to the document editing interface.
再示例性地,结合图3,如图4所示,用户可以在第二屏幕区域中的目标界面12中,对多张图像中的任意一张图像(例如目标图像)进行点击输入,以触发手机将目标图像添加至文档编辑界面10中。As another example, with reference to FIG. 3 , as shown in FIG. 4 , the user can click on 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 adds the target image to the document editing interface 10 .
步骤204b、电子设备在第一屏幕区域中,对文档编辑界面中与目标对象匹配的对象进行编辑处理。 In step 204b, the electronic device performs editing processing on the object matching the target object in the document editing interface in the first screen area.
本申请实施例中,电子设备可以在接收到用户在第二屏幕显示区中对目标对象的第二输入之后,可以对文档编辑界面中与目标对象匹配的对象进行编辑处理。In the embodiment of the present application, after receiving the second input of the target object from the user in the second screen display area, the electronic device may edit the object matching the target object in the document editing interface.
需要说明的是,目标对象匹配的对象可以理解为与目标对象位置相匹配的对象,或者与目标对象的属性相匹配的对象。It should be noted that the object matched with the target object may be understood as an object matching the location of the target object, or an object matching the attribute of the target object.
可选地,本申请实施例中,电子设备可以基于用户在第二屏幕区域中对目标对象的输入,在第二屏幕区域中,在与目标对象对应的位置处,基于目标对象的属性,对与目标对象对应的位置处的对象进行编辑处理;或者,电子设备可以基于用户在第二屏幕区域中对目标对象的输入,在第二屏幕区域中,基于目标对象的属性,对与目标对象同类别的对象进行编辑处理。Optionally, in this embodiment of the present application, based on the user's input to the target object in the second screen area, in the second screen area, at the position corresponding to the target object, based on the attributes of the target object, The object at the position corresponding to the target object is edited; or, the electronic device may, based on the user's input on the target object in the second screen area, in the second screen area, based on the attributes of the target object, edit the Objects of the category are edited.
示例性地,用户可以在第二屏幕区域显示第一文档的情况下,选择第一文档的中的第二段落,以触发电子设备将第一文档的第二段落的属性(例如文字字体和行间距等),应用至文档编辑界面中的目标文档的第二段落中,从而使得目标文档的第二段落的字体和行间距与第一文档的第二段落的字体和行间距相同。Exemplarily, when the first document is displayed in the second screen area, the user can select the second paragraph in the first document, so as to trigger the electronic device to change the attributes (such as text font and line) of the second paragraph of the first document to Spacing, etc.), applied 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.
又示例性地,用户可以在第二屏幕区域显示目标图像的情况下,对目标图像进行长按输入,以触发电子设备将目标图像的属性(例如分辨率等)应用至文档编辑界面中的图像中,从而使得目标图像的分辨率和文档编辑界面中的图像的分辨率一致。As another example, when the target image is displayed in the second screen area, the user can long-press 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 , so that the resolution of the target image is consistent with the resolution of the image in the document editing interface.
本申请实施例中,电子设备可以根据用户在第二屏幕区域中对目标对象的输入,触发电子设备将目标对象添加至文档编辑界面中,或者,对文档编辑界面中与目标对象匹配的对象进行编辑处理,因此,无需用户在文档编辑界面中打开应用程序,从而再选择目标对象,用户可以直观地看到目标对象以及操作过程,如此,提升了电子设备编辑文档的灵活性。In the embodiment of the present application, the electronic device may trigger the electronic device to add the target object to the document editing interface according to the user's input on the target object in the second screen area, or perform an operation on the object matching the target object in the document editing interface Editing processing, therefore, the user does not need to open the application program in the document editing interface to select the target object, and the user can intuitively see the target object and the operation process, thus improving the flexibility of electronic devices to edit documents.
本申请实施例提供一种文档编辑方法,在本申请实施例中,在显示文档编辑界面的情况下,电子设备可以接收用户对电子设备的屏幕的第一输入,响应于第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面,从而电子设备可以接收用户在目标界面中对目标对象的第二输入,并响应于第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。由于用户可以在显示文档编辑界面的情况下,对屏幕进行第一输入,以触发电子设备将屏幕显示区域划分为两个区域,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示与文档编辑界面相关联的目标界面,而无需用户再文档编辑界面中打开应用程序,并对应用程序中的对象进行选择,再通过载入的方式,才能对文档编辑界面进行编辑处理,因此简化了用户的操作节省了操作耗时;并且,电子设备可以根据用户在第二屏幕区域中对目标对象的输入,直接在第一屏幕区域对文档编辑界面进行编辑处理,以便于用户能够快捷地对文档编辑界面中的文档进行编辑;如此,提升了电子设备显示文档编辑界面的灵活性和对文档编辑的灵活性。An embodiment of the present application provides a document editing method. In the embodiment of the present application, when the document editing interface is displayed, the electronic device may receive the user's first input on the screen of the electronic device, and in response to the first input, the The document editing interface is displayed in the first screen area of the screen, and the target interface associated with the document editing interface is displayed in the second screen area of the screen, so that the electronic device can receive the user's second input on the target object in the target interface, and respond to the second The second input is to edit the document editing interface in the first screen area. Since the user can perform a first input on the screen when the document editing interface is displayed, to trigger the electronic device to divide the screen display area into two areas, the document editing interface is displayed in the first screen area, and the document editing interface is displayed in the second screen area. The target interface associated with the document editing interface does not require the user to open the application in the document editing interface, select objects in the application, and then load the document editing interface to edit the document, thus simplifying the The user's operation saves time-consuming operation; 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 The document in the document editing interface is edited; in this way, the flexibility of displaying the document editing interface of the electronic device and the flexibility of editing the document are improved.
可选地,本申请实施例中,在上述步骤204之后,本申请实施例提供的文档编辑方法还包括下述的步骤401和步骤402。Optionally, in the 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.
步骤401、电子设备接收用户在目标界面中对目标对象的第四输入。Step 401. The electronic device receives a fourth input from a user on a target object in a target interface.
本申请实施例中,在电子设备接收到用户对目标对象的第二输入,将目标对象添加至第一屏幕区域的文档编辑界面中,或者,将第一屏幕区域中,对文档编辑界面中与目标对象匹配的对象进行编辑处理之后,用户可以对目标对象进行第四输入,从而电子设备可以 根据用户的第四输入,在目标界面中对目标对象进行编辑处理。In the embodiment of the present application, after the electronic device receives the user's second input on the target object, the target object is added to the document editing interface in the first screen area, or, in the first screen area, the document editing interface is combined with the After the object matching the target object is edited, the user can perform a fourth input on the target object, so that the electronic device can According to the user's fourth input, the target object is edited in the target interface.
可选地,本申请实施例中,上述第四输入为用户对目标对象的编辑输入,上述第四输入用于在第二屏幕区域中对目标对象进行编辑处理。Optionally, in this 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.
可选地,本申请实施例中,上述第四输入为用户对目标对象点击输入(例如单击输入、双击输入或预设次数的点击输入)、滑动输入或拖动输入等,从而触发电子设备对目标对象进行编辑处理。Optionally, in the embodiment of the present application, the above-mentioned fourth input is the user's click input on the target object (such as single-click input, double-click input, or preset click input), sliding input, or dragging input, etc., thereby triggering the electronic device Edit the target object.
步骤402、电子设备响应于第四输入,采用第四输入对应的编辑方式,对目标界面中的目标对象进行编辑处理,并同步采用第四输入对应的编辑方式,对文档编辑界面中的目标对象进行编辑处理。Step 402: In response to the fourth input, the electronic device uses the editing method corresponding to the fourth input to edit the target object in the target interface, and simultaneously adopts the editing method corresponding to the fourth input to edit the target object in the document editing interface Do editing.
本申请实施例中,电子设备在接收到用户对目标对象的第四输入之后,可以在第二屏幕区域的目标界面中,采用第四输入对应的编辑方式对目标对象进行编辑处理,并同步采用该编辑方式,在第一屏幕区域中,对文档编辑界面中的目标对象进行编辑处理。In the embodiment of the present application, after receiving the user's fourth input on the target object, the electronic device can edit the target object in the target interface in the second screen area using the editing method corresponding to the fourth input, and simultaneously adopt the In this editing mode, in the first screen area, the target object in the document editing interface is edited.
示例性地,若目标对象为一段文字,并且该一段文字已经诶添加至文档编辑界面中,则用户可以在目标界面中对该一段文字进行编辑操作,例如删除或增加部分文字内容,从而电子设备可以根据用户在目标界面中的输入,采用同样的编辑方式,对添加至文档编辑界面中的该一段文字进行删除或增加部分文字内容。For example, if the target object is a piece of text, and the piece of text has been added to the document editing interface, the user can edit the piece of text in the target interface, such as deleting or adding part of the text content, so that the electronic device According to the user's input in the target interface, the same editing method can be used to delete or add part of the text added to the document editing interface.
又示例性地,结合图4,如图5所示,在手机响应于用户在目标界面12中对目标图像的输入之后,将目标图像添加至文档编辑界面10中,并在该界面中显示目标图像,然后,用户可以在目标界面12中对目标图像进行裁剪输入,从而触发手机采用同样的编辑方式对文档编辑界面10中的目标图像进行裁剪操作。Also exemplarily, with reference to FIG. 4, as shown in FIG. 5, 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 is displayed in the interface Then, the user can cut and input the target image in the target interface 12, thereby triggering the mobile phone to use the same editing method to cut the target image in the document editing interface 10.
本申请实施例中,电子设备可以根据用户在目标界面中对目标对象的编辑处理,采用同样的方式同步对文档编辑界面中的目标对象进行编辑处理,如此,节省了用户的操作,并提升了电子设备对文档编辑处理的灵活性。In the embodiment of the present application, the electronic device can synchronously edit the target object in the document editing interface in the same way according to the editing process of the target object by the user in the target interface, thus saving the user's operation and improving the The flexibility of electronic devices for document editing and processing.
可选地,本申请实施例中,在上述步骤204之后,本申请实施例提供的文档编辑方法还包括下述的步骤501和步骤502。Optionally, in the 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.
步骤501、电子设备接收用户对屏幕的第五输入。Step 501. The electronic device receives a fifth input from a user on a screen.
本申请实施例中,用户可以对屏幕进行第五输入,从而电子设备可以在接收到用户的第五输入之后,取消显示目标界面。In the embodiment of the present application, the user may perform a fifth input on the screen, so that the electronic device may cancel displaying the target interface after receiving the fifth input from the user.
可选地,本申请实施例中,上述第五输入可以为用户在电子设备同时显示目标界面和文档编辑界面的情况下,对屏幕的向外的折叠输入。Optionally, in the embodiment of the present application, the above-mentioned 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.
步骤502、电子设备响应于第五输入,在第五输入对应的折叠方向与第一输入对应的折叠方向相反的情况下,取消显示目标界面,并在屏幕中显示文档编辑界面。Step 502: In response to the fifth input, the electronic device cancels displaying the target interface and displays the 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.
本申请实施例中,电子设备在接收到用户对屏幕的第五输入之后,在该输入对应的折叠方向与第一输入对应的折叠方向相反的情况下,取消显示目标界面,并在屏幕中显示文档编辑界面。In the 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 displayed on the screen. Document editing interface.
可选地,本申请实施例中,电子设备在取消显示目标界面之后,可以在屏幕显示区域中显示文档编辑界面,或者,电子设备在取消显示目标界面之后,继续保持在该第一屏幕区域中显示文档编辑界面,在第二屏幕区域中显示其他界面(例如第一界面)。Optionally, in this embodiment of the present application, after canceling the display of the target interface, the electronic device may display the document editing interface in the screen display area, or, after canceling the display of the target interface, the electronic device continues to remain in the first screen area The document editing interface is displayed, and other interfaces (such as the first interface) are displayed in the second screen area.
需要说明的是,关于第五输入的折叠方向和折叠位置可以参考上述第一输入,此处不 再赘述。It should be noted that, regarding the folding direction and folding position of the fifth input, reference may be made to the above-mentioned first input. Let me repeat.
示例性地,结合图5,如图6所示,在用户完成对目标图像的编辑处理之后,可以对折叠屏进行反向折叠输入,从而触发电子设备取消显示目标界面,并手机屏幕显示区域中显示文档编辑界面10。Exemplarily, referring to FIG. 5, as shown in FIG. 6, after the user completes the editing process of the target image, the folding screen can be reversely folded and input, thereby triggering the electronic device to cancel displaying the target interface, and the display area of the mobile phone screen A document editing interface 10 is displayed.
本申请实施例中,用户在完成基于两个屏幕区域对文档编辑界面进行编辑处理之后,可以对电子设备的屏幕进行第五输入,从而电子设备可以基于该第五输入,取消显示目标界面,并显示文档编辑界面,如此提升了电子设备显示文档编辑界面的灵活性。In the embodiment of the present application, after the user finishes editing the document editing interface based on the two screen areas, he can perform a fifth input on the screen of the electronic device, so that the electronic device can cancel displaying the target interface based on the fifth input, and Displaying the document editing interface improves the flexibility of the electronic device for displaying the document editing interface.
本申请实施例提供的文档编辑方法,执行主体可以为文档编辑装置。本申请实施例中以文档编辑装置执行文档编辑方法为例,说明本申请实施例提供的文档编辑的装置。The document editing method provided in the embodiment of the present application may 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.
图7示出了本申请实施例中涉及的文档编辑装置的一种可能的结构示意图。如图7所示,该文档编辑装置40可以包括:接收模块41、显示模块42和编辑模块43。Fig. 7 shows a possible structural diagram of a document editing device involved in the embodiment of the present application. As shown in FIG. 7 , the document editing device 40 may include: a receiving module 41 , a display module 42 and an editing module 43 .
其中,接收模块41,用于在显示文档编辑界面的情况下,接收用户对电子设备的屏幕的第一输入。显示模块42,用于响应于接收模块41接收的第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面。接收模块41,还用于接收用户在目标界面中对目标对象的第二输入。编辑模块43,用于响应于接收模块41接收的第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。Wherein, the receiving module 41 is configured to receive the user's first input to the screen of the electronic device when the document editing interface is displayed. The display module 42 is configured to display the document editing interface in the first screen area of the screen in response to the first input received by the receiving module 41, and display the target interface associated with the document editing interface in the second screen area of the screen. The receiving module 41 is further configured to receive a second input from the user on the target object in the target interface. The editing module 43 is configured to edit the document editing interface in the first screen area in response to the second input received by the receiving module 41 .
本申请实施例提供一种文档编辑装置,由于用户可以在显示文档编辑界面的情况下,对电子设备的屏幕进行第一输入,以触发电子设备将屏幕显示区域划分为两个区域,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示与文档编辑界面相关联的目标界面,而无需用户再文档编辑界面中打开应用程序,并对应用程序中的对象进行选择,再通过载入的方式,才能对文档编辑界面进行编辑处理,因此简化了用户的操作节省了操作耗时;并且,电子设备可以根据用户在第二屏幕区域中对目标对象的输入,直接在第一屏幕区域对文档编辑界面进行编辑处理,以便于用户能够快捷地对文档编辑界面中的文档进行编辑;如此,提升了电子设备显示文档编辑界面的灵活性和对文档编辑的灵活性。The embodiment of the present application provides a document editing device. Since the user can make a first input to the screen of the electronic device when the document editing interface is displayed, so as to trigger the electronic device to divide the screen display area into two areas, in the first The document editing interface is displayed in the screen area, and the target interface associated with the document editing interface is displayed in the second screen area, without the need for the user to open the application in the document editing interface, select objects in the application, and then load the Only in this way can the document editing interface be edited, thus simplifying the user's operation and saving time-consuming operation; and, the electronic device can directly edit the target object in the first screen area according to the user's input on the target object in the second screen area. The editing process is performed on the document editing interface, so that the user can quickly edit the document in the document editing interface; in this way, the flexibility of displaying the document editing interface and the flexibility of editing the document on the electronic device are improved.
在一种可能实现的方式中,上述屏幕为可折叠屏幕,并且该文档编辑装置还包括:折叠模块。折叠模块,用于在显示模块42在屏幕的第一屏幕区域显示文档编辑界面之前,基于第一输入对应的折叠位置和折叠方向,对屏幕进行折叠操作,得到第一屏幕区域和第二屏幕区域。显示模块42,具体用于在屏幕的折叠角度值小于或等于预设角度值的情况下,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示目标界面。In a possible implementation manner, the above-mentioned screen is a foldable screen, and the document editing device further includes: a folding module. The folding module is configured to perform a folding operation on 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 configured 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.
在一种可能实现的方式中,目标界面为目标应用程序的界面;显示模块42,具体用于在第二屏幕区域显示第一界面,第一界面中包括至少一个应用图标,每个应用图标分别指示电子设备中的一个应用程序。接收模块41,还用于接收用户对至少一个应用图标中的目标应用图标的第三输入,目标应用图标用于指示目标应用程序。显示模块42,还用于响应于接收模块41接收的第三输入,在第二屏幕区域显示目标应用程序的界面。In a possible implementation manner, the target interface is the interface of the target application program; the display module 42 is specifically configured to display the first interface in the second screen area, the first interface includes at least one application icon, and each application icon is respectively Indicates an application program in an electronic device. The receiving module 41 is further configured to receive a third input from the user on a target application icon in the at least one application icon, where the target application icon is used to indicate the target application program. The display module 42 is further configured to display the interface of the target application program in the second screen area in response to the third input received by the receiving module 41 .
在一种可能实现的方式中,编辑模块43,具体用于在第一屏幕区域中,将目标对象添加至文档编辑界面中;或者,在第一屏幕区域中,对文档编辑界面中与目标对象匹配的对象进行编辑处理。In a possible implementation manner, 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, add the target object to the document editing interface in the first screen area Matching objects are edited.
在一种可能实现的方式中,接收模块41,还用于在编辑模块43在第一屏幕区域中对文档编辑界面进行编辑处理之后,接收用户在目标界面中对目标对象的第四输入。编辑模 块43,还用于响应于接收模块41接收的第四输入,采用第四输入对应的编辑方式,对目标界面中的目标对象进行编辑处理,并同步采用第四输入对应的编辑方式,对文档编辑界面中的目标对象进行编辑处理。In a possible implementation manner, the receiving module 41 is further configured to receive a fourth user input on the target object in the target interface after the editing module 43 edits the document editing interface in the first screen area. edit mode Block 43 is also used to respond to the fourth input received by the receiving module 41, 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 document The target object in the editing interface is edited.
在一种可能实现的方式中,该文档编辑装置还包括:取消模块。接收模块41,还用于在编辑模块43在第一屏幕区域中对文档编辑界面进行编辑处理之后,接收用户对屏幕的第五输入。取消模块,还用于响应于接收模块41接收的第五输入,在第五输入对应的折叠方向与第一输入对应的折叠方向相反的情况下,取消显示目标界面。显示模块42,还用于在屏幕中文档编辑界面。In a possible implementation manner, the document editing device further includes: a cancel module. The receiving module 41 is further configured 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 canceling module is further configured to, in response to the fifth input received by the receiving module 41 , cancel displaying 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 42 is also used for an in-screen document editing interface.
本申请实施例中的文档编辑装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The document editing apparatus in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., can also serve as server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in this embodiment of the present application.
本申请实施例中的文档编辑装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The document editing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的文档编辑装置能够实现图1至图6的方法实施例实现的各个过程,为避免重复,这里不再赘述。The document editing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 6 , and details are not repeated here to avoid repetition.
可选地,如图8所示,本申请实施例还提供一种电子设备800,包括处理器801和存储器802,存储器802上存储有可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述文档编辑方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 8 , the embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores programs or instructions that can run on the processor 801. The When the programs or instructions are executed by the processor 801, the various steps of the above-mentioned document editing method embodiments can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: 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, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 110 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,用户输入单元107,用于在显示文档编辑界面的情况下,接收用户对电子设备的屏幕的第一输入。显示单元107,用于响应于第一输入,在屏幕的第一屏幕区域显示文档编辑界面,并在屏幕的第二屏幕区域显示与文档编辑界面关联的目标界面。用户输入单 元107,还用于接收用户在目标界面中对目标对象的第二输入。处理器110,用于响应于第二输入,在第一屏幕区域中对文档编辑界面进行编辑处理。Wherein, the user input unit 107 is configured to receive a first input from the user on the screen of the electronic device when the document editing interface is displayed. The display unit 107 is configured to, in response to the first input, display a 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. user input form The element 107 is further configured to receive a second input from the user on the target object in the target interface. The processor 110 is configured to, in response to the second input, edit the document editing interface in the first screen area.
本申请实施例提供一种电子设备,由于用户可以在显示文档编辑界面的情况下,对屏幕进行第一输入,以触发电子设备将屏幕显示区域划分为两个区域,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示与文档编辑界面相关联的目标界面,而无需用户再文档编辑界面中打开应用程序,并对应用程序中的对象进行选择,再通过载入的方式,才能对文档编辑界面进行编辑处理,因此简化了用户的操作节省了操作耗时;并且,电子设备可以根据用户在第二屏幕区域中对目标对象的输入,直接在第一屏幕区域对文档编辑界面进行编辑处理,以便于用户能够快捷地对文档编辑界面中的文档进行编辑;如此,提升了电子设备显示文档编辑界面的灵活性和对文档编辑的灵活性。The embodiment of the present application provides an electronic device, because the user can make a first input to the screen when the document editing interface is displayed, so as to trigger the electronic device to divide the screen display area into two areas, and display the document in the first screen area editing interface, and display the target interface associated with the document editing interface in the second screen area, without the need for the user to open the application in the document editing interface, select objects in the application, and then load them. Editing the document editing interface simplifies the user's operation and saves time-consuming operation; 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. Editing processing, so that the user can quickly edit the document in the document editing interface; in this way, the flexibility of displaying the document editing interface of the electronic device and the flexibility of editing the document are improved.
可选地,本申请实施例中,上述屏幕为可折叠屏幕;处理器110,用于在屏幕的第一屏幕区域显示文档编辑界面之前,基于第一输入对应的折叠位置和折叠方向,对屏幕进行折叠操作,得到第一屏幕区域和第二屏幕区域。显示单元107,具体用于在屏幕的折叠角度值小于或等于预设角度值的情况下,在第一屏幕区域显示文档编辑界面,并在第二屏幕区域显示目标界面。Optionally, in the embodiment of the present application, the above-mentioned screen is a foldable screen; the processor 110 is configured to, before displaying the document editing interface in the first screen area of the screen, based on the folding position and folding direction corresponding to the first input, edit the screen Perform a folding operation to obtain the first screen area and the second screen area. The display unit 107 is specifically configured 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.
可选地,本申请实施例中,目标界面为目标应用程序的界面;显示单元107,具体用于在第二屏幕区域显示第一界面,第一界面中包括至少一个应用图标,每个应用图标分别指示电子设备中的一个应用程序。用户输入单元107,还用于接收用户对至少一个应用图标中的目标应用图标的第三输入,目标应用图标用于指示目标应用程序。显示单元107,还用于响应于第三输入,在第二屏幕区域显示目标应用程序的界面。Optionally, in this embodiment of the present application, the target interface is the interface of the target application program; the display unit 107 is specifically configured to display the first interface in the second screen area, the first interface includes at least one application icon, and each application icon Each indicates an application program in the electronic device. The user input unit 107 is further configured to receive a third input from the user on the target application icon in the at least one application icon, where the target application icon is used to indicate the target application program. The display unit 107 is further configured to display the interface of the target application program in the second screen area in response to the third input.
可选地,本申请实施例中,处理器110,具体用于在第一屏幕区域中,将目标对象添加至文档编辑界面中;或者,在第一屏幕区域中,对文档编辑界面中与目标对象匹配的对象进行编辑处理。Optionally, in this embodiment of the application, the processor 110 is specifically configured to add the target object to the document editing interface in the first screen area; or, in the first screen area, add the target object to the document editing interface in the first screen area. Objects matching objects are processed for editing.
可选地,本申请实施例中,用户输入单元107,还用于在第一屏幕区域中对文档编辑界面进行编辑处理之后,接收用户在目标界面中对目标对象的第四输入。处理器110,还用于响应于第四输入,采用第四输入对应的编辑方式,对目标界面中的目标对象进行编辑处理,并同步采用第四输入对应的编辑方式,对文档编辑界面中的目标对象进行编辑处理。Optionally, in this embodiment of the present application, the user input unit 107 is further configured to receive a fourth input from the user on the target object in the target interface after editing the document editing interface in the first screen area. The processor 110 is further configured to, in response to the fourth input, use the editing mode corresponding to the fourth input to edit the target object in the target interface, and simultaneously adopt the editing mode corresponding to the fourth input to edit the target object in the document editing interface. The target object is edited.
可选地,本申请实施例中,用户输入单元107,还用于在第一屏幕区域中对文档编辑界面进行编辑处理之后,接收用户对屏幕的第五输入。处理器110,还用于响应于第五输入,在第五输入对应的折叠方向与第一输入对应的折叠方向相反的情况下,取消显示目标界面。显示单元107,还用于在屏幕中文档编辑界面。Optionally, in this embodiment of the present application, the user input unit 107 is further configured to receive a fifth input from the user on the screen after editing the document editing interface in the first screen area. The processor 110 is further configured to, in response to the fifth input, cancel displaying 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 unit 107 is also used for an on-screen document editing interface.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。 It should be understood that, in this 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 is compatible with the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. 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, or the like. The user input unit 107 includes at least one of a touch panel 1071 and 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, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 109 may include volatile memory or nonvolatile memory, or, memory 109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, 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.
处理器110可包括一个或多个处理单元;可选地,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。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 handles operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文档编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned document editing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. 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, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文档编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned document editing method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述文档编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned document editing method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于 所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that 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. implementation functions, for example, can be pressed differently The described methods are performed in the order described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (17)

  1. 一种文档编辑方法,所述方法包括:A document editing method, the method comprising:
    在电子设备显示文档编辑界面的情况下,接收用户对所述电子设备的屏幕的第一输入;When the electronic device displays the document editing interface, receiving a user's first input 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 from the user on the target object in the target interface;
    响应于所述第二输入,在所述第一屏幕区域中对所述文档编辑界面进行编辑处理。In response to the second input, an editing process is performed on the document editing interface in the first screen area.
  2. 根据权利要求1所述的方法,其中,所述屏幕为可折叠屏幕,在所述屏幕的第一屏幕区域显示所述文档编辑界面之前,所述方法还包括:The method according to claim 1, wherein 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 comprises:
    基于所述第一输入对应的折叠位置和折叠方向,确定所述第一屏幕区域和所述第二屏幕区域;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 displaying the document editing interface in the first screen area of the screen, and displaying the 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. 根据权利要求1或2所述的方法,其中,所述目标界面为目标应用程序的界面;The method according to claim 1 or 2, wherein the target interface is an interface of a target application program;
    所述在所述屏幕的第二屏幕区域显示与所述文档编辑界面关联的目标界面,包括:The displaying the 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 respectively indicating an application program in the electronic device;
    接收用户对所述至少一个应用图标中的目标应用图标的第三输入,所述目标应用图标用于指示所述目标应用程序;receiving a third input from a user on a target application icon in the at least one application icon, where the target application icon is used to indicate the target application;
    响应于所述第三输入,在所述第二屏幕区域显示所述目标应用程序的界面。In response to the third input, an interface of the target application is displayed in the second screen area.
  4. 根据权利要求1所述的方法,其中,所述在所述第一屏幕区域中对所述文档编辑界面进行编辑处理,包括:The method according to claim 1, wherein said editing the document editing interface in the first screen area comprises:
    在所述第一屏幕区域中,将所述目标对象添加至所述文档编辑界面中;In the first screen area, adding the target object to the document editing interface;
    或者, or,
    在所述第一屏幕区域中,对所述文档编辑界面中与所述目标对象匹配的对象进行编辑处理。In the first screen area, edit the object matching the target object in the document editing interface.
  5. 根据权利要求1或4所述的方法,其中,所述在所述第一屏幕区域中对所述文档编辑界面进行编辑处理之后,所述方法还包括:The method according to claim 1 or 4, wherein, after editing the document editing interface in the first screen area, the method further comprises:
    接收用户在所述目标界面中对所述目标对象的第四输入;receiving a fourth input from the user on the target object in the target interface;
    响应于所述第四输入,采用所述第四输入对应的编辑方式,对所述目标界面中的所述目标对象进行编辑处理,并同步采用所述第四输入对应的编辑方式,对所述文档编辑界面中的所述目标对象进行编辑处理。In response to the fourth input, edit the target object in the target interface by adopting the editing mode corresponding to the fourth input, and synchronously adopt the editing mode corresponding to the fourth input to edit the The target object in the document editing interface is edited.
  6. 根据权利要求1或2所述的方法,其中,所述基于所述目标对象,在所述第一屏幕区域中对所述文档编辑界面进行编辑处理之后,所述方法还包括:The method according to claim 1 or 2, wherein, based on the target object, after editing the document editing interface in the first screen area, the method further comprises:
    接收用户对所述屏幕的第五输入;receiving a fifth user input to the screen;
    响应于所述第五输入,在所述第五输入对应的折叠方向与所述第一输入对应的折叠方向相反的情况下,取消显示所述目标界面,并在所述屏幕中显示所述文档编辑界面。In response to the fifth input, if the folding direction corresponding to the fifth input is opposite to the folding direction corresponding to the first input, cancel displaying the target interface and display the document on the screen Editing interface.
  7. 一种文档编辑装置,所述装置包括:接收模块、显示模块和编辑模块;A document editing device, the device comprising: a receiving module, a display module and an editing module;
    所述接收模块,用于在电子设备显示文档编辑界面的情况下,接收用户所述电子设备的屏幕的第一输入;The receiving module is configured to receive a first input from the user's 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 on the first screen area of the screen in response to the first input received by the receiving module, and display the document editing interface on the second screen area of the screen in response to the first input received by the receiving module. The target interface associated with the document editing interface;
    所述接收模块,还用于接收用户在所述目标界面中对目标对象的第二输入;The receiving module is further configured to receive a second input from 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.
  8. 根据权利要求7所述的装置,其中,所述屏幕为可折叠屏幕,所述装置还包括:折叠模块;The device according to claim 7, wherein the screen is a foldable screen, and the device further comprises: a folding module;
    所述折叠模块,用于在所述显示模块在所述屏幕的第一屏幕区域显示所述文档编辑界面之前,基于所述第一输入对应的折叠位置和折叠方向,对所述屏幕进行折叠操 作,得到所述第一屏幕区域和所述第二屏幕区域;The folding module is configured to perform a folding operation on the screen based on the folding position and folding direction corresponding to the first input before the display module displays the document editing interface in the first screen area of the screen operation to obtain the first screen area and the second screen area;
    所述显示模块,具体用于在所述屏幕的折叠角度值小于或等于预设角度值的情况下,在所述第一屏幕区域显示所述文档编辑界面,并在所述第二屏幕区域显示所述目标界面。The display module is specifically configured to display the document editing interface in the first screen area and display the document editing interface in the second screen area when the folding angle value of the screen is less than or equal to a preset angle value. The target interface.
  9. 根据权利要求7或8所述的装置,其中,所述目标界面为目标应用程序的界面;The device according to claim 7 or 8, wherein the target interface is an interface of a target application program;
    所述显示模块,具体用于在所述第二屏幕区域显示第一界面,所述第一界面中包括至少一个应用图标,每个应用图标分别指示所述电子设备中的一个应用程序;The display module is specifically configured to display a first interface in the second screen area, the first interface includes at least one application icon, and each application icon respectively indicates 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 in the at least one application icon, where 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 program in the second screen area in response to the third input received by the receiving module.
  10. 根据权利要求7所述的装置,其中,所述编辑模块,具体用于在所述第一屏幕区域中,将所述目标对象添加至所述文档编辑界面中;或者,在所述第一屏幕区域中,对所述文档编辑界面中与所述目标对象匹配的对象进行编辑处理。The device according to claim 7, wherein the editing module is specifically configured to add the target object to the document editing interface in the first screen area; or, on the first screen In the region, edit the object matching the target object in the document editing interface.
  11. 根据权利要求7或10所述的装置,其中,Apparatus according to claim 7 or 10, wherein,
    所述接收模块,还用于在所述编辑模块基于所述目标对象,在所述第一屏幕区域中对所述文档编辑界面进行编辑处理之后,接收用户在所述目标界面中对所述目标对象的第四输入;The receiving module is further configured to, after the editing module edits the document editing interface in the first screen area based on the target object, receive the user's modification of the target in the target interface. the fourth input of the object;
    所述编辑模块,还用于响应于所述接收模块接收的所述第四输入,采用所述第四输入对应的编辑方式,对所述目标界面中的所述目标对象进行编辑处理,并同步采用所述第四输入对应的编辑方式,对所述文档编辑界面中的所述目标对象进行编辑处理。The editing module is further configured to, in response to the fourth input received by the receiving module, use the editing mode corresponding to the fourth input to edit the target object in the target interface, and synchronize The editing method corresponding to the fourth input is used to edit the target object in the document editing interface.
  12. 根据权利要求7或8所述的装置,其中,所述装置还包括:取消模块;The device according to claim 7 or 8, wherein 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 the display of the Describe the target interface;
    所述显示模块,还用于在所述屏幕中所述文档编辑界面。The display module is also used for the document editing interface in the screen.
  13. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的文档编辑方法的步骤。An electronic device, comprising a processor and a memory, the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, any one of claims 1 to 6 is realized. The steps of the document editing method described in the item.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的文档编辑方法的步骤。A readable storage medium, storing programs or instructions on the readable storage medium, and implementing the steps of the document editing method according to any one of claims 1 to 6 when the programs or instructions are executed by a processor.
  15. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的文档编辑方法的步骤。A computer program product, the program product is executed by at least one processor to implement the steps of the document editing method according to any one of claims 1 to 6.
  16. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的文档编辑方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and implement the document according to any one of claims 1 to 6 Edit the steps of the method.
  17. 一种电子设备,其特征在于,包括所述电子设备被配置成用于执行如权利要求1至6中任一项所述的文档编辑方法的步骤。 An electronic device, characterized by comprising that the electronic device is configured to execute the steps of the document editing method according to any one of claims 1 to 6.
PCT/CN2023/076601 2022-02-18 2023-02-16 Document editing method and apparatus WO2023155858A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210153567.7 2022-02-18
CN202210153567.7A CN114564921A (en) 2022-02-18 2022-02-18 Document editing method and device

Publications (1)

Publication Number Publication Date
WO2023155858A1 true WO2023155858A1 (en) 2023-08-24

Family

ID=81714008

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/076601 WO2023155858A1 (en) 2022-02-18 2023-02-16 Document editing method and apparatus

Country Status (2)

Country Link
CN (1) CN114564921A (en)
WO (1) WO2023155858A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564921A (en) * 2022-02-18 2022-05-31 维沃移动通信有限公司 Document editing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100245256A1 (en) * 2009-03-24 2010-09-30 Microsoft Corporation Dual screen portable touch sensitive computing system
CN111078091A (en) * 2019-11-29 2020-04-28 华为技术有限公司 Split screen display processing method and device and electronic equipment
CN112445553A (en) * 2019-08-28 2021-03-05 珠海金山办公软件有限公司 Terminal display adjusting method and device and terminal
CN112445552A (en) * 2019-08-27 2021-03-05 珠海金山办公软件有限公司 Terminal display adjusting method and device and terminal
CN113191117A (en) * 2021-05-31 2021-07-30 腾讯科技(深圳)有限公司 Editing method, device and equipment of electronic document and storage medium
CN114564921A (en) * 2022-02-18 2022-05-31 维沃移动通信有限公司 Document editing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100245256A1 (en) * 2009-03-24 2010-09-30 Microsoft Corporation Dual screen portable touch sensitive computing system
CN112445552A (en) * 2019-08-27 2021-03-05 珠海金山办公软件有限公司 Terminal display adjusting method and device and terminal
CN112445553A (en) * 2019-08-28 2021-03-05 珠海金山办公软件有限公司 Terminal display adjusting method and device and terminal
CN111078091A (en) * 2019-11-29 2020-04-28 华为技术有限公司 Split screen display processing method and device and electronic equipment
CN113191117A (en) * 2021-05-31 2021-07-30 腾讯科技(深圳)有限公司 Editing method, device and equipment of electronic document and storage medium
CN114564921A (en) * 2022-02-18 2022-05-31 维沃移动通信有限公司 Document editing method and device

Also Published As

Publication number Publication date
CN114564921A (en) 2022-05-31

Similar Documents

Publication Publication Date Title
KR102155688B1 (en) User terminal device and method for displaying thereof
KR102013331B1 (en) Terminal device and method for synthesizing a dual image in device having a dual camera
WO2021136136A1 (en) Screenshot method and electronic device
WO2022083241A1 (en) Information guide method and apparatus
WO2016106997A1 (en) Screen capture method and device, and mobile terminal
WO2023155877A1 (en) Application icon management method and apparatus and electronic device
WO2023155858A1 (en) Document editing method and apparatus
CN112698762B (en) Icon display method and device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
WO2024083018A1 (en) Information processing method and apparatus, and electronic device
WO2024012508A1 (en) Functional interface display method and apparatus
WO2023155874A1 (en) Application icon management method and apparatus, and electronic device
WO2024012416A1 (en) Display method and apparatus
WO2023241563A1 (en) Data processing method and electronic device
WO2023241612A1 (en) File selection method and apparatus, electronic device, and readable storage medium
WO2023231871A1 (en) Display control method and apparatus, and electronic device and readable storage medium
WO2023185701A1 (en) Display method and apparatus, electronic device, and readable storage medium
WO2023174328A1 (en) Screen control method and apparatus, electronic device, and storage medium
WO2023103949A1 (en) Video processing method and apparatus, electronic device and medium
WO2023093661A1 (en) Interface control method and apparatus, and electronic device and storage medium
CN116107531A (en) Interface display method and device
WO2022228301A1 (en) Document generation method and apparatus and electronic device
CN115617226A (en) Icon management method and device
CN115037874A (en) Photographing method and device and electronic equipment
CN114416269A (en) Interface display method and display device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23755859

Country of ref document: EP

Kind code of ref document: A1