CN115270737A - Format modification method and device for target object - Google Patents
Format modification method and device for target object Download PDFInfo
- Publication number
- CN115270737A CN115270737A CN202211154789.7A CN202211154789A CN115270737A CN 115270737 A CN115270737 A CN 115270737A CN 202211154789 A CN202211154789 A CN 202211154789A CN 115270737 A CN115270737 A CN 115270737A
- Authority
- CN
- China
- Prior art keywords
- format
- target object
- down menu
- target
- electronic document
- 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
- 238000002715 modification method Methods 0.000 title claims description 11
- 238000000034 method Methods 0.000 claims abstract description 34
- 230000006870 function Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 22
- 230000004048 modification Effects 0.000 claims description 21
- 238000012986 modification Methods 0.000 claims description 21
- 230000001680 brushing effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
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
- 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
-
- 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)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a device for modifying the format of a target object, wherein the method comprises the following steps: acquiring a format attribute of a target object; traversing and querying all objects in the electronic document based on a starting instruction of the format brush function; when the difference between the format attribute of the object in the electronic document and the attribute of the target object is inquired, generating a format pull-down menu at the preset position of each target object in the electronic document; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object; and selecting any one object format as a target format from the format brush pull-down menu so as to apply the target format to the target object. The invention provides a method and a device for modifying a format of a target object, which are used for improving the efficiency of modifying the format of the target object and the office experience of a user.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for modifying a format of a target object.
Background
Applying the format brush function requires three steps: finding and selecting a format of the specified object; clicking and starting a format brush function; selecting the target object and extending the format of the specified object to the target object. The format brush function can use the format of the specified object to the target object, can avoid complicated object modification operation, and is very common in various software, especially in electronic documents.
However, when the number of objects in the electronic document is large and the number of objects in the electronic document is small, it is cumbersome to use the format brush function through the above steps. For example, when a format brush function is used on a few hundred pages of electronic documents, a specified object format is often required to be found in the hundreds of pages of documents in a turning manner, sometimes even cannot be found, and even if the specified object format is found, the target object is found in the turning manner again, and the specified object format is applied to the target object, so that the format brush function is not flexible enough, and the use of the format brush function is time-consuming and very tedious. Under the application scenes that a plurality of object formats exist in the electronic document or the objects are small, the actual use efficiency of the format brush is low, and the office experience effect of the user is poor.
Disclosure of Invention
The application provides a method and a device for modifying a format of a target object, so as to improve the efficiency of modifying the format of the target object and improve the office experience of a user.
In a first aspect, the present application provides a method for modifying a format of a target object, including:
acquiring a format attribute of a target object;
traversing and querying all objects in the electronic document based on a starting instruction of the format brush function;
when the difference between the format attribute of the object in the electronic document and the attribute of the target object is found, generating a format pull-down menu at the preset position of each target object in the electronic document; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object;
and selecting any one object format as a target format from the format brush pull-down menu so as to apply the target format to the target object.
The method has the advantages that after the format attribute of the target object is obtained, all objects in the electronic document are subjected to traversal query based on the starting instruction of the format brush function, a format brush pull-down menu containing all object formats except the target format is generated, and a user can modify the format of the target object into any object format only by selecting any required object format as the target format from the pull-down menu. All object formats in the whole electronic document can be obtained through the generated format brush pull-down menu, and diversified selections can be provided when a user modifies the format of the target object. And the format brushing pull-down menu is positioned at the preset position of the target object, even if the target object is far away from the position of the object to be applied, the whole search in the electronic document is not needed, only the selection in the format brushing pull-down menu is needed, and the efficiency of modifying the format of the object can be improved. Furthermore, when more object formats exist in the electronic document or the objects are small, the user can accurately acquire various object formats through the format drop-down menu, so that the user can accurately modify the format of the target object.
In an implementation manner, when it is found that there is a difference between a format attribute of an object in the electronic document and an attribute of the target object, generating a format-brush pull-down menu at a preset position of each target object in the electronic document specifically includes:
when any format attribute of an object in the electronic document is different from the format attribute of the target object, judging that the format of the object is different from that of the target object;
selecting a preset number of objects as object format options of the format drop-down menu;
generating a format brush drop-down menu at a preset position of each of the target objects in the electronic document.
In an implementation manner, after generating a format drop-down menu at the preset position of each target object in the electronic document, the method further includes:
and sorting the object format options of the format brush pull-down menu according to the using frequency of each object format.
In an implementation manner, the selecting any one of the object formats in the format brush pull-down menu as a target format to apply the target format to the target object specifically includes:
receiving a selection instruction aiming at the format brush pull-down menu;
setting any object format in the format brush drop-down menu to a target format based on the selection instruction so that the target format is applied to the target object.
In one implementation, the format modification method for the target object further includes:
and when the input equipment is positioned in the instruction receiving area of any one object format, the format attribute of the object format is displayed at a preset position of the format brush pull-down menu in an abrupt mode.
In a second aspect, the present application further provides a device for modifying a format of a target object, including a data obtaining module, an instruction processing module, a menu generating module, and a format application module, and specifically including:
the data acquisition module is used for acquiring the format attribute of the target object;
the instruction processing module is used for performing traversal query on all objects in the electronic document based on a starting instruction of the format brush function;
the menu generating module is used for generating a format pull-down menu at a preset position of each target object in the electronic document when the difference between the format attribute of the object in the electronic document and the attribute of the target object is inquired; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object;
the format application module is used for selecting any one object format as a target format from the format brush pull-down menu so as to apply the target format to the target object.
The method has the advantages that after the format attribute of the target object is obtained, all objects in the electronic document are subjected to traversal query based on the starting instruction of the format brush function, a format brush pull-down menu containing all object formats except the target format is generated, and when a user only needs to select any required object format from the pull-down menu as the target format, the format of the target object can be modified into any object format. All object formats in the whole electronic document can be obtained through the generated format brush pull-down menu, and diversified selections can be provided when a user modifies the format of the target object. And the format brushing pull-down menu is positioned at the preset position of the target object, even if the target object is far away from the position of the object to be applied, the whole search in the electronic document is not needed, only the selection in the format brushing pull-down menu is needed, and the efficiency of modifying the format of the object can be improved. Furthermore, when more object formats exist in the electronic document or the objects are small, the user can accurately acquire various object formats through the format drop-down menu, so that the user can accurately modify the format of the target object.
In one implementation, the menu generating module is configured to generate a format drop-down menu at a preset position of each target object in the electronic document when it is found that a format attribute of an object in the electronic document is different from an attribute of the target object, and specifically includes:
when any format attribute of an object in the electronic document is different from the format attribute of the target object, judging that the format of the object is different from that of the target object;
selecting a preset number of objects as object format options of the format drop-down menu;
and generating a format brush pull-down menu at a preset position of each target object in the electronic document.
In one implementation manner, after the menu generating module generates the format drop-down menu at the preset position of each target object in the electronic document, the method further includes:
and sorting the object format options of the format brush pull-down menu according to the using frequency of each object format.
In one implementation manner, the format application module is configured to select any one of the object formats in the format brush pull-down menu as a target format, so that the target format is applied to the target object, specifically:
receiving a selection instruction aiming at the format drop-down menu;
setting any object format in the format brush drop-down menu to a target format based on the selection instruction so that the target format is applied to the target object.
In one implementation manner, the apparatus for modifying a format of the target object further includes:
and when the input equipment is positioned in the instruction receiving area of any one object format, the format attribute of the object format is displayed at a preset position of the format brush pull-down menu in an abrupt mode.
In a third aspect, the present application further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements the format modification method of the target object as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where the computer program, when running, controls a device on which the computer-readable storage medium is located to execute the format modification method for the target object as described above.
Drawings
Fig. 1 is a flowchart illustrating a format modification method for a target object according to an embodiment of the present invention.
Fig. 2 is a block diagram of a format modification apparatus for a target object according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The terms "first" and "second," and the like in the description and claims of this application and in the accompanying drawings, are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart of a format modification method for a target object according to an embodiment of the present invention. The embodiment of the invention provides a format modification method of a target object, which comprises the following steps 101 to 104:
step 101: acquiring a format attribute of a target object;
step 102: traversing and querying all objects in the electronic document based on a starting instruction of a format brush function;
step 103: when the difference between the format attribute of the object in the electronic document and the attribute of the target object is inquired, generating a format pull-down menu at the preset position of each target object in the electronic document; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object;
step 104: and selecting any one object format as a target format from the format brush pull-down menu so as to apply the target format to the target object.
In one embodiment, before obtaining the format attribute of the target object, the method further includes: a target object in the electronic document is determined, which the user may determine through an input device. Preferably, taking any format text of which the target object is an electronic document as an example, the user can control a mouse to move a cursor, select a text in a required format, and the terminal receives an operation of the text selected by the user. And determining the text selected by the user as a target object. As another preferable solution of the embodiment of the present invention, the user may also move the cursor to a position where a text including the target object is located in the electronic document, and after the terminal detects the position where the cursor is located, determine a whole line of text at the position where the cursor is located as the target object. In the embodiment of the invention, the terminal can be a mobile terminal, a personal computer, a tablet computer and other electronic equipment with the function of processing electronic documents. The target object may be text, a picture or a table in an electronic document, etc.
In one embodiment, the format attribute of the target object is obtained after the target object is determined. Specifically, a corresponding format attribute list is called according to the category of the target object to obtain the format attribute of the target object. And according to different types of the target objects, the corresponding format attributes are correspondingly different. Preferably, when the target object is text, the format attribute may include attributes such as font, font size, font style (normal, oblique, bold), font color, item number, item symbol, alignment method, and the like; when the target object is a picture, the format attributes can include attributes such as picture color, picture type, picture frame, picture size and the like; when the target object is a table, the format attributes may include attributes such as a table border, a table shading, a cell size, and a cell margin. In a specific application, the format attribute of the target object can be adjusted according to requirements to fill a format attribute list of the target object, wherein the format attribute list at least comprises two or more different format attributes.
In an embodiment, when it is found that there is a difference between the format attribute of an object in the electronic document and the attribute of the target object, generating a format-refresh drop-down menu at a preset position of each target object in the electronic document specifically includes: when any format attribute of an object in the electronic document is different from the format attribute of the target object, judging that the format of the object is different from that of the target object; selecting a preset number of objects as object format options of the format drop-down menu; generating a format brush drop-down menu at a preset position of each of the target objects in the electronic document. Preferably, when performing traversal query on the electronic document, if there is a difference between the format attribute of any text and the format attribute of the target object, it is determined that the format of the text is different from that of the target object. And simultaneously, generating a format brush pull-down menu at a preset position of the target object, wherein the format brush pull-down menu directly takes texts in different formats as object format options of the format brush pull-down menu, and different preset quantities, such as different texts with eight characters, are unified as the object format options for visual attractiveness and convenience in distinguishing. After traversing query is performed on the whole electronic document, a format-brush pull-down menu of the target object is generated, it should be noted that more than one text to which the format attribute of the target object is applied may exist in one electronic document, and the text to which the format attribute of the target object is applied is also the target object, that is, the format-brush pull-down menu should be generated similarly for the remaining texts to which the format attribute of the target object is applied in the electronic document. The generation position of the specific format brush pull-down menu can be adjusted according to the preference of the user, and the generation position can be any position of the target object text, the start of the text, the end of the text, the terminal of the text, the upper part of the text or the lower part of the text, and is not limited herein. In an embodiment, after generating the format drop-down menu at the preset position of each target object in the electronic document, the method further includes: and sorting the object format options of the format brush pull-down menu according to the using frequency of each object format. Preferably, in order to make the format drop-down menu more suitable for the use habit of the user and improve the experience of the user, the object format options of the generated format drop-down menu are sorted. And sequencing all the object format options according to the use frequency of different object formats in the text, and setting the object format with higher use frequency as the front position of the drop-down menu of the format brush. As a preferable scheme of the embodiment of the present invention, the use frequency of each object format in a preset historical time period may also be obtained, and the object format options of the format drop-down menu are sorted according to the use frequency. And acquiring the times of selecting each object format by the user in a preset historical time period. The more times that a user selects a certain object format in a preset historical time period, the higher the use frequency of the format in the preset historical time period; the less 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 actual conditions, and may be one year or one month, which is not specifically limited herein. After the object format options in the format brush pull-down menu are sequenced, the object format with higher use frequency is positioned in front of the format brush pull-down menu, so that a user can quickly see and select the object format with higher use frequency, and the office efficiency and the user experience are improved.
In an embodiment, the selecting any one of the object formats in the format brush pull-down menu as a target format to apply the target format to the target object specifically includes: receiving a selection instruction aiming at the format drop-down menu; setting any object format in the format brush pull-down menu to be a target format based on the selection instruction so that the target format is applied to the target object. When the terminal detects that a user clicks a function button operation of a selection instruction, a selection instruction for a format brush pull-down menu is generated, the format of an object selected by a current cursor is set to be a target format based on the selection instruction and is delayed to be used for the target object, so that the format attribute of the target format can be applied to the target object to change the format attribute of the target object.
In an embodiment, the method for modifying the format of the target object further includes: and when the input equipment is positioned in the instruction receiving area of any one object format, the format attribute of the object format is displayed at a preset position of the format brush pull-down menu in an abrupt mode. In order to make the user more intuitively know the format of each object format, when a mouse or a cursor is positioned in an instruction receiving area of any object format option, each format attribute of the selected object format option is displayed suddenly in a right display area of a format drop-down menu. Preferably, if the target object is a text, the corresponding format attribute includes a font, a font size, and a font style. And the corresponding format attribute of the selected object format is displayed in a projecting manner by methods such as amplifying or adding colors, so that a user can more intuitively know the specific presentation effect of each object format, and the experience of the user is improved.
In an embodiment of the present invention, there is further provided a format modification device for a target object, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the format modification method for the target object when executing the computer program.
In an embodiment of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus in which the computer-readable storage medium is located is controlled to perform the format modification of the target object.
Illustratively, the computer program may be partitioned into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the format modification device of the target object.
The format modification device of the target object can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The format modification device of the target object may include, but is not limited to, a processor, a memory, and a display. It will be understood by those skilled in the art that the above components are merely examples of the format modification device of the target object, and do not constitute a limitation to the format modification device of the target object, and may include more or less components than the above components, or combine some components, or different components, for example, the format modification device of the target object may further include an input-output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the format modification device of the target object, various interfaces and lines connecting the various parts of the format modification device of the entire target object.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the format modification apparatus for the target object by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the format modification module of the target object, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice. One of ordinary skill in the art can understand and implement without inventive effort.
The embodiment of the invention provides a format modification method of a target object, which comprises the steps of after the format attribute of the target object is obtained, performing traversal query on all objects in an electronic document based on a starting instruction of a format brush function, generating a format brush pull-down menu containing all object formats except the target format, and modifying the format of the target object into any object format when a user only needs to select any required object format as the target format in the pull-down menu. All object formats in the whole electronic document can be obtained through the generated format brush pull-down menu, and diversified selections can be provided when a user modifies the format of the target object. And the format brushing pull-down menu is positioned at the preset position of the target object, even if the target object is far away from the position of the object to be applied, the whole search in the electronic document is not needed, only the selection in the format brushing pull-down menu is needed, and the efficiency of modifying the format of the object can be improved. Furthermore, when more object formats exist in the electronic document or the objects are small, the user can accurately acquire various object formats through the format drop-down menu, so that the user can accurately modify the format of the target object.
Example 2
Referring to fig. 2, fig. 2 is a block diagram of a format modification apparatus for a target object according to an embodiment of the present invention. The embodiment of the present invention provides a format modification apparatus for a target object, which includes a data acquisition module 201, an instruction processing module 202, a menu generation module 203, and a format application module 204, and specifically includes:
the data obtaining module 201 is configured to obtain a format attribute of a target object;
the instruction processing module 202 is configured to perform traversal query on all objects in the electronic document based on a starting instruction of the format brush function;
the menu generating module 203 is configured to generate a format drop-down menu at a preset position of each target object in the electronic document when it is found that a format attribute of an object in the electronic document is different from an attribute of the target object; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object;
the format application module 204 is configured to select any one of the object formats as a target format in the format-brush pull-down menu, so that the target format is applied to the target object.
In an embodiment, the menu generating module 203 is configured to generate a format drop-down menu at a preset position of each target object in the electronic document when it is found that there is a difference between a format attribute of an object in the electronic document and an attribute of the target object, and specifically includes: when any format attribute of an object in the electronic document is different from the format attribute of the target object, judging that the format of the object is different from that of the target object; selecting a preset number of objects as object format options of the format drop-down menu; and generating a format brush pull-down menu at a preset position of each target object in the electronic document.
In an embodiment, after the menu generating module 203 generates the format drop-down menu at the preset position of each target object in the electronic document, the method further includes: and sorting the object format options of the format brush pull-down menu according to the using frequency of each object format.
In an embodiment, the format application module 204 is configured to select any one of the object formats in the format brush pull-down menu as a target format, so that the target format is applied to the target object, specifically: receiving a selection instruction aiming at the format drop-down menu; setting any object format in the format brush pull-down menu to be a target format based on the selection instruction so that the target format is applied to the target object.
In an embodiment, the apparatus for modifying a format of the target object further includes: and when the input equipment is positioned in the instruction receiving area of any one object format, the format attribute of the object format is displayed at a preset position of the format brush pull-down menu in an abrupt mode.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein.
The embodiment of the invention provides a format modification device of a target object, which is characterized in that after the format attribute of the target object is obtained, all objects in an electronic document are subjected to traversal query based on a starting instruction of a format brush function, a format brush pull-down menu containing all object formats except the target format is generated, and when a user only needs to select any required object format as the target format from the pull-down menu, the format of the target object can be modified into any object format. All object formats in the whole electronic document can be obtained through the generated format brush pull-down menu, and diversified selections can be provided when a user modifies the format of the target object. And the format brushing pull-down menu is positioned at the preset position of the target object, even if the target object is far away from the position of the object to be applied, the whole search in the electronic document is not needed, only the selection in the format brushing pull-down menu is needed, and the efficiency of modifying the format of the object can be improved. Furthermore, when more object formats exist in the electronic document or the objects are small, the user can accurately acquire various object formats through the format drop-down menu, so that the user can accurately modify the format of the target object.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, many modifications and substitutions can be made without departing from the technical principle of the present invention, and these modifications and substitutions should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for modifying a format of a target object, comprising:
acquiring a format attribute of a target object;
traversing and querying all objects in the electronic document based on a starting instruction of the format brush function;
when the difference between the format attribute of the object in the electronic document and the attribute of the target object is found, generating a format pull-down menu at the preset position of each target object in the electronic document; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object;
and selecting any one object format as a target format from the format brush pull-down menu so as to apply the target format to the target object.
2. The method according to claim 1, wherein when it is found that there is a difference between the format attribute of an object in the electronic document and the attribute of the target object, generating a format drop-down menu at a preset position of each target object in the electronic document, specifically comprises:
when any format attribute of an object in the electronic document is different from the format attribute of the target object, judging that the format of the object is different from that of the target object;
selecting a preset number of objects as object format options of the format drop-down menu;
generating a format brush drop-down menu at a preset position of each of the target objects in the electronic document.
3. The method as claimed in claim 1, wherein after generating the format drop-down menu at the preset position of each target object in the electronic document, the method further comprises:
and sorting the object format options of the format brush pull-down menu according to the using frequency of each object format.
4. The method according to claim 1, wherein the selecting any one of the object formats in the format brush pull-down menu as the target format, so that the target format is applied to the target object, specifically:
receiving a selection instruction aiming at the format drop-down menu;
setting any object format in the format brush pull-down menu to be a target format based on the selection instruction so that the target format is applied to the target object.
5. The method for modifying the format of a target object according to claim 1, wherein the method for modifying the format of a target object further comprises:
and when the input equipment is positioned in the instruction receiving area of any one object format, the format attribute of the object format is displayed at a preset position of the format brush pull-down menu in an abrupt mode.
6. A format modification device of a target object is characterized by comprising a data acquisition module, an instruction processing module, a menu generation module and a format application module, and specifically comprising the following steps:
the data acquisition module is used for acquiring the format attribute of the target object;
the instruction processing module is used for performing traversal query on all objects in the electronic document based on a starting instruction of the format brush function;
the menu generating module is used for generating a format pull-down menu at a preset position of each target object in the electronic document when the difference between the format attribute of the object in the electronic document and the attribute of the target object is inquired; wherein the format brush drop-down menu contains all object formats in the electronic document except the target object;
the format application module is used for selecting any one object format as a target format in the format brush pull-down menu so as to apply the target format to the target object.
7. The apparatus for modifying a format of a target object according to claim 6, wherein the menu generating module is configured to, when it is found that a format attribute of an object in the electronic document is different from an attribute of the target object, generate a format-brushing pull-down menu at a preset position of each target object in the electronic document, specifically comprising:
when any format attribute of an object in the electronic document is different from the format attribute of the target object, judging that the format of the object is different from that of the target object;
selecting a preset number of objects as object format options of the format drop-down menu;
and generating a format brush pull-down menu at a preset position of each target object in the electronic document.
8. The apparatus for modifying a format of a target object according to claim 6, wherein the menu generating module further comprises, after generating the format-refresh pull-down menu at the preset position of each target object in the electronic document:
and sorting the object format options of the format brush pull-down menu according to the using frequency of each object format.
9. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a format modification method of a target object according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program is run, the computer-readable storage medium is controlled by a device to perform the method for format modification of a target object according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211154789.7A CN115270737B (en) | 2022-09-22 | 2022-09-22 | Method and device for modifying format of target object |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211154789.7A CN115270737B (en) | 2022-09-22 | 2022-09-22 | Method and device for modifying format of target object |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115270737A true CN115270737A (en) | 2022-11-01 |
CN115270737B CN115270737B (en) | 2023-08-29 |
Family
ID=83757320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211154789.7A Active CN115270737B (en) | 2022-09-22 | 2022-09-22 | Method and device for modifying format of target object |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115270737B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116048354A (en) * | 2023-03-10 | 2023-05-02 | 福昕鲲鹏(北京)信息科技有限公司 | Picture format adjustment method, system and computer readable storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043618A (en) * | 2009-10-22 | 2011-05-04 | 北大方正集团有限公司 | Method and device for controlling display style of window object |
CN102200968A (en) * | 2011-05-30 | 2011-09-28 | 深圳市五巨科技有限公司 | Method and device for removing duplications of EXCEL form data |
US20110320933A1 (en) * | 2010-06-25 | 2011-12-29 | Canon Kabushiki Kaisha | Editing apparatus, layout editing method performed by editing apparatus, and storage medium storing program |
CN103377174A (en) * | 2012-04-28 | 2013-10-30 | 国际商业机器公司 | Method and device for copying text formats |
CN107102971A (en) * | 2016-09-08 | 2017-08-29 | 阿里巴巴集团控股有限公司 | Pattern clone method, device and equipment |
CN108763173A (en) * | 2018-05-23 | 2018-11-06 | 广东电网有限责任公司 | Document checking method and device for file format |
US20190155802A1 (en) * | 2015-01-30 | 2019-05-23 | Splunk Inc. | Supplementing events displayed in a table format |
CN110472199A (en) * | 2018-05-11 | 2019-11-19 | 成都野望数码科技有限公司 | A kind of method and device of regulating object pattern |
CN112783396A (en) * | 2020-06-08 | 2021-05-11 | 北京金山办公软件股份有限公司 | Object format modification method and device |
CN114911753A (en) * | 2022-05-14 | 2022-08-16 | 云知声智能科技股份有限公司 | Method and device for generating presentation document, electronic equipment and storage medium |
-
2022
- 2022-09-22 CN CN202211154789.7A patent/CN115270737B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043618A (en) * | 2009-10-22 | 2011-05-04 | 北大方正集团有限公司 | Method and device for controlling display style of window object |
US20110320933A1 (en) * | 2010-06-25 | 2011-12-29 | Canon Kabushiki Kaisha | Editing apparatus, layout editing method performed by editing apparatus, and storage medium storing program |
CN102200968A (en) * | 2011-05-30 | 2011-09-28 | 深圳市五巨科技有限公司 | Method and device for removing duplications of EXCEL form data |
CN103377174A (en) * | 2012-04-28 | 2013-10-30 | 国际商业机器公司 | Method and device for copying text formats |
US20190155802A1 (en) * | 2015-01-30 | 2019-05-23 | Splunk Inc. | Supplementing events displayed in a table format |
CN107102971A (en) * | 2016-09-08 | 2017-08-29 | 阿里巴巴集团控股有限公司 | Pattern clone method, device and equipment |
CN110472199A (en) * | 2018-05-11 | 2019-11-19 | 成都野望数码科技有限公司 | A kind of method and device of regulating object pattern |
CN108763173A (en) * | 2018-05-23 | 2018-11-06 | 广东电网有限责任公司 | Document checking method and device for file format |
CN112783396A (en) * | 2020-06-08 | 2021-05-11 | 北京金山办公软件股份有限公司 | Object format modification method and device |
CN114911753A (en) * | 2022-05-14 | 2022-08-16 | 云知声智能科技股份有限公司 | Method and device for generating presentation document, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116048354A (en) * | 2023-03-10 | 2023-05-02 | 福昕鲲鹏(北京)信息科技有限公司 | Picture format adjustment method, system and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115270737B (en) | 2023-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10877639B2 (en) | Page shortcut display method, apparatus, terminal, and server, and storage medium | |
TWI686740B (en) | Page layout method, device and equipment | |
US20160132225A1 (en) | Interactive data-driven presentations | |
US11462002B2 (en) | Wallpaper management method, apparatus, mobile terminal, and storage medium | |
CN107657973A (en) | Text and audio mix display methods, device, terminal device and storage medium | |
CN105700925A (en) | APP interface implementation method and apparatus | |
CN114185465A (en) | Information processing method, information processing apparatus, storage medium, and electronic device | |
CN110708423A (en) | Message content display method and device and storage medium | |
CN112306488A (en) | Combined icon generation method, device, equipment and computer readable storage medium | |
CN115270737B (en) | Method and device for modifying format of target object | |
WO2024193418A1 (en) | Page configuration method, electronic device and storage medium | |
US20220113847A1 (en) | Online collaborative document processing method and device | |
CN105100447A (en) | Method and device for setting application attributes and method and device for processing messages | |
CN113407254A (en) | Form generation method and device, electronic equipment and storage medium | |
CN112711388A (en) | Label template generation method and device, electronic equipment and readable storage medium | |
CN105988655B (en) | A kind of spreadsheet line column region method of adjustment and device | |
CN115065945B (en) | Short message link generation method and device, electronic equipment and storage medium | |
CN112417830A (en) | Document page management method and device, electronic equipment and storage medium | |
CN111444452A (en) | Conversion method, device and storage medium of webpage | |
CN107798071B (en) | Reading content adjusting method and device, terminal equipment and storage medium | |
CN116107557A (en) | Page visual development method and device, storage medium and electronic equipment | |
CN115167728A (en) | Menu bar merging and displaying method, device and computer readable storage medium | |
CN112783396B (en) | Object format modification method and device | |
CN113840099B (en) | Video processing method, device, equipment and computer readable storage medium | |
CN115373564A (en) | Function shortcut key self-defining method and device, software function control method and terminal |
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 | ||
CB02 | Change of applicant information |
Address after: No. 56 Nanli East Road, Shiqi Town, Panyu District, Guangzhou City, Guangdong Province, 510000 Applicant after: Guangdong Baolun Electronics Co.,Ltd. Address before: No.19 Chuangyuan Road, Zhongcun street, Panyu District, Guangzhou, Guangdong 510000 Applicant before: GUANGZHOU ITC ELECTRONIC TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |