CN112783396A - Object format modification method and device - Google Patents
Object format modification method and device Download PDFInfo
- Publication number
- CN112783396A CN112783396A CN202010512307.5A CN202010512307A CN112783396A CN 112783396 A CN112783396 A CN 112783396A CN 202010512307 A CN202010512307 A CN 202010512307A CN 112783396 A CN112783396 A CN 112783396A
- Authority
- CN
- China
- Prior art keywords
- format
- target
- down menu
- determining
- formats
- 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
Links
Images
Classifications
-
- 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
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- 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/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a method and a device for modifying an object format, wherein the method comprises the following steps: determining a designated object in the electronic document; receiving a first enabling instruction for a format brush function in an electronic document; generating a format brush pull-down menu including a format of the specified object based on the first enabling instruction; determining a target format from formats included in the format brush pull-down menu; the target format is extended to a first target object in the electronic document. By the method, the target format used on the first target object can be adjusted according to different application scenes or different requirements, so that the flexibility of the format brush function is improved, and the modification efficiency and the modification accuracy of the target format are improved. In addition, after the target format is used on the first target object, the user does not need to readjust the format of the first target object, and the office efficiency and the user experience are improved.
Description
Technical Field
The present invention relates to the field of electronic document technology, and in particular, to a method and an apparatus for modifying an object format.
Background
The application of a formatter function in an electronic document is extremely common. By adopting the format brush function, the format of the designated object can be quickly extended to the target object, and the office efficiency is improved.
However, at present, format modification is performed on a target object by using a format brush function, all formats of a specified object are extended to the target object, the extended formats cannot be adjusted based on an application scene, and the flexibility of the format brush function is poor. In addition, if a format that is not required to be extended by the target object among all formats of the designated object is extended to the target object, the format of the target object also needs to be readjusted, which results in low office efficiency and poor user experience.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for modifying an object format, so as to improve the efficiency and the accuracy of modifying the object format and improve the office efficiency and the user experience. The specific technical scheme is as follows:
in order to achieve the above object, an embodiment of the present invention provides a method for modifying an object format, where the method includes:
determining a designated object in the electronic document;
receiving a first enabling instruction for a format brush function in the electronic document;
generating a format brush drop-down menu including a format of the specified object based on the first enabling instruction;
determining a target format from formats included in the format drop-down menu;
and extending the target format to a first target object in the electronic document.
Optionally, the step of generating a format brush pull-down menu including the format of the specified object based on the first enabling instruction includes:
acquiring the use frequency of each format of the specified object based on the first enabling instruction;
sorting the formats of the designated objects according to the sequence of the use frequency from high to low to obtain a sorting result;
and generating a format brush pull-down menu comprising the sequencing result.
Optionally, the format brush drop-down menu includes a full selection option;
the step of determining the target format from the formats included in the format drop-down menu includes:
receiving a first selection instruction aiming at the full selection option;
and determining all formats included in the format brush pull-down menu as target formats based on the first selection instruction.
Optionally, the step of determining a target format from the formats included in the format drop-down menu includes:
if a second selection instruction aiming at the format included by the format drop-down menu is received within a preset time length, determining that the format pointed by the second selection instruction is a target format;
and if the second selection instruction is not received after the preset time length, determining all formats included in the format pull-down menu as target formats.
Optionally, after determining the designated object, the method further includes:
receiving a second enabling instruction for a format brush function in the electronic document;
and based on the second enabling instruction, extending a preset default format included in the format of the specified object to a second target object in the electronic document.
In order to achieve the above object, an embodiment of the present invention further provides an apparatus for modifying an object format, where the apparatus includes:
the first determining module is used for determining a specified object in the electronic document;
the first receiving module is used for receiving a first enabling instruction aiming at the format brush function in the electronic document;
a generating module, configured to generate a format brush pull-down menu including a format of the specified object based on the first enabling instruction;
the second determining module is used for determining a target format from formats included in the format drop-down menu;
and the first delay module is used for delaying the target format to a first target object in the electronic document.
Optionally, the generating module includes:
the obtaining sub-module is used for obtaining the use frequency of each format of the specified object based on the enabling instruction;
the ordering submodule is used for ordering the formats of the specified objects according to the sequence of the use frequency from high to low to obtain an ordering result;
and the generation submodule is used for generating a format brush pull-down menu comprising the sequencing result.
Optionally, the format brush drop-down menu includes a full selection option;
the second determining module is specifically configured to:
receiving a first selection instruction aiming at the full selection option;
and determining all formats included in the format brush pull-down menu as target formats based on the first selection instruction.
Optionally, the second determining module includes:
the first determining submodule is used for determining that the format pointed by the second selecting instruction is the target format if the second selecting instruction aiming at the format included by the format brush pull-down menu is received within the preset time length;
and the second determining submodule is used for determining all formats included in the format drop-down menu as target formats if the second selection instruction is not received after the preset time length.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a second enabling instruction for the format brush function in the electronic document after the specified object is determined;
and the second delaying module is used for delaying the preset default format included in the format of the specified object to a second target object in the electronic document based on the second enabling instruction.
In order to achieve the above object, an embodiment of the present invention further provides an electronic device, where the electronic device includes 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 any of the above method steps when executing a program stored in the memory.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above method steps.
To achieve the above object, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform any of the above method steps.
The embodiment of the invention has the following beneficial effects:
the method and the device for modifying the object format provided by the embodiment of the invention can acquire the format of the specified object in the electronic document, generate the format brush pull-down menu of the format of the specified object based on the format of the specified object, determine the target format in the formats included in the format brush pull-down menu, and finally delay the target format to the first target object in the electronic document. In the embodiment of the invention, the target format is determined in the formats included in the format brush pull-down menu, the target format used on the first target object can be adjusted according to different application scenes or different requirements, and the flexibility of the format brush function is improved, so that the modification efficiency and the accuracy of the object format are improved. In addition, after the target format is used on the first target object, the user does not need to readjust the format of the first target object, and the office efficiency and the user experience are improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for modifying an object format according to an embodiment of the present invention;
FIG. 2a is a schematic view of a display of an electronic document;
FIG. 2b is a diagram illustrating a modified object format of the electronic document shown in FIG. 2a using a format brush function;
FIG. 2c is a diagram illustrating the object format of the electronic document shown in FIG. 2b after being modified again;
FIG. 3 is a flowchart of a method for generating a style brush pull-down menu according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for determining a target format according to an embodiment of the present invention;
FIG. 5 is another flowchart of a method for modifying an object format according to an embodiment of the present invention;
FIG. 6 is a partial effect diagram of modification of the object format of the electronic document shown in FIG. 2a by a method for determining a target format according to an embodiment of the present invention;
FIG. 7 is a partial flow chart of a method for modifying an object format according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for modifying an object format according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, when the format of a target object is modified by using a format brush function, all formats of a specified object can be extended to the target object, and the formats extended to the target object cannot be adjusted according to an application scene, so that the flexibility of the format brush function is poor. In addition, if a format that is not required to be deferred by a target object among all formats of a designated object is deferred to the target object, the format of the target object also needs to be readjusted.
As shown in fig. 2a, the third option (option numbered C) in the first topic is a designated object, the fourth option (option numbered D) in the second topic is a target object, and when all formats on the third option in the first topic are extended to the fourth option in the second topic, the number of the fourth option is changed to E, as shown in fig. 2 b. At this time, the user needs to further modify the format of the target object, and modify the number of the fourth option to D, so as to obtain the finally required content, as shown in fig. 2 c.
The object format is modified in the mode, so that the office efficiency is low, and the user experience is poor. In order to improve the modification efficiency and accuracy of the object format and improve the office efficiency and the user experience, the embodiment of the invention provides a method and a device for modifying the object format. The following describes a method and an apparatus for modifying an object format according to an embodiment of the present invention in detail.
As shown in fig. 1, fig. 1 is a flowchart of a method for modifying an object format according to an embodiment of the present invention, where the method can be applied to an electronic device such as a mobile terminal, a personal computer, a tablet computer, etc. having a function of processing an electronic document. For ease of understanding, the following description will be made with an electronic apparatus as an execution subject. The method comprises the following steps.
In step 101, a specified object in an electronic document is determined.
The designated object may be any object containing a format required by the user. The object may be text, a text box, a picture or a table, etc. in an electronic document.
In the embodiment of the invention, the specified object is taken as the text in the electronic document as an example, a user can select the text containing the required format by dragging the cursor, and the electronic equipment determines the text selected by the user as the specified object after receiving the operation of the text selected by the user. The user can also place the cursor at the position of the text containing the required format in the electronic document, and after the electronic equipment detects the position of the cursor, the whole line of text at the position of the cursor is determined as the specified object.
In the embodiment of the invention, after the specified object is determined, the user can click and select the format brush function in the electronic document function bar, namely, a first enabling instruction aiming at the format brush function in the electronic document is sent out, so that the electronic equipment receives the first enabling instruction.
In the embodiment of the present invention, the electronic document may be provided with a function button of the first enabling instruction of the formatter function, such as a button indicated by a rectangular frame 2 shown in fig. 2 a. The electronic equipment generates a first enabling instruction when detecting that a user clicks a function button of the first enabling instruction.
After the electronic equipment acquires the format of the designated object, the format brush pull-down menu is generated according to the format of the designated object, and the format brush pull-down menu comprises format option boxes of a plurality of formats of the designated object. When the types of the designated objects are different, the format types of the designated objects are also different. For example, when the designated object is text in an electronic document, the format of the designated object may include font, font size, bold font, italic, font color, alignment, item number, item symbol, and other formats; when the designated object is a picture in the electronic document, the format of the designated object may include picture color, picture type, picture frame, picture size and other formats; when the designated object is a table in the electronic document, the format of the designated object may include the formats of a table border, a table shading, a cell size, a cell margin and the like.
In one embodiment, as shown in FIG. 3, step 103 may be subdivided into the following steps.
And step 1031, based on the first enabling instruction, obtaining the use frequency of each format of the specified object.
In the embodiment of the invention, the use frequency of each format of the specified object is obtained, namely, the times of selecting each format by the user in the preset historical time period is obtained. The more times that a user selects a certain format in a preset historical time period, the higher the use frequency of the format in the preset historical time period; the less the number of times the user selects a certain format within the preset history time period, the lower the frequency of use of the format within the preset history time period. The preset historical time period may be set according to an actual situation, and the preset historical time period may be one year or one month, which is not specifically limited in the embodiment of the present invention.
And 1032, sorting the formats of the specified objects according to the sequence of the use frequency from high to low to obtain a sorting result.
In the embodiment of the invention, after the use frequency of each format of the designated object is obtained, the electronic equipment sorts the formats of the designated object according to the sequence of the use frequencies from high to low. That is, the higher the frequency of use of the format, the more advanced the arrangement position of the format in the sorting result. Taking the format of the designated object including font, font size, bold and italic as an example, if the usage frequency of the font is 60%, the usage frequency of the font size is 75%, the usage frequency of the bold is 40%, and the usage frequency of the italic is 35%, the ordering result of the format of the designated object from top to bottom is: font size, font style, bold, italics.
In one embodiment, the electronic device may further arrange the format with the usage frequency higher than the preset frequency threshold at the front position of the format brush pull-down menu without distinction, and arrange the format with the usage frequency lower than or equal to the preset frequency threshold at the rear position of the format brush pull-down menu without distinction, so as to obtain the sorting result. The preset frequency threshold value can be set according to actual conditions. For example, taking the preset frequency threshold as 50%, the format of the designated object includes font, font size, bold font and italic, and if the usage frequency of the font is 60%, the usage frequency of the font size is 75%, the usage frequency of the bold font is 40%, and the usage frequency of the italic is 35%, the ordering result of the format of the designated object from top to bottom may be: font size, font style, bold, italic; the ordering result of the format of the designated object from top to bottom can also be: font, font size, italics, bold.
In the embodiment of the invention, the formats are sequenced according to the use frequency of the format of the specified object to obtain a sequencing result, and the format pull-down menu of the specified object is generated according to the sequencing result. The format with higher use frequency is positioned in front of the format drop-down menu, so that the user can quickly see and select the format with higher use frequency, and the office efficiency and the user experience are improved.
And 104, determining a target format from the formats included in the format brush pull-down menu.
Wherein the target format is the format that the user wants to apply to the target object. The user can select a format to be extended to the target object from formats included in the format drop-down menu, and after the electronic equipment receives a format selection instruction of the user, the format selected by the user is determined to be the target format.
In one embodiment, to allow the user to more quickly determine the target format, the format brush drop-down menu may include a full selection option, as shown in FIG. 4, and step 104 may be subdivided into the following steps.
In the embodiment of the invention, the full selection option represents that all formats in the pull-down menu are brushed by the format of the specified object. When a user needs to apply all formats of a specified object to a target object, a full selection option in a format brush pull-down menu of the specified object can be directly selected, that is, a first selection instruction for the full selection option is sent, the electronic equipment receives the first selection instruction for the full selection option, then all formats included in the format brush pull-down menu are determined as target formats, and all formats are extended to the target object.
In one embodiment, as shown in FIG. 5, step 104 may be further subdivided into the following steps.
The preset time period may be set according to an actual situation, and may be 5 minutes or 10 minutes, which is not specifically limited in the embodiment of the present invention. The format pointed by the second selection instruction is the format selected by the user in the pull-down menu of the specified object when the user sends the second selection instruction.
In the embodiment of the invention, after the format drop-down menu is generated, the electronic equipment detects whether a second selection instruction aiming at the format included by the format drop-down menu is received within a preset time length. If a second selection instruction aiming at the format included in the format brush pull-down menu is received within the preset time length, the electronic equipment determines that the format pointed by the second selection instruction is the target format.
In the embodiment of the invention, in order to further improve the office efficiency of the user, when the user selects the format which is required to be extended to the target object in the format brush pull-down menu within the preset time length, namely a second selection instruction aiming at the selected format is sent out, and after the electronic equipment receives the second selection instruction, the format selected by the user is determined to be the target format. When the user does not select the format in the pull-down menu of the format brush after the preset time length, namely the second selection instruction is not sent out, and the electronic equipment does not receive the second selection instruction after the preset time length, all the formats in the pull-down menu are determined as the target formats.
In the embodiment of the invention, the target format is determined in the formats included in the format brush pull-down menu, the target format used on the first target object can be adjusted according to different application scenes or different requirements, and the flexibility of the format brush function is improved, so that the modification efficiency and the accuracy of the object format are improved. In addition, after the target format is used on the first target object, the user does not need to readjust the format of the first target object, and the office efficiency and the user experience are improved.
Still taking fig. 2a as an example, the object format in fig. 2a is modified by using the method provided by the embodiment of the present invention. The third option (option numbered C) in the first topic is a designated object, and the fourth option (option numbered D) in the second topic is a target object. The electronic device generates and displays a format brush pull-down menu according to the format of the third option in the first question, as shown in fig. 6. The electronic equipment receives a selection instruction of a user for the format (font, font size and bold) in the format brush pull-down menu, and determines the format (font, font size and bold) as a target format. And then, the target format is extended to the fourth option of the second question, because the target format does not contain the item number, the target format in the format of the fourth option of the second question is the same as the target format in the format of the third option in the first question, and the number of the fourth option of the second question is still D, as shown in fig. 2 c. At this time, the user does not need to further adjust the format of the fourth option of the second topic, so that the modification efficiency and accuracy of the object format are improved, and the office efficiency and the user experience are improved.
In an embodiment, after determining the specified object, as shown in fig. 7, the method for modifying an object format according to an embodiment of the present invention may further include the following steps.
In the embodiment of the present invention, a function button of the second enabling instruction of the formatter function may be set in the electronic document, such as a button indicated by a rectangular frame 1 shown in fig. 2 a. And when the electronic equipment detects that the user clicks the function button operation of the second enabling instruction, generating the second enabling instruction.
The second enabling instruction is an enabling instruction for enabling a preset default option, the preset default format can be set in advance according to actual requirements, all formats of the specified object can be set as the preset default format, and a format with high use frequency of a user can also be set as the preset default format. In the embodiment of the present invention, the default format may be set in other manners, which is not limited in particular. The second target object may be the same as or different from the first target object, and this is not specifically limited in this embodiment of the present invention.
In the embodiment of the invention, when a user wants to delay the preset default format to the second target object, the user sends a second enabling instruction for the format brush function in the electronic document, the electronic equipment receives the second enabling instruction for the format brush function in the electronic document, and then the format contained in the preset default option is delayed to the second target object, so that the user does not need to select the target format from the pull-down menu of the specified object, and the office efficiency is further improved.
In order to improve the modification efficiency and accuracy of the object format and improve the office efficiency and the user experience, an embodiment of the present invention provides a modification apparatus for an object format, as shown in fig. 8, where the apparatus includes:
a first determination module 801 for determining a specified object in an electronic document.
A first receiving module 802, configured to receive a first enabling instruction for a format brush function in an electronic document.
A generating module 803, configured to generate a format brush pull-down menu including a format of the specified object based on the first enabling instruction.
A second determining module 804, configured to determine the target format from the formats included in the format drop-down menu.
A first relay module 805 for relaying the target format to a first target object in the electronic document.
In one embodiment, the generating module 803 may include:
and the acquisition sub-module is used for acquiring the use frequency of each format of the specified object based on the enabling instruction.
And the sequencing submodule is used for sequencing the formats of the specified objects according to the sequence of the use frequency from high to low to obtain a sequencing result.
And the generation submodule is used for generating a format brush pull-down menu comprising the sequencing result.
In one embodiment, the formatter drop-down menu may include a full selection option.
The second determining module 804 may specifically be configured to:
a first selection instruction for a full selection option is received.
And determining all formats included in the format brush pull-down menu as target formats based on the first selection instruction.
In one embodiment, the second determining module 804 may include:
and the first determining submodule is used for determining that the format pointed by the second selection instruction is the target format if the second selection instruction aiming at the format included by the format brush pull-down menu is received within the preset time length.
And the second determining submodule is used for determining all formats included in the format brush pull-down menu as target formats if a second selection instruction is not received after the preset time length.
In one embodiment, the apparatus may further include:
and the second receiving module is used for receiving a second enabling instruction aiming at the format brush function in the electronic document after the specified object is determined.
And the second delaying module is used for delaying the preset default format included in the format of the specified object to a second target object in the electronic document based on the second enabling instruction.
In order to improve the modification efficiency and accuracy of the object format and improve the office efficiency and the user experience, an embodiment of the present invention further provides an electronic device, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the steps of the method for modifying any object format described above when executing the program stored in the memory 903.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for modifying an object format.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for modifying the format of any one of the objects in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized 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, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the 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)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device, the storage medium and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to what is described in the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (12)
1. A method for modifying an object format, the method comprising:
determining a designated object in the electronic document;
receiving a first enabling instruction for a format brush function in the electronic document;
generating a format brush drop-down menu including a format of the specified object based on the first enabling instruction;
determining a target format from formats included in the format drop-down menu;
and extending the target format to a first target object in the electronic document.
2. The method of claim 1, wherein the step of generating a format brush pull-down menu including a format of the specified object based on the first enabling instruction comprises:
acquiring the use frequency of each format of the specified object based on the first enabling instruction;
sorting the formats of the designated objects according to the sequence of the use frequency from high to low to obtain a sorting result;
and generating a format brush pull-down menu comprising the sequencing result.
3. The method of claim 1, wherein the format brush drop down menu includes a full selection option;
the step of determining the target format from the formats included in the format drop-down menu includes:
receiving a first selection instruction aiming at the full selection option;
and determining all formats included in the format brush pull-down menu as target formats based on the first selection instruction.
4. The method of claim 1, wherein the step of determining a target format from the formats included in the format-swipe-down menu comprises:
if a second selection instruction aiming at the format included by the format drop-down menu is received within a preset time length, determining that the format pointed by the second selection instruction is a target format;
and if the second selection instruction is not received after the preset time length, determining all formats included in the format pull-down menu as target formats.
5. The method of claim 1, wherein after determining the designated object, the method further comprises:
receiving a second enabling instruction for a format brush function in the electronic document;
and based on the second enabling instruction, extending a preset default format included in the format of the specified object to a second target object in the electronic document.
6. An apparatus for modifying an object format, the apparatus comprising:
the first determining module is used for determining a specified object in the electronic document;
the first receiving module is used for receiving a first enabling instruction aiming at the format brush function in the electronic document;
a generating module, configured to generate a format brush pull-down menu including a format of the specified object based on the first enabling instruction;
the second determining module is used for determining a target format from formats included in the format drop-down menu;
and the first delay module is used for delaying the target format to a first target object in the electronic document.
7. The apparatus of claim 6, wherein the generating module comprises:
the obtaining sub-module is used for obtaining the use frequency of each format of the specified object based on the enabling instruction;
the ordering submodule is used for ordering the formats of the specified objects according to the sequence of the use frequency from high to low to obtain an ordering result;
and the generation submodule is used for generating a format brush pull-down menu comprising the sequencing result.
8. The apparatus of claim 7, wherein the format brush drop down menu comprises a full selection option;
the second determining module is specifically configured to:
receiving a first selection instruction aiming at the full selection option;
and determining all formats included in the format brush pull-down menu as target formats based on the first selection instruction.
9. The apparatus of claim 6, wherein the second determining module comprises:
the first determining submodule is used for determining that the format pointed by the second selecting instruction is the target format if the second selecting instruction aiming at the format included by the format brush pull-down menu is received within the preset time length;
and the second determining submodule is used for determining all formats included in the format drop-down menu as target formats if the second selection instruction is not received after the preset time length.
10. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a second enabling instruction for the format brush function in the electronic document after the specified object is determined;
and the second delaying module is used for delaying the preset default format included in the format of the specified object to a second target object in the electronic document based on the second enabling instruction.
11. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010512307.5A CN112783396B (en) | 2020-06-08 | 2020-06-08 | Object format modification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010512307.5A CN112783396B (en) | 2020-06-08 | 2020-06-08 | Object format modification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112783396A true CN112783396A (en) | 2021-05-11 |
CN112783396B CN112783396B (en) | 2022-06-24 |
Family
ID=75750080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010512307.5A Active CN112783396B (en) | 2020-06-08 | 2020-06-08 | Object format modification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112783396B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115270737A (en) * | 2022-09-22 | 2022-11-01 | 广州市保伦电子有限公司 | Format modification method and device for target object |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0816402A (en) * | 1994-06-30 | 1996-01-19 | Fujitsu Ltd | Source code generation system |
CN1790244A (en) * | 2004-08-16 | 2006-06-21 | 微软公司 | User interface for displaying selectable software functionality controls that are relevant to a selected object |
US20090292987A1 (en) * | 2008-05-22 | 2009-11-26 | International Business Machines Corporation | Formatting selected content of an electronic document based on analyzed formatting |
WO2019046143A1 (en) * | 2017-08-29 | 2019-03-07 | Lexisnexis, A Division Of Reed Elsevier Inc. | Systems and methods for providing automatic document filling functionality |
CN110442851A (en) * | 2019-07-23 | 2019-11-12 | 南京国睿信维软件有限公司 | The method of power editor is independently limited based on the document automated modular of Office Word and multiple terminals |
-
2020
- 2020-06-08 CN CN202010512307.5A patent/CN112783396B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0816402A (en) * | 1994-06-30 | 1996-01-19 | Fujitsu Ltd | Source code generation system |
CN1790244A (en) * | 2004-08-16 | 2006-06-21 | 微软公司 | User interface for displaying selectable software functionality controls that are relevant to a selected object |
US20090292987A1 (en) * | 2008-05-22 | 2009-11-26 | International Business Machines Corporation | Formatting selected content of an electronic document based on analyzed formatting |
WO2019046143A1 (en) * | 2017-08-29 | 2019-03-07 | Lexisnexis, A Division Of Reed Elsevier Inc. | Systems and methods for providing automatic document filling functionality |
CN110442851A (en) * | 2019-07-23 | 2019-11-12 | 南京国睿信维软件有限公司 | The method of power editor is independently limited based on the document automated modular of Office Word and multiple terminals |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115270737A (en) * | 2022-09-22 | 2022-11-01 | 广州市保伦电子有限公司 | Format modification method and device for target object |
Also Published As
Publication number | Publication date |
---|---|
CN112783396B (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10412142B2 (en) | Video-production system with social-media features | |
CN109005283B (en) | Method, device, terminal and storage medium for displaying notification message | |
CN111026392B (en) | Method and device for generating guide page and electronic equipment | |
US10521481B2 (en) | Video-production system with social-media features | |
CN107357544B (en) | Display method, display device, intelligent terminal and computer readable storage medium | |
CN108228293B (en) | Interface skin switching method and device | |
US10404770B2 (en) | Video-production system with social-media features | |
CN111414727B (en) | Editing method and device for PDF document header footer and electronic equipment | |
CN109040767B (en) | Live broadcast room loading method, system, server and storage medium | |
CN112783396B (en) | Object format modification method and device | |
CN111580732A (en) | Page content display method and device, electronic equipment and computer storage medium | |
CN111460304A (en) | Information display method, electronic equipment and readable storage medium | |
CN112306336A (en) | Document content display method and device | |
CN115270737A (en) | Format modification method and device for target object | |
CN112783382B (en) | Method, device, terminal and storage medium for setting document icons | |
CN108647197B (en) | Information processing method, device and storage medium | |
CN112417832B (en) | Method and device for converting format of electronic form document and electronic equipment | |
CN110879738B (en) | Operation step display method and device and electronic equipment | |
CN111399722A (en) | Mail signature generation method, device, terminal and storage medium | |
CN111832267B (en) | Cell pasting method and device | |
CN110807297B (en) | Slide show method and device based on PDF and electronic equipment | |
US11928147B2 (en) | Slide storage method and apparatus | |
CN111046638B (en) | Ink mark removing method and device, electronic equipment and storage medium | |
CN113490051B (en) | Video frame extraction method and device, electronic equipment and storage medium | |
CN109450993B (en) | Method and apparatus for presenting information |
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 |