CN111857491A - Method, equipment and storage medium for implementing filter for selecting content of word processing software - Google Patents

Method, equipment and storage medium for implementing filter for selecting content of word processing software Download PDF

Info

Publication number
CN111857491A
CN111857491A CN202010783972.8A CN202010783972A CN111857491A CN 111857491 A CN111857491 A CN 111857491A CN 202010783972 A CN202010783972 A CN 202010783972A CN 111857491 A CN111857491 A CN 111857491A
Authority
CN
China
Prior art keywords
filter
setting
data
content
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010783972.8A
Other languages
Chinese (zh)
Other versions
CN111857491B (en
Inventor
崔海东
柳鲲鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taishan Information Technology Co ltd
Original Assignee
Taishan Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taishan Information Technology Co ltd filed Critical Taishan Information Technology Co ltd
Priority to CN202010783972.8A priority Critical patent/CN111857491B/en
Publication of CN111857491A publication Critical patent/CN111857491A/en
Application granted granted Critical
Publication of CN111857491B publication Critical patent/CN111857491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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
    • G06F3/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

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

Abstract

The application discloses a method, a device and a storage medium for realizing a filter in the content selection of word processing software, wherein the method comprises the following steps: setting and storing different types of selected filters; the selected filter comprises a no-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradual change filter; entering a character editing interface through a human-computer interface, and selecting a corresponding selected filter; judging whether the selected filter is used as a default selected filter; if yes, saving the data as a global filter, and saving filter data and a filter setting mark; if not, the filter is stored as a temporary filter; and applying the filter data to draw the selected filter effect for the selected content. By the method, when the user uses the word processing software, the user can customize the corresponding selected filter according to the preference of the user through the interface and can use the selected filter in the software to obtain the effect that various word processing contents select the corresponding selected filter, so that more personalized experience is brought to the user.

Description

Method, equipment and storage medium for implementing filter for selecting content of word processing software
Technical Field
The invention relates to the technical field of word processing, in particular to a method, equipment and a storage medium for realizing a filter for selecting word processing software contents.
Background
Word processing software is a common tool for people to work daily. When using word processing software, in addition to inputting data, people often need to select a portion of content to perform some operations, such as deleting, setting a format, etc., which is called a content selection function. After a part of the content is selected, a display effect process is required to make the selected content visually different from other content, which may be referred to as a content selection filter or a selection filter.
There are two common methods for selecting filters: the first is an XOR filter, which has a striking effect because of the reverse color, sometimes the light color is obvious after being selected, and the judgment of people is influenced under some conditions; the second one is a color filter, when the content is selected, a designated color with a transparent effect is added, so that the selection effect is mild, and the visual effect on the content is not large.
With the continuous improvement of hardware performance, the pursuit of personalization is possible. Therefore, how to provide more selected filter effects for selecting word processing contents brings more personalized experiences to people, which is a technical problem to be solved urgently by technical personnel in the field.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus and a storage medium for selecting a filter for word processing software content, which can be customized by a user to obtain better personalized experience. The specific scheme is as follows:
a method for realizing a filter for selecting the content of word processing software comprises the following steps:
setting and storing different types of selected filters; the selected filter comprises a no-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradient filter;
entering a character editing interface through a human-computer interface, and selecting the corresponding selected filter;
judging whether the selected filter is used as a default selected filter or not;
if yes, saving the data as a global filter, and saving filter data and a filter setting mark; if not, the filter is stored as a temporary filter;
and applying the filter data to draw the selected filter effect for the selected content.
Preferably, in the implementation method for selecting a filter for the content of the word processing software provided in the embodiment of the present invention, setting and storing different types of selected filters specifically includes:
acquiring selected filter data;
setting and storing the no-effect filter;
setting and storing an XOR filter and corresponding color data;
setting and storing a color filter and corresponding color data;
setting and storing a texture filter and corresponding texture data;
setting and storing a picture filter and corresponding picture data;
setting and storing a gradient filter and corresponding color data and gradient data;
and setting and storing the type of the filter used currently.
Preferably, in the method for implementing the filter for selecting contents in word processing software according to the embodiment of the present invention, the applying the filter data to the selected contents to draw the effect of the selected filter specifically includes:
judging whether the filter data is stored in a document or not;
if the filter data is required to be stored, storing the filter data in the current document, and if the selected content exists, judging whether a temporary filter exists; if so, acquiring the temporary filter, and applying filter data of the temporary filter to draw a selected effect on selected content; if not, acquiring the global filter, and applying the filter data of the global filter to draw the selected filter effect for the selected content;
if the temporary filter does not need to be stored and the selected content exists, directly judging whether the temporary filter exists or not; if so, acquiring the temporary filter, and applying filter data of the temporary filter to draw a selected effect on selected content; and if not, acquiring the global filter, and applying the filter data of the global filter to draw the selected filter effect for the selected content.
Preferably, in the implementation method for selecting a filter for the content of the word processing software provided in the embodiment of the present invention, when the XOR filter is used for drawing, the method includes:
drawing the selected content;
acquiring an original drawing area, an original drawing mode, an original drawing color and a selected content area;
calling a corresponding graphic interface, setting an XOR drawing mode and color, filling a drawing area, and setting an original drawing color, an original drawing mode and an original drawing area.
Preferably, in the implementation method for selecting a filter for the content of the word processing software provided in the embodiment of the present invention, when the color filter is used for drawing, the method includes:
drawing the selected content;
acquiring an original drawing area, an original drawing color and a selected content area;
calling a corresponding graphic interface, setting the drawing colors of the new drawing area and the filter, filling the drawing area, and setting the original drawing color and the original drawing area.
Preferably, in the method for implementing the filter for selecting the content of the word processing software according to the embodiment of the present invention, when the texture filter is used for rendering, the method includes:
drawing the selected content;
acquiring an original drawing area and a selected content area;
calling a corresponding graphical interface and setting a new drawing area;
acquiring texture data of a used filter;
calling a corresponding graphic interface, drawing the texture of the filter and setting the original drawing area.
Preferably, in the method for implementing a filter selected from the contents of the word processing software according to the embodiment of the present invention, when the picture filter is used for drawing, the method includes:
drawing the selected content;
acquiring an original drawing area and a selected content area;
calling a corresponding graphical interface and setting a new drawing area;
acquiring picture data of a used filter;
and calling a corresponding graphical interface, drawing a picture, and setting an original drawing area.
Preferably, in the method for implementing a filter selected from the content of the word processing software according to the embodiment of the present invention, when the gradient filter is used for drawing, the method includes:
drawing the selected content;
acquiring an original drawing area and a selected content area;
calling a corresponding graphical interface and setting a new drawing area;
acquiring gradient data of the used filter;
calling a corresponding graphical interface, drawing a gradual change effect, and setting an original drawing area.
The embodiment of the invention also provides equipment for realizing the filter for selecting the content of the word processing software, which comprises a processor and a memory, wherein the processor realizes the method for realizing the filter for selecting the content of the word processing software provided by the embodiment of the invention when executing the computer program stored in the memory.
The embodiment of the invention also provides a computer readable storage medium for storing a computer program, wherein the computer program is executed by a processor to realize the implementation method of the filter for selecting the content of the word processing software provided by the embodiment of the invention.
It can be seen from the above technical solutions that, the method, device and storage medium for implementing a filter for selecting contents of word processing software provided by the present invention includes: setting and storing different types of selected filters; the selected filter comprises a no-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradual change filter; entering a character editing interface through a human-computer interface, and selecting a corresponding selected filter; judging whether the selected filter is used as a default selected filter; if yes, saving the data as a global filter, and saving filter data and a filter setting mark; if not, the filter is stored as a temporary filter; and applying the filter data to draw the selected filter effect for the selected content.
By the method for realizing the filter selection of the word processing software content, when the user uses the word processing software, the user can customize the corresponding selected filter according to the preference of the user through the interface and can use the selected filter in the software to obtain the effect that various word processing contents select the corresponding selected filter, thereby bringing more personalized experience to the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or technical solutions in related arts, the drawings used in the description of the embodiments or related arts will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for implementing a filter selected from the content of a word processing software according to an embodiment of the present invention;
FIG. 2 is a flow chart of saving a selected filter according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface for setting a selected filter according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface for setting colors according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an interface for setting texture according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an interface for setting a picture according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an interface for setting a gradual transition according to an embodiment of the present invention;
FIG. 8 is a flow chart of reading a selected filter according to an embodiment of the present invention;
FIG. 9 is a flow chart of initializing a selected filter function according to an embodiment of the present invention;
FIG. 10 is a flowchart illustrating a process for rendering selected filter effects on selected content according to an embodiment of the present invention;
FIG. 11 is a flow chart of the XOR filter rendering according to an embodiment of the present invention;
FIG. 12 is a flow chart of color filter rendering according to an embodiment of the present invention;
FIG. 13 is a flow chart of texture filter rendering according to an embodiment of the present invention;
FIG. 14 is a flow chart of a picture filter rendering according to an embodiment of the present invention;
fig. 15 is a flowchart of gradient filter rendering 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.
The invention provides a method for realizing a filter for selecting the content of word processing software, which comprises the following steps as shown in figure 1:
s101, setting and storing different types of selected filters; the selected filter comprises a no-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradual change filter;
s102, entering a character editing interface through a human-computer interface, and selecting a corresponding selected filter;
s103, judging whether the selected filter is used as a default selected filter or not; it should be noted that, before step S103 is executed, the filter data may be read, and the current filter is initialized;
if yes, go to step S104; if not, executing step S105;
s104, storing the data as a global filter, and storing filter data and filter setting marks;
s105, storing the filter as a temporary filter;
and S106, applying the filter data to draw the selected filter effect for the selected content.
In the implementation method for selecting the filter according to the content of the word processing software provided by the embodiment of the invention, when the user uses the word processing software, the user can customize the corresponding selected filter according to the preference of the user through the interface and can use the selected filter in the software to obtain the effect that various word processing contents select the corresponding selected filter, thereby bringing more personalized experience to the user.
In specific implementation, in the method for implementing the filter selected for the content of the word processing software according to the embodiment of the present invention, step S101 sets and stores different types of selected filters, and as shown in fig. 2, the method may specifically include the following steps:
s201, acquiring selected filter data;
s202, setting and storing a no-effect filter;
s203, setting and storing an XOR filter and corresponding color data;
s204, setting and storing a color filter and corresponding color data;
s205, setting and storing a texture filter and corresponding texture data;
s206, setting and storing a picture filter and corresponding picture data;
s207, setting and storing a gradient filter, corresponding color data and gradient data;
and S208, setting and storing the type of the filter used currently.
Fig. 3 shows a schematic interface diagram of the present invention for setting the selection filter, and there are 6 kinds of visual filters in fig. 3, which are: a non-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradient filter; the dots preceding the corresponding text indicate that only one of these 6 effects can be selected at a time. White dots therein, indicating non-selection; the black dots indicate the current filter effect selected. The 5 buttons in fig. 3, selecting color, selecting texture, selecting picture, selecting gradient, respectively represent the setting parameters for the corresponding filter. In fig. 3, there are two filter effect preservation methods, which are respectively: selecting a filter as a default; save to the document. The block before the corresponding storage mode indicates that the two storage modes can be set singly or in multiple ways. White boxes therein, indicating non-selection; the black box therein indicates the hit.
Fig. 4 shows a schematic diagram of an interface for setting color according to the present invention, and as can be seen from fig. 4, there are 4 color parameters, which are R, G, B and transparency, and the value ranges from 0 to 255. The selected color in fig. 4 is the specific color information and effect displayed synchronously when the user adjusts the parameters.
Fig. 5 shows a schematic diagram of the interface for setting texture according to the present invention, and as can be seen from fig. 5, there are 9 types of textures. Where texture 5 appears gray to indicate selection. The selected texture in fig. 5 is a synchronized display of the effect when the user selects a different texture.
Fig. 6 is a schematic diagram of an interface for setting a picture according to the present invention, and the picture in fig. 6 represents a selected picture path. The browse button in fig. 6, when clicked by the user, may display the directory of the file system and the picture file, thereby selecting the picture. The pictures in fig. 6 show the effect of displaying the currently selected picture.
Fig. 7 shows a schematic view of an interface for setting a fade of the present invention, the colors in fig. 7 representing the colors used for the fade effect. The select color button of fig. 7 allows the user to select a different color. The gradation effect in fig. 7 is 4 kinds in total. The effect of the lower left corner has a border indicating that a selection has been made.
In specific implementation, in the method for implementing the filter selected from the content of the word processing software according to the embodiment of the present invention, step S201 obtains data of the selected filter, and as shown in fig. 8, the method may specifically include the following steps:
s801, reading a non-effect filter;
s802, reading an XOR filter and corresponding color data;
s803, reading a color filter and corresponding color data;
s804, reading a texture filter and corresponding texture data;
s805, reading a picture filter and corresponding picture data;
s806, reading a gradient filter and corresponding color data and gradient data;
s807, reading the type of the currently used filter;
and S808, generating selected filter data.
In specific implementation, in the method for implementing the filter for selecting the content of the word processing software according to the embodiment of the present invention, before selecting the corresponding selected filter, the function of the selected filter may be initialized, as shown in fig. 9, which specifically includes the following steps:
s901, reading a filter setting mark;
s902, judging whether the selected filter has a filter setting sign;
if yes, go to step S903; if not, go to step S904;
s903, reading the data of the set filter and initializing the set filter;
s904, reading default filter data and initializing the default filter;
s905, setting all filters selected globally.
In specific implementation, in the method for implementing the filter for selecting the content of the word processing software according to the embodiment of the present invention, step S106 applies filter data to the selected content to draw a selected filter effect, and as shown in fig. 10, the method may specifically include the following steps:
s1001, judging whether filter data need to be stored in a document or not;
if the data needs to be saved, executing step S1002 first, and then executing step S1003; if the storage is not needed, directly executing step S1003;
s1002, storing the filter data to a current document;
s1003, judging whether the selected content exists or not;
if the selected content exists, executing step S1004; if the selected content exists, ending;
s1004, judging whether a temporary filter exists or not;
if yes, go to step S1005; if not, go to step S1006;
s1005, obtaining a temporary filter;
s1006, acquiring a global filter;
and S1007, applying filter data to draw the selected effect on the selected content.
In a specific implementation, in the method for selecting a filter from the content of the word processing software according to the embodiment of the present invention, when the filter is drawn by using an effect-free filter, the method may include: and drawing the selected content.
In specific implementation, in the method for implementing the filter for selecting the content of the word processing software according to the embodiment of the present invention, when an XOR filter is used for drawing, as shown in fig. 11, the method may include the following steps:
s1101, drawing selected contents;
s1102, acquiring an original drawing area, an original drawing mode, an original drawing color and a selected content area;
s1103, calling a corresponding graphic interface, and setting an XOR drawing mode and color;
s1104, calling a corresponding graphical interface, and filling a drawing area;
s1105, calling a corresponding graphical interface, and setting an original drawing color, an original drawing mode and an original drawing area.
In specific implementation, in the method for selecting a filter from the content of the word processing software according to the embodiment of the present invention, when a color filter is used for drawing, as shown in fig. 12, the method may include the following steps:
s1201, drawing selected contents;
s1202, obtaining an original drawing area, an original drawing color and a selected content area;
s1203, calling a corresponding graphical interface, and setting a new drawing area and a drawing color of a filter;
s1204, calling a corresponding graphic interface, and filling a drawing area;
and S1205, calling a corresponding graphic interface, and setting an original drawing color and an original drawing area.
In specific implementation, in the method for implementing the filter for selecting the content of the word processing software according to the embodiment of the present invention, when a texture filter is used for rendering, as shown in fig. 13, the method may include the following steps:
s1301, drawing selected contents;
s1302, acquiring an original drawing area and a selected content area;
s1303, calling a corresponding graphical interface and setting a new drawing area;
s1304, acquiring texture data of the used filter;
s1305, calling a corresponding graphic interface, and drawing the texture of the filter;
and S1306, calling a corresponding graphical interface, and setting an original drawing area.
In specific implementation, in the method for selecting a filter from the content of the word processing software according to the embodiment of the present invention, when a picture filter is used for drawing, as shown in fig. 14, the method may include the following steps:
s1401, drawing the selected content;
s1402, obtaining an original drawing area and a selected content area;
s1403, calling a corresponding graphical interface, and setting a new drawing area;
s1404, acquiring picture data of the used filter;
s1405, calling a corresponding graphic interface to draw a picture;
and S1406, calling a corresponding graphical interface, and setting an original drawing area.
In specific implementation, in the method for selecting a filter for the content of the word processing software according to the embodiment of the present invention, when the gradient filter is used for drawing, as shown in fig. 15, the method may include the following steps:
s1501, drawing selected content;
s1502, obtaining an original drawing area and a selected content area;
s1503, calling a corresponding graphical interface, and setting a new drawing area;
s1504, acquiring gradient data of the used filter;
s1505, calling a corresponding graphic interface to draw a gradual change effect;
and S1506, calling a corresponding graphic interface and setting an original drawing area.
Correspondingly, the embodiment of the invention also discloses equipment for realizing the filter for selecting the content of the word processing software, which comprises a processor and a memory; the method for selecting the filter from the content of the word processing software disclosed in the foregoing embodiments is implemented when the processor executes the computer program stored in the memory.
For more specific processes of the above method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Further, the present invention also discloses a computer readable storage medium for storing a computer program; when being executed by a processor, the computer program realizes the implementation method of the filter for selecting the content of the word processing software.
For more specific processes of the above method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device and the storage medium disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The embodiment of the invention provides a method, equipment and a storage medium for realizing a filter for selecting the content of word processing software, wherein the method comprises the following steps: setting and storing different types of selected filters; the selected filter comprises a no-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradual change filter; entering a character editing interface through a human-computer interface, and selecting a corresponding selected filter; judging whether the selected filter is used as a default selected filter; if yes, saving the data as a global filter, and saving filter data and a filter setting mark; if not, the filter is stored as a temporary filter; and applying the filter data to draw the selected filter effect for the selected content. By applying the method for selecting the filter according to the content of the word processing software, when a user uses the word processing software, the user can customize the corresponding selected filter according to the preference of the user through an interface and can use the selected filter in the software to obtain the effect that various word processing contents select the corresponding selected filter, thereby bringing more personalized experience to the user.
Finally, it should also be 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.
The method, the device and the storage medium for implementing the filter selected from the content of the word processing software provided by the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for realizing a filter for selecting the content of word processing software is characterized by comprising the following steps:
setting and storing different types of selected filters; the selected filter comprises a no-effect filter, an XOR filter, a color filter, a texture filter, a picture filter and a gradient filter;
entering a character editing interface through a human-computer interface, and selecting the corresponding selected filter;
judging whether the selected filter is used as a default selected filter or not;
if yes, saving the data as a global filter, and saving filter data and a filter setting mark; if not, the filter is stored as a temporary filter;
and applying the filter data to draw the selected filter effect for the selected content.
2. The method for implementing a filter selected for word processing software content according to claim 1, wherein setting and storing different types of selected filters specifically comprises:
acquiring selected filter data;
setting and storing the no-effect filter;
setting and storing an XOR filter and corresponding color data;
setting and storing a color filter and corresponding color data;
setting and storing a texture filter and corresponding texture data;
setting and storing a picture filter and corresponding picture data;
setting and storing a gradient filter and corresponding color data and gradient data;
and setting and storing the type of the filter used currently.
3. The method for implementing a filter selected for word processing software content according to claim 1, wherein applying filter data to render a selected filter effect to the selected content specifically comprises:
judging whether the filter data is stored in a document or not;
if the filter data is required to be stored, storing the filter data in the current document, and if the selected content exists, judging whether a temporary filter exists; if so, acquiring the temporary filter, and applying filter data of the temporary filter to draw a selected effect on selected content; if not, acquiring the global filter, and applying the filter data of the global filter to draw the selected filter effect for the selected content;
if the temporary filter does not need to be stored and the selected content exists, directly judging whether the temporary filter exists or not; if so, acquiring the temporary filter, and applying filter data of the temporary filter to draw a selected effect on selected content; and if not, acquiring the global filter, and applying the filter data of the global filter to draw the selected filter effect for the selected content.
4. The method of claim 2, wherein the XOR filter is used for rendering, and comprises:
drawing the selected content;
acquiring an original drawing area, an original drawing mode, an original drawing color and a selected content area;
calling a corresponding graphic interface, setting an XOR drawing mode and color, filling a drawing area, and setting an original drawing color, an original drawing mode and an original drawing area.
5. The method for implementing a filter selected from the contents of a word processor according to claim 2, wherein when the color filter is used for drawing, the method comprises:
drawing the selected content;
acquiring an original drawing area, an original drawing color and a selected content area;
calling a corresponding graphic interface, setting the drawing colors of the new drawing area and the filter, filling the drawing area, and setting the original drawing color and the original drawing area.
6. The method for implementing a filter for selecting content in a word processor according to claim 2, wherein when the texture filter is used for rendering, the method comprises:
drawing the selected content;
acquiring an original drawing area and a selected content area;
calling a corresponding graphical interface and setting a new drawing area;
acquiring texture data of a used filter;
calling a corresponding graphic interface, drawing the texture of the filter and setting the original drawing area.
7. The method for implementing a filter selected from the contents of a word processing software according to claim 2, wherein when the picture filter is used for drawing, the method comprises:
drawing the selected content;
acquiring an original drawing area and a selected content area;
calling a corresponding graphical interface and setting a new drawing area;
acquiring picture data of a used filter;
and calling a corresponding graphical interface, drawing a picture, and setting an original drawing area.
8. The method for implementing a filter selected from the contents of a word processor according to claim 2, wherein when said gradient filter is used for rendering, it comprises:
drawing the selected content;
acquiring an original drawing area and a selected content area;
calling a corresponding graphical interface and setting a new drawing area;
acquiring gradient data of the used filter;
calling a corresponding graphical interface, drawing a gradual change effect, and setting an original drawing area.
9. An apparatus for implementing a filter for selecting contents in a word processor, comprising a processor and a memory, wherein the processor implements the method for implementing the filter for selecting contents in a word processor according to any one of claims 1 to 8 when executing the computer program stored in the memory.
10. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements a method for implementing a word processor content selection filter according to any one of claims 1 to 8.
CN202010783972.8A 2020-08-06 2020-08-06 Method, equipment and storage medium for implementing filter for selecting content of word processing software Active CN111857491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010783972.8A CN111857491B (en) 2020-08-06 2020-08-06 Method, equipment and storage medium for implementing filter for selecting content of word processing software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010783972.8A CN111857491B (en) 2020-08-06 2020-08-06 Method, equipment and storage medium for implementing filter for selecting content of word processing software

Publications (2)

Publication Number Publication Date
CN111857491A true CN111857491A (en) 2020-10-30
CN111857491B CN111857491B (en) 2022-01-11

Family

ID=72971549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010783972.8A Active CN111857491B (en) 2020-08-06 2020-08-06 Method, equipment and storage medium for implementing filter for selecting content of word processing software

Country Status (1)

Country Link
CN (1) CN111857491B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100165378A1 (en) * 2008-12-29 2010-07-01 Konica Minolta Systems Laboratory, Inc. Variable data printing method using variable text color depending on background
CN105138273A (en) * 2015-09-30 2015-12-09 北京奇虎科技有限公司 Marking method and electronic equipment
JP2017508209A (en) * 2014-02-06 2017-03-23 楽天株式会社 Changing multiple display attribute settings using the same gesture
CN108279964A (en) * 2018-01-19 2018-07-13 广州视源电子科技股份有限公司 Text control for character editing and method and device for realizing overlay rendering
CN109947505A (en) * 2017-12-20 2019-06-28 深圳联友科技有限公司 A kind of pattern switching method and device for choosing interface element

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100165378A1 (en) * 2008-12-29 2010-07-01 Konica Minolta Systems Laboratory, Inc. Variable data printing method using variable text color depending on background
JP2017508209A (en) * 2014-02-06 2017-03-23 楽天株式会社 Changing multiple display attribute settings using the same gesture
CN105138273A (en) * 2015-09-30 2015-12-09 北京奇虎科技有限公司 Marking method and electronic equipment
CN109947505A (en) * 2017-12-20 2019-06-28 深圳联友科技有限公司 A kind of pattern switching method and device for choosing interface element
CN108279964A (en) * 2018-01-19 2018-07-13 广州视源电子科技股份有限公司 Text control for character editing and method and device for realizing overlay rendering

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MRABCATD: ""WORD中怎么改变选择文字时的颜色(不是文字背景颜色设定)?"", 《HTTPS://WWW.ZHIHU.COM/QUESTION/266751137/ANSWER/313510257》 *
百科全说: ""怎么给WPS文档插入的文本框设置填充纹理底色"", 《HTTPS://WWW.BKQS.COM.CN/CONTENT/XPMKO6K3E.HTML》 *

Also Published As

Publication number Publication date
CN111857491B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
JP4495239B2 (en) Translucent highlighting method for selected objects in electronic documents
CN110266971B (en) Short video making method and system
CN111639476B (en) Support of location cards by operating systems
US5917487A (en) Data-driven method and system for drawing user interface objects
US7522176B2 (en) Dynamically generating mini-graphs to represent style and template icons
JP2006059359A5 (en)
JP3100334B2 (en) Multimedia title editing device and style creation device used therefor
CN109408612A (en) A kind of map exchange method based on dynamic legend
KR101890831B1 (en) Method for Providing E-Book Service and Computer Program Therefore
CN113515221B (en) Picture and text comparison display method and device based on electronic document
CN111857491B (en) Method, equipment and storage medium for implementing filter for selecting content of word processing software
US20070061743A1 (en) Customization of visual editing elements
KR20090008747A (en) Method for reformating contents and recalculating number of pages of electronic book in case of a font size change, and apparatus applied to the same
CN109032951A (en) A kind of method, system, server and the storage medium of detection client operation OpenGL version
GB2346786A (en) Image maps
CN101599263B (en) Mobile terminal and display method of screen display (OSD) interface thereof
CN105630893A (en) Display method and device of photo title
US20090002386A1 (en) Graphical Representation Creation Mechanism
CN111506841A (en) Webpage display method, device and equipment and readable storage medium
JP2005056389A (en) Agent display and agent display method
US20140267380A1 (en) System and method for efficiently viewing a style
CN105900413A (en) Image processing program, display program, image processing method, display method, image processing device, and information processing device
CN114547515A (en) Page generation method, system, device, equipment and storage medium
CN110781652B (en) Method and device for drawing particles and light effects on columnar chart
CN110929496B (en) Text template generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Implementation method, equipment, and storage medium for content selection filters in word processing software

Effective date of registration: 20231019

Granted publication date: 20220111

Pledgee: Taian Taishan Caiyuan Investment Group Co.,Ltd.

Pledgor: Taishan Information Technology Co.,Ltd.

Registration number: Y2023980061603

PE01 Entry into force of the registration of the contract for pledge of patent right