CN110929473A - Method and device for previewing graph to be inserted, electronic equipment and storage medium - Google Patents

Method and device for previewing graph to be inserted, electronic equipment and storage medium Download PDF

Info

Publication number
CN110929473A
CN110929473A CN201811095895.6A CN201811095895A CN110929473A CN 110929473 A CN110929473 A CN 110929473A CN 201811095895 A CN201811095895 A CN 201811095895A CN 110929473 A CN110929473 A CN 110929473A
Authority
CN
China
Prior art keywords
graph
preview
office software
current interface
display position
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.)
Pending
Application number
CN201811095895.6A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201811095895.6A priority Critical patent/CN110929473A/en
Priority to PCT/CN2019/104573 priority patent/WO2020057378A1/en
Publication of CN110929473A publication Critical patent/CN110929473A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/166Editing, e.g. inserting or deleting

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)

Abstract

The invention implements a method, a device, electronic equipment and a storage medium for previewing a to-be-inserted graph, and after receiving an instruction for previewing the to-be-inserted graph, a preview of the to-be-inserted graph is displayed on an office software interface according to default values of various format parameters of the to-be-inserted graph. And after receiving an instruction of clearing the preview of the graph to be inserted, clearing the preview of the graph to be inserted. In the process, the display effect of the preview image of the graph to be inserted is consistent with the display effect of the graph inserted into the document.

Description

