CN112035869A - Protection method and device for graph combination form, electronic equipment and storage medium - Google Patents

Protection method and device for graph combination form, electronic equipment and storage medium Download PDF

Info

Publication number
CN112035869A
CN112035869A CN201910482639.0A CN201910482639A CN112035869A CN 112035869 A CN112035869 A CN 112035869A CN 201910482639 A CN201910482639 A CN 201910482639A CN 112035869 A CN112035869 A CN 112035869A
Authority
CN
China
Prior art keywords
attribute
combination form
attribute value
current graph
current
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
CN201910482639.0A
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
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software 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 filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910482639.0A priority Critical patent/CN112035869A/en
Publication of CN112035869A publication Critical patent/CN112035869A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method and a device for protecting a graph combination form in a document, electronic equipment and a storage medium, which can judge whether a selected current graph is a combined graph or not; if yes, reading the protection combination form attribute information of the current graph; judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective; the attribute value of the protection combination form attribute is preset by a user; and if the current graphic response is valid, forbidding the graphic combination cancellation operation of the current graphic response. Therefore, by applying the embodiment of the invention, if a certain selected current graph is a combined graph, the attribute information of the protection combined form attribute of the current graph is read, and when the protection combined form attribute value of the current graph is effective, the current graph can be prohibited from responding to cancel the graph combining operation, so that the combined form of the specified graph cannot be changed randomly, and the user experience is improved.

Description

