CN112035868A - Method and device for protecting graph rotation angle in document and electronic equipment - Google Patents

Method and device for protecting graph rotation angle in document and electronic equipment Download PDF

Info

Publication number
CN112035868A
CN112035868A CN201910482065.7A CN201910482065A CN112035868A CN 112035868 A CN112035868 A CN 112035868A CN 201910482065 A CN201910482065 A CN 201910482065A CN 112035868 A CN112035868 A CN 112035868A
Authority
CN
China
Prior art keywords
rotation angle
current graph
protection
graph
invalid
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
CN201910482065.7A
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 CN201910482065.7A priority Critical patent/CN112035868A/en
Publication of CN112035868A publication Critical patent/CN112035868A/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)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides a method and a device for protecting a rotation angle of a graph in a document and electronic equipment, which can detect whether a rotation angle control handle of the current graph is selected in real time; when the rotation angle control handle of the current graph is detected to be selected, reading the protection rotation angle attribute information of the current graph; judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid; if the current graph is valid, the current graph does not respond to the rotation angle editing operation; and if the current graph is invalid, responding to the rotation angle editing operation of the current graph. Therefore, by applying the embodiment of the invention, if the attribute value of the protection rotation angle attribute of the graph of the selected rotation angle control handle is valid, the rotation angle editing operation of the current graph can not be responded, so that the repeated operation caused by randomly modifying the rotation angle of the graph is reduced, and the user experience is improved.

Description