Method and device for previewing graph to be inserted, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of office software, in particular to a method and a device for previewing a graph to be inserted, electronic equipment and a storage medium.
Background
In the prior art, the process of inserting a certain shape of a graphic into an office document by a user of office software is to click "insert", "shape" on an office software interface. After clicking, the user of the office software can see a list of shape thumbnails on the office software interface. The user of the office software views the shape thumbnail and the shape name in the list, determines the shape of the image to be inserted, clicks the shape thumbnail, and inserts the shape displayed by the shape thumbnail into the office document in the form of the image.
However, the shape thumbnail can only provide the user with shape information of the graphics to be inserted, and the display format of the graphics cannot be seen by the user. Therefore, after the user of the office software inserts the graph into the office document, the observed display effect of the graph is often inconsistent with the observed effect when the user views the shape thumbnail, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for previewing a graph to be inserted, an electronic device and a storage medium, so that the effect seen by a user of office software when previewing the graph to be inserted is consistent with the display effect of the user after inserting the graph into an office document, and the user experience is improved. The specific technical scheme is as follows:
a method of previewing a graphic to be inserted, comprising:
after the office software is opened, receiving an instruction for previewing a graph to be inserted;
acquiring setting values of each format parameter of a graph to be inserted;
and displaying a preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
Optionally, the receiving an instruction to preview a to-be-inserted graphic includes:
detecting the display position of a mouse pointer;
judging whether the display position of the mouse pointer is positioned in the boundary of one displayed shape thumbnail on the current interface;
if so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
Optionally, the displaying a preview of the to-be-inserted graphic on the current interface of the office software includes:
displaying a preview of the graph to be inserted in a preset preview area for displaying the preview of the graph to be inserted; or
According to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software, judging whether the preview of the graph to be inserted is displayed in the first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not;
if the position of the mouse pointer does not exceed the preset position, displaying a preview of the graph to be inserted in a first direction of the display position of the mouse pointer;
if the current interface of the office software is beyond the boundary of the current interface of the office software, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted includes:
reading default values of all format parameters of the graph to be inserted from the office software;
the step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
and displaying a preview of the graph to be inserted on the current interface of the office software according to the default value of each format parameter of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted includes:
reading default values of each format parameter of the graph to be inserted from the office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
The step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb
Wherein, tbIs a preset transparentization factor;
and displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
Optionally, the method further includes:
and displaying the shape name of the graph to be inserted on the preview of the graph to be inserted.
Optionally, the method further includes:
and receiving an instruction of clearing the preview of the graph to be inserted, and clearing the preview of the graph to be inserted displayed on the office software interface.
Optionally, the receiving an instruction to remove the preview of the to-be-inserted graphic includes:
detecting the display position of a mouse pointer;
judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface;
if so, determining that an instruction for clearing the preview of the graph to be inserted is received.
An apparatus for previewing graphics to be inserted, comprising: a receiving unit, an acquiring unit, and a previewing unit;
the receiving unit is used for receiving an instruction for previewing the graph to be inserted after the office software is opened;
the acquisition unit is used for acquiring the setting values of each format parameter of the graph to be inserted;
and the preview unit is used for displaying a preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
Optionally, the receiving unit receives an instruction to preview a to-be-inserted graphic, and includes:
detecting the display position of a mouse pointer;
judging whether the display position of a mouse pointer is positioned in the boundary of a displayed shape thumbnail on the current interface of the office software;
if so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
Optionally, the previewing unit displays a preview of the to-be-inserted graph on a current interface of the office software, and includes:
displaying a preview of a graph to be inserted in a first area which is preset and used for displaying the preview of the graph to be inserted; or
According to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software, judging whether the preview of the graph to be inserted is displayed in the preset first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not;
if the position of the mouse pointer does not exceed the preset position, displaying a preview of the graph to be inserted in a first direction of the display position of the mouse pointer;
if the current interface of the office software is beyond the boundary of the current interface of the office software, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
Optionally, the obtaining unit is specifically configured to:
reading default values of all format parameters of the graph to be inserted from the office software;
the preview unit is specifically configured to:
and displaying a preview of the graph to be inserted on the current interface of the office software according to the default value of each format parameter of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted includes:
reading default values of each format parameter of the graph to be inserted from the office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
The step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb
Wherein, tbIs a preset transparentization factor;
and displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
Optionally, the preview unit is further configured to: and displaying the shape name of the graph to be inserted on the preview of the graph to be inserted.
Optionally, the receiving unit is further configured to receive an instruction to remove a preview of a to-be-inserted graphic;
the preview unit is further configured to remove the preview of the to-be-inserted graphic displayed on the office software interface after the receiving unit receives the instruction to remove the preview of the to-be-inserted graphic.
Optionally, the receiving unit receives an instruction to remove a preview of a to-be-inserted graphic, and includes:
detecting the display position of a mouse pointer;
judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface;
if so, determining that an instruction for clearing the preview of the graph to be inserted is received.
An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of any one of the methods for previewing the shape to be inserted when executing the program stored in the memory.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any of the above-mentioned methods of previewing a shape to be inserted.
According to the method for previewing the graph to be inserted, after the instruction for previewing the graph to be inserted is received, the preview of the graph to be inserted can be displayed on the office software interface according to the setting values of the format parameters of the graph to be inserted, so that the effect seen by a user of office software when the graph to be inserted is previewed is consistent with the display effect of the graph inserted into an office document by the user, and the user experience is improved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for previewing a to-be-inserted graph according to an embodiment of the present invention;
fig. 2 is a screenshot when a preview of a heptagon to be inserted is displayed on an interface of office software according to the method for previewing a to-be-inserted graph provided by the embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for previewing a to-be-inserted graph according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for previewing a to-be-inserted graphic 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.
In order to enable an effect seen by a user of office software when previewing a graph to be inserted to be consistent with a display effect of the user after inserting the graph into an office document and improve user experience, the embodiment of the invention provides a method and a device for previewing the graph to be inserted, electronic equipment and a storage medium.
First, a method for previewing a to-be-inserted graphic according to an embodiment of the present invention is described in detail.
As shown in fig. 1, a method for previewing a graphic to be inserted according to an embodiment of the present invention includes the following steps:
s101: after the office software is opened, an instruction to preview the to-be-inserted graphic is received.
In this step, office software such as: WPS character software, WPS table software and WPS demonstration software. Besides the three types of software, the software can also be other office software supporting the insertion of graphics in office documents.
S102: and acquiring the setting value of each format parameter of the graph to be inserted.
In this step, each format parameter may be a part or all of the format parameters that can be set for the inserted graphics after the graphics are inserted into the document, including but not limited to: filling ground color, border line type and thickness, border color, shadow effect, three-dimensional effect, size and the like. Wherein filling the base color may further comprise a sub-option to set the transparency.
S103: and displaying a preview of the graph to be inserted on a current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
In this step, a preview of the graphics to be inserted is displayed on the current interface of the office software, that is, the preview of the graphics to be inserted is displayed on the interface of the currently opened office document. As shown in fig. 2, fig. 2 is a screenshot when a preview of a heptagon to be inserted is displayed on an interface of office software according to the method for previewing a to-be-inserted graphic provided in the embodiment of the present invention. At this time, fig. 2 is an interface screenshot of an open office document.
In other embodiments, the preview of the graphics to be inserted may not be limited to having to be located in the interface of the office software. The preview of the graph to be inserted can be displayed in any area of the whole display interface of the office computer display.
In addition, since the office software itself has a function of drawing a graphic, and the method of generating a preview image when displaying the preview image of the graphic to be inserted is similar to the method of drawing a graphic of the office software itself, determining the setting value of each format parameter of the graphic to be inserted is equal to determining the preview image of the graphic to be inserted and the display effect thereof.
According to the method for previewing the graph to be inserted, after the instruction for previewing the graph to be inserted is received, the preview of the graph to be inserted can be displayed on the office software interface according to the setting values of the format parameters of the graph to be inserted, so that the effect seen by a user of office software when the graph to be inserted is previewed is consistent with the display effect of the graph inserted into an office document by the user, and the user experience is improved.
With reference to the foregoing embodiment, in another embodiment, receiving an instruction to preview a graphic to be inserted may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned in the boundary of one shape thumbnail displayed on the current interface.
If so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
In this step, the timing to start detecting the display position of the mouse pointer may be when the user selects a function of inserting a shape in office software used for opening the current office document and then starts detecting. When the user selects the function of inserting a shape, the office software displays thumbnails of the respective shapes. When the user moves the mouse pointer over a thumbnail of a certain shape, the user is considered to have received an instruction to preview the to-be-inserted graphic. As shown in fig. 2, fig. 2 is a screenshot when a preview of a heptagon to be inserted is displayed on an interface of office software according to the method for previewing a to-be-inserted graphic provided in the embodiment of the present invention. As can be seen from fig. 2, the color of the heptagon-shaped thumbnail is different from that of the other shape thumbnails, which means that the display position of the mouse pointer at this time is located just inside the heptagon-shaped thumbnail. Therefore, a heptagon preview is displayed on the interface of the office software.
It should be noted that, although the user selects the function of inserting the shape in the office document, the graphic finally inserted into the office document has other characteristics than the shape, such as color, border of the shape, whether the text is included, and the like, besides the specific shape. Therefore, the user finally inserts not a shape but a figure having a shape in the office document.
In other embodiments, displaying a preview of the graphics to be inserted on the current interface of the office software may include:
and displaying the preview of the graph to be inserted in a preset preview area for displaying the preview of the graph to be inserted.
Or judging whether the preview of the graph to be inserted is displayed in the first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not according to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software.
And if the current interface of the office software is not exceeded, displaying a preview of the graph to be inserted in the first direction of the display position of the mouse pointer.
If the current interface of the office software is exceeded, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software according to the boundary exceeding the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
In this embodiment, the preset preview area for displaying the preview image of the to-be-inserted graphic may be a display area specifically set by the office software for the preview image of the to-be-inserted graphic, such as the middle of the current interface of the office software, or the middle of the area for displaying each shape thumbnail, or the like. In other embodiments, the preview area may also be the middle of the display interface of the office computer display. In addition, the middle display in various areas is for the sake of aesthetic appearance and easy to be seen by the user, and in practical application, other positions besides the middle position can be used for displaying the preview of the graphics to be inserted.
In this embodiment, the first direction of the mouse pointer display position may be above, below, to the left, to the right, above left, below left, above right, below right, or below right, etc., of the mouse pointer display position.
In other embodiments, when it is determined that the preview of the to-be-inserted graphic may exceed the current interface of the office software, if a boundary of the current interface of the office software is exceeded, the display position of the preview of the to-be-inserted graphic may be adjusted so that the display position when the sum exceeds the boundary is symmetric with respect to the display position of the mouse pointer. And if the sum exceeds two adjacent boundaries of the current interface of the office software, adjusting the display position of the preview image of the graph to be inserted after adjustment, and enabling the display position when the sum exceeds the boundaries to be symmetrical about the origin of the display position of the mouse pointer. In the 2 adjustment modes, the display positions of the preview images of the adjusted graphics to be inserted are all located in the current interface of the office software.
In other embodiments, the adjustment to the boundary can be correspondingly performed according to the judged length exceeding the current interface of the office software. The specific adjustment distance is only required to be more than or equal to the length exceeding the length.
In the above embodiment, the preview of the to-be-inserted graphic is displayed in the first direction of the display position of the mouse pointer, and the specific positional relationship between the preview and the display position of the mouse pointer, such as the size from the display position of the mouse pointer, the present invention is not limited as long as the preview of the to-be-inserted graphic is displayed in the first direction and does not exceed the current interface of the office software.
In the scheme of displaying the preview of the to-be-inserted graphic according to the display position of the mouse pointer, if the display position of the mouse pointer slightly moves within the boundary of the shape thumbnail corresponding to the preview of the to-be-inserted graphic but does not exceed the boundary of the shape thumbnail, at this time, the preview of the to-be-inserted graphic may also slightly move correspondingly with the slight movement of the display position of the mouse pointer. Of course, in other embodiments, the mouse pointer may not move slightly with the displayed position of the mouse pointer.
In other embodiments, the step of obtaining the setting values of each format parameter of the graph to be inserted may include:
and reading default values of various format parameters of the graph to be inserted from office software.
Correspondingly, the step of displaying the preview of the to-be-inserted graphic on the current interface of the office software according to the setting value of each format parameter of the to-be-inserted graphic may include:
and displaying a preview of the graph to be inserted on a current interface of the office software according to the default value of each format parameter of the graph to be inserted.
In this embodiment, the default values for the various format parameters of the graphics to be inserted depend on the particular office document opened by the office software. In office software, each format parameter of each graph to be inserted has a default value set by the software. However, when a user inserts a graphic into an office document, and sets the display format of the graphic to the default format through the function of customizing the default format provided by office software, the default value of each format parameter of the graphic to be inserted in the office document is the value saved by the user.
In other embodiments, the step of obtaining the setting values of each format parameter of the graph to be inserted may include:
reading default values of each format parameter of the graph to be inserted from office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
Correspondingly, the step of displaying the preview of the to-be-inserted graphic on the current interface of the office software according to the setting value of each format parameter of the to-be-inserted graphic may include:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tbWherein, tbIs a preset transparentization factor.
And then, displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
In the embodiment, the preview image of the to-be-inserted graphic is transparently displayed, so that other display elements on the same position on the current interface of the office software are not blocked, such as adjacent shape thumbnails of the shape thumbnail corresponding to the to-be-inserted graphic. As shown in fig. 2, fig. 2 is a screenshot when a preview of a heptagon to be inserted is displayed on an interface of office software according to the method for previewing a to-be-inserted graphic provided in the embodiment of the present invention. As can be seen from fig. 2, the preview image of the heptagon to be inserted is transparent. At this time, other shape thumbnails on the interface of the office software, which are at the same positions as the preview image of the heptagon to be inserted, are not blocked and can be seen.
In this embodiment, the specific value of the preset transparentization factor is not limited in the present invention. In addition, the preset transparency factor of the office software may be a default fixed value or a value that can be manually set by the user.
In other embodiments, the preview of the graphics to be inserted can also be directly displayed with a preset transparency. The preset transparency may be the same for all the graphics to be inserted, or different transparencies may be preset according to different graphics to be inserted.
In another embodiment, in combination with the above embodiment, the shape name of the to-be-inserted graphic may also be displayed on a preview of the to-be-inserted graphic.
As mentioned in the above embodiments, the graphic to be inserted is a graphic having a shape, and here, the name of the shape of the graphic to be inserted is the name of the shape of the graphic to be inserted.
In practical application, some graphs with similar shapes are not easy to distinguish by users. After displaying the shape names on the preview image of the graphics to be inserted, the user can distinguish the graphics having similar shapes by the shape names.
Preferably, the shape name of the graphic to be inserted may be displayed at a middle position of a preview image of the graphic to be inserted. Thus, the utility model is beautiful and easy to be seen by the user. As shown in fig. 2, fig. 2 is a screenshot when a preview of a heptagon to be inserted is displayed on an interface of office software according to the method for previewing a to-be-inserted graphic provided in the embodiment of the present invention. As can be seen from fig. 2, in the middle of the preview image of the heptagon to be inserted, the shape name of the heptagon is displayed.
Further, the shape name may have a certain transparency as well as the preview of the graphic to be inserted. In this way, other shaped thumbnails are not obscured. Of course, in other embodiments, the shape name may not have transparency.
With reference to the foregoing embodiment, in other embodiments, after the preview of the to-be-inserted graphic is displayed, an instruction to clear the preview of the to-be-inserted graphic may be received, and the preview of the to-be-inserted graphic displayed on the office software interface is cleared.
Specifically, the receiving of the instruction to clear the preview of the to-be-inserted graphic may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface.
If so, determining that an instruction for clearing the preview of the graph to be inserted is received.
In this embodiment, before starting detection of the display position of the mouse pointer, the display position of the mouse pointer is located within the shape thumbnail corresponding to the preview image of the already-displayed to-be-inserted graphic. When the display position of the mouse pointer moves out of the shape thumbnail, the command of clearing the preview of the graph to be inserted is considered to be received. And correspondingly, clearing the displayed preview of the graph to be inserted.
In practical applications, the display position of the mouse pointer is moved out of the shape thumbnail, and the display position of the mouse pointer may be located in another shape thumbnail or may not be located in any shape thumbnail. In the former case, it is necessary to continue to display another preview of the graphics to be inserted.
According to the method for previewing the graph to be inserted, after the instruction for previewing the graph to be inserted is received, the preview of the graph to be inserted can be displayed on the office software interface according to the default values of the format parameters of the graph to be inserted, so that the effect seen by a user of office software when the graph to be inserted is previewed is consistent with the display effect of the user after the graph is inserted into an office document, and the user experience is improved. Besides, the preview of the graph to be inserted, which is displayed on the office software interface, has transparency. This does not block other display elements in the same location on the office software interface. And the shape name of the graph to be inserted is displayed on the preview of the graph to be inserted, so that the user can distinguish the graph to be inserted with the similar shape through the shape name.
In addition, after receiving an instruction to remove the preview of the to-be-inserted graphic, the method for previewing the to-be-inserted graphic provided by the embodiment of the invention further has a function of removing the preview of the to-be-inserted graphic displayed on the office software interface.
Next, a device for previewing a to-be-inserted graphic provided by an embodiment of the present invention is described in detail.
As shown in fig. 3, fig. 3 is a schematic structural diagram of an apparatus for previewing a to-be-inserted graphic according to an embodiment of the present invention.
The apparatus 300 for previewing a to-be-inserted graphic provided in the embodiment of the present invention includes: a receiving unit 301, an acquiring unit 302, and a preview unit 303.
The receiving unit 301 is configured to receive an instruction to preview a to-be-inserted graphic after the office software is opened.
Here, office software is as follows: WPS character software, WPS table software and WPS demonstration software. Besides the three types of software, the software can also be other office software supporting the insertion of graphics in office documents.
An obtaining unit 302, configured to obtain setting values of each format parameter of the graphics to be inserted.
Here, each format parameter may be a part or all of the format parameters that can be set for the inserted graphics after the graphics are inserted into the document, including but not limited to: filling ground color, border line type and thickness, border color, shadow effect, three-dimensional effect, size and the like. Wherein filling the base color may further comprise a sub-option to set the transparency.
And the preview unit 303 is configured to display a preview of the to-be-inserted graph on a current interface of the office software according to the setting value of each format parameter of the to-be-inserted graph.
In practical application, a preview of a graph to be inserted is displayed on a current interface of office software, namely, the preview of the graph to be inserted is displayed on an interface of a currently opened office document.
In other embodiments, the preview of the graphics to be inserted may not be limited to having to be located in the interface of the office software. The preview of the graph to be inserted can be displayed in any area of the whole display interface of the office computer display.
In addition, since the office software itself has a function of drawing a graphic, and the method of generating a preview image when displaying the preview image of the graphic to be inserted is similar to the method of drawing a graphic of the office software itself, determining the setting value of each format parameter of the graphic to be inserted is equal to determining the preview image of the graphic to be inserted and the display effect thereof.
With reference to the foregoing embodiment, in another embodiment, the receiving unit 301 receives an instruction to preview a to-be-inserted graphic, and may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned in the boundary of one shape thumbnail displayed on the current interface of the office software.
If so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
The timing at which the reception unit 301 starts detecting the display position of the mouse pointer may be when the detection is started after the function of inserting a shape is selected in office software used by the user to open the current office document. When the user selects the function of inserting a shape, the office software displays thumbnails of the respective shapes. When the user moves the mouse pointer to a thumbnail of a certain shape, the receiving unit considers that an instruction for previewing the figure to be inserted is received.
In other embodiments, the previewing unit 303 displays a preview of the to-be-inserted graphics on the current interface of the office software, and may include:
and displaying the preview of the graph to be inserted in a preset preview area for displaying the preview of the graph to be inserted.
Or judging whether the preview of the graph to be inserted is displayed in the first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not according to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software.
And if the current interface of the office software is not exceeded, displaying a preview of the graph to be inserted in the first direction of the display position of the mouse pointer.
If the current interface of the office software is exceeded, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software according to the boundary exceeding the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
In this embodiment, the preset preview area for displaying the preview image of the to-be-inserted graphic may be a display area specifically set by the office software for the preview image of the to-be-inserted graphic, such as the middle of the current interface of the office software, or the middle of the area for displaying each shape thumbnail, or the like. In other embodiments, the preview area may also be the middle of the display interface of the office computer display. In addition, the middle display in various areas is for the sake of aesthetic appearance and easy to be seen by the user, and in practical application, other positions besides the middle position can be used for displaying the preview of the graphics to be inserted.
In this embodiment, the first direction of the mouse pointer display position may be above, below, to the left, to the right, above left, below left, above right, below right, or below right, etc., of the mouse pointer display position.
In other embodiments, when it is determined that the preview of the to-be-inserted graphic may exceed the current interface of the office software, if a boundary of the current interface of the office software is exceeded, the display position of the preview of the to-be-inserted graphic may be adjusted so that the display position when the sum exceeds the boundary is symmetric with respect to the display position of the mouse pointer. And if the sum exceeds two adjacent boundaries of the current interface of the office software, adjusting the display position of the preview image of the graph to be inserted after adjustment, and enabling the display position when the sum exceeds the boundaries to be symmetrical about the origin of the display position of the mouse pointer. In the 2 adjustment modes, the display positions of the preview images of the adjusted graphics to be inserted are all located in the current interface of the office software.
In other embodiments, the adjustment to the boundary can be correspondingly performed according to the judged length exceeding the current interface of the office software. The specific adjustment distance is only required to be more than or equal to the length exceeding the length.
In the above embodiment, the preview of the to-be-inserted graphic is displayed in the first direction of the display position of the mouse pointer, and the specific positional relationship between the preview and the display position of the mouse pointer, such as the size from the display position of the mouse pointer, the present invention is not limited as long as the preview of the to-be-inserted graphic is displayed in the first direction and does not exceed the current interface of the office software.
In the scheme of displaying the preview of the to-be-inserted graphic according to the display position of the mouse pointer, if the display position of the mouse pointer slightly moves within the boundary of the shape thumbnail corresponding to the preview of the to-be-inserted graphic but does not exceed the boundary of the shape thumbnail, at this time, the preview of the to-be-inserted graphic may also slightly move correspondingly with the slight movement of the display position of the mouse pointer. Of course, in other embodiments, the mouse pointer may not move slightly with the displayed position of the mouse pointer.
In other embodiments, the obtaining unit 302 obtains the setting values of the format parameters of the graphics to be inserted, and may include:
and reading default values of various format parameters of the graph to be inserted from office software.
Correspondingly, the previewing unit 303 displays a preview of the to-be-inserted graphic on the current interface of the office software according to the setting value of each format parameter of the to-be-inserted graphic, including:
and displaying a preview of the graph to be inserted on a current interface of the office software according to the default value of each format parameter of the graph to be inserted.
In this embodiment, the default values for the various format parameters of the graphics to be inserted depend on the particular office document opened by the office software. In office software, each format parameter of each graph to be inserted has a default value set by the software. However, when a user inserts a graphic into an office document, and sets the display format of the graphic to the default format through the function of customizing the default format provided by office software, the default value of each format parameter of the graphic to be inserted in the office document is the value saved by the user.
In other embodiments, the obtaining unit 302 is specifically configured to:
reading default values of each format parameter of the graph to be inserted from office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
The preview unit 303 is specifically configured to:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb(ii) a Wherein, tbIs a preset transparentization factor.
Then, the preview unit 303 displays the preview of the graphics to be inserted on the current interface of the office software according to the transparency of the preview of the graphics to be inserted and the default values of other format parameters.
In the embodiment, the preview image of the to-be-inserted graphic is transparently displayed, so that other display elements on the same position on the current interface of the office software are not blocked, such as adjacent shape thumbnails of the shape thumbnail corresponding to the to-be-inserted graphic.
In this embodiment, the specific value of the preset transparentization factor is not limited in the present invention. In addition, the preset transparency factor of the office software may be a default fixed value or a value that can be manually set by the user.
In other embodiments, the preview of the graphics to be inserted can also be directly displayed with a preset transparency. The preset transparency may be the same for all the graphics to be inserted, or different transparencies may be preset according to different graphics to be inserted.
In another embodiment, in combination with the above embodiment, the preview unit 303 may further display a shape name of the to-be-inserted graphic on a preview image of the to-be-inserted graphic.
In practical application, some graphs with similar shapes are not easy to distinguish by users. After displaying the shape names on the preview image of the graphics to be inserted, the user can distinguish the graphics having similar shapes by the shape names.
Preferably, the shape name of the graphic to be inserted may be displayed at a middle position of a preview image of the graphic to be inserted. Thus, the utility model is beautiful and easy to be seen by the user.
Further, the shape name may have a certain transparency as well as the preview of the graphic to be inserted. In this way, other shaped thumbnails are not obscured. Of course, in other embodiments, the shape name may not have transparency.
In combination with the above embodiments, in other embodiments, after the preview unit 303 displays the preview of the to-be-inserted graphic, the receiving unit 301 may further receive an instruction to clear the preview of the to-be-inserted graphic. Then, the preview image of the to-be-inserted graphic displayed on the office software interface is cleared by the preview unit 303.
Specifically, the receiving unit 301 receives an instruction to clear a preview of a to-be-inserted graphic, and may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface.
If so, determining that an instruction for clearing the preview of the graph to be inserted is received.
In this embodiment, the receiving unit 301, before starting detection of the display position of the mouse pointer, the display position of the mouse pointer is located within the shape thumbnail corresponding to the preview image of the to-be-inserted graphic that has been displayed. When the display position of the mouse pointer is moved out of the shape thumbnail, the receiving unit 301 regards that an instruction to clear the preview image of the to-be-inserted graphic is received. Accordingly, the preview unit 303 clears the preview image of the graphics to be inserted that has been displayed.
In practical applications, the display position of the mouse pointer is moved out of the shape thumbnail, and the display position of the mouse pointer may be located in another shape thumbnail or may not be located in any shape thumbnail. In the former case, the preview unit is required to continuously display a preview of another to-be-inserted graphic.
According to the device for previewing the graph to be inserted, after the instruction for previewing the graph to be inserted is received, the preview of the graph to be inserted can be displayed on the office software interface according to the default values of the format parameters of the graph to be inserted, so that the effect seen by a user of office software when the graph to be inserted is previewed is consistent with the display effect of the user after the graph is inserted into an office document, and the user experience is improved. In addition, the device for previewing the graph to be inserted provided by the embodiment of the invention has transparency, wherein the preview of the graph to be inserted is displayed on the office software interface. This does not block other display elements in the same location on the office software interface. And the shape name of the graph to be inserted is displayed on the preview of the graph to be inserted, so that the user can distinguish the graph to be inserted with the similar shape through the shape name.
In addition, after receiving the instruction of clearing the preview of the to-be-inserted graph, the device for previewing the to-be-inserted graph provided by the embodiment of the invention can also clear the preview of the to-be-inserted graph displayed on the office software interface.
The embodiment of the present invention further provides an electronic device for previewing a to-be-inserted graphic, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404.
A memory 403 for storing a computer program.
The processor 401, when executing the program stored in the memory 403, implements the following steps:
a method of previewing a graphic to be inserted, comprising:
after the office software is opened, an instruction to preview the to-be-inserted graphic is received.
And acquiring the setting value of each format parameter of the graph to be inserted.
And displaying a preview of the graph to be inserted on a current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
Optionally, receiving an instruction to preview a to-be-inserted graphic may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned in the boundary of one shape thumbnail displayed on the current interface.
If so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
Optionally, displaying a preview of the to-be-inserted graphic on the current interface of the office software may include:
and displaying the preview of the graph to be inserted in a preset preview area for displaying the preview of the graph to be inserted.
Or judging whether the preview of the graph to be inserted is displayed in the first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not according to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software.
And if the current interface of the office software is not exceeded, displaying a preview of the graph to be inserted in the first direction of the display position of the mouse pointer.
If the current interface of the office software is exceeded, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software according to the boundary exceeding the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted may include:
and reading default values of various format parameters of the graph to be inserted from office software.
Correspondingly, the step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
and displaying a preview of the graph to be inserted on a current interface of the office software according to the default value of each format parameter of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted may include:
reading default values of each format parameter of the graph to be inserted from office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
Correspondingly, the step of displaying the preview of the to-be-inserted graphic on the current interface of the office software according to the setting value of each format parameter of the to-be-inserted graphic may include:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb
Wherein, tbIs a preset transparentization factor.
And then, displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
Optionally, the method may further include:
and displaying the shape name of the graph to be inserted on the preview of the graph to be inserted.
Optionally, the method may further include:
and receiving an instruction of clearing the preview of the graph to be inserted, and clearing the preview of the graph to be inserted displayed on the office software interface.
Optionally, receiving an instruction to clear the preview of the to-be-inserted graphic may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface.
If so, determining that an instruction for clearing the preview of the graph to be inserted is received.
According to the electronic equipment for previewing the graph to be inserted, after the instruction for previewing the graph to be inserted is received, the preview of the graph to be inserted can be displayed on the office software interface according to the default values of the format parameters of the graph to be inserted, so that the effect seen by a user of office software when the graph to be inserted is previewed is consistent with the display effect of the user after the graph is inserted into an office document, and the user experience is improved. In addition, the electronic device for previewing the graph to be inserted provided by the embodiment of the invention has transparency, wherein the preview of the graph to be inserted is displayed on an office software interface. This does not block other display elements in the same location on the office software interface. And the shape name of the graph to be inserted is displayed on the preview of the graph to be inserted, so that the user can distinguish the graph to be inserted with the similar shape through the shape name.
In addition, after receiving the instruction of removing the preview of the to-be-inserted graph, the electronic device for previewing the to-be-inserted graph provided by the embodiment of the invention can also remove the preview of the to-be-inserted graph displayed on the office software interface.
Next, a detailed description will be given of a computer-readable storage medium provided by an embodiment of the present invention.
The computer readable storage medium provided by the embodiment of the invention stores computer programs, and when the computer programs are executed by a processor, the computer programs realize the following method steps:
a method of previewing a graphic to be inserted, comprising:
after the office software is opened, an instruction to preview the to-be-inserted graphic is received.
And acquiring the setting value of each format parameter of the graph to be inserted.
And displaying a preview of the graph to be inserted on a current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
Optionally, receiving an instruction to preview a to-be-inserted graphic may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned in the boundary of one shape thumbnail displayed on the current interface.
If so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
Optionally, displaying a preview of the to-be-inserted graphic on the current interface of the office software may include:
and displaying the preview of the graph to be inserted in a preset preview area for displaying the preview of the graph to be inserted.
Or judging whether the preview of the graph to be inserted is displayed in the first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not according to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software.
And if the current interface of the office software is not exceeded, displaying a preview of the graph to be inserted in the first direction of the display position of the mouse pointer.
If the current interface of the office software is exceeded, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software according to the boundary exceeding the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted may include:
and reading default values of various format parameters of the graph to be inserted from office software.
Correspondingly, the step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
and displaying a preview of the graph to be inserted on a current interface of the office software according to the default value of each format parameter of the graph to be inserted.
Optionally, the step of obtaining the setting value of each format parameter of the graph to be inserted may include:
reading default values of each format parameter of the graph to be inserted from office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
Correspondingly, the step of displaying the preview of the to-be-inserted graphic on the current interface of the office software according to the setting value of each format parameter of the to-be-inserted graphic may include:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb
Wherein, tbIs a preset transparentization factor.
And then, displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
Optionally, the method may further include:
and displaying the shape name of the graph to be inserted on the preview of the graph to be inserted.
Optionally, the method may further include:
and receiving an instruction of clearing the preview of the graph to be inserted, and clearing the preview of the graph to be inserted displayed on the office software interface.
Optionally, receiving an instruction to clear the preview of the to-be-inserted graphic may include:
the display position of the mouse pointer is detected.
And judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface.
If so, determining that an instruction for clearing the preview of the graph to be inserted is received.
After receiving the instruction for previewing the graph to be inserted, the computer program stored in the computer storage medium for previewing the graph to be inserted provided by the embodiment of the invention can display the previewed graph of the graph to be inserted on the office software interface according to the default values of the format parameters of the graph to be inserted, so that the effect seen by a user of the office software when previewing the graph to be inserted is consistent with the display effect of the graph inserted into the office document by the user, and the user experience is improved. In addition, the computer program stored in the computer storage medium for previewing the graph to be inserted provided by the embodiment of the invention has transparency, and the preview of the graph to be inserted displayed on the office software interface. This does not block other display elements in the same location on the office software interface. And the shape name of the graph to be inserted is displayed on the preview of the graph to be inserted, so that the user can distinguish the graph to be inserted with the similar shape through the shape name.
In addition, after receiving the instruction to remove the preview of the to-be-inserted graphic, the computer program stored in the computer storage medium for previewing the to-be-inserted graphic according to the embodiment of the present invention may also remove the preview of the to-be-inserted graphic displayed on the office software interface.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments of the electronic device and the computer-readable storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to what is described in the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (18)