Protection method and device for graph combination form, electronic equipment and storage medium
Technical Field
The present invention relates to the field of document protection technologies, and in particular, to a method and an apparatus for protecting a graphic combination in a document, an electronic device, and a storage medium.
Background
At present, when a document is edited in office software, the combination form of the graphics in the document can be changed as long as the document is opened, but in some cases, a user wants the combination form of the graphics not to be changed at will, for example, in some cases, the user has a high requirement on the relative position relationship of the graphics, and after the graphics are combined, the user does not want to cancel the combination; accordingly, some graphics may not be desirable to combine. In the prior art, a user can modify others in the whole text or can not modify all the figures, the combination form of only the designated figures can not be modified randomly, and the user experience is not high enough.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for protecting a graphic combination, an electronic device, and a storage medium, so that the combination of a designated graphic cannot be modified at will, thereby improving user experience. The specific technical scheme is as follows:
in a first aspect, the present invention provides a method for protecting a graph combination shape in a document, where the method includes:
judging whether the selected current graph is a combined graph or not;
if yes, reading the protection combination form attribute information of the current graph;
judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective; the attribute value of the protection combination form attribute is preset by a user;
and if the current graphic response is valid, forbidding the graphic combination cancellation operation of the current graphic response.
Alternatively to this, the first and second parts may,
the attribute value of the protection combination form attribute is preset by adopting the following steps:
judging whether a graphic combination form protection state change instruction is received or not after judging that the selected current graphic is a combined graphic;
if a graphic combination form protection state change instruction is received, reading the protection combination form attribute information of the current graphic;
judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective;
if the attribute value of the protection combination form attribute of the current graph is invalid, modifying the attribute value of the protection combination form attribute of the current graph to be valid;
and if the attribute value of the protection combination form attribute of the current graph is valid, modifying the attribute value of the protection combination form attribute of the current graph to be invalid.
Alternatively to this, the first and second parts may,
the step of judging whether a graphics combination form protection state change instruction is received comprises the following steps:
judging whether a graphic combination form protection state change button preset in a document display interface is clicked or not;
or judging whether a graphic combination form protection state change button in a right mouse button menu is clicked.
Alternatively to this, the first and second parts may,
if the attribute value of the protection combination form attribute of the current graph is invalid, the step of modifying the attribute value of the protection combination form attribute of the current graph into valid includes:
if the attribute value of the protection combination form attribute of the current graph is invalid, displaying a password setting dialog box;
saving the password set by the user, and modifying the attribute value of the protection combination form attribute of the current graph to be effective;
if the attribute value of the protection combination form attribute of the current graph is valid, the step of modifying the attribute value of the protection combination form attribute of the current graph into invalid comprises the following steps:
if the attribute value of the protection combination form attribute of the current graph is valid, displaying a password input dialog box;
judging whether the input password is a password preset by a user; if yes, the attribute value of the protection combination form attribute of the current graph is modified to be invalid.
Alternatively to this, the first and second parts may,
if the current pattern response is valid, the step of forbidding the current pattern response to cancel the pattern combination operation comprises the following steps:
if the attribute value of the protection combination form attribute of the current graph is valid, displaying a password input dialog box;
judging whether the input password is a password preset by a user;
if not, forbidding the current graphic response to cancel the graphic combination operation;
if yes, the attribute value of the protection combination form attribute of the current graph is modified to be invalid, and the graph combination operation is cancelled in response to the current graph.
Optionally, if the current graphics response is valid, the step of prohibiting the current graphics response from canceling the graphics composition operation includes:
and if the operation button is valid, displaying the graphic combination function operation button on the document editing interface as invalid or displaying the graphic combination function operation button in the right mouse button menu as invalid.
In a second aspect, the present invention provides a method for inhibiting graphics in a document from being combined, the method comprising:
judging whether the number of the selected current graphs is greater than or equal to two;
if yes, reading the forbidden combination form attribute information of each current graph;
judging whether the attribute value of the forbidden combination form attribute of each current graph is effective or ineffective; the attribute value of the forbidden combination form attribute is preset by a user;
and for each current graph of which the attribute value of the forbidden combination form attribute is effective, forbidding the combination operation of each current graph of which the attribute value of the forbidden combination form attribute is effective.
Optionally, the step of prohibiting, for each current graph whose attribute value of the prohibited combined form attribute is valid, a combining operation on each current graph whose attribute value of the prohibited combined form attribute is valid includes:
forbidding to combine each current graph with the attribute value of the forbidden combination form attribute being effective, and combining other selected current graphs;
or, comprising: and forbidding the combination operation on each selected current graph.
Optionally, the attribute value of the forbidden combination form attribute is preset by adopting the following steps:
judging whether a state change instruction of a pattern forbidden combination form is received or not after judging that the number of the selected current patterns is greater than or equal to two;
if a state change instruction of a figure forbidden combination form is received, reading the attribute information of the forbidden combination form of each current figure;
judging whether the attribute value of the forbidden combination form attribute of each current graph is effective or ineffective;
for each current graph with the attribute value of the forbidden combination form attribute being invalid, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute being invalid into valid;
and aiming at each current graph with the attribute value of the forbidden combination form attribute being effective, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute being effective into invalid.
Optionally, the step of determining whether the command for changing the state of the combination of the prohibited graphs is received includes:
judging whether a graphic forbidden combination form state change button preset in a document display interface is clicked or not;
or judging whether a graphic forbidden combination form state change button in a right mouse button menu is clicked or not.
Optionally, the step of modifying, for each current graph whose attribute value of the forbidden combination mode attribute is invalid, the attribute value of the forbidden combination mode attribute of each current graph whose attribute value of the forbidden combination mode attribute is invalid to be valid includes:
displaying a password setting dialog box aiming at the current graph with the attribute value of the forbidden combination form attribute being invalid;
saving the password set by the user, and modifying the attribute value of the forbidden combination form attribute of each current graph with the invalid attribute value of the forbidden combination form attribute into valid attribute value;
the step of modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid as invalid for each current graph with the attribute value of the forbidden combination form attribute as valid comprises the following steps:
displaying a password input dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute being effective;
judging whether the input password is a password preset by a user; if yes, the attribute value of the forbidden combination form attribute of each current graph, of which the attribute value is effective, is modified to be invalid.
Optionally, the step of prohibiting, for each current graph whose attribute value of the prohibited combined form attribute is valid, a combining operation on each current graph whose attribute value of the prohibited combined form attribute is valid includes:
displaying a password input dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute as effective;
judging whether the input password is a password preset by a user;
if not, forbidding to carry out the combination operation on each current graph with the attribute value of the forbidden combination form attribute as effective;
if yes, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid as invalid, and responding to the operation of combining each selected current graph.
Optionally, the step of prohibiting, for each current graph whose attribute value of the prohibited combined form attribute is valid, a combining operation on each current graph whose attribute value of the prohibited combined form attribute is valid includes:
and displaying the graphic combination function operating button on the document editing interface as invalid or displaying the graphic combination function operating button in the right mouse button menu as invalid.
In a third aspect, the present invention provides a device for protecting a combined form of graphics in a document, the device comprising:
the combined graph judging module is used for judging whether the selected current graph is a combined graph or not;
the attribute information reading module is used for reading the protection combination form attribute information of the current graph if the current graph is the protection combination form attribute information;
the attribute information judging module is used for judging whether the attribute value of the protection combination form attribute of the current graph is valid or invalid; the attribute value of the protection combination form attribute is preset by a user;
and the cancellation combination forbidding module is used for forbidding the current graphic response cancellation graphic combination operation if the current graphic response cancellation graphic combination operation is valid.
Optionally, the apparatus further comprises: an attribute value presetting module;
the attribute value presetting module comprises:
a change instruction receiving and judging unit, which is used for judging whether a graph combination form protection state change instruction is received or not after the selected current graph is judged to be the combination graph;
the attribute information reading unit is used for reading the protection combination form attribute information of the current graph if a graph combination form protection state change instruction is received;
an attribute information judgment unit, configured to judge whether an attribute value of the protection combination form attribute of the current graph is valid or invalid;
a first modification unit, configured to modify the attribute value of the protection combination form attribute of the current graph to be valid if the attribute value of the protection combination form attribute of the current graph is invalid;
and the second modification unit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is valid.
Optionally, the change instruction receiving and determining unit is specifically configured to:
judging whether a graphic combination form protection state change button preset in a document display interface is clicked or not;
or judging whether a graphic combination form protection state change button in a right mouse button menu is clicked.
Optionally, the first modifying unit includes: a first display subunit and a first modification subunit;
the first display subunit is configured to display a password setting dialog box if the attribute value of the protection combination form attribute of the current graphic is invalid;
the first modification subunit is used for storing the password set by the user and modifying the attribute value of the protection combination form attribute of the current graph into effective;
the second modification unit includes: the password input device comprises a second display subunit, a first password judgment subunit and a second modification subunit;
the second display subunit is configured to display a password input dialog box if the attribute value of the protection combination form attribute of the current graphic is valid;
the first password judgment subunit is used for judging whether the input password is a password preset by a user;
and the second modification subunit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is positive.
Optionally, the cancellation combination prohibition module includes: the password dialog box comprises a password dialog box display unit, a password judgment unit, a combination cancellation prohibition unit and a third modification unit;
the password dialog box display unit is used for displaying an input password dialog box if the attribute value of the protection combination form attribute of the current graph is valid;
the password judgment unit is used for judging whether the input password is a password preset by a user;
the canceling combination forbidding unit is used for forbidding the current graphic response canceling graphic combination operation if the current graphic response canceling graphic combination operation is not performed;
and the third modifying unit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is invalid, and responding to the current graph to cancel the graph combination operation.
Optionally, the cancellation combination prohibition module is specifically configured to:
and if the operation button is valid, displaying the graphic combination function operation button on the document editing interface as invalid or displaying the graphic combination function operation button in the right mouse button menu as invalid.
In a fourth aspect, the present invention provides an apparatus for inhibiting a combination of graphics in a document, the apparatus comprising:
the selected graph number judging module is used for judging whether the number of the selected current graphs is greater than or equal to two;
the attribute information reading module is used for reading the attribute information of the forbidden combination form of each current graph if the current graph is the forbidden combination form;
the attribute information judging module is used for judging whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid; the attribute value of the forbidden combination form attribute is preset by a user;
and the forbidding combination module is used for forbidding the combination operation on each current graph with the attribute value of the forbidding combination form attribute as valid aiming at each current graph with the attribute value of the forbidding combination form attribute as valid.
Optionally, the combination prohibition module is specifically configured to:
forbidding to combine each current graph with the attribute value of the forbidden combination form attribute being effective, and combining other selected current graphs;
or, comprising: and forbidding the combination operation on each selected current graph.
Optionally, the apparatus further comprises: an attribute value presetting module;
the attribute value presetting module comprises:
the change instruction receiving and judging unit is used for judging whether a change instruction of the state of the pattern forbidden combination form is received or not after judging that the number of the selected current patterns is greater than or equal to two;
the attribute information reading unit is used for reading the attribute information of the forbidden combination form of each current graph if a graph forbidden combination form state change instruction is received;
an attribute information judgment unit for judging whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid;
a first modification unit, configured to modify, for each current graph whose attribute value of the forbidden combination form attribute is invalid, an attribute value of the forbidden combination form attribute of each current graph whose attribute value of the forbidden combination form attribute is invalid to be valid;
and the second modification unit is used for modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid into invalid aiming at each current graph with the attribute value of the forbidden combination form attribute as valid.
Optionally, the change instruction receiving and determining unit is specifically configured to:
judging whether a graphic forbidden combination form state change button preset in a document display interface is clicked or not;
or judging whether a graphic forbidden combination form state change button in a right mouse button menu is clicked or not.
Optionally, the first modifying unit includes: a first display subunit and a first modification subunit;
the first display subunit is used for displaying a password setting dialog box aiming at the current graph with the attribute value of the forbidden combination form attribute being invalid;
the first modification subunit is configured to store a password set by a user, and modify the attribute value of the forbidden combination form attribute of each current graph, for which the attribute value of the forbidden combination form attribute is invalid, to be valid;
the second modification unit includes: the password input device comprises a second display subunit, a first password judgment subunit and a second modification subunit;
the second display subunit is configured to display a password input dialog box for each current graphic for which the attribute value of the forbidden combination form attribute is valid;
the first password judgment subunit is used for judging whether the input password is a password preset by a user;
and the second modification subunit is configured to, if yes, modify the attribute value of the forbidden combination form attribute of each current graph, for which the attribute value of the forbidden combination form attribute is valid, to be invalid.
Optionally, the combination prohibition module includes: the password dialog box comprises a password dialog box display unit, a password judgment unit, a combination prohibition unit and a third modification unit;
the password dialog box display unit is used for displaying an input password dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute being effective;
the password judgment unit is used for judging whether the input password is a password preset by a user;
the combination forbidding unit is used for forbidding the combination operation on each current graph with the attribute value of the combination forbidding form attribute being effective if the combination forbidding unit is not used for forbidding the combination operation on each current graph with the attribute value of the combination forbidding form attribute being effective;
and the third modifying unit is used for modifying the attribute value of the forbidden combination form attribute of each current graph, of which the attribute value of the forbidden combination form attribute is effective, into invalid if the attribute value of the forbidden combination form attribute is effective, and responding to the operation of combining each selected current graph.
Optionally, the combination prohibition module is specifically configured to:
and displaying the graphic combination function operating button on the document editing interface as invalid or displaying the graphic combination function operating button in the right mouse button menu as invalid.
In a fifth aspect, the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
processor, which is used to realize the protection method of the graph combination shape in the document when executing the program stored in the memory; or implementing the method steps of inhibiting the combination of graphics in a document as described above.
In a sixth aspect, the present invention provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements any one of the method steps of the method for protecting a graphic combination in a document; or implementing any of the method steps described above for inhibiting the combination of graphics in a document.
In a seventh aspect, an embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above methods for protecting a graph combination shape in a document; or performing any of the above methods for inhibiting the combination of graphics in a document.
The method, the device, the electronic equipment and the storage medium for protecting the graphic combination form in the document can judge whether the selected current graphic is a combined graphic; if yes, reading the protection combination form attribute information of the current graph; judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective; the attribute value of the protection combination form attribute is preset by a user; and if the current graphic response is valid, forbidding the graphic combination cancellation operation of the current graphic response. Therefore, by applying the embodiment of the invention, if a certain selected current graph is a combined graph, the attribute information of the protection combined form attribute of the current graph is read, and when the protection combined form attribute value of the current graph is effective, the current graph can be prohibited from responding to cancel the graph combining operation, so that the combined form of the specified graph cannot be changed randomly, and the user experience is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for protecting a pattern composition in a document according to an embodiment of the present invention;
FIG. 2 is another flowchart of a method for protecting a combined pattern in a document according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for prohibiting the combination of graphics in a document according to an embodiment of the present invention;
FIG. 4 is another flowchart of a method for prohibiting the combination of graphics in a document according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a protection device for graphics composition in a document according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus for prohibiting combination of graphics in a document according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to prevent the combination form of the designated graph from being changed at will and improve the user experience, the embodiment of the invention provides a method and a device for protecting the combination form of the graph in the document, an electronic device and a storage medium.
The method for protecting the graphic combination form in the document provided by the embodiment of the invention can be applied to any electronic equipment needing to protect the graphic combination form in the document, such as: a computer or a mobile terminal, etc., which are not limited herein. For convenience of description, the electronic device is hereinafter referred to simply as an electronic device.
As shown in fig. 1, a specific processing flow of the method for protecting a graphic combination form in a document according to an embodiment of the present invention includes:
and step S101, judging whether the selected current graph is a combined graph.
In practice, the electronic device may determine whether the selected current graphic is a combined graphic. In a specific embodiment, whether the value of the attribute type (type) is the attribute type value corresponding to the combined graph preset by the program developer can be determined by reading the attribute type (type) of the graph, if so, the graph is a combined graph, for example, when the value of the attribute type can be 6, the graph represents that the graph is a combined object, and the manner of determining whether the selected current graph is a combined graph is not particularly limited.
If the judgment result is yes, namely the selected current graph is the combined graph, executing the step S102; if the judgment result is negative, namely the selected current graph is not the combined graph, the operation is ended.
And step S102, reading the protection combination form attribute information of the current graph.
Step S103, judging whether the attribute value of the protection combination form attribute of the current graph is valid or invalid; the attribute value of the protection combination form attribute is preset by a user.
In practice, the attribute value of the protection combination form attribute may be preset by the following steps:
judging whether a graphic combination form protection state change instruction is received or not after judging that the selected current graphic is a combined graphic; if a graphic combination form protection state change instruction is received, reading the protection combination form attribute information of the current graphic; judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective; if the attribute value of the protection combination form attribute of the current graph is invalid, modifying the attribute value of the protection combination form attribute of the current graph to be valid; and if the attribute value of the protection combination form attribute of the current graph is valid, modifying the attribute value of the protection combination form attribute of the current graph to be invalid.
If the judgment result is valid, executing step S104; if the result of the judgment is invalid, step S105 is executed.
And step S104, forbidding the current graphic response canceling graphic combination operation.
In one embodiment, the electronic device may display the graphical combination function operation button on the document editing interface as invalid or display the graphical combination function operation button in the right mouse button menu as invalid.
And step S105, canceling the graphic combination operation in response to the current graphic.
Therefore, by applying the embodiment of the invention, if a certain selected current graph is a combined graph, the attribute information of the protection combined form attribute of the current graph is read, and when the protection combined form attribute value of the current graph is effective, the current graph can be prohibited from responding to cancel the graph combining operation, so that the combined form of the specified graph cannot be changed randomly, and the user experience is improved.
Another flowchart of a method for protecting a graphic combination pattern in a document according to an embodiment of the present invention is shown in fig. 2, and includes:
step S201, determining whether the selected current graph is a combined graph.
If the judgment result is yes, namely the selected current graph is the combined graph, executing the step S202; if the judgment result is negative, namely the selected current graph is not the combined graph, the operation is ended.
Step S202, judging whether a graphics combination form protection state change instruction is received.
In practice, the electronic device may determine whether a graphics combination protection state change instruction is received. In a specific implementation manner, whether a graphic combination form protection state change button preset in a document display interface is clicked or not can be judged; or judging whether a graphic combination form protection state change button in a right mouse button menu is clicked.
If the result of the determination is yes, that is, the graphics combination form protection state change instruction is received, then step S203 is executed; if the result of the determination is no, that is, if the graphics combination status change instruction is not received, step S213 is executed.
Step S203, reading the protection combination form attribute information of the current graph.
And reading the protection combination form attribute information of the current graph.
Step S204, judging whether the attribute value of the protection combination form attribute of the current graph is valid or invalid.
If the judgment result is invalid, executing step S205; if the result of the judgment is valid, step S208 is executed.
In step S205, a password setting dialog is displayed.
It may be implemented to display a password setting dialog box to allow the user to set the password.
Step S206, saving the password set by the user, and modifying the attribute value of the protection combination form attribute of the current graph to be effective.
In practice, if the user sets the password, the electronic device can encrypt the password set by the user and store the encrypted password in the password storage position in order to prevent the directly stored number from being easily stolen by others. And the attribute value of the protection combination form attribute of the current graph can be modified to be effective.
When the user modifies the attribute value of the protection combination form attribute of the current graph into valid, the password is set, and if other people do not know the password, the graph combination operation cannot be cancelled. For example: after the user A edits the document, the other users want to modify the text content, but the other users do not want to cancel the graphic combination. By the method, other people can be prohibited from canceling the graphic combination operation, editing of other contents in the document is not influenced, and user experience is improved.
Through the above steps S205 and S206, the protection combination form attribute information of the current graphic is modified from invalid to valid, that is, the protection state of the graphic combination form is changed from the unprotected state to the protected state.
And step S207, forbidding the current graphic response canceling graphic combination operation. The flow ends.
Step S207 may be the same as step S104, and is not described herein.
In step S208, a password input dialog is displayed.
In step S204, when the determination result that the attribute value of the protection combination shape attribute of the current graphic is valid or invalid is valid, a password input dialog box is displayed to allow the user to input a password.
In step S209, it is determined whether the input password is a password set in advance by the user.
It is practicable to judge whether the input password is a password set in advance by the user. Specifically, it may be determined whether the password input this time is the same as the password set when the attribute value of the protection combination form attribute of the current graphic is modified from invalid to valid.
If the result of the judgment is no, that is, the input password is not the password set by the user in advance, step S210 is executed; if the result of the judgment is yes, the input password is a password set by the user in advance, and step S211 is performed.
And step S210, forbidding the current graphic response canceling graphic combination operation. The flow ends.
And step S211, modifying the attribute value of the protection combination form attribute of the current graph into invalid.
It is practicable that if the input password is a password set by a user in advance, the protection combination form attribute value of the current graphic may be modified to be invalid.
In the above steps S209 and S211, the protection combination type attribute information of the current graphics is changed from valid to invalid, that is, the protection state of the graphics combination type is changed from the protected state to the unprotected state.
In this embodiment, in order to further protect the graphic combination form from being modified randomly, a protection password may be set in the process of changing the attribute of the protection combination form from invalid to valid, so that a user without the password cannot change the attribute of the protection combination form from valid to invalid.
And step S212, canceling the graphic combination operation in response to the current graphic. The flow ends.
Step S213, reading the protection combination shape attribute information of the current graph.
In step S202, in the step of determining whether a command for changing the protection state of the graphic combination form is received, if the determination result is negative, the step is executed to read the attribute information of the protection combination form of the current graphic.
Step S214, judging whether the attribute value of the protection combination form attribute of the current graph is valid or invalid.
If the result of the judgment is invalid, step S215 is executed. If the result of the judgment is valid, step S216 is executed.
Step S215, the graphic combination operation is cancelled in response to the current graphic. The flow ends.
In step S216, a password input dialog is displayed.
In step S217, it is determined whether the input password is a password set in advance by the user.
It is practicable to judge whether the input password is a password set in advance by the user.
If the result of the judgment is no, that is, the input password is not the password set by the user in advance, step S218 is performed; if the result of the judgment is yes, the input password is a password set by the user in advance, and step S219 is performed.
In step S218, the current graphics response cancellation graphics combination operation is prohibited. The flow ends.
Step S219, modifying the attribute value of the protection combination form attribute of the current graph to be invalid. Step S215 is performed.
By applying the embodiment, when the selected current graph is judged to be the combined graph and the graph combination state is to be cancelled, the input password dialog box can be displayed, whether the current user has the permission to cancel the combination form is judged by judging whether the input password is the password preset by the user, and if the password is correct, the attribute value of the protection combination form attribute of the current graph is modified to be valid; and if the password is incorrect, forbidding the current graphic response to cancel the graphic combination operation. By the mode, the user without permission can be prevented from randomly modifying the graphic combination form, and the user experience is improved.
Therefore, by applying the embodiment of the invention, if a certain selected current graph is a combined graph, the attribute information of the protection combined form attribute of the current graph is read, and when the protection combined form attribute value of the current graph is effective, the current graph can be prohibited from responding to cancel the graph combining operation, so that the combined form of the specified graph cannot be changed randomly, and the user experience is improved.
Corresponding to the method for protecting the combination form, an embodiment of the present invention further provides a method for prohibiting the combination of the graphics in the document, as shown in fig. 3, including:
step S301, judging whether the number of the selected current graphs is more than or equal to two.
If the judgment result is yes, namely the number of the selected current graphs is greater than or equal to two, executing the step S302; and if the judgment result is negative, namely the number of the selected current graphs is not more than or equal to two, ending the operation.
Step S302, reading the forbidden combination form attribute information of each current graph.
Step S303, judging whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid; the attribute value of the forbidden combination form attribute is preset by a user.
The attribute value of the forbidden combination form attribute can be preset by adopting the following steps:
judging whether a state change instruction of a pattern forbidden combination form is received or not after judging that the number of the selected current patterns is greater than or equal to two; if a state change instruction of a figure forbidden combination form is received, reading the attribute information of the forbidden combination form of each current figure; judging whether the attribute value of the forbidden combination form attribute of each current graph is effective or ineffective; for each current graph with the attribute value of the forbidden combination form attribute being invalid, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute being invalid into valid; and aiming at each current graph with the attribute value of the forbidden combination form attribute being effective, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute being effective into invalid.
For each current graph with the attribute value of the forbidden combination form attribute being effective, the combination operation of each selected current graph can be forbidden; or forbidding the combination operation on each current graph with the attribute value of the forbidden combination form attribute being effective, and combining the other selected current graphs. In some cases, for example, in practical application, 8 small graphics are overlapped, and the formats of 7 graphics are to be changed in batch, so that for convenient operation, the graphics which are not to be subjected to format change are prohibited from being combined, and then the 7 graphics are combined, so that the situations of wrong selection or bad selection and the like are avoided, and the user experience is high.
Executing step S304 for each current graph for which the attribute value of the forbidden combination form attribute is valid; step S305 is executed for each current graphic whose attribute value of the prohibited combined form attribute is invalid.
Step S304, for each current graph whose attribute value of the forbidden combination form attribute is effective, forbidding the combination operation of each current graph whose attribute value of the forbidden combination form attribute is effective.
It is practicable to prohibit the combination operation for each current graph whose attribute value of the combination prohibition form attribute is valid. In a specific embodiment, the graphic combination function operating button on the document editing interface may be displayed as invalid or the graphic combination function operating button in the right mouse button menu may be displayed as invalid.
Step S305 responds to the operation of combining the graphics for each current graphic for which the attribute value of the combination prohibition form attribute is invalid.
In step S303, if it is determined that the attribute value of the forbidden combination form attribute of each current graph is valid or invalid, if it is determined that the current graph including the forbidden combination form attribute is valid, the current graph whose attribute value of the forbidden combination form attribute is valid may be forbidden to be combined, and the operation of combining graphs for each current graph whose attribute value of the forbidden combination form attribute is invalid may be responded; or forbidding the combination operation on each selected current graph, namely forbidding the combination operation on all the selected current graphs as long as the attribute value containing the forbidden combination form attribute is the valid current graph.
Therefore, by applying the embodiment of the invention, if the number of the selected current graphs is more than or equal to two, the attribute information of the forbidden combination form of each current graph is read, and when the attribute value of the forbidden combination form attribute is the effective current graph, the combination operation of each current graph with the forbidden combination form attribute as the effective attribute value is forbidden, so that the combination form of the designated graph cannot be randomly changed, and the user experience is improved.
Another flowchart of a method for prohibiting combining graphics in a document according to an embodiment of the present invention is shown in fig. 4, and includes:
step S401, judging whether the number of the selected current graphs is more than or equal to two.
If the judgment result is yes, namely the number of the selected current graphs is greater than or equal to two, executing the step S402; and if the judgment result is negative, namely the number of the selected current graphs is not more than or equal to two, ending the operation.
In step S402, it is determined whether or not a graphics prohibition combination mode state change instruction is received.
In practice, the electronic device may determine whether a change command of the status of the combination prohibition mode is received. In a specific implementation manner, whether a graphic forbidden combination form state change button preset in a document display interface is clicked or not can be judged; or judging whether a graphic forbidden combination form state change button in a right mouse button menu is clicked or not.
If the result of the determination is yes, that is, the graphics prohibition combination status change instruction is received, then step S403 is executed; if the result of the determination is no, that is, if the graphics prohibition combination mode state change instruction is not received, step S413 is executed.
Step S403, reading the forbidden combination form attribute information of each current graph.
It is practicable to read the prohibited combination form attribute information of each of the current patterns.
Step S404, determining whether the attribute value of the forbidden combination shape attribute of each current graph is valid or invalid.
Executing step S405 for each current graph for which the attribute value of the forbidden combination form attribute is invalid; step S408 is executed for each current graph for which the attribute value of the prohibited combined form attribute is valid.
In step S405, a password setting dialog is displayed.
It may be implemented to display a password setting dialog box to allow the user to set the password.
Step S406, saving the password set by the user, and modifying the attribute value of the forbidden combination form attribute of each current graph with the invalid attribute value of the forbidden combination form attribute to be valid.
In practice, if the user sets the password, the electronic device can encrypt the password set by the user and store the encrypted password in the password storage position in order to prevent the directly stored number from being easily stolen by others. And the attribute value of the forbidden combination form attribute of each current graph can be modified to be effective.
In the above steps S405 and S406, the attribute value of the prohibited combination type attribute of each current graphic whose attribute value of the prohibited combination type attribute is invalid is modified to valid, that is, the prohibited combination type of the graphic is changed from the unprotected state to the protected state.
Step S407, prohibiting the combination operation on each current graph whose attribute value of each combination-prohibited form attribute is valid. The flow ends.
Step S407 may be the same as step S304, and is not described herein.
In step S408, a password input dialog is displayed.
An enter password dialog may be displayed to allow the user to enter a password.
In step S409, it is determined whether the input password is a password set in advance by the user.
It is practicable to judge whether the input password is a password set in advance by the user. Specifically, it may be determined whether the password input this time is the same as the password set when the attribute value of the forbidden combination form attribute of the current graph is modified from invalid to valid.
If the result of the judgment is no, that is, the input password is not the password set by the user in advance, step S410 is executed; if the result of the judgment is yes, the input password is a password set by the user in advance, and step S411 is performed.
And step S410, forbidding the combination of the selected current graphs. The flow ends.
Step S411, the attribute value of the forbidden combination form attribute of each current graph, the attribute value of the forbidden combination form attribute of which is effective, is modified to be invalid.
It is practicable that if the input password is a password set by a user in advance, the forbidden combination shape attribute value of the current figure may be modified to be invalid.
In the above steps S409 and S411, the attribute value of the prohibited combination type attribute of each current graphic whose attribute value of the prohibited combination type attribute is valid is modified to be invalid, that is, the protection state of the prohibited combination type attribute of the graphic is changed from the protected state to the unprotected state.
In this embodiment, in order to further protect the combined form of the graphics from being modified randomly, a protection password may be set in the process of changing the property of the combination prohibition form from invalid to valid, so that a user without the password cannot change the property of the combination prohibition form from valid to invalid.
Step S412, responding to the operation of combining the selected current graphics. The flow ends.
Step S413, reading the forbidden combination mode attribute information of each current graph.
Step S414, determining whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid.
Executing step S415 for each current graph for which the attribute value of the forbidden combination form attribute is invalid; step S416 is performed for each current graph for which the attribute value of the prohibited combined form attribute is valid.
Step S415, responding to the operation of combining the selected current graphics. The flow ends.
In step S416, a password input dialog is displayed.
In step S417, it is determined whether the input password is a password set in advance by the user.
It is practicable to judge whether the input password is a password set in advance by the user.
If the result of the judgment is no, that is, the input password is not the password set by the user in advance, step S418 is performed; if the result of the judgment is yes, the input password is a password set by the user in advance, and step S419 is performed.
Step S418, prohibiting the combination operation on each current graph whose attribute value of the combination-prohibited form attribute is valid. The flow ends.
Step S419, the attribute value of the forbidden combination form attribute of each current graph, the attribute value of the forbidden combination form attribute of which is effective, is modified to be invalid. Step S415 is performed.
By applying the embodiment, when the number of the selected current graphs is judged to be more than or equal to two and the graphs with the forbidden combination form attribute values being valid are required to be combined, a dialog box for inputting the password can be displayed, whether the current user has the authority of graph combination is judged by judging whether the input password is a password preset by the user, and if the password is correct, the attribute values of the forbidden combination form attributes of the current graphs with the forbidden combination form attribute values being valid are modified to be invalid; and if the password is incorrect, forbidding the combination operation on each current graph with the attribute value of the forbidden combination form attribute being valid. By the mode, the user without permission can be prevented from randomly modifying the graphic combination form, and the user experience is improved.
Therefore, by applying the embodiment of the invention, if the number of the selected current graphs is more than or equal to two, the attribute information of the forbidden combination form of each current graph is read, and when the attribute value of the forbidden combination form attribute is the effective current graph, the combination operation of each current graph with the forbidden combination form attribute as the effective attribute value is forbidden, so that the combination form of the designated graph cannot be randomly changed, and the user experience is improved.
The schematic structural diagram of the protection device in the form of a graphic combination provided in the embodiment of the present invention, as shown in fig. 5, includes:
a combined graph judging module 501, configured to judge whether the selected current graph is a combined graph;
an attribute information reading module 502, configured to read protection combination form attribute information of the current graph if the current graph is a protected combination form;
an attribute information determination module 503, configured to determine whether an attribute value of the protection combination form attribute of the current graph is valid or invalid; the attribute value of the protection combination form attribute is preset by a user;
a de-binning inhibit module 504 for inhibiting said current graphics response de-binning operation if valid.
Optionally, the apparatus further comprises: an attribute value presetting module;
the attribute value presetting module comprises:
a change instruction receiving and judging unit, which is used for judging whether a graph combination form protection state change instruction is received or not after the selected current graph is judged to be the combination graph;
the attribute information reading unit is used for reading the protection combination form attribute information of the current graph if a graph combination form protection state change instruction is received;
an attribute information judgment unit, configured to judge whether an attribute value of the protection combination form attribute of the current graph is valid or invalid;
a first modification unit, configured to modify the attribute value of the protection combination form attribute of the current graph to be valid if the attribute value of the protection combination form attribute of the current graph is invalid;
and the second modification unit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is valid.
Optionally, the change instruction receiving and determining unit is specifically configured to:
judging whether a graphic combination form protection state change button preset in a document display interface is clicked or not;
or judging whether a graphic combination form protection state change button in a right mouse button menu is clicked.
Optionally, the first modifying unit includes: a first display subunit and a first modification subunit;
the first display subunit is configured to display a password setting dialog box if the attribute value of the protection combination form attribute of the current graphic is invalid;
the first modification subunit is used for storing the password set by the user and modifying the attribute value of the protection combination form attribute of the current graph into effective;
the second modification unit includes: the password input device comprises a second display subunit, a first password judgment subunit and a second modification subunit;
the second display subunit is configured to display a password input dialog box if the attribute value of the protection combination form attribute of the current graphic is valid;
the first password judgment subunit is used for judging whether the input password is a password preset by a user;
and the second modification subunit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is positive.
Optionally, the cancellation combination prohibition module includes: the password dialog box comprises a password dialog box display unit, a password judgment unit, a combination cancellation prohibition unit and a third modification unit;
the password dialog box display unit is used for displaying an input password dialog box if the attribute value of the protection combination form attribute of the current graph is valid;
the password judgment unit is used for judging whether the input password is a password preset by a user;
the canceling combination forbidding unit is used for forbidding the current graphic response canceling graphic combination operation if the current graphic response canceling graphic combination operation is not performed;
and the third modifying unit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is invalid, and responding to the current graph to cancel the graph combination operation.
Optionally, the cancellation combination prohibition module is specifically configured to:
and if the operation button is valid, displaying the graphic combination function operation button on the document editing interface as invalid or displaying the graphic combination function operation button in the right mouse button menu as invalid.
Therefore, by applying the embodiment of the invention, if a certain selected current graph is a combined graph, the attribute information of the protection combined form attribute of the current graph is read, and when the protection combined form attribute value of the current graph is effective, the current graph can be prohibited from responding to cancel the graph combining operation, so that the combined form of the specified graph cannot be changed randomly, and the user experience is improved.
The schematic structural diagram of the apparatus for prohibiting the combination of graphics in a document according to the embodiment of the present invention, as shown in fig. 6, includes:
a selected graph number judgment module 601, configured to judge whether the number of the selected current graphs is greater than or equal to two;
an attribute information reading module 602, configured to read prohibited combination form attribute information of each current graph if the current graph is a forbidden combination form attribute information;
an attribute information determining module 603, configured to determine whether an attribute value of the forbidden combination form attribute of each current graph is valid or invalid; the attribute value of the forbidden combination form attribute is preset by a user;
and a forbidding combination module 604, configured to forbid, for each current graph whose attribute value of the forbidden combination form attribute is valid, a combination operation on each current graph whose attribute value of the forbidden combination form attribute is valid.
Optionally, the combination prohibition module is specifically configured to:
forbidding to combine each current graph with the attribute value of the forbidden combination form attribute being effective, and combining other selected current graphs;
or, comprising: and forbidding the combination operation on each selected current graph.
Optionally, the apparatus further comprises: an attribute value presetting module;
the attribute value presetting module comprises:
the change instruction receiving and judging unit is used for judging whether a change instruction of the state of the pattern forbidden combination form is received or not after judging that the number of the selected current patterns is greater than or equal to two;
the attribute information reading unit is used for reading the attribute information of the forbidden combination form of each current graph if a graph forbidden combination form state change instruction is received;
an attribute information judgment unit for judging whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid;
a first modification unit, configured to modify, for each current graph whose attribute value of the forbidden combination form attribute is invalid, an attribute value of the forbidden combination form attribute of each current graph whose attribute value of the forbidden combination form attribute is invalid to be valid;
and the second modification unit is used for modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid into invalid aiming at each current graph with the attribute value of the forbidden combination form attribute as valid.
Optionally, the change instruction receiving and determining unit is specifically configured to:
judging whether a graphic forbidden combination form state change button preset in a document display interface is clicked or not;
or judging whether a graphic forbidden combination form state change button in a right mouse button menu is clicked or not.
Optionally, the first modifying unit includes: a first display subunit and a first modification subunit;
the first display subunit is used for displaying a password setting dialog box aiming at the current graph with the attribute value of the forbidden combination form attribute being invalid;
the first modification subunit is configured to store a password set by a user, and modify the attribute value of the forbidden combination form attribute of each current graph, for which the attribute value of the forbidden combination form attribute is invalid, to be valid;
the second modification unit includes: the password input device comprises a second display subunit, a first password judgment subunit and a second modification subunit;
the second display subunit is configured to display a password input dialog box for each current graphic for which the attribute value of the forbidden combination form attribute is valid;
the first password judgment subunit is used for judging whether the input password is a password preset by a user;
and the second modification subunit is configured to, if yes, modify the attribute value of the forbidden combination form attribute of each current graph, for which the attribute value of the forbidden combination form attribute is valid, to be invalid.
Optionally, the combination prohibition module includes: the password dialog box comprises a password dialog box display unit, a password judgment unit, a combination prohibition unit and a third modification unit;
the password dialog box display unit is used for displaying an input password dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute being effective;
the password judgment unit is used for judging whether the input password is a password preset by a user;
the combination forbidding unit is used for forbidding the combination operation on each current graph with the attribute value of the combination forbidding form attribute being effective if the combination forbidding unit is not used for forbidding the combination operation on each current graph with the attribute value of the combination forbidding form attribute being effective;
and the third modifying unit is used for modifying the attribute value of the forbidden combination form attribute of each current graph, of which the attribute value of the forbidden combination form attribute is effective, into invalid if the attribute value of the forbidden combination form attribute is effective, and responding to the operation of combining each selected current graph.
Optionally, the combination prohibition module is specifically configured to:
and displaying the graphic combination function operating button on the document editing interface as invalid or displaying the graphic combination function operating button in the right mouse button menu as invalid.
Therefore, by applying the embodiment of the invention, if the number of the selected current graphs is more than or equal to two, the attribute information of the forbidden combination form of each current graph is read, and when the attribute value of the forbidden combination form attribute is the effective current graph, the combination operation of each current graph with the forbidden combination form attribute as the effective attribute value is forbidden, so that the combination form of the designated graph cannot be randomly changed, and the user experience is improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:
judging whether the selected current graph is a combined graph or not;
if yes, reading the protection combination form attribute information of the current graph;
judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective; the attribute value of the protection combination form attribute is preset by a user;
and if the current graphic response is valid, forbidding the graphic combination cancellation operation of the current graphic response.
Or the like, or, alternatively,
judging whether the number of the selected current graphs is greater than or equal to two;
if yes, reading the forbidden combination form attribute information of each current graph;
judging whether the attribute value of the forbidden combination form attribute of each current graph is effective or ineffective; the attribute value of the forbidden combination form attribute is preset by a user;
and for each current graph of which the attribute value of the forbidden combination form attribute is effective, forbidding the combination operation of each current graph of which the attribute value of the forbidden combination form attribute is effective.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and when being executed by a processor, the computer program implements the steps of the protection method for any of the above-mentioned graphics combination modalities; or implementing any of the above methods for inhibiting the combination of graphics in a document.
In another embodiment of the present invention, there is provided a computer program product containing instructions for causing a computer to perform the steps of the protection method of any of the above embodiments in combination of graphics when the computer program product runs on a computer; or implementing any of the above methods for inhibiting the combination of graphics in a document.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments such as the apparatus, the electronic device, the computer-readable storage medium, and the computer program product, since they are substantially similar to the method embodiments, the description is simple, and for relevant points, reference may be made to part of the 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 (28)