Method and device for protecting graph rotation angle in document and electronic equipment
Technical Field
The invention relates to the technical field of document protection, in particular to a method and a device for protecting a rotation angle of a graph in a document and electronic equipment.
Background
At present, when a document is edited in office software, the rotation angle of a selected graph can be modified. As shown in fig. 1, after the graphic is selected, a rotation angle control handle 101 is displayed, and the user can drag the rotation angle control handle 101 to modify the rotation angle of the graphic in the document.
In some documents, the requirement on the accuracy of the rotation angle of the graph is high, and once the user finishes drawing the graph, the user does not want to modify the rotation angle of the graph at will. However, the edited document may require other users to modify the text content, and other users may also modify the rotation angle of the graph at will without knowing that the precision requirement of the rotation angle of the graph is high. In order to meet the requirement of the rotation angle precision of the graph, the user is also required to repeatedly modify the rotation angle of the graph. In this way, the rotation angle of the graphic is repeatedly modified, resulting in a poor user experience.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, equipment and a storage medium for protecting a graph rotation angle in a document, so as to reduce repeated operation caused by random modification of the graph rotation angle and improve user experience. The specific technical scheme is as follows:
in a first aspect, the present invention provides a method for protecting a rotation angle of a graph in a document, where the method includes:
detecting whether a rotation angle control handle of the current graph is selected in real time;
when the rotation angle control handle of the current graph is detected to be selected, reading the protection rotation angle attribute information of the current graph;
judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
if the current graph is valid, the current graph does not respond to the rotation angle editing operation;
and if the current graph is invalid, responding to the rotation angle editing operation of the current graph.
Optionally, if the current graphic is valid, the step of not responding to the rotation angle editing operation of the current graphic includes:
and displaying the rotating function button on the document editing interface menu and the rotating function button in the right mouse button menu as invalid, and not responding to the rotating angle editing operation.
Optionally, before the step of detecting whether the rotation angle control handle of the current graph is selected in real time, the method further includes:
reading the protection rotation angle attribute information of the current graph after the current graph is selected;
judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
if the current graph is valid, displaying the rotation angle control handle of the current graph as invalid, and displaying a rotation function button on a document editing interface menu and a rotation function button in a right mouse button menu as invalid;
and if the current graph is invalid, executing the step of responding to the rotation angle editing operation of the current graph.
Optionally, the attribute value of the protection rotation angle attribute is preset by adopting the following steps:
after a rotation angle control handle selection instruction for the current graph is received or the current graph is selected, judging whether a graph rotation angle protection state change instruction is received or not;
if a graph rotation angle protection state change instruction is received, reading the protection rotation angle attribute information of the current graph;
judging whether the attribute value of the protection rotation angle attribute of the current graph is valid or invalid;
if the protection rotation angle attribute value of the current graph is invalid, modifying the protection rotation angle attribute value of the current graph to be valid;
and if the protection rotation angle attribute value of the current graph is valid, modifying the protection rotation angle attribute value of the current graph into invalidity.
Optionally, the step of determining whether the graphics rotation angle protection state change instruction is received includes:
judging whether a figure rotation angle protection state change button preset in a document display interface is clicked or not;
or judging whether a graph rotation angle protection state change button in a right mouse button menu is clicked or not.
Optionally, the step of modifying the protection rotation angle attribute value of the current graph to be valid if the protection rotation angle attribute value of the current graph is invalid includes:
if the protection rotation angle attribute of the current graph is invalid, displaying a password setting dialog box;
saving a password set by a user, and modifying the protection rotation angle attribute value of the current graph to be effective;
the step of modifying the protection rotation angle attribute value of the current graph to be invalid if the protection rotation angle attribute value of the current graph is valid includes:
if the protection rotation angle attribute of the current graph is valid, displaying prompt information with the rotation angle editing function disabled and displaying a password input dialog box;
judging whether the input password is a password preset by a user; and if so, modifying the protection rotation angle attribute value of the current graph into invalid.
Optionally, if the current graphic is valid, the step of not responding to the rotation angle editing operation of the current graphic includes:
if the attribute value of the protection rotation angle attribute of the current graph is valid, displaying prompt information with the rotation angle editing function disabled and displaying a password input dialog box;
judging whether the input password is a password preset by a user;
if not, the rotation angle editing operation of the current graph is not responded;
if so, modifying the protection rotation angle attribute value of the current graph into invalid, and responding to the rotation angle editing operation of the current graph.
In a second aspect, the present invention provides a device for protecting a rotation angle of a graphic in a document, the device comprising:
the rotation angle control handle detection module is used for detecting whether the rotation angle control handle of the current graph is selected in real time;
the first attribute information reading module is used for reading the protection rotation angle attribute information of the current graph after the rotation angle control handle of the current graph is detected to be selected;
the first attribute information judging module is used for judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
the rotation angle forbidding response module is used for not responding to the rotation angle editing operation of the current graph if the current graph is valid;
and the rotation angle response module is used for responding to the rotation angle editing operation of the current graph if the current graph is invalid.
Optionally, the rotation angle prohibition response module is specifically configured to:
and displaying the rotating function button on the document editing interface menu and the rotating function button in the right mouse button menu as invalid, and not responding to the rotating angle editing operation.
Optionally, the apparatus further comprises:
the second attribute information reading module is used for reading the protection rotation angle attribute information of the current graph after the current graph is selected before the rotation angle control handle detection module detects whether the rotation angle control handle of the current graph is selected in real time;
the second attribute information judging module is used for judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
the invalid display module is used for displaying the rotation angle control handle of the current graph as invalid and displaying a rotation function button on a document editing interface menu and a rotation function button in a right mouse button menu as invalid if the rotation angle control handle is valid; and if the attribute value of the protection rotation angle attribute is invalid, triggering the rotation angle response module to respond to the rotation angle editing operation of the 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 rotation angle protection state of the graph is received or not after a rotation angle control handle selection instruction aiming at the current graph is received or the current graph is selected;
the attribute information reading unit is used for reading the protection rotation angle attribute information of the current graph if a graph rotation angle protection state change instruction is received;
an attribute information determination unit that determines whether an attribute value of the protection rotation angle attribute of the current pattern is valid or invalid;
a first attribute value modification unit, configured to modify the protection rotation angle attribute value of the current graph to be valid if the protection rotation angle attribute value of the current graph is invalid;
and the second attribute value modifying unit is used for modifying the protection rotation angle attribute value of the current graph into invalid if the protection rotation angle attribute value of the current graph is valid.
Optionally, the change instruction receiving and determining unit is specifically configured to:
judging whether a figure rotation angle protection state change button preset in a document display interface is clicked or not;
or judging whether a graph rotation angle protection state change button in a right mouse button menu is clicked or not.
Optionally, the first attribute value 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 protection rotation angle attribute of the current graphic is invalid;
the first modification subunit is used for storing a password set by a user and modifying the protection rotation angle attribute value of the current graph into effective;
the second attribute value 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 prompt message indicating that the rotation angle editing function is disabled and display a password input dialog box if the rotation angle protection 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 protection rotation angle attribute value of the current graph into invalid if the protection rotation angle attribute value of the current graph is invalid.
Optionally, the rotation angle prohibition response module includes: the device comprises a display unit, a password judgment unit, a rotation angle forbidding response unit and a rotation angle response unit;
the display unit is used for displaying prompt information with the forbidden rotation angle editing function and displaying a password input dialog box if the attribute value of the protection rotation angle 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 rotation angle forbidding response unit is used for not responding to the rotation angle editing operation of the current graph if the current graph is not in the current state;
and the rotation angle response unit is used for modifying the protection rotation angle attribute value of the current graph into invalid if the current graph is in the invalid state, and responding to the rotation angle editing operation of the current graph.
In a third 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 mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of the claims for protecting the angle of rotation of the graphic when executing the program stored in the memory.
In a fourth aspect, the invention provides 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 the claims for protecting a rotation angle of a graphic in a document.
The method, the device, the electronic equipment and the storage medium for protecting the rotation angle of the graph in the document can detect whether the rotation angle control handle of the current graph is selected in real time; when the rotation angle control handle of the current graph is detected to be selected, reading the protection rotation angle attribute information of the current graph; judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid; if the current graph is valid, the current graph does not respond to the rotation angle editing operation; and if the current graph is invalid, responding to the rotation angle editing operation of the current graph. Therefore, by applying the embodiment of the invention, if the attribute value of the protection rotation angle attribute of the graph of the selected rotation angle control handle is valid, the rotation angle editing operation of the current graph can not be responded, so that the repeated operation caused by randomly modifying the rotation angle of the graph is reduced, 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 schematic diagram illustrating a selected graph in the prior art;
FIG. 2 is a flowchart of a method for protecting a rotation angle of a graph in a document according to an embodiment of the present invention;
FIG. 3 is another flowchart of a method for protecting a rotation angle of a graph in a document according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for protecting a rotation angle of a graph in a document according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a device for protecting a rotation angle of a graphic in a document according to an embodiment of the present invention;
fig. 6 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 reduce repeated operations caused by random modification of the rotation angle of the graph, the user experience is improved. The embodiment of the invention provides a method and a device for protecting a rotation angle of a graph in a document, electronic equipment and a storage medium.
The method for protecting the rotation angle of the graph in the document provided by the embodiment of the invention can be applied to any electronic equipment needing to protect the rotation angle of the graph 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. 2, a specific processing flow of the method for protecting a rotation angle of a graph in a document according to an embodiment of the present invention includes:
step S201, detecting whether the rotation angle control handle of the current graph is selected in real time.
And step S202, reading the protection rotation angle attribute information of the current graph after detecting that the rotation angle control handle of the current graph is selected.
In an implementation manner, after detecting that the rotation angle control handle of the current graph is selected, the electronic device may read the protection rotation angle attribute information of the graph.
In step S203, it is determined whether the preset attribute value of the protection rotation angle attribute is valid or invalid.
In practice, the attribute value of the protection rotation angle attribute may be preset by the following steps:
after receiving a rotation angle control handle selection instruction aiming at the current graph, judging whether a graph rotation angle protection state change instruction is received or not; if a graph rotation angle protection state change instruction is received, reading the protection rotation angle attribute information of the current graph; judging whether the attribute value of the protection rotation angle attribute of the current graph is valid or invalid; if the protection rotation angle attribute value of the current graph is invalid, modifying the protection rotation angle attribute value of the current graph to be valid; and if the protection rotation angle attribute value of the current graph is valid, modifying the protection rotation angle attribute value of the current graph into invalidity.
If the judgment result is invalid, executing step S204; if the result of the judgment is valid, step S205 is executed.
And step S204, responding to the rotation angle editing operation of the current graph.
It may be implemented that the editing operation may be performed in response to the rotation angle of the current graphic, if invalid.
And step S205, not responding to the rotation angle editing operation of the current graph.
It is practicable that if the attribute value of the protection rotation angle attribute is valid, the rotation angle editing operation of the current graphic may not be responded. The method can comprise the following steps: and displaying the rotating function button on the document editing interface menu and the rotating function button in the right mouse button menu as invalid, and not responding to the rotating angle editing operation. For example, the spin function button on the document editing interface menu and the spin function button in the right mouse button menu are displayed in gray. It is practicable that when the ctrl +1 shortcut key is detected to be pressed, the format menu is called out, and the operation related to the rotation angle editing can be shielded. The manner of prohibiting the rotation angle editing operation of the current graphic is not particularly limited.
Without responding to the rotation angle editing operation of the current graphic, the user may mistake the document editing software. In order to avoid this situation, the embodiment of the present invention may display a prompt message that the rotation angle editing function is disabled without responding to the rotation angle editing operation of the current graphic.
Therefore, by applying the embodiment of the invention, if the attribute value of the protection rotation angle attribute of the graph of the selected rotation angle control handle is valid, the rotation angle editing operation of the current graph can not be responded, so that the repeated operation caused by randomly modifying the rotation angle of the graph is reduced, and the user experience is improved.
Another flowchart of a method for protecting a rotation angle of a graph in a document according to an embodiment of the present invention, as shown in fig. 3, includes:
step S301, after the current graph is selected, reading the protection rotation angle attribute information of the current graph.
In an implementation manner, after detecting that the current graph is selected, the electronic device may read the protection rotation angle attribute information of the current graph.
Step S302, determining whether the preset attribute value of the protection rotation angle attribute is valid or invalid.
In practice, the attribute value of the protection rotation angle attribute may be preset by the following steps:
after a rotation angle control handle selection instruction for the current graph is received or the current graph is selected, judging whether a graph rotation angle protection state change instruction is received or not; if a graph rotation angle protection state change instruction is received, reading the protection rotation angle attribute information of the current graph; judging whether the attribute value of the protection rotation angle attribute of the current graph is valid or invalid; if the protection rotation angle attribute value of the current graph is invalid, modifying the protection rotation angle attribute value of the current graph to be valid; and if the protection rotation angle attribute value of the current graph is valid, modifying the protection rotation angle attribute value of the current graph into invalidity.
If the judgment result is valid, executing step S303; if the result of the judgment is invalid, step S304 is performed.
Step S303, displaying the rotation angle control handle of the current graph as invalid, and displaying the rotation function button on the document editing interface menu and the rotation function button in the right mouse button menu as invalid.
It is practicable that, when the attribute value of the protection rotation angle attribute of the current graphic is valid, the rotation angle handle of the current graphic may be displayed as invalid, and the rotation function button on the document editing interface menu and the rotation function button in the right mouse button menu may be displayed as invalid. Therefore, the user cannot use the rotation angle function of the graph on the current display interface, and the user can also see that the rotation angle function of the graph is in a forbidden state.
And step S304, detecting whether the rotation angle control handle of the current graph is selected in real time.
And S305, responding to the rotation angle editing operation of the current graph after detecting that the rotation angle control handle of the current graph is selected.
Therefore, by applying the embodiment of the invention, if the attribute value of the protection rotation angle attribute of the graph of the selected rotation angle control handle is valid, the rotation angle editing operation of the current graph can not be responded, so that the repeated operation caused by randomly modifying the rotation angle of the graph is reduced, and the user experience is improved.
Another flowchart of the method for protecting a rotation angle of a graph in a document according to an embodiment of the present invention, as shown in fig. 4, includes:
step S401, receiving a rotation angle control handle selection instruction aiming at the current graph or selecting the current graph.
In step S402, it is determined whether a graphics rotation angle protection state change instruction is received.
In practice, the electronic device may determine whether a graphics rotation angle protection state change instruction is received. In a specific implementation manner, whether a graph rotation angle protection state change button preset in a document display interface is clicked or not can be judged; or judging whether a graph rotation angle protection 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 rotation angle protection state change instruction is received, then step S403 is executed; if the result of the determination is no, that is, if the graphics rotation angle protection state change instruction is not received, step S413 is executed.
Step S403, reading the protection rotation angle attribute information of the current graph.
In practice, the electronic device may read the protection rotation angle attribute information of the graph.
Step S404, determining whether the attribute value of the protection rotation angle attribute of the current graph is valid or invalid.
If the judgment result is invalid, executing step S405; if the result of the judgment is valid, step S408 is executed.
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 protection rotation angle attribute value of the current graph 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 protection rotation angle attribute value of the current graph can be modified to be valid.
Through the above steps S405 and S406, the protection rotation angle attribute information of the current graphic is modified from invalid to valid, that is, the protection state of the graphic rotation angle is changed from the unprotected state to the protected state.
Step S407, does not respond to the rotation angle editing operation of the current graphic. The flow ends.
When the user modifies the protection rotation angle attribute value of the current graph into valid, the password is set, and if other people do not know the password, the user cannot edit the graph rotation angle. For example: after the user A edits the document, the other users hope to modify the text content, but the other users do not hope to modify the graph rotation angle. In the prior art, the mode of protecting the whole document cannot meet the user requirement, and the user experience is not good enough. Therefore, by the mode, the rotation angle of the graph can be forbidden to be edited by other people, the editing of other contents in the document is not influenced, and the user experience is improved.
In step S408, a prompt message indicating that the rotation angle editing function is disabled is displayed, and a password input dialog box is displayed.
When the determination result of whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid is determined to be valid in step S404, a prompt message indicating that the rotation angle editing function is disabled may be displayed so that the user knows that the rotation angle editing function cannot be used currently, and a password input dialog box is displayed so that the user inputs 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 protection rotation angle 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 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, not responding to the rotation angle editing operation of the current graph.
And step S411, modifying the protection rotation angle attribute value 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 rotation angle attribute value of the current graphic may be modified to be invalid.
Through the above steps S409 and S411, the protection rotation angle attribute information of the current graphic is changed from valid to invalid, that is, the protection state of the graphic rotation angle is changed from the protected state to the unprotected state.
In this embodiment, in order to further protect the graphic rotation angle from being modified at will, in the process of changing the protection rotation angle attribute from invalid to valid, a protection password may be set so that a user without a password cannot change the protection rotation angle attribute from valid to invalid.
Step S412, responding to the rotation angle editing operation of the current graph. The flow ends.
Step S413, reading the protection rotation angle attribute information of the current graph.
Step S414, determining whether the attribute value of the protection rotation angle attribute of the graph is valid or invalid.
If the result of the determination is invalid, step S415 is performed. If the result of the determination is valid, step S416 is performed.
And step S415, responding to the rotation angle editing operation of the current graph. The flow ends.
In step S416, a prompt message indicating that the rotation angle editing function is disabled is displayed, and a password input dialog box is displayed.
In step S417, it is determined 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.
And step S418, not responding to the rotation angle editing operation of the current graph. The flow ends.
And step S419, modifying the protection rotation angle attribute value of the current graph into invalid. Step S415 is performed.
Therefore, by applying the embodiment of the invention, if the attribute value of the protection rotation angle attribute of the graph of the selected rotation angle control handle is valid, the rotation angle editing operation of the current graph can not be responded, so that the repeated operation caused by randomly modifying the rotation angle of the graph is reduced, and the user experience is improved.
In this embodiment, when a user selects the rotation angle control handle of the current graphic or selects the current graphic and then performs a rotation angle editing operation on the rotation angle of the graphic, a dialog box for inputting a password may be displayed, whether the current user has an editing authority for the rotation angle of the graphic is determined by determining whether the input password is a password set by the user in advance, and if the password is correct, the attribute value of the protection rotation angle of the current graphic is modified to be invalid; and if the password is not correct, forbidding the graphic rotation angle editing operation. By the method, users without permission can be prevented from editing the graph rotation angle, and user experience is improved.
As shown in fig. 5, the schematic structural diagram of the device for protecting the rotation angle of the graph in the document according to the embodiment of the present invention includes:
a rotation angle control handle detection module 501, configured to detect whether a rotation angle control handle of a current graph is selected in real time;
a first attribute information reading module 502, configured to read, when it is detected that the rotation angle control handle of the current graphic is selected, protection rotation angle attribute information of the current graphic;
a first attribute information determining module 503, configured to determine whether an attribute value of a preset protection rotation angle attribute is valid or invalid;
a rotation angle prohibition response module 504, configured to, if valid, not respond to the rotation angle editing operation of the current graphic;
and a rotation angle response module 505, configured to respond to a rotation angle editing operation of the current graphic if the current graphic is invalid.
Optionally, the rotation angle prohibition response module is specifically configured to:
and displaying the rotating function button on the document editing interface menu and the rotating function button in the right mouse button menu as invalid, and not responding to the rotating angle editing operation.
Optionally, the apparatus further comprises:
the second attribute information reading module is used for reading the protection rotation angle attribute information of the current graph after the current graph is selected before the rotation angle control handle detection module detects whether the rotation angle control handle of the current graph is selected in real time;
the second attribute information judging module is used for judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
the invalid display module is used for displaying the rotation angle control handle of the current graph as invalid and displaying a rotation function button on a document editing interface menu and a rotation function button in a right mouse button menu as invalid if the rotation angle control handle is valid; and if the attribute value of the protection rotation angle attribute is invalid, triggering the rotation angle response module to respond to the rotation angle editing operation of the 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 rotation angle protection state of the graph is received or not after a rotation angle control handle selection instruction aiming at the current graph is received or the current graph is selected;
the attribute information reading unit is used for reading the protection rotation angle attribute information of the current graph if a graph rotation angle protection state change instruction is received;
an attribute information determination unit that determines whether an attribute value of the protection rotation angle attribute of the current pattern is valid or invalid;
a first attribute value modification unit, configured to modify the protection rotation angle attribute value of the current graph to be valid if the protection rotation angle attribute value of the current graph is invalid;
and the second attribute value modifying unit is used for modifying the protection rotation angle attribute value of the current graph into invalid if the protection rotation angle attribute value of the current graph is valid.
Optionally, the change instruction receiving and determining unit is specifically configured to:
judging whether a figure rotation angle protection state change button preset in a document display interface is clicked or not;
or judging whether a graph rotation angle protection state change button in a right mouse button menu is clicked or not.
Optionally, the first attribute value 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 protection rotation angle attribute of the current graphic is invalid;
the first modification subunit is used for storing a password set by a user and modifying the protection rotation angle attribute value of the current graph into effective;
the second attribute value 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 prompt message indicating that the rotation angle editing function is disabled and display a password input dialog box if the rotation angle protection 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 protection rotation angle attribute value of the current graph into invalid if the protection rotation angle attribute value of the current graph is invalid.
Optionally, the rotation angle prohibition response module includes: the device comprises a display unit, a password judgment unit, a rotation angle forbidding response unit and a rotation angle response unit;
the display unit is used for displaying prompt information with the forbidden rotation angle editing function and displaying a password input dialog box if the attribute value of the protection rotation angle 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 rotation angle forbidding response unit is used for not responding to the rotation angle editing operation of the current graph if the current graph is not in the current state;
and the rotation angle response unit is used for modifying the protection rotation angle attribute value of the current graph into invalid if the current graph is in the invalid state, and responding to the rotation angle editing operation of the current graph.
Therefore, by applying the embodiment of the invention, if the attribute value of the protection rotation angle attribute of the graph of the selected rotation angle control handle is valid, the rotation angle editing operation of the current graph can not be responded, so that the repeated operation caused by randomly modifying the rotation angle of the graph is reduced, and the user experience is improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the following steps when executing the program stored in the memory 603:
detecting whether a rotation angle control handle of the current graph is selected in real time;
when the rotation angle control handle of the current graph is detected to be selected, reading the protection rotation angle attribute information of the current graph;
judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
if the current graph is valid, the current graph does not respond to the rotation angle editing operation;
and if the current graph is invalid, responding to the rotation angle editing operation of the current graph.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for protecting the rotation angle of the graph in any one of the above documents.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for protecting the angle of rotation of a graph in any one of the above-mentioned embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, 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 (16)