1. A method for previewing a graphic to be inserted, comprising:
after the office software is opened, receiving an instruction for previewing a graph to be inserted;
acquiring setting values of each format parameter of a graph to be inserted;
and displaying a preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
2. The method of claim 1,
the receiving of the instruction for previewing the graph to be inserted comprises the following steps:
detecting the display position of a mouse pointer;
judging whether the display position of the mouse pointer is positioned in the boundary of one displayed shape thumbnail on the current interface;
if so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
3. The method of claim 2,
the method for displaying the preview of the graph to be inserted in the current interface of the office software comprises the following steps:
displaying a preview of the graph to be inserted in a preset preview area for displaying the preview of the graph to be inserted; or
Judging whether the preview image of the graph to be inserted is displayed in the first direction of the display position of the mouse pointer and exceeds the current interface of the office software or not according to the display position of the mouse pointer, the size of the format parameter of the preview image of the graph to be inserted and the size of the current interface of the office software;
if the current interface of the office software is not exceeded, displaying a preview of a graph to be inserted in a first direction of the display position of the mouse pointer;
if the current interface of the office software is exceeded, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software according to the boundary exceeding the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
4. The method of claim 2,
the step of obtaining the setting value of each format parameter of the graph to be inserted comprises the following steps:
reading default values of all format parameters of the graph to be inserted from the office software;
the step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
and displaying a preview of the graph to be inserted on the current interface of the office software according to the default value of each format parameter of the graph to be inserted.
5. The method of claim 2,
the step of obtaining the setting value of each format parameter of the graph to be inserted comprises the following steps:
reading default values of each format parameter of the graph to be inserted from the office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
The step of displaying the preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted comprises the following steps:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb
Wherein, tbIs a preset transparentization factor;
and displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
6. The method according to any one of claims 1 to 5, further comprising:
and displaying the shape name of the graph to be inserted on the preview of the graph to be inserted.
7. The method according to any one of claims 2 to 5, further comprising:
and receiving an instruction of clearing the preview of the graph to be inserted, and clearing the preview of the graph to be inserted displayed on the office software interface.
8. The method of claim 7,
the receiving of the instruction for clearing the preview image of the graph to be inserted comprises:
detecting the display position of a mouse pointer;
judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface;
if so, determining that an instruction for clearing the preview of the graph to be inserted is received.
9. An apparatus for previewing graphics to be inserted, comprising: a receiving unit, an acquiring unit, and a previewing unit;
the receiving unit is used for receiving an instruction for previewing the graph to be inserted after the office software is opened;
the acquisition unit is used for acquiring the setting values of each format parameter of the graph to be inserted;
and the preview unit is used for displaying a preview of the graph to be inserted on the current interface of the office software according to the setting value of each format parameter of the graph to be inserted.
10. The apparatus of claim 9,
the receiving unit receives an instruction for previewing a graph to be inserted, and comprises:
detecting the display position of a mouse pointer;
judging whether the display position of a mouse pointer is positioned in the boundary of a displayed shape thumbnail on the current interface of the office software;
if so, determining that an instruction for previewing the graph to be inserted is received, wherein the graph corresponding to the shape thumbnail is the graph to be inserted.
11. The apparatus of claim 10,
the preview unit displays a preview of a graph to be inserted on a current interface of office software, and comprises the following steps:
displaying a preview of a graph to be inserted in a first area which is preset and used for displaying the preview of the graph to be inserted; or
According to the display position of the mouse pointer, the size of the format parameter of the preview of the graph to be inserted and the size of the current interface of the office software, judging whether the preview of the graph to be inserted is displayed in the preset first direction of the display position of the mouse pointer and whether the preview of the graph to be inserted exceeds the current interface of the office software or not;
if the current interface of the office software is not exceeded, displaying a preview of a graph to be inserted in a first direction of the display position of the mouse pointer;
if the current interface of the office software is exceeded, adjusting the display position of the preview image of the graph to be inserted into the boundary of the current interface of the office software according to the boundary exceeding the current interface of the office software; and displaying the preview of the graph to be inserted at the display position of the adjusted preview of the graph to be inserted.
12. The apparatus of claim 11,
the acquiring unit acquires the setting values of each format parameter of the graph to be inserted, and comprises the following steps:
reading default values of all format parameters of the graph to be inserted from the office software;
the preview unit displays a preview of the graph to be inserted on a current interface of the office software according to the setting value of each format parameter of the graph to be inserted, and the preview unit comprises:
and displaying a preview of the graph to be inserted on the current interface of the office software according to the default value of each format parameter of the graph to be inserted.
13. The apparatus of claim 10,
the obtaining unit is specifically configured to:
reading default values of each format parameter of the graph to be inserted from the office software, wherein the default values comprise: default value t of transparency of graph to be inserteda
The preview unit is specifically configured to:
calculating the transparency t of the preview image of the graph to be inserted according to the following formulac
tc=ta×tb
Wherein, tbIs a preset transparentization factor;
and displaying the preview of the graph to be inserted on the current interface of the office software according to the transparency of the preview of the graph to be inserted and the default values of other format parameters.
14. The apparatus according to any one of claims 9 to 13,
the preview unit is further configured to display the shape name of the to-be-inserted graphic on a preview of the to-be-inserted graphic.
15. The apparatus according to any one of claims 10 to 13,
the receiving unit is also used for receiving an instruction for clearing the preview of the graph to be inserted;
the preview unit is further configured to remove the preview of the to-be-inserted graphic displayed on the office software interface after the receiving unit receives the instruction to remove the preview of the to-be-inserted graphic.
16. The apparatus of claim 15,
the receiving unit receives an instruction for clearing the preview of the graph to be inserted, and comprises the following steps:
detecting the display position of a mouse pointer;
judging whether the display position of the mouse pointer is positioned outside the boundary of the shape thumbnail corresponding to the preview of the graph to be inserted in the current interface;
if so, determining that an instruction for clearing the preview of the graph to be inserted is received.
17. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 8 when executing a program stored in the memory.
18. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-8.
CN201811095895.6A 2018-09-19 2018-09-19 Method and device for previewing graph to be inserted, electronic equipment and storage medium Pending CN110929473A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811095895.6A CN110929473A (en) 2018-09-19 2018-09-19 Method and device for previewing graph to be inserted, electronic equipment and storage medium
PCT/CN2019/104573 WO2020057378A1 (en) 2018-09-19 2019-09-05 Method and apparatus for previewing pattern to be inserted, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811095895.6A CN110929473A (en) 2018-09-19 2018-09-19 Method and device for previewing graph to be inserted, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110929473A true CN110929473A (en) 2020-03-27

Family

ID=69856097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811095895.6A Pending CN110929473A (en) 2018-09-19 2018-09-19 Method and device for previewing graph to be inserted, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110929473A (en)
WO (1) WO2020057378A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070916A1 (en) * 2008-09-18 2010-03-18 Apple Inc. Template skimming preview
CN102713896A (en) * 2009-10-29 2012-10-03 国际商业机器公司 System, method, and program for editing of electronic document
CN106250070A (en) * 2015-06-09 2016-12-21 精工爱普生株式会社 Display control unit
CN108292302A (en) * 2016-02-01 2018-07-17 微软技术许可有限责任公司 Duplicate contents are presented automatically

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8560933B2 (en) * 2011-10-20 2013-10-15 Microsoft Corporation Merging and fragmenting graphical objects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070916A1 (en) * 2008-09-18 2010-03-18 Apple Inc. Template skimming preview
CN102713896A (en) * 2009-10-29 2012-10-03 国际商业机器公司 System, method, and program for editing of electronic document
CN106250070A (en) * 2015-06-09 2016-12-21 精工爱普生株式会社 Display control unit
CN108292302A (en) * 2016-02-01 2018-07-17 微软技术许可有限责任公司 Duplicate contents are presented automatically

Also Published As

Publication number Publication date
WO2020057378A1 (en) 2020-03-26

Similar Documents

Publication Publication Date Title
CN110933296B (en) Apparatus and method for providing content aware photo filter
US9785323B2 (en) Touch-based user interface control tiles
CN109189532B (en) Control bar display method, device, equipment and storage medium of electronic whiteboard
US9747010B2 (en) Electronic content visual comparison apparatus and method
CN111949181B (en) Display adjustment method and device, storage medium and electronic equipment
CN106610829B (en) Webpage screenshot method and device
US9959652B2 (en) Display method and terminal
CN105183338A (en) Object processing method
US20140325451A1 (en) Icon change method and apparatus
WO2017215542A1 (en) Method and device for displaying image
US20160232151A1 (en) Responsive course design system and method
CN106648571B (en) Method and device for calibrating application interface
CN111465917A (en) Bendable electronic equipment and interface adaptation method thereof
CN111147659A (en) Display control method and device, electronic equipment and storage medium
CN104932784A (en) Picture display method and terminal
CN111913343B (en) Panoramic image display method and device
CN106873860B (en) Network information commenting method and device
CN110929473A (en) Method and device for previewing graph to be inserted, electronic equipment and storage medium
CN104407767A (en) Method for regulating user interface
CN105373560A (en) On-line showing method of publication page
CN109840057B (en) Terminal protocol display method, device, equipment and storage medium
CN111858988B (en) Animation display method and device for picture and man-machine interaction equipment
CN111448534A (en) Terminal device, graphical user interface thereof and control method of graphical user interface
US9530183B1 (en) Elastic navigation for fixed layout content
CN106095734B (en) Text display 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327

RJ01 Rejection of invention patent application after publication