1. A method for protecting a graph combination form in a document is characterized by comprising the following steps:
judging whether the selected current graph is a combined graph or not;
if yes, reading the protection combination form attribute information of the current graph;
judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective; the attribute value of the protection combination form attribute is preset by a user;
and if the current graphic response is valid, forbidding the graphic combination cancellation operation of the current graphic response.
2. The method of claim 1,
the attribute value of the protection combination form attribute is preset by adopting the following steps:
judging whether a graphic combination form protection state change instruction is received or not after judging that the selected current graphic is a combined graphic;
if a graphic combination form protection state change instruction is received, reading the protection combination form attribute information of the current graphic;
judging whether the attribute value of the protection combination form attribute of the current graph is effective or ineffective;
if the attribute value of the protection combination form attribute of the current graph is invalid, modifying the attribute value of the protection combination form attribute of the current graph to be valid;
and if the attribute value of the protection combination form attribute of the current graph is valid, modifying the attribute value of the protection combination form attribute of the current graph to be invalid.
3. The method of claim 2,
the step of judging whether a graphics combination form protection state change instruction is received comprises the following steps:
judging whether a graphic combination form protection state change button preset in a document display interface is clicked or not;
or judging whether a graphic combination form protection state change button in a right mouse button menu is clicked.
4. The method of claim 2,
if the attribute value of the protection combination form attribute of the current graph is invalid, the step of modifying the attribute value of the protection combination form attribute of the current graph into valid includes:
if the attribute value of the protection combination form attribute of the current graph is invalid, displaying a password setting dialog box;
saving the password set by the user, and modifying the attribute value of the protection combination form attribute of the current graph to be effective;
if the attribute value of the protection combination form attribute of the current graph is valid, the step of modifying the attribute value of the protection combination form attribute of the current graph into invalid comprises the following steps:
if the attribute value of the protection combination form attribute of the current graph is valid, displaying a password input dialog box;
judging whether the input password is a password preset by a user; if yes, the attribute value of the protection combination form attribute of the current graph is modified to be invalid.
5. The method of claim 4,
if the current pattern response is valid, the step of forbidding the current pattern response to cancel the pattern combination operation comprises the following steps:
if the attribute value of the protection combination form attribute of the current graph is valid, displaying a password input dialog box;
judging whether the input password is a password preset by a user;
if not, forbidding the current graphic response to cancel the graphic combination operation;
if yes, the attribute value of the protection combination form attribute of the current graph is modified to be invalid, and the graph combination operation is cancelled in response to the current graph.
6. The method according to any one of claims 1 to 5, wherein the step of inhibiting the current graphics response from canceling the graphics composition operation if valid comprises:
and if the operation button is valid, displaying the graphic combination function operation button on the document editing interface as invalid or displaying the graphic combination function operation button in the right mouse button menu as invalid.
7. A method for inhibiting the composition of graphics in a document, the method comprising:
judging whether the number of the selected current graphs is greater than or equal to two;
if yes, reading the forbidden combination form attribute information of each current graph;
judging whether the attribute value of the forbidden combination form attribute of each current graph is effective or ineffective; the attribute value of the forbidden combination form attribute is preset by a user;
and for each current graph of which the attribute value of the forbidden combination form attribute is effective, forbidding the combination operation of each current graph of which the attribute value of the forbidden combination form attribute is effective.
8. The method according to claim 7, wherein the step of prohibiting a combining operation on each current graph whose attribute value of the forbidden combination form attribute is valid includes:
forbidding to combine each current graph with the attribute value of the forbidden combination form attribute being effective, and combining other selected current graphs;
or, comprising: and forbidding the combination operation on each selected current graph.
9. The method of claim 7,
the attribute value of the forbidden combination form attribute is preset by adopting the following steps:
judging whether a state change instruction of a pattern forbidden combination form is received or not after judging that the number of the selected current patterns is greater than or equal to two;
if a state change instruction of a figure forbidden combination form is received, reading the attribute information of the forbidden combination form of each current figure;
judging whether the attribute value of the forbidden combination form attribute of each current graph is effective or ineffective;
for each current graph with the attribute value of the forbidden combination form attribute being invalid, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute being invalid into valid;
and aiming at each current graph with the attribute value of the forbidden combination form attribute being effective, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute being effective into invalid.
10. The method of claim 9,
the step of judging whether a state change instruction of the graphic forbidden combination form is received comprises the following steps:
judging whether a graphic forbidden combination form state change button preset in a document display interface is clicked or not;
or judging whether a graphic forbidden combination form state change button in a right mouse button menu is clicked or not.
11. The method of claim 9,
the step of modifying the attribute value of the forbidden combination form attribute of each current graph with the invalid attribute value of the forbidden combination form attribute into valid aiming at each current graph with the invalid attribute value of the forbidden combination form attribute comprises the following steps:
displaying a password setting dialog box aiming at the current graph with the attribute value of the forbidden combination form attribute being invalid;
saving the password set by the user, and modifying the attribute value of the forbidden combination form attribute of each current graph with the invalid attribute value of the forbidden combination form attribute into valid attribute value;
the step of modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid as invalid for each current graph with the attribute value of the forbidden combination form attribute as valid comprises the following steps:
displaying a password input dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute being effective;
judging whether the input password is a password preset by a user; if yes, the attribute value of the forbidden combination form attribute of each current graph, of which the attribute value is effective, is modified to be invalid.
12. The method of claim 11,
the step of prohibiting the combination operation of each current graph whose attribute value of the forbidden combination form attribute is valid for each current graph whose attribute value of the forbidden combination form attribute is valid includes:
displaying a password input dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute as effective;
judging whether the input password is a password preset by a user;
if not, forbidding to carry out the combination operation on each current graph with the attribute value of the forbidden combination form attribute as effective;
if yes, modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid as invalid, and responding to the operation of combining each selected current graph.
13. The method according to claim 7, wherein the step of prohibiting a combining operation on each current graph whose attribute value of the forbidden combination form attribute is valid includes:
and displaying the graphic combination function operating button on the document editing interface as invalid or displaying the graphic combination function operating button in the right mouse button menu as invalid.
14. A device for protecting a pattern in a document, the device comprising:
the combined graph judging module is used for judging whether the selected current graph is a combined graph or not;
the attribute information reading module is used for reading the protection combination form attribute information of the current graph if the current graph is the protection combination form attribute information;
the attribute information judging module is used for judging whether the attribute value of the protection combination form attribute of the current graph is valid or invalid; the attribute value of the protection combination form attribute is preset by a user;
and the cancellation combination forbidding module is used for forbidding the current graphic response cancellation graphic combination operation if the current graphic response cancellation graphic combination operation is valid.
15. The apparatus of claim 14, further comprising: an attribute value presetting module;
the attribute value presetting module comprises:
a change instruction receiving and judging unit, which is used for judging whether a graph combination form protection state change instruction is received or not after the selected current graph is judged to be the combination graph;
the attribute information reading unit is used for reading the protection combination form attribute information of the current graph if a graph combination form protection state change instruction is received;
an attribute information judgment unit, configured to judge whether an attribute value of the protection combination form attribute of the current graph is valid or invalid;
a first modification unit, configured to modify the attribute value of the protection combination form attribute of the current graph to be valid if the attribute value of the protection combination form attribute of the current graph is invalid;
and the second modification unit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is valid.
16. The apparatus according to claim 15, wherein the change instruction reception determination unit is specifically configured to:
judging whether a graphic combination form protection state change button preset in a document display interface is clicked or not;
or judging whether a graphic combination form protection state change button in a right mouse button menu is clicked.
17. The apparatus of claim 15,
the first modification unit includes: a first display subunit and a first modification subunit;
the first display subunit is configured to display a password setting dialog box if the attribute value of the protection combination form attribute of the current graphic is invalid;
the first modification subunit is used for storing the password set by the user and modifying the attribute value of the protection combination form attribute of the current graph into effective;
the second modification unit includes: the password input device comprises a second display subunit, a first password judgment subunit and a second modification subunit;
the second display subunit is configured to display a password input dialog box if the attribute value of the protection combination form attribute of the current graphic is valid;
the first password judgment subunit is used for judging whether the input password is a password preset by a user;
and the second modification subunit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is positive.
18. The apparatus of claim 17,
the unbundling prohibition module includes: the password dialog box comprises a password dialog box display unit, a password judgment unit, a combination cancellation prohibition unit and a third modification unit;
the password dialog box display unit is used for displaying an input password dialog box if the attribute value of the protection combination form attribute of the current graph is valid;
the password judgment unit is used for judging whether the input password is a password preset by a user;
the canceling combination forbidding unit is used for forbidding the current graphic response canceling graphic combination operation if the current graphic response canceling graphic combination operation is not performed;
and the third modifying unit is used for modifying the attribute value of the protection combination form attribute of the current graph into invalid if the attribute value of the protection combination form attribute of the current graph is invalid, and responding to the current graph to cancel the graph combination operation.
19. The apparatus according to any one of claims 14 to 18, wherein the un-combining prohibition module is specifically configured to:
and if the operation button is valid, displaying the graphic combination function operation button on the document editing interface as invalid or displaying the graphic combination function operation button in the right mouse button menu as invalid.
20. An apparatus for inhibiting the composition of graphics in a document, the apparatus comprising:
the selected graph number judging module is used for judging whether the number of the selected current graphs is greater than or equal to two;
the attribute information reading module is used for reading the attribute information of the forbidden combination form of each current graph if the current graph is the forbidden combination form;
the attribute information judging module is used for judging whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid; the attribute value of the forbidden combination form attribute is preset by a user;
and the forbidding combination module is used for forbidding the combination operation on each current graph with the attribute value of the forbidding combination form attribute as valid aiming at each current graph with the attribute value of the forbidding combination form attribute as valid.
21. The apparatus according to claim 20, wherein the inhibiting combination module is specifically configured to:
forbidding to combine each current graph with the attribute value of the forbidden combination form attribute being effective, and combining other selected current graphs;
or, comprising: and forbidding the combination operation on each selected current graph.
22. The apparatus of claim 20, further comprising: an attribute value presetting module;
the attribute value presetting module comprises:
the change instruction receiving and judging unit is used for judging whether a change instruction of the state of the pattern forbidden combination form is received or not after judging that the number of the selected current patterns is greater than or equal to two;
the attribute information reading unit is used for reading the attribute information of the forbidden combination form of each current graph if a graph forbidden combination form state change instruction is received;
an attribute information judgment unit for judging whether the attribute value of the forbidden combination form attribute of each current graph is valid or invalid;
a first modification unit, configured to modify, for each current graph whose attribute value of the forbidden combination form attribute is invalid, an attribute value of the forbidden combination form attribute of each current graph whose attribute value of the forbidden combination form attribute is invalid to be valid;
and the second modification unit is used for modifying the attribute value of the forbidden combination form attribute of each current graph with the attribute value of the forbidden combination form attribute as valid into invalid aiming at each current graph with the attribute value of the forbidden combination form attribute as valid.
23. The apparatus according to claim 22, wherein the change instruction reception determination unit is specifically configured to:
judging whether a graphic forbidden combination form state change button preset in a document display interface is clicked or not;
or judging whether a graphic forbidden combination form state change button in a right mouse button menu is clicked or not.
24. The apparatus of claim 22,
the first modification unit includes: a first display subunit and a first modification subunit;
the first display subunit is used for displaying a password setting dialog box aiming at the current graph with the attribute value of the forbidden combination form attribute being invalid;
the first modification subunit is configured to store a password set by a user, and modify the attribute value of the forbidden combination form attribute of each current graph, for which the attribute value of the forbidden combination form attribute is invalid, to be valid;
the second modification unit includes: the password input device comprises a second display subunit, a first password judgment subunit and a second modification subunit;
the second display subunit is configured to display a password input dialog box for each current graphic for which the attribute value of the forbidden combination form attribute is valid;
the first password judgment subunit is used for judging whether the input password is a password preset by a user;
and the second modification subunit is configured to, if yes, modify the attribute value of the forbidden combination form attribute of each current graph, for which the attribute value of the forbidden combination form attribute is valid, to be invalid.
25. The apparatus of claim 24,
the combination prohibition module comprises: the password dialog box comprises a password dialog box display unit, a password judgment unit, a combination prohibition unit and a third modification unit;
the password dialog box display unit is used for displaying an input password dialog box aiming at each current graph with the attribute value of the forbidden combination form attribute being effective;
the password judgment unit is used for judging whether the input password is a password preset by a user;
the combination forbidding unit is used for forbidding the combination operation on each current graph with the attribute value of the combination forbidding form attribute being effective if the combination forbidding unit is not used for forbidding the combination operation on each current graph with the attribute value of the combination forbidding form attribute being effective;
and the third modifying unit is used for modifying the attribute value of the forbidden combination form attribute of each current graph, of which the attribute value of the forbidden combination form attribute is effective, into invalid if the attribute value of the forbidden combination form attribute is effective, and responding to the operation of combining each selected current graph.
26. The method according to claim 20, characterized in that said inhibiting combination module is specifically configured to:
and displaying the graphic combination function operating button on the document editing interface as invalid or displaying the graphic combination function operating button in the right mouse button menu as invalid.
27. 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 one of claims 1 to 6 when executing a program stored in the memory; or to carry out the method steps of any of claims 7 to 13.
28. 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 one of claims 1 to 6; or to carry out the method steps of any of claims 7 to 13.
CN201910482639.0A 2019-06-04 2019-06-04 Protection method and device for graph combination form, electronic equipment and storage medium Pending CN112035869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910482639.0A CN112035869A (en) 2019-06-04 2019-06-04 Protection method and device for graph combination form, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910482639.0A CN112035869A (en) 2019-06-04 2019-06-04 Protection method and device for graph combination form, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112035869A true CN112035869A (en) 2020-12-04