1. A method for protecting a rotation angle of a graph in a document, which is characterized by comprising the following steps:
detecting whether a rotation angle control handle of the current graph is selected in real time;
when the rotation angle control handle of the current graph is detected to be selected, reading the protection rotation angle attribute information of the current graph;
judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
if the current graph is valid, the current graph does not respond to the rotation angle editing operation;
and if the current graph is invalid, responding to the rotation angle editing operation of the current graph.
2. The method of claim 1,
if the current graph is valid, the step of not responding to the rotation angle editing operation of the current graph comprises the following steps:
and displaying the rotating function button on the document editing interface menu and the rotating function button in the right mouse button menu as invalid, and not responding to the rotating angle editing operation.
3. The method of claim 1, further comprising, prior to the step of detecting in real time whether the rotation angle handle of the current graphic is selected:
reading the protection rotation angle attribute information of the current graph after the current graph is selected;
judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
if the current graph is valid, displaying the rotation angle control handle of the current graph as invalid, and displaying a rotation function button on a document editing interface menu and a rotation function button in a right mouse button menu as invalid;
and if the current graph is invalid, executing the step of responding to the rotation angle editing operation of the current graph.
4. The method of claim 3,
the attribute value of the protection rotation angle attribute is preset by adopting the following steps:
after a rotation angle control handle selection instruction for the current graph is received or the current graph is selected, judging whether a graph rotation angle protection state change instruction is received or not;
if a graph rotation angle protection state change instruction is received, reading the protection rotation angle attribute information of the current graph;
judging whether the attribute value of the protection rotation angle attribute of the current graph is valid or invalid;
if the protection rotation angle attribute value of the current graph is invalid, modifying the protection rotation angle attribute value of the current graph to be valid;
and if the protection rotation angle attribute value of the current graph is valid, modifying the protection rotation angle attribute value of the current graph into invalidity.
5. The method according to claim 4, wherein the step of determining whether the graphics rotation angle protection state change instruction is received comprises:
judging whether a figure rotation angle protection state change button preset in a document display interface is clicked or not;
or judging whether a graph rotation angle protection state change button in a right mouse button menu is clicked or not.
6. The method of claim 4,
if the protection rotation angle attribute value of the current graph is invalid, modifying the protection rotation angle attribute value of the current graph to be valid, including:
if the protection rotation angle attribute of the current graph is invalid, displaying a password setting dialog box;
saving a password set by a user, and modifying the protection rotation angle attribute value of the current graph to be effective;
the step of modifying the protection rotation angle attribute value of the current graph to be invalid if the protection rotation angle attribute value of the current graph is valid includes:
if the protection rotation angle attribute of the current graph is valid, displaying prompt information with the rotation angle editing function disabled and displaying a password input dialog box;
judging whether the input password is a password preset by a user; and if so, modifying the protection rotation angle attribute value of the current graph into invalid.
7. The method of claim 6,
if the current graph is valid, the step of not responding to the rotation angle editing operation of the current graph comprises the following steps:
if the attribute value of the protection rotation angle attribute of the current graph is valid, displaying prompt information with the rotation angle editing function disabled and displaying a password input dialog box;
judging whether the input password is a password preset by a user;
if not, the rotation angle editing operation of the current graph is not responded;
if so, modifying the protection rotation angle attribute value of the current graph into invalid, and responding to the rotation angle editing operation of the current graph.
8. An apparatus for protecting a rotation angle of a figure in a document, the apparatus comprising:
the rotation angle control handle detection module is used for detecting whether the rotation angle control handle of the current graph is selected in real time;
the first attribute information reading module is used for reading the protection rotation angle attribute information of the current graph after the rotation angle control handle of the current graph is detected to be selected;
the first attribute information judging module is used for judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
the rotation angle forbidding response module is used for not responding to the rotation angle editing operation of the current graph if the current graph is valid;
and the rotation angle response module is used for responding to the rotation angle editing operation of the current graph if the current graph is invalid.
9. The apparatus according to claim 8, wherein the rotation angle inhibition response module is specifically configured to:
and displaying the rotating function button on the document editing interface menu and the rotating function button in the right mouse button menu as invalid, and not responding to the rotating angle editing operation.
10. The apparatus of claim 8, further comprising:
the second attribute information reading module is used for reading the protection rotation angle attribute information of the current graph after the current graph is selected before the rotation angle control handle detection module detects whether the rotation angle control handle of the current graph is selected in real time;
the second attribute information judging module is used for judging whether the preset attribute value of the protection rotation angle attribute is valid or invalid;
the invalid display module is used for displaying the rotation angle control handle of the current graph as invalid and displaying a rotation function button on a document editing interface menu and a rotation function button in a right mouse button menu as invalid if the rotation angle control handle is valid; and if the attribute value of the protection rotation angle attribute is invalid, triggering the rotation angle response module to respond to the rotation angle editing operation of the current graph.
11. The apparatus of claim 10, 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 rotation angle protection state of the graph is received or not after a rotation angle control handle selection instruction aiming at the current graph is received or the current graph is selected;
the attribute information reading unit is used for reading the protection rotation angle attribute information of the current graph if a graph rotation angle protection state change instruction is received;
an attribute information determination unit that determines whether an attribute value of the protection rotation angle attribute of the current pattern is valid or invalid;
a first attribute value modification unit, configured to modify the protection rotation angle attribute value of the current graph to be valid if the protection rotation angle attribute value of the current graph is invalid;
and the second attribute value modifying unit is used for modifying the protection rotation angle attribute value of the current graph into invalid if the protection rotation angle attribute value of the current graph is valid.
12. The apparatus according to claim 11, wherein the change instruction reception determination unit is specifically configured to:
judging whether a figure rotation angle protection state change button preset in a document display interface is clicked or not;
or judging whether a graph rotation angle protection state change button in a right mouse button menu is clicked or not.
13. The apparatus of claim 11,
the first attribute value 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 protection rotation angle attribute of the current graphic is invalid;
the first modification subunit is used for storing a password set by a user and modifying the protection rotation angle attribute value of the current graph into effective;
the second attribute value 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 prompt message indicating that the rotation angle editing function is disabled and display a password input dialog box if the rotation angle protection 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 protection rotation angle attribute value of the current graph into invalid if the protection rotation angle attribute value of the current graph is invalid.
14. The apparatus of claim 13,
the rotation angle inhibition response module comprises: the device comprises a display unit, a password judgment unit, a rotation angle forbidding response unit and a rotation angle response unit;
the display unit is used for displaying prompt information with the forbidden rotation angle editing function and displaying a password input dialog box if the attribute value of the protection rotation angle 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 rotation angle forbidding response unit is used for not responding to the rotation angle editing operation of the current graph if the current graph is not in the current state;
and the rotation angle response unit is used for modifying the protection rotation angle attribute value of the current graph into invalid if the current graph is in the invalid state, and responding to the rotation angle editing operation of the current graph.
15. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
16. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN201910482065.7A 2019-06-04 2019-06-04 Method and device for protecting graph rotation angle in document and electronic equipment Pending CN112035868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910482065.7A CN112035868A (en) 2019-06-04 2019-06-04 Method and device for protecting graph rotation angle in document and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910482065.7A CN112035868A (en) 2019-06-04 2019-06-04 Method and device for protecting graph rotation angle in document and electronic equipment

