CN112784542B - Document editing method and device - Google Patents
Document editing method and device Download PDFInfo
- Publication number
- CN112784542B CN112784542B CN202010431310.4A CN202010431310A CN112784542B CN 112784542 B CN112784542 B CN 112784542B CN 202010431310 A CN202010431310 A CN 202010431310A CN 112784542 B CN112784542 B CN 112784542B
- Authority
- CN
- China
- Prior art keywords
- text
- target text
- box
- target
- user
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003780 insertion Methods 0.000 claims abstract description 41
- 230000037431 insertion Effects 0.000 claims abstract description 41
- 230000002452 interceptive effect Effects 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the application provides a document editing method and device, wherein the method comprises the following steps: receiving a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: inserting a plurality of text boxes into the document page; displaying a text input dialog box corresponding to the continuous insertion instruction; for each target text input by a user in a text input dialog box, when a writing instruction for the target text is received, inserting the text box written with the target text in a document page. By applying the document editing scheme provided by the embodiment of the application, a plurality of text boxes written with different target texts can be quickly inserted into the document page through the text input dialog box, so that the document editing efficiency of a user is improved.
Description
Technical Field
The application relates to the technical field of office software, in particular to a document editing method and device.
Background
When editing a document, a user often needs to insert a plurality of text boxes in a document page and then input different texts in the text boxes, respectively. The current common document editing mode is as follows: the user repeatedly performs: clicking a text box insert button and then entering text in the popped up document box, or copying the inserted and edited text box multiple times and then modifying the text in the copied text box.
However, the document editing mode is complicated, so that a user cannot edit the document rapidly, and the editing efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a document editing method and a document editing device, so that a plurality of text boxes written with different target texts can be quickly inserted into a document page, and the efficiency of editing a document by a user is improved. The specific technical scheme is as follows:
in a first aspect, there is provided a document editing method, the method comprising:
receiving a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: inserting a plurality of text boxes into the document page;
displaying a text input dialog box corresponding to the continuous insertion instruction;
for each target text input by a user in a text input dialog box, when a writing instruction for the target text is received, inserting the text box written with the target text in a document page.
Optionally, for each target text input by the user in the text input dialog box, when receiving a writing instruction for the target text, inserting a text box written with the target text in a document page, including:
judging whether a click command for a preset interactive key is received or not according to each target text input by a user in a text input dialog box; the preset interactive key comprises the following steps: presetting a keyboard key or a writing button arranged in a text input dialog box;
if yes, inserting a text box written with the target text into the document page.
Optionally, inserting a text box written with the target text in the document page includes:
invoking a preset text box to insert the preset text box into a preset position of a document page;
and writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field;
for each target text input by a user in a text input dialog box, when receiving an inserting instruction for the target text, inserting a text box written with the target text in a document page, including:
obtaining each target text input by a user in a target text input field;
for each target text input, obtaining the text box attribute value input by the user in the text box attribute value setting column, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field;
for each target text input by a user in a text input dialog box, when receiving an inserting instruction for the target text, inserting a text box written with the target text in a document page, including:
obtaining each target text input by a user in a target text input field;
for each input target text, obtaining a target text attribute value input by a user in a target text attribute value setting column, and inserting a text box written with the target text and conforming to the target text attribute value into a document page.
In a second aspect, there is provided a document editing apparatus comprising:
the receiving module is used for receiving a continuous inserting instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: inserting a plurality of text boxes into the document page;
the display module is used for displaying a text input dialog box corresponding to the continuous insertion instruction;
and the inserting module is used for inserting the text box written with the target text into the document page when receiving the writing instruction for the target text for each target text input by the user in the text input dialog box.
Optionally, the inserting module includes:
the judging unit is used for judging whether a click command for a preset interactive key is received or not according to each target text input by a user in the text input dialog box; the preset interactive key comprises the following steps: presetting a keyboard key or a writing button arranged in a text input dialog box;
and the first inserting unit is used for inserting a text box written with the target text into the document page when the click command for the preset interactive key is determined to be received.
Optionally, the first inserting unit is specifically configured to:
invoking a preset text box to insert the preset text box into a preset position of a document page;
and writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field; the insert module includes:
a first obtaining unit for obtaining each target text input by the user in the target text input field;
and the second inserting unit is used for obtaining the text box attribute value input by the user in the text box attribute value setting column for each input target text, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field; the insert module includes:
a second obtaining unit for obtaining each target text input by the user in the target text input field;
and a third inserting unit, configured to obtain, for each target text input, a target text attribute value input by the user in the target text attribute value setting column, and insert, in the document page, a text box in which the target text is written and which conforms to the target text attribute value.
In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspects when executing a program stored on a memory.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of any of the first aspects described above.
In the embodiment of the application, the electronic equipment receives a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: a plurality of text boxes are inserted into the document page. And displaying a text input dialog box corresponding to the continuous insertion instruction. For each target text input by a user in a text input dialog box, when a writing instruction for the target text is received, inserting the text box written with the target text in a document page.
In this way, the user can edit the target text directly in the text input dialog box and issue a write instruction for the target text after the editing is completed. After receiving the writing instruction for the target text, the electronic device may insert a text box written with the target text in the document page. And the user can continue editing another target text in the text input dialog box and giving a writing instruction, and then the electronic device can continue inserting the text box written with the other target text in the document page. Thus, the complexity of continuously inserting a plurality of text boxes recorded with different text contents into the document page is reduced, and the efficiency of editing the document by a user is improved.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a document editing method according to an embodiment of the present application;
fig. 2 is an interface schematic diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a document editing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a document editing method which can be applied to electronic equipment such as mobile phones, personal computers and the like, wherein the electronic equipment has the functions of document display and document editing. A user may insert a text box into the document to implement text editing, where the document may be a Microsoft Office PowerPoint (PPT) document, a portable document format (Portable Document Format, PDF) document, a Microsoft Word processor (Microsoft Office Word, word) document, or other types of electronic documents, and embodiments of the present application are not limited.
The following will describe a document editing method according to an embodiment of the present application in detail with reference to a specific implementation, as shown in fig. 1, the specific steps are as follows:
step 101, receiving a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: a plurality of text boxes are inserted into the document page.
Step 102, displaying a text input dialog box corresponding to the continuous insertion instruction.
In the embodiment of the application, a user can click a preset continuous insertion button in a document page to send a continuous insertion instruction. After receiving the continuous insertion instruction, the electronic device displays a text input dialog box at a preset position of the document page. For example, the electronic device may display a text input dialog box directly below the document page of the PPT document that may hover over the document page, or may display a text input dialog box directly below the document page of the PPT document that may hover over the document page. The user may then edit the target text in a text input dialog, and the electronic device may display the corresponding target text in the text input dialog.
The text input dialog box is displayed in the document page, so that the user can edit the target text in the text input dialog box, the situation that the target text can be edited only by selecting the text box when the target text is edited in the text box is avoided, and the user can edit the target text conveniently; the text input dialog box can display target text edited by a user, so that the user can conveniently review the edited text in the text editing process.
Step 103, for each target text input by the user in the text input dialog box, inserting the text box written with the target text in the document page when receiving the writing instruction for the target text.
For example, the user may click a preset continuous insert button in the document page to issue a continuous insert instruction. After receiving the continuous insertion instruction, the electronic device displays a text input dialog box which can be suspended above the document page under the document page. The user can edit the target text 1 in the text input dialog box, and after the editing is finished, a writing instruction for the target text 1 is sent out, and the electronic equipment inserts the text box written with the target text 1 in the document page; the user can then continue editing the target text 2 in the text input dialog box and after the editing is completed, issue a write instruction for the target text 2, and insert the text box written with the target text 2 in the document page by the electronic device; the user may then continue editing the target text 3 in the text editing dialog and, after the editing is completed, issue a write instruction for the target text 3, insert a text box written with the target text 3 in a document page by the electronic device, and so on. In this way, the operations of editing the target text and inserting the text box can be continuously performed.
In the embodiment of the application, the user can edit each target text in the text input dialog box, after the editing is finished, the user can send a writing instruction for the target text to instruct the electronic equipment to insert the text box written with the target text into the document page, and then the user can continue to edit the next target text, thereby realizing the continuous execution of the operations of editing the target text and inserting the text box and simplifying the steps of continuously inserting the text box.
In the embodiment of the application, the electronic equipment receives a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: a plurality of text boxes are inserted into the document page. And displaying a text input dialog box corresponding to the continuous insertion instruction. For each target text input by a user in a text input dialog box, when a writing instruction for the target text is received, inserting the text box written with the target text in a document page.
In this way, the user can edit the target text directly in the text input dialog box and issue a write instruction for the target text after the editing is completed. After receiving the writing instruction for the target text, the electronic device may insert a text box written with the target text in the document page. And the user can continue editing another target text in the text input dialog box and giving a writing instruction, and then the electronic device can continue inserting the text box written with the other target text in the document page. Thus, the complexity of continuously inserting a plurality of text boxes recorded with different text contents into the document page is reduced, and the efficiency of editing the document by a user is further improved.
Optionally, for each target text input by the user in the text input dialog box, when receiving a writing instruction for the target text, inserting a text box written with the target text in a document page, including:
judging whether a click command for a preset interactive key is received or not according to each target text input by a user in a text input dialog box; the preset interactive key comprises the following steps: preset keyboard keys or write buttons provided in the text input dialog.
If yes, inserting a text box written with the target text into the document page.
In the embodiment of the application, when the user finishes editing the text, clicking the preset interactive key to send a clicking instruction to instruct the electronic equipment to insert the text box written with the target text into the document page, so that the text box written with the target text is inserted into the document page, then the user can continue to edit the next target text, the operations of continuously executing the editing target text and inserting the text box are realized, and the steps of continuously inserting the text box are simplified.
Wherein the preset keyboard key can be a certain key in the keyboard, such as an Enter key; or may be a combination key in a keyboard, such as the "Ctrl + Enter" key. The preset interactive key may also be a write button provided in a text box input dialog. The user can instruct the electronic equipment to insert the text box written with the target text into the document page by clicking the preset interactive key, so that the user can quickly and simply instruct the electronic equipment to insert the text box into the document page, the step of editing the text box is simplified, and the document editing efficiency is improved.
Optionally, inserting a text box written with the target text in the document page includes:
and calling a preset text box to insert the preset text box into a preset position of the document page.
And writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
In the embodiment of the application, after receiving the writing instruction of the user for the target text, the electronic equipment can call the preset text box to be inserted into the preset position of the document page. Therefore, the preset position for calling the preset text box to be inserted into the document page is realized, and the step of drawing the text box in the document is simplified. The electronic device can write the target text in the text input dialog box into a preset text box, so that the text box written with the target document is inserted into the preset position of the document page.
The preset position may be a page position having a preset positional relationship with a position where a previous text box is located; or at any preset location on the document page. For example, the preset position may be a position right below the position where the previous text box is located, or may be a position right below the position where the previous text box is located; or may be the position median position of the document page, or may be the upper left position of the document page.
In addition, the insertion sequence of the text boxes can be set to correspond to the insertion positions of the text boxes, and the user can determine the insertion sequence of the text boxes according to the insertion positions of the text boxes, so that the text boxes can be consulted and edited according to the insertion sequence, and the efficiency of editing the document is improved.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field.
For each target text input by a user in a text input dialog box, when receiving an inserting instruction for the target text, inserting a text box written with the target text in a document page, including:
each target text entered by the user in the target text entry field is obtained.
For each target text input, obtaining the text box attribute value input by the user in the text box attribute value setting column, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
In the embodiment of the application, after the text editing is completed, the user can select the attribute of the text box in the attribute setting column of the text box and then send out the writing instruction aiming at the target text, and the electronic equipment can insert the text box which is written with the target text and accords with the attribute value of the text box in the document page; the attribute value of the text box may be a text arrangement format in the text box, a size of the text box, a shape outline of the text box, a shape filling of the text box, a shape effect of the text box, and the like.
Therefore, when the user inserts the text box, the setting of the attribute value of the text box is realized, so that when the text box is displayed in a document page, the attribute value of the text box accords with the user requirement, the step of drawing the text box by the user is simplified, and the efficiency of editing the document by the user is improved.
After the text editing is finished, the user can also send a writing instruction aiming at the target text to instruct the electronic equipment to insert a text box written with the target text into a document page; and then selecting the attribute value of the text box in the text input dialogue box or the text box attribute setting column in the document page to instruct the electronic device to correspondingly adjust the text box written with the target text in the document page.
For example, after the text editing is completed, the user may select to insert a vertical text box with a width of 10 cm and a length of 2 cm and a shape effect of light-emitting effect in the text attribute setting field, and then issue a writing instruction for the target text, and instruct the electronic device to insert a vertical text box with a width of 10 cm and a length of 2 cm and a shape effect of light-emitting effect, in which the target text is written, in the document page. After the text editing is finished, the user can also send a writing instruction aiming at the target text to instruct the electronic equipment to insert a text box written with the target text into a document page; the user then selects the text box's attribute value in the text box attribute value setting field in the text input dialog as: the outline of the shape is black, the shape is filled with non-filled colors, and the electronic device can correspondingly adjust the format of the text box written with the target text in the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field.
For each target text input by a user in a text input dialog box, when receiving an inserting instruction for the target text, inserting a text box written with the target text in a document page, including:
each target text entered by the user in the target text entry field is obtained.
For each input target text, obtaining a target text attribute value input by a user in a target text attribute value setting column, and inserting a text box written with the target text and conforming to the target text attribute value into a document page.
In the embodiment of the application, after the text editing is completed, a user can select the target text attribute in the target text attribute setting column; and then issuing a write instruction for the target text. The electronic device may insert a text box in the document page in which the target text is written and which corresponds to the target text attribute value. The target text attribute value may be a text font, a text size, a font color, etc.
Therefore, when the user inserts the text box, the setting of the attribute value of the target text is realized, so that when the text box is displayed in the document page, the attribute value of the target text accords with the attribute of the target text, the step of editing the target text by the user is simplified, and the efficiency of editing the document by the user is improved.
After the text editing is finished, the user can also send a writing instruction aiming at the target text to instruct the electronic equipment to insert a text box written with the target text into a document page; and then selecting a target text attribute value in a target text attribute value setting column in the text input dialog box or a target text attribute setting column in the document page to instruct the electronic device to correspondingly adjust the format of target characters in the text box.
For example, fig. 2 is an interface schematic diagram of an electronic device according to an embodiment of the present application. As shown in fig. 2, the interface of the electronic device displays successive insert buttons, a document page, and a text input dialog box hovering over the document page. Wherein, the document page inserts a text box written with "AAAAAA" and a text box written with "BBBB". In addition, the text input dialog box includes: a text box attribute setting field, a target text attribute setting field, a write button, and a target text "CCC".
As shown in fig. 2, the user may click a continuous insert button in a document page to issue a continuous insert instruction, and the electronic device may display a corresponding text input dialog box in a lower right position in the document page in response to the continuous insert instruction. The user may then edit the target text in the text input dialog box, e.g., the target text may be edited first: AAAAAA, clicking a target text attribute setting column in the text input dialog box, setting a font as Song Ti, clicking a write button in the text input dialog box, and sending a write instruction; and the electronic equipment responds to the writing instruction, and inserts a text box written with the target text AAAAAA at the upper left position of the document page.
Next, the electronic device can continue editing the target text in the text input dialog: BBBBBB clicks the text box attribute setting column in the text input dialog box, selects the text box attribute value as a vertical text box, clicks a preset keyboard key 'Enter' key, and sends a writing instruction; in response to the writing instruction, the electronic device inserts a vertical text box written with the target text "BBBB" at a position right below the text box written with the target text "AAAAAA".
The editing of the target text in the text input dialog box then continues, as is the text "CCC" in the text input dialog box in fig. 2. Therefore, when the user finishes editing the text, the user can send a writing instruction to instruct the electronic equipment to insert the text box written with the target text into the document page, so that the text box written with the target text is inserted into the document page, then the user can continue editing the next target text, the operation of continuously executing the editing target text and inserting the text box is realized, and the step of continuously inserting the text box is simplified.
Based on the same technical concept, the embodiment of the application also provides a document editing device, as shown in fig. 3, which comprises:
a receiving module 301, configured to receive a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: a plurality of text boxes are inserted into the document page.
The display module 302 is configured to display a text input dialog box corresponding to the continuous insertion instruction.
The inserting module 303 is configured to insert, for each target text input by the user in the text input dialog box, a text box written with the target text on a document page when a writing instruction for the target text is received.
In the embodiment of the application, the electronic equipment receives a continuous insertion instruction sent by a user; wherein, the continuous insertion instruction is used for indicating: a plurality of text boxes are inserted into the document page. And displaying a text input dialog box corresponding to the continuous insertion instruction. For each target text input by a user in a text input dialog box, when a writing instruction for the target text is received, inserting the text box written with the target text in a document page.
In this way, the user can edit the target text directly in the text input dialog box and issue a write instruction for the target text after the editing is completed. After receiving the writing instruction for the target text, the electronic device may insert a text box written with the target text in the document page. And the user can continue editing another target text in the text input dialog box and giving a writing instruction, and then the electronic device can continue inserting the text box written with the other target text in the document page. Thus, the complexity of continuously inserting a plurality of text boxes recorded with different text contents into the document page is reduced, and the efficiency of editing the document by a user is improved.
Optionally, the inserting module 303 includes:
the judging unit is used for judging whether a click command for a preset interactive key is received or not according to each target text input by a user in the text input dialog box; the preset interactive key comprises the following steps: preset keyboard keys or write buttons provided in the text input dialog.
And the first inserting unit is used for inserting a text box written with the target text into the document page when the click command for the preset interactive key is determined to be received.
Optionally, the first inserting unit is specifically configured to:
and calling a preset text box to insert the preset text box into a preset position of the document page.
And writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field; the insertion module 303 includes:
and the first obtaining unit is used for obtaining each target text input by the user in the target text input field.
And the second inserting unit is used for obtaining the text box attribute value input by the user in the text box attribute value setting column for each input target text, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field; the insertion module 303 includes:
and the second obtaining unit is used for obtaining each target text input by the user in the target text input field.
And a third inserting unit, configured to obtain, for each target text input, a target text attribute value input by the user in the target text attribute value setting column, and insert, in the document page, a text box in which the target text is written and which conforms to the target text attribute value.
The embodiment of the application also provides an electronic device, as shown in fig. 4, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement any of the method steps in the above-described method embodiments for editing a document when executing a program stored in the memory 403.
The communication bus mentioned by the network device may be a peripheral component interconnect standard (english: peripheral Component Interconnect, abbreviated: PCI) bus or an extended industry standard architecture (english: extended Industry Standard Architecture, abbreviated: EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the network device and other devices.
The Memory may include random access Memory (Random Access Memory, abbreviated as RAM) or nonvolatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it may also be a digital signal processor (English: digital Signal Processing; DSP; for short), an application specific integrated circuit (English: application Specific Integrated Circuit; ASIC; for short), a Field programmable gate array (English: field-Programmable Gate Array; FPGA; for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Based on the same technical idea, the embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, which when executed by a processor, implements any of the method steps of the above-described embodiments of the document editing method.
Based on the same technical idea, an embodiment of the present application also provides a computer program product containing instructions, which when run on a computer, cause the computer to perform any of the method steps of the above-described document editing method embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, electronic devices, computer readable storage media and computer program product embodiments, the description is relatively simple as it is substantially similar to method embodiments, as relevant points are found in the partial description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (10)
1. A method of editing a document, the method comprising:
receiving a continuous insertion instruction sent by a user; wherein the successive insert instruction is to instruct: inserting a plurality of text boxes into the document page;
displaying a text input dialog box corresponding to the continuous insertion instruction;
for each target text input by a user in the text input dialog box, when a writing instruction for the target text is received, inserting a text box written with the target text into the document page, wherein the process of receiving the writing instruction for each target text is the following loop process: and after the text input dialog box receives an input target text, receiving a writing instruction aiming at the target text.
2. The method according to claim 1, wherein the inserting, for each target text entered by the user in the text input dialog box, the text box in which the target text is written in the document page when a writing instruction for the target text is received, includes:
judging whether a click command for a preset interactive key is received or not according to each target text input by a user in the text input dialog box; wherein, preset interactive key includes: presetting a keyboard key or a writing button arranged in the text input dialog box;
if yes, inserting a text box written with the target text into the document page.
3. The method according to claim 2, wherein inserting a text box written with the target text in the document page comprises:
invoking a preset text box to insert into a preset position of the document page;
and writing the target text in the text input dialogue box into the preset text box to obtain the text box written with the target text.
4. The method of claim 1, wherein the text input dialog box comprises: a target text input field and a text box attribute value setting field;
the method for inserting the text box written with the target text into the document page when receiving the inserting instruction for the target text for each target text input by a user in the text input dialog box comprises the following steps:
obtaining each target text input by a user in the target text input field;
and for each input target text, obtaining the text box attribute value input by the user in the text box attribute value setting column, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
5. The method of claim 1, wherein the text input dialog box comprises: a target text input field and a target text attribute value setting field;
the method for inserting the text box written with the target text into the document page when receiving the inserting instruction for the target text for each target text input by a user in the text input dialog box comprises the following steps:
obtaining each target text input by a user in the target text input field;
and for each input target text, obtaining a target text attribute value input by a user in the target text attribute value setting column, and inserting a text box written with the target text and conforming to the target text attribute value into the document page.
6. A document editing apparatus, the apparatus comprising:
the receiving module is used for receiving a continuous inserting instruction sent by a user; wherein the successive insert instruction is to instruct: inserting a plurality of text boxes into the document page;
the display module is used for displaying a text input dialog box corresponding to the continuous insertion instruction;
the inserting module is used for inserting a text box written with the target text into the document page when receiving the writing instruction of the target text for each target text input by a user in the text input dialog box, wherein the process of receiving the writing instruction of each target text is the following loop process: and after the text input dialog box receives an input target text, receiving a writing instruction aiming at the target text.
7. The apparatus of claim 6, wherein the insertion module comprises:
the judging unit is used for judging whether a click command for a preset interactive key is received or not according to each target text input by a user in the text input dialog box; wherein, preset interactive key includes: presetting a keyboard key or a writing button arranged in the text input dialog box;
and the first inserting unit is used for inserting a text box written with the target text into the document page when the click command aiming at the preset interactive key is determined to be received.
8. The device according to claim 7, wherein the first insertion unit is specifically configured to:
invoking a preset text box to insert into a preset position of the document page;
and writing the target text in the text input dialogue box into the preset text box to obtain the text box written with the target text.
9. The apparatus of claim 6, wherein the text input dialog box comprises: a target text input field and a text box attribute value setting field; the insertion module includes:
a first obtaining unit, configured to obtain each target text input by a user in the target text input field;
and the second inserting unit is used for obtaining the text box attribute value input by the user in the text box attribute value setting column for each input target text, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
10. The apparatus of claim 6, wherein the text input dialog box comprises: a target text input field and a target text attribute value setting field; the insertion module includes:
a second obtaining unit, configured to obtain each target text input by a user in the target text input field;
and a third inserting unit, configured to obtain, for each target text input, a target text attribute value input by the user in the target text attribute value setting column, and insert, in the document page, a text box in which the target text is written and which conforms to the target text attribute value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010431310.4A CN112784542B (en) | 2020-05-20 | 2020-05-20 | Document editing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010431310.4A CN112784542B (en) | 2020-05-20 | 2020-05-20 | Document editing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112784542A CN112784542A (en) | 2021-05-11 |
CN112784542B true CN112784542B (en) | 2023-11-28 |
Family
ID=75750042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010431310.4A Active CN112784542B (en) | 2020-05-20 | 2020-05-20 | Document editing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112784542B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419526A (en) * | 2007-10-26 | 2009-04-29 | 捷讯研究有限公司 | Text selection using a touch sensitive screen of a handheld mobile communication device |
CN101706771A (en) * | 2009-11-06 | 2010-05-12 | 北京理工大学 | Template-based intelligent format checking method aiming at Word document |
CN104813312A (en) * | 2012-08-17 | 2015-07-29 | 微软公司 | Stateful editing of rich content using a basic text box |
CN108463822A (en) * | 2016-04-25 | 2018-08-28 | 谷歌有限责任公司 | Dynamic using visual style for the content element of information resources renders interaction statistics data |
CN110688191A (en) * | 2019-10-12 | 2020-01-14 | 苏州思必驰信息科技有限公司 | Question and answer generating method and system for voice conversation platform |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6986105B2 (en) * | 2003-01-30 | 2006-01-10 | Vista Print Limited | Methods employing multiple clipboards for storing and pasting textbook components |
JP2007079858A (en) * | 2005-09-13 | 2007-03-29 | Canon Inc | Document compiling method and device |
US20130132813A1 (en) * | 2011-06-27 | 2013-05-23 | Adobe Systems Incorporated | User interface element on mobile device for comb text field inputs |
-
2020
- 2020-05-20 CN CN202010431310.4A patent/CN112784542B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419526A (en) * | 2007-10-26 | 2009-04-29 | 捷讯研究有限公司 | Text selection using a touch sensitive screen of a handheld mobile communication device |
CN101706771A (en) * | 2009-11-06 | 2010-05-12 | 北京理工大学 | Template-based intelligent format checking method aiming at Word document |
CN104813312A (en) * | 2012-08-17 | 2015-07-29 | 微软公司 | Stateful editing of rich content using a basic text box |
CN108463822A (en) * | 2016-04-25 | 2018-08-28 | 谷歌有限责任公司 | Dynamic using visual style for the content element of information resources renders interaction statistics data |
CN110688191A (en) * | 2019-10-12 | 2020-01-14 | 苏州思必驰信息科技有限公司 | Question and answer generating method and system for voice conversation platform |
Also Published As
Publication number | Publication date |
---|---|
CN112784542A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109933322B (en) | Page editing method and device and computer readable storage medium | |
US9880978B2 (en) | System and method for selective control of zoom adjustments in an electronic publication | |
US9317186B2 (en) | Document publishing model | |
KR100981653B1 (en) | Input Method For A Numerical Formula Using A Medium Of Computing | |
US20140115435A1 (en) | Creating and publishing different versions of documents | |
CA2808949A1 (en) | Method and apparatus for correcting document formatting based on source document | |
US11567635B2 (en) | Online collaborative document processing method and device | |
CN108052212A (en) | A kind of method, terminal and computer-readable medium for inputting word | |
KR20150068672A (en) | Method and apparatus for generating a user costumized menu interface | |
CN114072787A (en) | System and method for fast data entry to facilitate document review | |
CN112784542B (en) | Document editing method and device | |
CN111553130A (en) | Chapter title style conversion method and device, electronic equipment and storage medium | |
CN109992759B (en) | Table object editing method and device, electronic equipment and storage medium | |
US20160320948A1 (en) | Document and object manipulation | |
JP2001022873A (en) | Customizing processor and program recording medium therefor | |
CN114253536A (en) | Calling method of interface design component, terminal device and readable storage medium | |
KR102158544B1 (en) | Method and system for supporting spell checking within input interface of mobile device | |
CN111563364B (en) | Chapter title style conversion method and device, electronic equipment and storage medium | |
KR101977208B1 (en) | Document editor and method using the same | |
CN112784526A (en) | Document page adjusting method and device | |
CN111897661A (en) | Method and device for copying cell contents in spreadsheet and electronic equipment | |
CN112183021B (en) | Digital generation method and device | |
CN113553798B (en) | Seal insertion method and device, electronic equipment and storage medium | |
CN112783400B (en) | Document content selection method and device, electronic equipment and storage medium | |
JP5563706B1 (en) | Document file generation apparatus, document file generation method, and document file generation program |
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 |