Family

ID=73576084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910482639.0A Pending CN112035869A (en) 2019-06-04 2019-06-04 Protection method and device for graph combination form, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112035869A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250453A (en) * 1992-03-04 1993-09-28 Matsushita Electric Ind Co Ltd Editing device having protecting function for data
CN107962780A (en) * 2016-10-19 2018-04-27 富士施乐株式会社 The editing equipment of three-dimensional shape data, the recording medium for storing its editing procedure and the recording medium for storing its data structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250453A (en) * 1992-03-04 1993-09-28 Matsushita Electric Ind Co Ltd Editing device having protecting function for data
CN107962780A (en) * 2016-10-19 2018-04-27 富士施乐株式会社 The editing equipment of three-dimensional shape data, the recording medium for storing its editing procedure and the recording medium for storing its data structure

Similar Documents

Publication Publication Date Title
EP2966584B1 (en) Information processing system, information processing apparatus, method of administrating license, and program
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
CN105117122A (en) Terminal screenshot method and terminal
CN107729764A (en) Guard method, device, storage medium and the electronic equipment of sensitive information
JPWO2012176530A1 (en) Information processing apparatus, method, and program for managing confidential information
EP3001293A1 (en) Method and device for rights management
JPWO2006103752A1 (en) How to control document copying
CN110955872A (en) Authority control method, device, terminal and medium
CN112035869A (en) Protection method and device for graph combination form, electronic equipment and storage medium
CN111553130A (en) Chapter title style conversion method and device, electronic equipment and storage medium
WO2019184230A1 (en) Information masking method and device, terminal, and computer readable storage medium
CN112115485A (en) Method and device for protecting width and height of graph in document, electronic equipment and storage medium
CN106933666B (en) Method for calling information input program and electronic equipment
CN112115501A (en) Method and device for protecting graphic shape in document, electronic equipment and storage medium
CN112115685A (en) Method and device for protecting graphic position in document, electronic equipment and storage medium
CN112035868A (en) Method and device for protecting graph rotation angle in document and electronic equipment
CN110659526B (en) Document processing method and device and electronic equipment
CN115146270A (en) Privacy monitoring method, device, equipment and medium based on code development
CN112035848A (en) Method and device for protecting graphic text content, electronic equipment and storage medium
CN112115486A (en) Method and device for protecting graphic shape format, electronic equipment and storage medium
CN112416210A (en) Information encryption and decryption method, system, storage medium and electronic equipment
CN111428210B (en) Method and device for editing watermark and electronic equipment
CN112417822A (en) Method and device for replacing pictures in spreadsheet cells and electronic equipment
CN110929235B (en) Watermark processing method and device, computer storage medium and terminal
CN112036126A (en) Method, device, equipment and storage medium for inhibiting operation on graph in document

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