Publications (1)

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

Family

ID=73576052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910482065.7A Pending CN112035868A (en) 2019-06-04 2019-06-04 Method and device for protecting graph rotation angle in document and electronic equipment

Country Status (1)

Country Link
CN (1) CN112035868A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182491A (en) * 1993-12-22 1995-07-21 Ricoh Co Ltd Electronic file device
US5721847A (en) * 1994-10-21 1998-02-24 Microsoft Corporation Method and system for linking controls with cells of a spreadsheet
JPH1125285A (en) * 1997-07-02 1999-01-29 Mutoh Ind Ltd Input system of graphic element
JP2003050793A (en) * 2001-08-08 2003-02-21 Matsushita Electric Ind Co Ltd Device, method and program for managing authorization or no authorization for data editing, device, method and program for editing data and data-providing device
US6870546B1 (en) * 1998-06-01 2005-03-22 Autodesk, Inc. Protectable expressions in objects having authorable behaviors and appearances
US20100199164A1 (en) * 2009-01-30 2010-08-05 John William Lumley Controlling editing of a portion of a document
CN106934295A (en) * 2015-12-31 2017-07-07 珠海金山办公软件有限公司 A kind of document processing method and device
CN108549623A (en) * 2018-04-12 2018-09-18 北京三快在线科技有限公司 Collaborative document editing control method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182491A (en) * 1993-12-22 1995-07-21 Ricoh Co Ltd Electronic file device
US5721847A (en) * 1994-10-21 1998-02-24 Microsoft Corporation Method and system for linking controls with cells of a spreadsheet
JPH1125285A (en) * 1997-07-02 1999-01-29 Mutoh Ind Ltd Input system of graphic element
US6870546B1 (en) * 1998-06-01 2005-03-22 Autodesk, Inc. Protectable expressions in objects having authorable behaviors and appearances
JP2003050793A (en) * 2001-08-08 2003-02-21 Matsushita Electric Ind Co Ltd Device, method and program for managing authorization or no authorization for data editing, device, method and program for editing data and data-providing device
US20100199164A1 (en) * 2009-01-30 2010-08-05 John William Lumley Controlling editing of a portion of a document
CN106934295A (en) * 2015-12-31 2017-07-07 珠海金山办公软件有限公司 A kind of document processing method and device
CN108549623A (en) * 2018-04-12 2018-09-18 北京三快在线科技有限公司 Collaborative document editing control method, device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
EICEBLUE: "C#Powerpoint禁止或允许修改形状", pages 1 - 5, Retrieved from the Internet <URL:https://blog.csdn.net/eiceblue/article/details/47749875> *

Similar Documents

Publication Publication Date Title
US10447732B2 (en) Identifying URL target hostnames
US9740832B2 (en) Method, apparatus and system for access mode control of a device
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
CN105117122A (en) Terminal screenshot method and terminal
EP3507734B1 (en) Method and electronic device for providing multi-level security
ES2818223T3 (en) Method and apparatus for displaying a function interface
CN103810437A (en) Method and terminal for hiding application program
CN109240591B (en) Interface display method and device
CN112035868A (en) Method and device for protecting graph rotation angle in document and electronic equipment
CN111553130A (en) Chapter title style conversion method and device, electronic equipment and storage medium
CN106933666B (en) Method for calling information input program and electronic equipment
US20220197501A1 (en) Information processing apparatus and non-transitory computer readable medium storing information processing program
CN112035869A (en) Protection method and device for graph combination form, electronic equipment and storage medium
CN115879090A (en) Account login method and device, electronic equipment and storage medium
CN112115685A (en) Method and device for protecting graphic position in document, electronic equipment and storage medium
CN112115485A (en) Method and device for protecting width and height of graph in document, electronic equipment and storage medium
CN112115501A (en) Method and device for protecting graphic shape in document, electronic equipment and storage medium
CN110659526B (en) Document processing method and device and electronic equipment
US20100325444A1 (en) Document encrypting system and method thereof
CN112035848A (en) Method and device for protecting graphic text content, electronic equipment and storage medium
US11461494B2 (en) Secure view of content on devices
CN111428210B (en) Method and device for editing watermark and electronic equipment
CN112416210A (en) Information encryption and decryption method, system, storage medium and electronic equipment
CN112115486A (en) Method and device for protecting graphic shape format, electronic equipment and storage medium
CN111199144A (en) Document content altering method and device, electronic equipment and readable storage medium

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