CN109445657A - Document edit method and device - Google Patents

Document edit method and device Download PDF

Info

Publication number
CN109445657A
CN109445657A CN201811208371.3A CN201811208371A CN109445657A CN 109445657 A CN109445657 A CN 109445657A CN 201811208371 A CN201811208371 A CN 201811208371A CN 109445657 A CN109445657 A CN 109445657A
Authority
CN
China
Prior art keywords
preset control
document
document block
focus
editing
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201811208371.3A
Other languages
Chinese (zh)
Other versions
CN109445657B (en
Inventor
王旭
郭晓力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology Co Ltd
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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811208371.3A priority Critical patent/CN109445657B/en
Publication of CN109445657A publication Critical patent/CN109445657A/en
Application granted granted Critical
Publication of CN109445657B publication Critical patent/CN109445657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (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 disclosure proposes a kind of document edit method and device, wherein method includes: to obtain the position that focus is currently located in documents editing interface;The position being currently located according to the focus and the corresponding location information of each preset control determine the first preset control corresponding with the position that the focus is currently located;According to the corresponding relationship of each preset control and each document block, obtain and the associated destination document block of first preset control;According to the operational order of acquisition, editing and processing is carried out to the destination document block.Pass through this method, it can be to be operable to realize the operation to associated document block to preset control, it avoids user from manually selecting document segment to edit, simplify the operating procedure of user, save the operating time, document process efficiency is improved, solution is when in the prior art handling electronic document, the technical problem that operating process is cumbersome, time-consuming, treatment effeciency is low.

Description

Document edit method and device
Technical field
This disclosure relates to computer application technology more particularly to a kind of document edit method and device.
Background technique
With the development of science and technology, the function of electronic equipment becomes increasingly abundant, and people start habit using electronic equipment Documents editing function records information.Compared to traditional paper document, electronic document, which has, to be easily modified, deletes, saving Feature receives liking for users.
Currently, in the related technology, when modifying for electronic document, for example adjusting the position of paragraph in document, user Need successively to execute choose, cut and paste operation, operating process is cumbersome, and time-consuming, document process low efficiency.
Summary of the invention
The disclosure provides a kind of document edit method and device, to solve in the prior art to handle electronic document When, operating process is cumbersome, time-consuming, treatment effeciency is low technical problem.
For this purpose, disclosure first aspect proposes a kind of document edit method, to simplify operating procedure, when saving operation It is long, document process efficiency is improved, user experience is promoted.
Disclosure second aspect proposes a kind of document editing device.
The disclosure third aspect proposes a kind of electronic equipment.
Disclosure fourth aspect proposes a kind of non-transient computer readable storage medium.
The 5th aspect of the disclosure proposes a kind of computer program product.
Disclosure first aspect embodiment proposes a kind of document edit method, comprising:
Obtain the position that focus is currently located in documents editing interface;
The position being currently located according to the focus and the corresponding location information of each preset control, determination are worked as with the focus Corresponding first preset control in the position at preceding place;
According to the corresponding relationship of each preset control and each document block, obtain and the associated target text of first preset control Link stopper;
According to the operational order of acquisition, editing and processing is carried out to the destination document block.
The document edit method of the embodiment of the present disclosure, by obtaining the position that focus is currently located in documents editing interface, The position being currently located according to focus and the corresponding location information of each preset control, determination are corresponding with the position that focus is currently located The first default control obtain associated with the first preset control further according to the corresponding relationship of each preset control and each document block Destination document block, and then according to the operational order of acquisition, editing and processing is carried out to destination document block.It is default by setting as a result, Control is corresponding with document block, to be operable to realize the operation to associated document block to preset control, so as to avoid with Family manually selects document segment and is edited, and simplifies the operating procedure of user, saves the operating time, improves document process Efficiency, the user experience is improved.
Disclosure second aspect embodiment proposes a kind of document editing device, comprising:
First obtains module, for obtaining the position that focus is currently located in documents editing interface;
Determining module, position and the corresponding location information of each preset control for being currently located according to the focus, really Fixed the first preset control corresponding with the position that the focus is currently located;
Second obtains module, for the corresponding relationship according to each preset control and each document block, obtains with described first in advance If the associated destination document block of control;
Processing module carries out editing and processing to the destination document block for the operational order according to acquisition.
The document editing device of the embodiment of the present disclosure, by obtaining the position that focus is currently located in documents editing interface, The position being currently located according to focus and the corresponding location information of each preset control, determination are corresponding with the position that focus is currently located The first default control obtain associated with the first preset control further according to the corresponding relationship of each preset control and each document block Destination document block, and then according to the operational order of acquisition, editing and processing is carried out to destination document block.It is default by setting as a result, Control is corresponding with document block, to be operable to realize the operation to associated document block to preset control, so as to avoid with Family manually selects document segment and is edited, and simplifies the operating procedure of user, saves the operating time, improves document process Efficiency, the user experience is improved.
Disclosure third aspect embodiment proposes a kind of electronic equipment, comprising: processor and memory;Wherein, described Processor is corresponding with the executable program code to run by reading the executable program code stored in the memory Program, for realizing the document edit method as described in first aspect embodiment.
Disclosure fourth aspect embodiment proposes a kind of non-transient computer readable storage medium, is stored thereon with calculating Machine program realizes the document edit method as described in first aspect embodiment when the program is executed by processor.
The 5th aspect embodiment of the disclosure proposes a kind of computer program product, when in the computer program product When instruction is executed by processor, the document edit method as described in first aspect embodiment is executed.
The additional aspect of the disclosure and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the disclosure.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of document edit method provided by the embodiment of the present disclosure;
Fig. 2 is the modular exemplary diagram of document content;
Fig. 3 is the hierarchical relationship exemplary diagram in documents editing interface between all document blocks;
Fig. 4 (a) is the exemplary diagram of the edit list shown after preset control is selected;
Fig. 4 (b) is the document content exemplary diagram after destination document block is deleted;
Fig. 5 is the flow diagram of another kind document edit method provided by the embodiment of the present disclosure;
Fig. 6 (a) is the exemplary diagram that target position is determined according to focus releasing position;
Fig. 6 (b) is the document content comparative examples figure of the mobile front and back of document block;
Fig. 7 is the exemplary diagram that the embodiment of the present disclosure is classified document;
Fig. 8 is the flow diagram of another document edit method provided by the embodiment of the present disclosure;
Fig. 9 (a) is all current corresponding level exemplary diagrams of document block in documents editing interface;
Fig. 9 (b) is the exemplary diagram one after the level attributes for adjusting document block in documents editing interface;
Fig. 9 (c) is the exemplary diagram two after the level attributes for adjusting document block in documents editing interface;
Figure 10 is the flow diagram of another kind document edit method provided by the embodiment of the present disclosure;
Figure 11 (a) is documents editing examples of interfaces figure one;
Figure 11 (b) is the exemplary diagram for increasing preset control;
Figure 11 (c) is the exemplary diagram for determining the hierarchical relationship between the second preset control and third preset control;
Figure 12 is a kind of structural schematic diagram of document editing device provided by the embodiment of the present disclosure;
Figure 13 is the structural schematic diagram of another kind document editing device provided by the embodiment of the present disclosure;
Figure 14 is the structural schematic diagram of the electronic equipment for realizing the embodiment of the present disclosure;And
Figure 15 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.
Specific embodiment
Embodiment of the disclosure is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the disclosure, and should not be understood as the limitation to the disclosure.
Below with reference to the accompanying drawings the document edit method and device of the embodiment of the present disclosure are described.
Fig. 1 is a kind of flow diagram of document edit method provided by the embodiment of the present disclosure, and this method can be applied In the electronic equipment that desktop computer, laptop, smart phone, tablet computer etc. have documents editing function.Specifically, This method can be applied in the documents editing software installed in above-mentioned electronic equipment, alternatively, can apply in the form of a web page In browser, when user opens corresponding webpage progress documents editing in a browser, the automatic calling embodiment of the present disclosure Document edit method.
For ease of description, following embodiments will be applied to documents editing software with the document edit method of the embodiment of the present disclosure In for, to illustrate the disclosure.
As shown in Figure 1, the document edit methods the following steps are included:
Step 101, the position that focus is currently located in documents editing interface is obtained.
It, can be in the documents editing interface provided by documents editing software in input when user uses documents editing software Hold to create document, the document content inputted can also be operated.After user operates document content, document Software for editing can get the position that focus is currently located in documents editing interface.
Wherein, the position that focus is currently located refers to the position of user's current operation in documents editing interface, or Person, user will be to the positions that document is operated.
For example, the position that focus is currently located can be mouse when user uses documents editing software on computers The currently indicated position of cursor.
In another example when user is soft using documents editing in the equipment that tablet computer, smart phone etc. support contact action When part, the position that focus is currently located can be the position that the finger of user, stylus etc. are clicked in documents editing interface.
Step 102, the position and the corresponding location information of each preset control, determination being currently located according to focus are worked as with focus Corresponding first preset control in the position at preceding place.
It, can during input content for the document that user is edited in documents editing software in the present embodiment To create multiple paragraphs by enter key, documents editing software is distributed according to the paragraph of document content, will be every as unit of paragraph A paragraph modularization obtains a document block, and corresponding preset control is arranged for each document block.
For example, Fig. 2 is the modular exemplary diagram of document content.As shown in Fig. 2, being provided with one before each paragraph The dot of black, the dot of the black are the preset control for indicating corresponding paragraph, each subsequent content of dot, as with the circle The corresponding document block of point (preset control).
In the present embodiment, after getting the position that focus is currently located, documents editing software is currently located according to focus Position and the corresponding location information of each preset control can determine that corresponding with the position that focus is currently located first is default Control.
Wherein, the corresponding location information of each preset control can carry out modularization to document content in documents editing software Processing obtains each document block, and is that each document block is arranged after corresponding preset control, according to preset control and its correspondence Position of the document block in documents editing interface predefine and store.In turn, it is current to get focus for documents editing software Behind the position at place, by inquiring the corresponding location information of each preset control, that is, the position pair being currently located with focus can determine The first preset control answered.
For example, being preset control corresponding to " I was once a child " this document block for content, this is pre- in Fig. 2 If the corresponding location information of control, refers to the position in region 11.When the position that the focus that documents editing software obtains is currently located When setting any position fallen in region 11, it may be determined that before the first current preset control is " I was once a child " the words The dot in face, i.e. dot in Fig. 2 in dotted line frame.
Step 103, it according to the corresponding relationship of each preset control and each document block, obtains and the associated mesh of the first preset control Mark document block.
In the present embodiment, it is determined that corresponding first preset control in the position that focus is currently located and then according to each pre- If the corresponding relationship of control and each document block, obtain and the associated destination document block of the first preset control.
Wherein, the corresponding relationship of each preset control and each document block, it may be predetermined that and it is stored in documents editing software In.
As an example, each preset control and each document block can be determined according to the positional relationship of each preset control Corresponding relationship.As shown in figure 3, coordinate system can be established as origin using the starting point (upper left corner) at documents editing interface, from Fig. 3 In as can be seen that preset control identical for rank, abscissa value (x value) is identical, and the rank of preset control is higher, horizontal seat Scale value is smaller.Thus, can be by the document block between the preset control of two neighboring same levels, as previous in this example The corresponding document block of preset control, wherein the preset control of the two same levels, it may be that the same upper level is other default The child control of control.For example, for each preset control, be successively numbered in Fig. 3 with a~k, then the position of preset control a The corresponding abscissa value of information is minimum, and the corresponding abscissa value of the location information of preset control b is taken second place, and preset control d~f and The corresponding abscissa value of the location information of h~k is maximum, and preset control d~f is the child control of preset control c, preset control h~k It is the child control of preset control g.In the way of the corresponding document block of above-mentioned determining preset control, document represented by region 31 Block, document block as corresponding with preset control c, document block represented by region 32, as with text corresponding to preset control h Link stopper is then entire document shown in Fig. 3 with document block corresponding to preset control a.
Corresponding relationship based on each preset control and each document block for predefining and storing, it is determined that focus is currently located Corresponding first preset control in position after, by inquiring preset corresponding relationship, that is, can determine and the first preset control pair The destination document block answered.For example, by taking Fig. 3 as an example, it is assumed that the first preset control currently determined is h, then can determine current mesh Marking document block is the document block that region 32 indicates.
Step 104, according to the operational order of acquisition, editing and processing is carried out to destination document block.
Wherein, the operational order of acquisition is that the operation performed in documents editing interface according to user obtains, than Such as, user performs the operation for changing font color in documents editing interface, then the operational order that documents editing software obtains For the font color for changing destination document block.
In the present embodiment, it is determined that after destination document block, according to the operational order of acquisition, can to destination document block into Edlin processing matches, i.e., so as to the content of the destination document block after editing and processing and show form with the operational order of acquisition Respond user's operation performed in documents editing interface.For example, editing and processing can be to delete, change font, font size, change Become text color, overstriking, underscore, the operation such as move up and down.
, it is understood that when under the first preset control including child control, it is right comprising child control institute in destination document block The document block answered, the then edit operation executed to destination document block, is also applied for the child control under the first preset control included institute Corresponding document block.
Still by taking Fig. 3 as an example, it is assumed that the first preset control is c, and the operational order of acquisition is that change font color is red, then The color of all texts in region 31 is adjusted to red by documents editing software.
In a kind of possible implementation of the embodiment of the present disclosure, according to the operational order of acquisition, to destination document block into Edlin processing, comprising: according to the prompt operation key being currently triggered, editing and processing is carried out to destination document block.Wherein, fast The corresponding editting function of operation key can be with default settings, for example, the corresponding edit operation of setting prompt operation key ctrl+B is pair Text carries out overstriking, and the corresponding edit operation of setting prompt operation key Alt+Enter is addition picture, etc..Work as documents editing After software gets the prompt operation key currently triggered by user, according to the prompt operation key being currently triggered, and it is default Prompt operation key and edit operation corresponding relationship, editing and processing is carried out to current destination document block.For example, user is current The prompt operation key of triggering is ctrl+B, then documents editing software is by all text overstrikings in destination document block, as right The response for the prompt operation key ctrl+B that user is triggered.
In a kind of possible implementation of the embodiment of the present disclosure, according to the operational order of acquisition, to destination document block into Edlin processing, comprising: according to the option of operation in currently selected in preset edit list, destination document block is edited Processing, wherein preset edit list is to compile when the position for determining that focus is currently located corresponds to the first preset control in document The edit list shown in editing interface.
For example, Fig. 4 (a) is the exemplary diagram of the edit list shown after preset control is selected.As shown in Fig. 4 (a), preset Edit list in include multiple option of operation, such as completions, editing specification, add picture, export, title font size, font face Color etc..After a certain preset control is selected, then edit list is shown, user can come selection operation option from edit list Realize corresponding editing and processing.For example, in Fig. 4 (a), user wants to delete the content of " past-I whom is once " this theme, Then user can choose the dot before " past-I whom is once ", which is confirmed as the first preset control, and in the circle Point lower section shows edit list, and user need to only select in edit list " to delete " this operation option, can delete " past-I Whom is once " content of this theme, obtain the document as shown in Fig. 4 (b).When user selects the option of operation in edit list When, it can show the prompt operation key of the option of operation currently selected, on the right side of edit list also to prompt user that can also pass through Prompt operation key is triggered to execute corresponding operation.As shown in Fig. 4 (a), when user selects " deletion " option of operation, on right side Show the corresponding prompt operation key Ctrl+Shift+Backspace of delete operation.
By the way that prompt operation key is arranged, Editorial Services is carried out to destination document block according to the prompt operation key being currently triggered Reason, alternatively, edit list is set for preset control, when the position for determining that focus is currently located corresponds to the first preset control, Documents editing shows edit list in interface, according to the option of operation in currently selected in edit list, to destination document block into Edlin processing, hereby it is achieved that improving editorial efficiency, the user experience is improved to the quick editor of document content paragraph.
Optionally, in a kind of possible implementation of the embodiment of the present disclosure, when the position where focus is located at default control When on part, in documents editing interface, all document block (destination documents corresponding with preset control (i.e. first preset control) Block) background color change, for example, the background color of destination document block becomes Dark grey, such as the gray shade portion in Fig. 4 (a) Point, intuitively to show the paragraph currently chosen to user, the convenience that user knows chosen paragraph content is improved, is mentioned High destination document block can identification.
In a kind of possible implementation of the embodiment of the present disclosure, obtain and the associated destination document of the first preset control After block, if the operational order obtained is character editing instruction, instructed according to the character editing of acquisition, the current institute of focus point Position be directed toward character carry out editing and processing.For example, what user currently selected is one or more characters in a certain paragraph When, what focus is currently located at this time position was directed toward is one or more characters, then when user execute overstriking, italic, underscore, When changing the character manipulations such as font color, documents editing software can get character manipulation instruction, and be instructed according to character manipulation Editing and processing is carried out to one or more characters that user currently selects.Hereby it is achieved that the processing to partial character in paragraph Operation, improves the flexibility of editing and processing.
The document edit method of the present embodiment, by obtaining the position that focus is currently located in documents editing interface, according to The position and the corresponding location information of each preset control that focus is currently located determine corresponding with the position that focus is currently located the One default control obtains and the associated target of the first preset control further according to the corresponding relationship of each preset control and each document block Document block, and then according to the operational order of acquisition, editing and processing is carried out to destination document block.Pass through setting preset control as a result, It is corresponding with document block, to be operable to realize the operation to associated document block to preset control, so as to avoid user hand Dynamic selection document segment is edited, and is simplified the operating procedure of user, is saved the operating time, and document process effect is improved Rate, the user experience is improved.
In practical application, the case where user is frequently encountered the paragraph sequence for needing to adjust document, for example, user has edited After one section of content, it is more suitable before the preceding paragraph content to find to be received in the section, then user needs to adjust the suitable of this two sections of texts Sequence.In the prior art, if user needs to adjust the sequence of paragraph, after the paragraph for needing to find and choose needs to adjust, then It executes shearing, paste operation, or executes the content for deleting former paragraph after duplication paste operation again, operating process is cumbersome.Especially Be when user needs two paragraphs adjusting non-conterminous, user need to repeat choose, cut and paste operation, it is time-consuming more It is long.
In view of the above-mentioned problems, the disclosure also proposed another document edit method, Fig. 5 is provided by the embodiment of the present disclosure Another document edit method flow diagram.
As shown in figure 5, on the basis of embodiment as shown in Figure 1, when user needs the position of some paragraph in mobile document When setting, that is, the operational order obtained is mobile document block instruction, and step 104 may comprise steps of:
Step 201, according to the releasing position of focus in documents editing interface, target position is determined.
In the present embodiment, when user wants the position of mobile destination document block, user can pass through mouse, stylus etc. According to the preset control before drag target document block, that is, the first preset control is dragged, the first preset control is dragged to desired Focus is discharged behind the position being moved to.Documents editing software captures the releasing position of focus in documents editing interface, and according to this Releasing position determines target position.
For example, Fig. 6 (a) is the exemplary diagram that target position is determined according to focus releasing position.As shown in Fig. 6 (a), square Paragraph in shape frame is currently determining destination document block, and when user wants the mobile destination document block, user can be moved Dot before the destination document block.From the motion track such as arrow that can be seen that the dot before destination document block in Fig. 6 (a) Shown in first 41, user discharges focus at dot 42, and target position is the position that the corresponding document block of dot 42 is currently located.Such as Shown in Fig. 6 (a), after determining target position, a horizontal line can be shown above target position, intuitively to show target to user Position.
It, can also be with herein it should be noted that user can not only move corresponding first preset control of destination document block Mobile destination document block;The position of focus release can be the position where preset control, be also possible to the position where document block It sets, for example, user can also discharge focus in any position of the corresponding document block of dot 42 in Fig. 6 (a).
Step 202, destination document block is moved to target location.
In the present embodiment, it is determined that behind target position, destination document block can be moved to target location.
Still by taking Fig. 6 (a) as an example, it is determined that behind target position, the paragraph in rectangle frame is moved to paragraph and " asks that who feels certainly Oneself is artist, and many 5 years old children can raise one's hand, 35 years old people without " the upper surface of, the document content comparison of mobile front and back As shown in Fig. 6 (b).
The document edit method of the present embodiment is when moving document block instruction, according to text by the operational order in acquisition The releasing position of focus, determines target position, and then destination document block is moved to target position, as a result, in shelves editing interface For user without executing selection, cut and paste operation, directly dragging document block to be moved can be completed the position of document segment Adjustment, saves the operating time, improves operating efficiency.
In practical application, the document that user edits generally comprises multiple paragraphs, between paragraph there may be coordination, on Inferior relation etc..In the embodiment of the present disclosure, each paragraph of document is modular for document block, and according to the position between document block Relationship is set, each document block is classified, and records the level of each document block.
For example, Fig. 7 is the exemplary diagram that the embodiment of the present disclosure is classified document.As shown in fig. 7, document block 51, document Block 52 is identical with the level of document block 53, is the sub- grade of document block 5, the corresponding document block of content " past-I whom is once " It is the parent of document block 5.
In order to enrich the function of documents editing, the embodiment of the present disclosure additionally provides another document edit method, to realize User is adjusted the level of document block.Fig. 8 is the process of another document edit method provided by the embodiment of the present disclosure Schematic diagram.
As shown in figure 8, on the basis of embodiment as shown in Figure 1, when the operational order of acquisition is adjustment document block level When instruction, step 104 be may comprise steps of:
Step 301, according to the adjustment document block layer level command of acquisition, target rank is determined.
Wherein, adjustment document block layer level command can be generated according to the operation key being triggered, and adjust document block layer level command It can be preset with the corresponding relationship of adjustment rank, the adjustment document block level of generation for example, setting and " Tab " key are triggered Instructing corresponding adjustment rank is to be retracted level-one to the right, and the adjustment document block layer for the generation that is triggered with " Shift+Tab " key is arranged It is to promote level-one to the left that grade, which instructs corresponding adjustment rank,.
In the present embodiment, when user wants the level of a certain paragraph of adjustment, user can trigger pre-set rank Shortcut key is adjusted, for example, user wants the rank of a certain paragraph adjusting level-one to the right, then user can trigger tab key.Rank tune After whole shortcut key is triggered, documents editing software can get corresponding adjustment document block layer level command, and then according to acquisition Document block layer level command is adjusted to determine target rank.For example, the shortcut key being currently triggered is tab key, then documents editing is soft Part can determine that target rank is to be retracted level-one to the right.
Step 302, according to the current corresponding level attributes of document blocks all in target rank and documents editing interface, to mesh It marks document block and carries out level adjustment.
In the present embodiment, it is determined that, can be according to determining target rank and documents editing interface after target rank In the current corresponding level attributes of all document blocks, level adjustment is carried out to destination document block.Wherein, level attributes can be text The current level of link stopper.
To destination document block carry out level adjustment when, if it is determined that target rank be retracted level-one to the right, then by target The level of document block reduces a rank on the basis of original level.If it is determined that target rank be promote level-one to the left, The level of destination document block is then promoted to a rank on the basis of original level, and if original rank of destination document block The highest level in existing level is had reached, then the level of destination document block can not continue to lift up.
For example, Fig. 9 (a) is all current corresponding level exemplary diagrams of document block in documents editing interface.In Fig. 9 (a), The corresponding level highest of title " intention is exactly so simple ", is denoted as the first level;It is title " past-I whom is once ", " existing - Who Am I " and " how future-does " corresponding level time height, it is denoted as the second level;Paragraph " I was once a child ", " how becoming child again ", " life is a fearless venture or what is not ", " with age, creativity Can increasingly decline " and " being the people that dare to be challenged " corresponding level rank lower than the second level, it is denoted as third level, is remained The corresponding level of remaining paragraph is minimum, is denoted as the 4th level.If focus is currently placed in any position in rectangle frame 61 by user It sets, and triggers tab key, then the paragraph in rectangle frame 61 is retracted to the right a rank by documents editing software, after rank adjusting Document such as Fig. 9 (b) shown in, at this point, the current level of paragraph in rectangle frame 61 reduces a rank compared to original level, For layer 5 grade.On the basis of the hierarchical relationship of each document block as shown in Fig. 9 (b), if user triggers Shift+Tab Key, then the paragraph in rectangle frame 61 promotes a rank to the left, retrieves hierarchical relationship shown in Fig. 9 (a).If user is again Secondary triggering Shift+Tab key, then the paragraph in rectangle frame 61 continues to promote a rank to the left, and the document after rank adjusting is as schemed Shown in 9 (c), at this point, the current level of paragraph in rectangle frame 61 is third level.If focus is currently placed in title by user At " intention is exactly so simple ", and Shift+Tab key is triggered, then can not promote the layer of title " intention is exactly so simple " Grade.
In a kind of possible implementation of the embodiment of the present disclosure, when the first preset control includes child control, then to mesh It, can also be according to destination document block level adjusted and the first preset control and each sub- control after marking the progress level adjustment of document block Each child control is carried out level adjustment by the hierarchical relationship between part.For example, destination document block level adjusted is third level, It include a low other child control of level-one under first preset control, then the level of the child control also reduces a rank, is the 4th Rank, wherein a fourth level rank lower than third level.For example, at the documents editing interface as shown in Fig. 9 (a) In, if focus is placed at title " intention is exactly so simple " by user, and tab key is triggered, then in documents editing interface The corresponding level of all document blocks is retracted to the right a rank.
The document edit method of the present embodiment is root when adjusting document block layer level command by the operational order in acquisition According to the adjustment document block layer level command of acquisition, target rank is determined, and then own according in target rank and documents editing interface The current corresponding level attributes of document block carry out level adjustment to destination document block, hereby it is achieved that each paragraph or so level Quickly adjustment, improves operating efficiency.
During user edits document, user can be at an arbitrary position segmented the document edited, for example, For a paragraph, which can be divided into two or more new paragraphs by carriage return by user.When receiving user When the staged operation of execution, corresponding control can also be set to the paragraph newly increased, to select paragraph content by the control. To which the embodiment of the present disclosure proposes another document edit method, and Figure 10 is the text of another kind provided by the embodiment of the present disclosure The flow diagram of shelves edit methods.
As shown in Figure 10, on the basis of embodiment as shown in Figure 1, before step 102, can with the following steps are included:
Step 401, during documents editing, if monitoring the first predetermined registration operation, it is default that second is added in a document Control, and determine according to the position that focus is currently located the first location information of third preset control, wherein third preset control For previous control adjacent with the second preset control in documents editing interface.
Wherein, the first predetermined registration operation is to create new theme, and when "enter" key" is triggered, documents editing software can be monitored It is operated to new theme is created.
In the present embodiment, during user carries out documents editing, when user triggers "enter" key", documents editing is soft Part can monitor to create new theme operation, at this point, adding the second preset control before new theme paragraph, and be worked as according to focus The position at preceding place determines the first location information of third preset control.
For example, as shown in Figure 11 (a), the position that focus is currently located between text " goose " and " song ", user this When trigger "enter" key", obtain the document as shown in Figure 11 (b).In Figure 11 (b), the dot in 71 indicates third preset control, Dot in 72 indicates the second preset control newly increased, and 73 indicate first location information.As can be seen that monitoring that first is default Position when operation where focus is the end position of first location information.
Step 402, it monitors whether to get second predetermined registration operation.
Wherein, second predetermined registration operation such as can be the corresponding predetermined registration operation such as shortcut key Tab, Shift+Tab.For example, It is to be retracted level-one to the right that the corresponding predetermined registration operation of tab key, which can be preset, and the corresponding predetermined registration operation of Shift+Tab key is to the left Level-one is promoted, the corresponding predetermined registration operation of space bar is one invisible character of input, etc..
Step 403, if so, the hierarchical information current according to the number of second predetermined registration operation and third preset control, really Hierarchical relationship between fixed second preset control and third preset control.
In the present embodiment, it is added to after the second preset control, if further monitoring second predetermined registration operation, basis The current hierarchical information of the number and third preset control of second predetermined registration operation, determines the second preset control and third preset control Between hierarchical relationship.
By taking Figure 11 (b) as an example, it is to be understood that, after user triggers "enter" key", focus is placed in next line, i.e. " Qu Xiangxiang Row where its song ".At this point, documents editing software, which is got, once " to be retracted to the right if user triggers a tab key The second predetermined registration operation of level-one ", and then the level current according to the number of second predetermined registration operation (primary) and third preset control Information can determine the second preset control rank lower than third preset control, as shown in Figure 11 (c).
The document edit method of the present embodiment, by during documents editing, when monitoring the first predetermined registration operation, in text The second preset control is added in shelves, and determines the first location information of third preset control according to the position that focus is currently located, Wherein, third preset control is the previous control adjacent with the second preset control in documents editing interface, and is monitoring the When two predetermined registration operations, according to the current hierarchical information of the number of second predetermined registration operation and third preset control, determine that second is default Hierarchical relationship between control and third preset control increases new theme during editing document for user as a result, at any time It provides convenience, improves operating efficiency, the user experience is improved.
In order to realize above-described embodiment, the disclosure also proposes a kind of document editing device.
Figure 12 is a kind of structural schematic diagram of document editing device provided by the embodiment of the present disclosure.
As shown in figure 12, the document editing device 50 includes: the first acquisition module 510, the acquisition of determining module 520, second Module 530 and processing module 540.
Wherein, first module 510 is obtained, for obtaining the position that focus is currently located in documents editing interface.
Determining module 520, position and the corresponding location information of each preset control for being currently located according to focus determine The first preset control corresponding with the position that focus is currently located.
Second obtains module 530, for the corresponding relationship according to each preset control and each document block, obtains and presets with first The associated destination document block of control.
Processing module 540 carries out editing and processing to destination document block for the operational order according to acquisition.
In a kind of possible implementation of the embodiment of the present disclosure, processing module 540 is specifically used for basis and is currently triggered Prompt operation key, to destination document block carry out editing and processing;Alternatively, according to the behaviour in currently selected in preset edit list Make option, editing and processing is carried out to destination document block, wherein preset edit list is in the position for determining that focus is currently located When corresponding first preset control, the edit list that is shown in documents editing interface.
By the way that prompt operation key is arranged, Editorial Services is carried out to destination document block according to the prompt operation key being currently triggered Reason, alternatively, edit list is set for preset control, when the position for determining that focus is currently located corresponds to the first preset control, Documents editing shows edit list in interface, according to the option of operation in currently selected in edit list, to destination document block into Edlin processing, hereby it is achieved that improving editorial efficiency, the user experience is improved to the quick editor of document content paragraph.
In a kind of possible implementation of the embodiment of the present disclosure, processing module 540 is also used to default with first in acquisition After the associated destination document block of control, if the operational order obtained is character editing instruction, according to the character editing of acquisition Instruction, the position that focus point is currently located are directed toward character and carry out editing and processing.Hereby it is achieved that the place of partial character in paragraph Reason operation, improves the flexibility of editing and processing.
In a kind of possible implementation of the embodiment of the present disclosure, the operational order of acquisition is mobile document block instruction, then Processing module 540 is specifically used for the releasing position according to focus in documents editing interface, determines target position;By destination document block It is moved to target location.
It is when moving document block instruction, according to the release position of focus in documents editing interface by the operational order in acquisition It sets, determines target position, and then destination document block is moved to target position, user is without executing selection, shearing and gluing as a result, Patch operation, directly dragging document block to be moved can be completed the position adjustment of document segment, saves the operating time, improves Operating efficiency.
In a kind of possible implementation of the embodiment of the present disclosure, the operational order of acquisition is that adjustment document block level refers to It enables, then processing module 540 is specifically used for the adjustment document block layer level command according to acquisition, determines target rank;According to target level The current corresponding level attributes of all document blocks not and in documents editing interface, carry out level adjustment to destination document block.
Further, the first preset control includes child control, then processing module 540 carries out level adjustment to destination document block Later, also according to the hierarchical relationship between destination document block level adjusted and the first preset control and each child control, Jiang Gezi Control carries out level adjustment.
It is when adjusting document block layer level command, to be referred to according to the adjustment document block level of acquisition by the operational order in acquisition It enables, determines target rank, and then according to the current corresponding level attributes of document blocks all in target rank and documents editing interface, Level adjustment is carried out to destination document block, hereby it is achieved that the quick adjustment of each paragraph or so level, improves operating efficiency.
In a kind of possible implementation of the embodiment of the present disclosure, as shown in figure 13, in the base of embodiment as shown in figure 12 On plinth, the document editing device 50 further include:
Adding module 550, for if monitoring the first predetermined registration operation, adding in a document during documents editing Second preset control, and determine according to the position that focus is currently located the first location information of third preset control, wherein third Preset control is previous control adjacent with the second preset control in documents editing interface.
Hierarchical relationship determining module 560 gets second predetermined registration operation for monitoring whether, and is monitoring that second is default When operation, according to the current hierarchical information of the number of second predetermined registration operation and third preset control, determine the second preset control with Hierarchical relationship between third preset control.
By when monitoring the first predetermined registration operation, adding the second preset control in a document during documents editing, and The first location information of third preset control is determined according to the position that focus is currently located, wherein third preset control is document The previous control adjacent with the second preset control in editing interface, and when monitoring second predetermined registration operation, it is pre- according to second If the current hierarchical information of the number and third preset control of operation, determines the layer between the second preset control and third preset control Grade relationship, increases new theme during editing document for user as a result, at any time and provides convenience, and improves operation effect Rate, the user experience is improved.
It should be noted that the aforementioned document for being also applied for the embodiment to the explanation of document edit method embodiment Editing device, realization principle is similar, and details are not described herein again.
The document editing device of the embodiment of the present disclosure, by obtaining the position that focus is currently located in documents editing interface, The position being currently located according to focus and the corresponding location information of each preset control, determination are corresponding with the position that focus is currently located The first default control obtain associated with the first preset control further according to the corresponding relationship of each preset control and each document block Destination document block, and then according to the operational order of acquisition, editing and processing is carried out to destination document block.It is default by setting as a result, Control is corresponding with document block, to be operable to realize the operation to associated document block to preset control, so as to avoid with Family manually selects document segment and is edited, and simplifies the operating procedure of user, saves the operating time, improves document process Efficiency, the user experience is improved.
In order to realize above-described embodiment, the disclosure also proposes a kind of electronic equipment, comprising: processor and memory.Wherein, Processor runs program corresponding with executable program code by reading the executable program code stored in memory, with For realizing document edit method as in the foregoing embodiment.
Below with reference to Figure 14, it illustrates the structural representations for the electronic equipment 800 for being suitable for being used to realize the embodiment of the present disclosure Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Figure 14 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 14, electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.) 801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808 Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804 Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device 809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Figure 14 shows tool There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 809, or from storage device 808 It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining the position that focus is currently located in documents editing interface;According to the focus The position being currently located and the corresponding location information of each preset control determine corresponding with the position that the focus is currently located the One preset control;According to the corresponding relationship of each preset control and each document block, obtain and the associated mesh of the first preset control Mark document block;According to the operational order of acquisition, editing and processing is carried out to the destination document block.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, the One acquisition module is also described as " obtaining the module for the position that focus is currently located in documents editing interface ".
In order to realize above-described embodiment, the disclosure also proposes a kind of non-transient computer readable storage medium, stores thereon There is computer program, which realizes document edit method as in the foregoing embodiment when being executed by processor.
Figure 15 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in figure 15, According to the computer readable storage medium 300 of the embodiment of the present disclosure, it is stored thereon with non-transient computer readable instruction 310.When When the non-transient computer readable instruction 310 is run by processor, the documents editing side of each embodiment of the disclosure above-mentioned is executed The all or part of the steps of method.
In order to realize above-described embodiment, the disclosure also proposes a kind of computer program product, when the computer program product In instruction when being executed by processor, realize document edit method as in the foregoing embodiment.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the disclosure.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the disclosure, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the disclosure It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiment of the disclosure is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the disclosure System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of this disclosure Type.

Claims (11)

1. a kind of document edit method characterized by comprising
Obtain the position that focus is currently located in documents editing interface;
The position being currently located according to the focus and the corresponding location information of each preset control, the determining and current institute of the focus Corresponding first preset control in position;
According to the corresponding relationship of each preset control and each document block, obtain and the associated destination document of the first preset control Block;
According to the operational order of acquisition, editing and processing is carried out to the destination document block.
2. the method as described in claim 1, which is characterized in that the operational order according to acquisition, to the destination document Block carries out editing and processing, comprising:
According to the prompt operation key being currently triggered, editing and processing is carried out to the destination document block;
Alternatively,
According to the option of operation in currently selected in preset edit list, editing and processing is carried out to the destination document block, In, the preset edit list is when the position for determining that the focus is currently located corresponds to the first preset control, described The edit list shown in documents editing interface.
3. the method as described in claim 1, which is characterized in that the operational order of the acquisition is mobile document block instruction;
It is described that editing and processing is carried out to the destination document block, comprising:
According to the releasing position of focus in the documents editing interface, target position is determined;
The destination document block is moved to the target location.
4. the method as described in claim 1, which is characterized in that the operational order of the acquisition is that adjustment document block level refers to It enables;
It is described that editing and processing is carried out to the destination document block, comprising:
According to the adjustment document block layer level command of acquisition, target rank is determined;
According to the current corresponding level attributes of all document blocks in the target rank and the documents editing interface, to the mesh It marks document block and carries out level adjustment.
5. method as claimed in claim 4, which is characterized in that first preset control includes child control;
After the progress level adjustment to the destination document block, further includes:
It, will according to the hierarchical relationship between destination document block level adjusted and first preset control and each child control Each child control carries out level adjustment.
6. method according to any of claims 1-4, which is characterized in that the acquisition is associated with first preset control Destination document block after, further includes:
If the operational order obtained is character editing instruction, instructed according to the character editing of acquisition, institute current to the focus Position be directed toward character carry out editing and processing.
7. method according to any of claims 1-4, which is characterized in that the position that the determination is currently located with the focus Before setting corresponding first preset control, further includes:
During the documents editing, if monitoring the first predetermined registration operation, the second preset control is added within said document, And the first location information of third preset control is determined according to the position that focus is currently located, wherein the third preset control For previous control adjacent with second preset control in the documents editing interface.
8. the method for claim 7, which is characterized in that it is described add the second preset control within said document after, Further include:
It monitors whether to get second predetermined registration operation;
If so, the hierarchical information current according to the number of the second predetermined registration operation and the third preset control, determines institute State the hierarchical relationship between the second preset control and the third preset control.
9. a kind of document editing device characterized by comprising
First obtains module, for obtaining the position that focus is currently located in documents editing interface;
Determining module, position and the corresponding location information of each preset control for being currently located according to the focus, determine with Corresponding first preset control in the position that the focus is currently located;
Second obtains module, for the corresponding relationship according to each preset control and each document block, obtains and the described first default control The associated destination document block of part;
Processing module carries out editing and processing to the destination document block for the operational order according to acquisition.
10. a kind of electronic equipment, which is characterized in that including processor and memory;
Wherein, the processor is run by reading the executable program code stored in the memory can be performed with described The corresponding program of program code, for realizing document edit method such as of any of claims 1-8.
11. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the program quilt Such as document edit method of any of claims 1-8 is realized when processor executes.
CN201811208371.3A 2018-10-17 2018-10-17 Document editing method and device Active CN109445657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811208371.3A CN109445657B (en) 2018-10-17 2018-10-17 Document editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811208371.3A CN109445657B (en) 2018-10-17 2018-10-17 Document editing method and device

Publications (2)

Publication Number Publication Date
CN109445657A true CN109445657A (en) 2019-03-08
CN109445657B CN109445657B (en) 2021-04-16

Family

ID=65546542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811208371.3A Active CN109445657B (en) 2018-10-17 2018-10-17 Document editing method and device

Country Status (1)

Country Link
CN (1) CN109445657B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162761A (en) * 2019-05-24 2019-08-23 北京字节跳动网络技术有限公司 Synergic editing method, device, equipment and the storage medium of document
CN111159982A (en) * 2019-12-24 2020-05-15 中信银行股份有限公司 Document editing method and device, electronic equipment and computer readable storage medium
CN111783402A (en) * 2019-04-02 2020-10-16 珠海金山办公软件有限公司 Method and device for acquiring visual effect of document
CN111985191A (en) * 2020-08-05 2020-11-24 北京同创永益科技发展有限公司 Multi-person collaborative online document editing method and device
CN112784537A (en) * 2019-11-05 2021-05-11 珠海金山办公软件有限公司 Method, device, storage medium and equipment for processing paragraph sequence in electronic document
CN113449501A (en) * 2020-03-24 2021-09-28 腾讯科技(深圳)有限公司 Document editing method and device, computer equipment and storage medium
WO2022184013A1 (en) * 2021-03-01 2022-09-09 北京字跳网络技术有限公司 Document editing method and apparatus, device, and storage medium
CN115098205A (en) * 2022-06-17 2022-09-23 来也科技(北京)有限公司 Control method for realizing IA flow editing interface based on RPA and AI
CN116170527A (en) * 2023-02-16 2023-05-26 南京金阵微电子技术有限公司 Message editing method, message editing device, medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006276912A (en) * 2005-03-25 2006-10-12 Fuji Xerox Co Ltd Device, method, and program for editing document
CN102270193A (en) * 2011-07-24 2011-12-07 珠海金山办公软件有限公司 Device and method for preview setting of selected area in document
WO2013153669A1 (en) * 2012-04-13 2013-10-17 日本デジタルオフィス株式会社 Document generation device, control method and control program therefor, and recording medium having program recorded therein
CN104516674A (en) * 2014-12-19 2015-04-15 网易有道信息技术(北京)有限公司 Word processing method and device
CN105302784A (en) * 2014-07-16 2016-02-03 腾讯科技(深圳)有限公司 Method and system for copying/ cutting and pasting data
CN106484413A (en) * 2016-09-30 2017-03-08 深圳市华傲数据技术有限公司 Document editor and document edit method
CN107783952A (en) * 2016-08-25 2018-03-09 珠海金山办公软件有限公司 A kind of document template method to set up and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006276912A (en) * 2005-03-25 2006-10-12 Fuji Xerox Co Ltd Device, method, and program for editing document
CN102270193A (en) * 2011-07-24 2011-12-07 珠海金山办公软件有限公司 Device and method for preview setting of selected area in document
WO2013153669A1 (en) * 2012-04-13 2013-10-17 日本デジタルオフィス株式会社 Document generation device, control method and control program therefor, and recording medium having program recorded therein
CN105302784A (en) * 2014-07-16 2016-02-03 腾讯科技(深圳)有限公司 Method and system for copying/ cutting and pasting data
CN104516674A (en) * 2014-12-19 2015-04-15 网易有道信息技术(北京)有限公司 Word processing method and device
CN107783952A (en) * 2016-08-25 2018-03-09 珠海金山办公软件有限公司 A kind of document template method to set up and device
CN106484413A (en) * 2016-09-30 2017-03-08 深圳市华傲数据技术有限公司 Document editor and document edit method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783402B (en) * 2019-04-02 2023-08-08 珠海金山办公软件有限公司 Method and device for obtaining visual effect of document
CN111783402A (en) * 2019-04-02 2020-10-16 珠海金山办公软件有限公司 Method and device for acquiring visual effect of document
CN110162761A (en) * 2019-05-24 2019-08-23 北京字节跳动网络技术有限公司 Synergic editing method, device, equipment and the storage medium of document
CN112784537A (en) * 2019-11-05 2021-05-11 珠海金山办公软件有限公司 Method, device, storage medium and equipment for processing paragraph sequence in electronic document
CN111159982A (en) * 2019-12-24 2020-05-15 中信银行股份有限公司 Document editing method and device, electronic equipment and computer readable storage medium
CN113449501A (en) * 2020-03-24 2021-09-28 腾讯科技(深圳)有限公司 Document editing method and device, computer equipment and storage medium
CN113449501B (en) * 2020-03-24 2024-06-11 腾讯科技(深圳)有限公司 Document editing method, device, computer equipment and storage medium
CN111985191A (en) * 2020-08-05 2020-11-24 北京同创永益科技发展有限公司 Multi-person collaborative online document editing method and device
CN111985191B (en) * 2020-08-05 2024-03-29 北京同创永益科技发展有限公司 Multi-user collaborative online document editing method and device
WO2022184013A1 (en) * 2021-03-01 2022-09-09 北京字跳网络技术有限公司 Document editing method and apparatus, device, and storage medium
CN115098205A (en) * 2022-06-17 2022-09-23 来也科技(北京)有限公司 Control method for realizing IA flow editing interface based on RPA and AI
CN116170527A (en) * 2023-02-16 2023-05-26 南京金阵微电子技术有限公司 Message editing method, message editing device, medium and electronic equipment
CN116170527B (en) * 2023-02-16 2023-11-07 南京金阵微电子技术有限公司 Message editing method, message editing device, medium and electronic equipment

Also Published As

Publication number Publication date
CN109445657B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN109445657A (en) Document edit method and device
CN104756060B (en) Cursor control based on gesture
CN104007894B (en) Portable device and its more application operating methods
CN104615675B (en) Converged communication method and terminal
KR101899819B1 (en) Mobile terminal and method for controlling thereof
CN105955617A (en) Gesture for selecting text
EP3002664A1 (en) Text processing method and touchscreen device
CN109933322A (en) A kind of page editing method, apparatus and computer readable storage medium
CN105144071A (en) Device, method, and graphical user interface for managing concurrently open software applications
US8832591B2 (en) Grid display device and grid display method in mobile terminal
CN103425485A (en) Interface edition and operation system and method for ordinary users
CN103135898A (en) System and method for managing book-related items in a mobile device
CN105579947A (en) Apparatus and method for displaying chart in electronic device
CN110362246A (en) Method, electronic equipment and the storage medium of controlling electronic devices
CN105005439A (en) Icon management method and device and mobile terminal
CN110531920A (en) Display methods, device, terminal and the storage medium of side toolbar
WO2017128849A1 (en) Method and device for customizing keyboard layout
JP2016170613A (en) Conference support device, conference support system, conference support program and conference support method
CN112947923A (en) Object editing method and device and electronic equipment
CN110070593A (en) Display methods, device, equipment and the medium of preview picture information
CN108334385A (en) A kind of the user interface skins management method and device of application
CN108958861A (en) Object displaying method, equipment and storage medium based on text control
CN106354378A (en) Method and device for quickly selecting multiple targets
KR101584635B1 (en) Method and system for making index page using content authoring tool
CN109669589A (en) Document edit method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant