Method, device and electronic device for protecting rotation angle of graphics in document

By real-time detection and controlling the graphic rotation angle editing operation based on the protection attribute value, the problem that the graphic rotation angle is easily modified at will is solved, improving the user experience and the accuracy protection of the rotation angle.

CN112035868BActive Publication Date: 2024-11-08ZHUHAI KINGSOFT OFFICE SOFTWARE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910482065.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-04
Publication Date
2024-11-08
Estimated Expiration
2039-06-04

AI Technical Summary

Technical Problem

In office software, the rotation angle of the graphics is easily modified at will, resulting in poor user experience. Especially when the accuracy of the graphics rotation angle is high, it is necessary to make frequent repeated modifications to meet the needs of different users.

Method used

Detect whether the rotation angle handle of the figure is selected in real time, and decide whether to respond to the rotation angle editing operation based on the preset protection rotation angle attribute value. If it is valid, the rotation angle editing function will be disabled, otherwise editing will be allowed.

Benefits of technology

Reduce repeated operations caused by arbitrary modification of the rotation angle, improve user experience, and ensure that the accuracy of the graphic rotation angle is not arbitrary modification by unauthorized users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112035868B_ABST
    Figure CN112035868B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device and electronic device for protecting the rotation angle of a graphic in a document, which can detect in real time whether the rotation angle control handle of the current graphic is selected; when it is detected that the rotation angle control handle of the current graphic is selected, read the protection rotation angle attribute information of the current graphic; determine whether the attribute value of the preset protection rotation angle attribute is valid or invalid; if valid, do not respond to the rotation angle editing operation of the current graphic; if invalid, respond to the rotation angle editing operation of the current graphic. It can be seen that by applying the embodiments of the present invention, if the attribute value of the protection rotation angle attribute of the graphic with the selected rotation angle control handle is valid, it is not necessary to respond to the rotation angle editing operation of the current graphic, thereby reducing repeated operations caused by arbitrary modifications to the rotation angle of the graphic and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of document protection, and in particular to a method, device and electronic equipment for protecting the rotation angle of graphics in a document. Background Art

[0002] Currently, when editing a document in office software, you can modify the rotation angle of the selected graphic. Figure 1 As shown, after a graphic is selected, a rotation angle control handle 101 will be displayed, and the user can drag the rotation angle control handle 101 to modify the rotation angle of the graphic in the document.

[0003] In some documents, the accuracy requirement for the rotation angle of graphics is relatively high. Once the user has finished drawing the graphics, they do not want to modify the rotation angle of the graphics at will. However, the edited document may require other users to modify the text content. Other users may also modify the rotation angle of the graphics at will without knowing that the accuracy requirement for the rotation angle of the graphics is high. In order to meet the accuracy requirement for the rotation angle of the graphics, the user is required to repeatedly modify the rotation angle of the graphics. In this way, repeated modification of the rotation angle of the graphics leads to a poor user experience. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method, device, equipment and storage medium for protecting the rotation angle of a graphic in a document, so as to reduce repeated operations caused by arbitrary modification of the rotation angle of the graphic and improve the user experience. The specific technical solution is as follows:

[0005] In a first aspect, the present invention provides a method for protecting a rotation angle of a graphic in a document, the method comprising:

[0006] Real-time detection of whether the rotation angle handle of the current graphic is selected;

[0007] When it is detected that the rotation angle control handle of the current graphic is selected, reading the protection rotation angle attribute information of the current graphic;

[0008] Determine whether the preset attribute value of the protection rotation angle attribute is valid or invalid;

[0009] If valid, the rotation angle editing operation of the current graphic is not responded to;

[0010] If invalid, respond to the rotation angle editing operation of the current graphic.

[0011] Optionally, the step of not responding to the rotation angle editing operation of the current graphic if valid includes:

[0012] The rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse are displayed as invalid and do not respond to the rotation angle editing operation.

[0013] Optionally, before the step of detecting in real time whether the rotation angle control handle of the current graphic is selected, the method further includes:

[0014] After the current graphic is selected, read the protection rotation angle attribute information of the current graphic;

[0015] Determine whether the preset attribute value of the protection rotation angle attribute is valid or invalid;

[0016] If valid, the rotation angle control handle of the current graphic will be displayed as invalid, and the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse will be displayed as invalid;

[0017] If invalid, execute the step of responding to the rotation angle editing operation of the current graphic.

[0018] Optionally, the attribute value of the protection rotation angle attribute is preset by the following steps:

[0019] After receiving a rotation angle control handle selection instruction for the current graphic or after the current graphic is selected, determining whether a graphic rotation angle protection state change instruction is received;

[0020] If a graphic rotation angle protection state change instruction is received, the protection rotation angle attribute information of the current graphic is read;

[0021] Determine whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid;

[0022] If the protection rotation angle attribute value of the current graphic is invalid, modifying the protection rotation angle attribute value of the current graphic to be valid;

[0023] If the protection rotation angle attribute value of the current graphic is valid, the protection rotation angle attribute value of the current graphic is modified to be invalid.

[0024] Optionally, the step of determining whether a graphic rotation angle protection state change instruction is received includes:

[0025] Determine whether the graphic rotation angle protection state change button preset in the document display interface is clicked;

[0026] Or determine whether the graphic rotation angle protection status change button in the right-click menu is clicked.

[0027] Optionally, if the protection rotation angle attribute value of the current graphic is invalid, the step of modifying the protection rotation angle attribute value of the current graphic to be valid comprises:

[0028] If the protection rotation angle attribute of the current graphic is invalid, a password setting dialog box is displayed;

[0029] Save the password set by the user, and modify the protection rotation angle attribute value of the current graphic to be valid;

[0030] The step of modifying the protection rotation angle attribute value of the current graphic to be invalid if the protection rotation angle attribute value of the current graphic is valid comprises:

[0031] If the protection rotation angle attribute of the current graphic is valid, a prompt message indicating that the rotation angle editing function is disabled is displayed and a password input dialog box is displayed;

[0032] It is determined whether the input password is a password pre-set by the user; if so, the protection rotation angle attribute value of the current graphic is modified to be invalid.

[0033] Optionally, the step of not responding to the rotation angle editing operation of the current graphic if valid includes:

[0034] If the attribute value of the protection rotation angle attribute of the current graphic is valid, a prompt message indicating that the rotation angle editing function is disabled is displayed and a password input dialog box is displayed;

[0035] Determine whether the input password is a password pre-set by the user;

[0036] If not, then the rotation angle editing operation of the current graphic is not responded to;

[0037] If yes, the protection rotation angle attribute value of the current graphic is modified to be invalid, and the rotation angle editing operation of the current graphic is responded to.

[0038] In a second aspect, the present invention provides a device for protecting the rotation angle of a graphic in a document, the device comprising:

[0039] The rotation angle control handle detection module is used to detect in real time whether the rotation angle control handle of the current graphic is selected;

[0040] A first attribute information reading module is used to read the protection rotation angle attribute information of the current graphic when it is detected that the rotation angle control handle of the current graphic is selected;

[0041] A first attribute information judgment module is used to judge whether the attribute value of the preset protection rotation angle attribute is valid or invalid;

[0042] A rotation angle prohibition response module, used for not responding to the rotation angle editing operation of the current graphic if it is valid;

[0043] The rotation angle response module is used to respond to the rotation angle editing operation of the current graphic if it is invalid.

[0044] Optionally, the rotation angle prohibition response module is specifically used to:

[0045] The rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse are displayed as invalid and do not respond to the rotation angle editing operation.

[0046] Optionally, the device further comprises:

[0047] A second attribute information reading module is used for reading the protection rotation angle attribute information of the current graphic after the current graphic is selected, before the rotation angle control handle detection module detects in real time whether the rotation angle control handle of the current graphic is selected;

[0048] The second attribute information judgment module is used to judge whether the attribute value of the preset protection rotation angle attribute is valid or invalid;

[0049] An invalid display module is used to display the rotation angle control handle of the current graphic as invalid if it is valid, and to display the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse as invalid; if the attribute value of the protection rotation angle attribute is invalid, the rotation angle response module is triggered to respond to the rotation angle editing operation of the current graphic.

[0050] Optionally, the device further includes: an attribute value preset module;

[0051] The attribute value preset module includes:

[0052] A change instruction receiving and judging unit, used to judge whether a graphic rotation angle protection state change instruction is received after receiving a rotation angle control handle selection instruction for the current graphic or after the current graphic is selected;

[0053] An attribute information reading unit, configured to read the protection rotation angle attribute information of the current graphic if a graphic rotation angle protection state change instruction is received;

[0054] An attribute information determination unit, for determining whether an attribute value of a protection rotation angle attribute of the current graphic is valid or invalid;

[0055] A first attribute value modifying unit, configured to modify the protection rotation angle attribute value of the current graphic to be valid if the protection rotation angle attribute value of the current graphic is invalid;

[0056] The second attribute value modifying unit is used to modify the protection rotation angle attribute value of the current graphic to invalid if the protection rotation angle attribute value of the current graphic is valid.

[0057] Optionally, the change instruction receiving and judging unit is specifically configured to:

[0058] Determine whether the graphic rotation angle protection state change button preset in the document display interface is clicked;

[0059] Or determine whether the graphic rotation angle protection status change button in the right-click menu is clicked.

[0060] Optionally, the first attribute value modification unit includes: a first display subunit and a first modification subunit;

[0061] The first display subunit is used to display a password setting dialog box if the protection rotation angle attribute of the current graphic is invalid;

[0062] The first modification subunit is used to save the password set by the user and modify the protection rotation angle attribute value of the current graphic to be valid;

[0063] The second attribute value modification unit includes: a second display subunit, a first password judgment subunit and a second modification subunit;

[0064] The second display subunit is used to display a prompt message indicating that the rotation angle editing function is disabled and a password input dialog box if the protection rotation angle attribute of the current graphic is valid;

[0065] The first password determination subunit is used to determine whether the input password is a password pre-set by the user;

[0066] The second modification subunit is used to modify the protection rotation angle attribute value of the current graphic to invalid if yes.

[0067] Optionally, the rotation angle prohibition response module includes: a display unit, a password judgment unit, a rotation angle prohibition response unit and a rotation angle response unit;

[0068] The display unit is used to display a prompt message indicating that the rotation angle editing function is disabled and a password input dialog box if the attribute value of the protection rotation angle attribute of the current graphic is valid;

[0069] The password determination unit is used to determine whether the input password is a password pre-set by the user;

[0070] The rotation angle prohibition response unit is used for not responding to the rotation angle editing operation of the current graphic if no;

[0071] The rotation angle response unit is used to modify the protection rotation angle attribute value of the current graphic to invalid if yes, and respond to the rotation angle editing operation of the current graphic.

[0072] In a third aspect, the present invention provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0073] Memory, used to store computer programs;

[0074] The processor is used to implement any of the method steps for protecting the rotation angle of graphics in a document when executing a program stored in a memory.

[0075] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the method steps described in the present invention for protecting the rotation angle of a graphic in a document is implemented.

[0076] The method, device, electronic device and storage medium for protecting the rotation angle of a graphic in a document provided by the embodiments of the present invention can detect in real time whether the rotation angle control handle of the current graphic is selected; when it is detected that the rotation angle control handle of the current graphic is selected, read the protection rotation angle attribute information of the current graphic; determine whether the attribute value of the pre-set protection rotation angle attribute is valid or invalid; if valid, do not respond to the rotation angle editing operation of the current graphic; if invalid, respond to the rotation angle editing operation of the current graphic. It can be seen that, by applying the embodiments of the present invention, if the attribute value of the protection rotation angle attribute of the graphic with the selected rotation angle control handle is valid, the rotation angle editing operation of the current graphic may not be responded, thereby reducing repeated operations caused by arbitrary modifications to the rotation angle of the graphic and improving user experience.

[0077] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0079] Figure 1 It is a schematic diagram of display after selecting a graphic in the current related technology;

[0080] Figure 2 A flow chart of a method for protecting the rotation angle of a graphic in a document provided by an embodiment of the present invention;

[0081] Figure 3 Another flow chart of a method for protecting the rotation angle of a graphic in a document provided by an embodiment of the present invention;

[0082] Figure 4 Another flow chart of the method for protecting the rotation angle of graphics in a document provided by an embodiment of the present invention;

[0083] Figure 5 A schematic diagram of the structure of a device for protecting the rotation angle of graphics in a document provided by an embodiment of the present invention;

[0084] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0085] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0086] In order to reduce repeated operations caused by arbitrary modification of the rotation angle of a graphic and improve user experience, an embodiment of the present invention provides a method, device, electronic device and storage medium for protecting the rotation angle of a graphic in a document.

[0087] The method for protecting the rotation angle of graphics in a document provided by the embodiment of the present invention can be applied to any electronic device that needs to protect the rotation angle of graphics in a document, such as a computer or a mobile terminal, etc., and is not specifically limited here. For the convenience of description, it is hereinafter referred to as electronic device.

[0088] The method for protecting the rotation angle of a graphic in a document provided by an embodiment of the present invention is as follows: Figure 2 As shown, the specific processing flow of the method includes:

[0089] Step S201, detecting in real time whether the rotation angle control handle of the current graphic is selected.

[0090] Step S202: when it is detected that the rotation angle control handle of the current graphic is selected, read the protection rotation angle attribute information of the current graphic.

[0091] It is feasible that, when the electronic device detects that the rotation angle control handle of the current graphic is selected, the electronic device can read the protection rotation angle attribute information of the graphic.

[0092] Step S203, determining whether the preset attribute value of the protection rotation angle attribute is valid or invalid.

[0093] It is feasible that the attribute value of the protection rotation angle attribute can be preset by the following steps:

[0094] After receiving a rotation angle control handle selection instruction for the current graphic, determine whether a graphic rotation angle protection state change instruction is received; if a graphic rotation angle protection state change instruction is received, read the protection rotation angle attribute information of the current graphic; determine whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid; if the protection rotation angle attribute value of the current graphic is invalid, modify the protection rotation angle attribute value of the current graphic to valid; if the protection rotation angle attribute value of the current graphic is valid, modify the protection rotation angle attribute value of the current graphic to invalid.

[0095] If the result of the judgment is invalid, execute step S204; if the result of the judgment is valid, execute step S205.

[0096] Step S204, responding to the rotation angle editing operation of the current graphic.

[0097] It is feasible that, if invalid, a rotation angle editing operation of the current graphic can be responded to.

[0098] Step S205: Do not respond to the rotation angle editing operation of the current graphic.

[0099] It is feasible 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 to. It may include: displaying the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse as invalid, and not responding to the rotation angle editing operation. For example, the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse are displayed in gray. It is feasible that when it is detected that the ctrl+1 shortcut key is pressed, the operation related to the rotation angle editing can also be blocked when the format menu is called up. The method of prohibiting the rotation angle editing operation of the current graphic is not specifically limited here.

[0100] In the case of not responding to the rotation angle editing operation of the current graphic, the user may think that the document editing software is wrong. To avoid this situation, the embodiment of the present invention can display a prompt message that the rotation angle editing function is disabled in the case of not responding to the rotation angle editing operation of the current graphic.

[0101] It can be seen that by applying the embodiment of the present invention, if the attribute value of the protection rotation angle attribute of the graphic of the selected rotation angle control handle is valid, it is possible to not respond to the rotation angle editing operation of the current graphic, thereby reducing repeated operations caused by arbitrary modifications to the rotation angle of the graphic and improving user experience.

[0102] Another flow chart of the method for protecting the rotation angle of graphics in a document provided by an embodiment of the present invention is as follows: Figure 3 As shown, including:

[0103] Step S301, after the current graphic is selected, read the protection rotation angle attribute information of the current graphic.

[0104] It is feasible that after detecting that the current graphic is selected, the electronic device can read the protection rotation angle attribute information of the current graphic.

[0105] Step S302: determine whether the preset attribute value of the protection rotation angle attribute is valid or invalid.

[0106] It is feasible that the attribute value of the protection rotation angle attribute can be preset by the following steps:

[0107] After receiving a rotation angle control handle selection instruction for the current graphic or the current graphic is selected, determine whether a graphic rotation angle protection state change instruction is received; if a graphic rotation angle protection state change instruction is received, read the protection rotation angle attribute information of the current graphic; determine whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid; if the protection rotation angle attribute value of the current graphic is invalid, modify the protection rotation angle attribute value of the current graphic to valid; if the protection rotation angle attribute value of the current graphic is valid, modify the protection rotation angle attribute value of the current graphic to invalid.

[0108] If the result of the judgment is valid, execute step S303; if the result of the judgment is invalid, execute step S304.

[0109] Step S303: Display the rotation angle control handle of the current graphic as invalid, and display the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse as invalid.

[0110] It is feasible that when the attribute value of the protection rotation angle attribute of the current graphic is valid, the rotation angle control handle of the current graphic can be displayed as invalid, and the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse can be displayed as invalid. In this way, the user cannot use the rotation angle function of the graphic in the current display interface, and the user can also see that the rotation angle function of the graphic is in a disabled state.

[0111] Step S304: Detect in real time whether the rotation angle control handle of the current graphic is selected.

[0112] Step S305, when it is detected that the rotation angle control handle of the current graphic is selected, respond to the rotation angle editing operation of the current graphic.

[0113] It can be seen that by applying the embodiment of the present invention, if the attribute value of the protection rotation angle attribute of the graphic of the selected rotation angle control handle is valid, it is possible to not respond to the rotation angle editing operation of the current graphic, thereby reducing repeated operations caused by arbitrary modifications to the rotation angle of the graphic and improving user experience.

[0114] Another flow chart of the method for protecting the rotation angle of graphics in a document provided by an embodiment of the present invention is as follows: Figure 4 As shown, including:

[0115] Step S401, receiving a rotation angle control handle selection instruction for the current graphic or the current graphic is selected.

[0116] Step S402, determining whether a graphic rotation angle protection state change instruction is received.

[0117] In practice, the electronic device can determine whether a graphic rotation angle protection state change instruction is received. In a specific implementation, it can be determined whether a graphic rotation angle protection state change button preset in the document display interface is clicked; or whether a graphic rotation angle protection state change button in the mouse right-click menu is clicked.

[0118] If the result of the judgment is yes, that is, the graphic rotation angle protection state change instruction is received, step S403 is executed; if the result of the judgment is no, that is, the graphic rotation angle protection state change instruction is not received, step S413 is executed.

[0119] Step S403, reading the protection rotation angle attribute information of the current graphic.

[0120] It is feasible that the electronic device can read the protection rotation angle attribute information of the graphic.

[0121] Step S404, determining whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid.

[0122] If the result of the judgment is invalid, execute step S405; if the result of the judgment is valid, execute step S408.

[0123] Step S405: display a password setting dialog box.

[0124] Optionally, a password setting dialog box is displayed to enable the user to set a password.

[0125] Step S406, saving the password set by the user, and modifying the protection rotation angle attribute value of the current graphic to be valid.

[0126] It is feasible that if the user sets a password, the electronic device can first encrypt the password set by the user and store it in the password storage location to prevent the directly stored number from being easily stolen by others, which is unsafe. And the protection rotation angle attribute value of the current graphic can be modified to be valid.

[0127] 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 graphic rotation angle protection state is changed from an unprotected state to a protected state.

[0128] Step S407: Do not respond to the rotation angle editing operation of the current graphic. The process ends.

[0129] When the user changes the protection rotation angle attribute value of the current graphic to valid and sets a password, if other people do not know the password, they will not be able to edit the rotation angle of the graphic. For example: after user A edits the document, he hopes that other users will modify the text content, but does not want others to modify the rotation angle of the graphic. The existing technology, which protects the entire document, cannot meet this user demand, and the user experience is not good enough. Therefore, using this method, you can only prohibit others from editing the rotation angle of the graphic without affecting the editing of other content in the document, thereby improving the user experience.

[0130] Step S408: Display a prompt message indicating that the rotation angle editing function is disabled and display a dialog box for inputting a password.

[0131] When the judgment result of whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid in step S404 is valid, a prompt message indicating that the rotation angle editing function is disabled can be displayed to let the user know that the rotation angle editing function is currently unavailable, and a password input dialog box is displayed to allow the user to enter a password.

[0132] Step S409, determining whether the input password is a password pre-set by the user.

[0133] It is feasible to determine whether the input password is a password previously set by the user. Specifically, it is possible to determine whether the password input this time is the same as the password previously set when the attribute value of the protection rotation angle attribute of the current graphic was changed from invalid to valid.

[0134] If the result of the judgment is no, that is, the input password is not a password pre-set by the user, then step S410 is executed; if the result of the judgment is yes, that is, the input password is a password pre-set by the user, then step S411 is executed.

[0135] Step S410: Do not respond to the rotation angle editing operation of the current graphic.

[0136] Step S411, modifying the protection rotation angle attribute value of the current graphic to be invalid.

[0137] It is feasible that if the input password is a password pre-set by the user, the protection rotation angle attribute value of the current graphic may be modified to be invalid.

[0138] Through the above steps S409 and S411, the protection rotation angle attribute information of the current graphic is modified from valid to invalid, that is, the graphic rotation angle protection state is changed from a protected state to an unprotected state.

[0139] In this embodiment, in order to further protect the graphic rotation angle from being modified arbitrarily, a protection password can be set in the process of changing the protection rotation angle attribute from invalid to valid, so that users without the password cannot change the protection rotation angle attribute from valid to invalid.

[0140] Step S412, responding to the rotation angle editing operation of the current graphic. The process ends.

[0141] Step S413, reading the protection rotation angle attribute information of the current graphic.

[0142] Step S414, determining whether the attribute value of the protection rotation angle attribute of the graphic is valid or invalid.

[0143] If the result of the judgment is invalid, then execute step S415. If the result of the judgment is valid, then execute step S416.

[0144] Step S415, responding to the rotation angle editing operation of the current graphic. The process ends.

[0145] Step S416: Display a prompt message indicating that the rotation angle editing function is disabled and display a dialog box for inputting a password.

[0146] Step S417, determining whether the input password is a password pre-set by the user.

[0147] If the result of the judgment is no, that is, the input password is not a password pre-set by the user, then execute step S418; if the result of the judgment is yes, that is, the input password is a password pre-set by the user, then execute step S419.

[0148] Step S418: Do not respond to the rotation angle editing operation of the current graphic. The process ends.

[0149] Step S419, modifying the protection rotation angle attribute value of the current graphic to be invalid. Execute step S415.

[0150] It can be seen that by applying the embodiment of the present invention, if the attribute value of the protection rotation angle attribute of the graphic of the selected rotation angle control handle is valid, it is possible to not respond to the rotation angle editing operation of the current graphic, thereby reducing repeated operations caused by arbitrary modifications to the rotation angle of the graphic and improving user experience.

[0151] In this embodiment, when the user selects the rotation angle control handle of the current graphic or the current graphic is selected, and performs a rotation angle editing operation on the rotation angle of the graphic, a password input dialog box can be displayed. By judging whether the input password is a password set by the user in advance, it is judged whether the current user has the editing authority for the graphic rotation angle. If the password is correct, the protection rotation angle attribute value of the current graphic is modified to invalid; if the password is incorrect, the editing operation of the graphic rotation angle is prohibited. In this way, users without authority are prevented from editing the graphic rotation angle, thereby improving the user experience.

[0152] A schematic diagram of the structure of a device for protecting the rotation angle of a graphic in a document provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the device comprises:

[0153] A rotation angle control handle detection module 501 is used to detect in real time whether the rotation angle control handle of the current graphic is selected;

[0154] A first attribute information reading module 502 is used to read the protection rotation angle attribute information of the current graphic when it is detected that the rotation angle control handle of the current graphic is selected;

[0155] The first attribute information determination module 503 is used to determine whether the attribute value of the preset protection rotation angle attribute is valid or invalid;

[0156] A rotation angle prohibition response module 504 is used for not responding to the rotation angle editing operation of the current graphic if it is valid;

[0157] The rotation angle response module 505 is used to respond to the rotation angle editing operation of the current graphic if it is invalid.

[0158] Optionally, the rotation angle prohibition response module is specifically used to:

[0159] The rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse are displayed as invalid and do not respond to the rotation angle editing operation.

[0160] Optionally, the device further comprises:

[0161] A second attribute information reading module is used for reading the protection rotation angle attribute information of the current graphic after the current graphic is selected, before the rotation angle control handle detection module detects in real time whether the rotation angle control handle of the current graphic is selected;

[0162] The second attribute information judgment module is used to judge whether the attribute value of the preset protection rotation angle attribute is valid or invalid;

[0163] An invalid display module is used to display the rotation angle control handle of the current graphic as invalid if it is valid, and to display the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse as invalid; if the attribute value of the protection rotation angle attribute is invalid, the rotation angle response module is triggered to respond to the rotation angle editing operation of the current graphic.

[0164] Optionally, the device further includes: an attribute value preset module;

[0165] The attribute value preset module includes:

[0166] A change instruction receiving and judging unit, used to judge whether a graphic rotation angle protection state change instruction is received after receiving a rotation angle control handle selection instruction for the current graphic or after the current graphic is selected;

[0167] An attribute information reading unit, configured to read the protection rotation angle attribute information of the current graphic if a graphic rotation angle protection state change instruction is received;

[0168] An attribute information determination unit, for determining whether an attribute value of a protection rotation angle attribute of the current graphic is valid or invalid;

[0169] A first attribute value modifying unit, configured to modify the protection rotation angle attribute value of the current graphic to be valid if the protection rotation angle attribute value of the current graphic is invalid;

[0170] The second attribute value modifying unit is used to modify the protection rotation angle attribute value of the current graphic to invalid if the protection rotation angle attribute value of the current graphic is valid.

[0171] Optionally, the change instruction receiving and judging unit is specifically configured to:

[0172] Determine whether the graphic rotation angle protection state change button preset in the document display interface is clicked;

[0173] Or determine whether the graphic rotation angle protection status change button in the right-click menu is clicked.

[0174] Optionally, the first attribute value modification unit includes: a first display subunit and a first modification subunit;

[0175] The first display subunit is used to display a password setting dialog box if the protection rotation angle attribute of the current graphic is invalid;

[0176] The first modification subunit is used to save the password set by the user and modify the protection rotation angle attribute value of the current graphic to be valid;

[0177] The second attribute value modification unit includes: a second display subunit, a first password judgment subunit and a second modification subunit;

[0178] The second display subunit is used to display a prompt message indicating that the rotation angle editing function is disabled and a password input dialog box if the protection rotation angle attribute of the current graphic is valid;

[0179] The first password determination subunit is used to determine whether the input password is a password pre-set by the user;

[0180] The second modification subunit is used to modify the protection rotation angle attribute value of the current graphic to invalid if yes.

[0181] Optionally, the rotation angle prohibition response module includes: a display unit, a password judgment unit, a rotation angle prohibition response unit and a rotation angle response unit;

[0182] The display unit is used to display a prompt message indicating that the rotation angle editing function is disabled and a password input dialog box if the attribute value of the protection rotation angle attribute of the current graphic is valid;

[0183] The password determination unit is used to determine whether the input password is a password pre-set by the user;

[0184] The rotation angle prohibition response unit is used for not responding to the rotation angle editing operation of the current graphic if no;

[0185] The rotation angle response unit is used to modify the protection rotation angle attribute value of the current graphic to invalid if yes, and respond to the rotation angle editing operation of the current graphic.

[0186] It can be seen that by applying the embodiment of the present invention, if the attribute value of the protection rotation angle attribute of the graphic of the selected rotation angle control handle is valid, it is possible to not respond to the rotation angle editing operation of the current graphic, thereby reducing repeated operations caused by arbitrary modifications to the rotation angle of the graphic and improving user experience.

[0187] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0188] Memory 603, used for storing computer programs;

[0189] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:

[0190] Real-time detection of whether the rotation angle handle of the current graphic is selected;

[0191] When it is detected that the rotation angle control handle of the current graphic is selected, reading the protection rotation angle attribute information of the current graphic;

[0192] Determine whether the preset attribute value of the protection rotation angle attribute is valid or invalid;

[0193] If valid, the rotation angle editing operation of the current graphic is not responded to;

[0194] If invalid, respond to the rotation angle editing operation of the current graphic.

[0195] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0196] The communication interface is used for communication between the above electronic device and other devices.

[0197] 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 storage device located away from the aforementioned processor.

[0198] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0199] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the method for protecting the rotation angle of a graphic in any of the above documents are implemented.

[0200] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the method for protecting the rotation angle of a graphic in any document in the above embodiments.

[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0202] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0203] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for embodiments such as devices, electronic devices, computer-readable storage media, and computer program products, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0204] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for protecting the rotation angle of a graphic in a document, characterized in that: The method comprises: Real-time detection of whether the rotation angle handle of the current graphic is selected; When it is detected that the rotation angle control handle of the current graphic is selected, reading the protection rotation angle attribute information of the current graphic; Determine whether the preset attribute value of the protection rotation angle attribute is valid or invalid; If valid, the rotation angle editing operation of the current graphic is not responded to; If invalid, responding to the rotation angle editing operation of the current graphic; Before the step of detecting in real time whether the rotation angle control handle of the current graphic is selected, the step further includes: After the current graphic is selected, read the protection rotation angle attribute information of the current graphic; Determine whether the preset attribute value of the protection rotation angle attribute is valid or invalid; If valid, the rotation angle control handle of the current graphic will be displayed as invalid, and the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse will be displayed as invalid; If invalid, executing the step of responding to the rotation angle editing operation of the current graphic; The attribute value of the protection rotation angle attribute is preset using the following steps: After receiving a rotation angle control handle selection instruction for the current graphic or after the current graphic is selected, determining whether a graphic rotation angle protection state change instruction is received; If a graphic rotation angle protection state change instruction is received, the protection rotation angle attribute information of the current graphic is read; Determine whether the attribute value of the protection rotation angle attribute of the current graphic is valid or invalid; If the protection rotation angle attribute value of the current graphic is invalid, modifying the protection rotation angle attribute value of the current graphic to be valid; If the protection rotation angle attribute value of the current graphic is valid, modifying the protection rotation angle attribute value of the current graphic to invalid; Wherein, if the protection rotation angle attribute value of the current graphic is invalid, the step of modifying the protection rotation angle attribute value of the current graphic to be valid comprises: If the protection rotation angle attribute of the current graphic is invalid, a password setting dialog box is displayed; Save the password set by the user, and modify the protection rotation angle attribute value of the current graphic to be valid; The step of modifying the protection rotation angle attribute value of the current graphic to be invalid if the protection rotation angle attribute value of the current graphic is valid comprises: If the protection rotation angle attribute of the current graphic is valid, a prompt message indicating that the rotation angle editing function is disabled is displayed and a password input dialog box is displayed; Determine whether the input password is a password pre-set by the user; if yes, modify the protection rotation angle attribute value of the current graphic to be invalid; Wherein, the step of not responding to the rotation angle editing operation of the current graphic if valid comprises: If the attribute value of the protection rotation angle attribute of the current graphic is valid, a prompt message indicating that the rotation angle editing function is disabled is displayed and a password input dialog box is displayed; Determine whether the input password is a password pre-set by the user; If not, then the rotation angle editing operation of the current graphic is not responded to; If yes, the protection rotation angle attribute value of the current graphic is modified to be invalid, and the rotation angle editing operation of the current graphic is responded to.

2. The method according to claim 1, characterized in that: The step of not responding to the rotation angle editing operation of the current graphic if it is valid includes: The rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse are displayed as invalid and do not respond to the rotation angle editing operation.

3. The method according to claim 1, characterized in that The step of determining whether a graphic rotation angle protection state change instruction is received comprises: Determine whether the graphic rotation angle protection state change button preset in the document display interface is clicked; Or determine whether the graphic rotation angle protection status change button in the right-click menu is clicked.

4. A device for protecting the rotation angle of graphics in a document, characterized in that: The device comprises: The rotation angle control handle detection module is used to detect in real time whether the rotation angle control handle of the current graphic is selected; A first attribute information reading module is used to read the protection rotation angle attribute information of the current graphic when it is detected that the rotation angle control handle of the current graphic is selected; A first attribute information judgment module is used to judge whether the attribute value of the preset protection rotation angle attribute is valid or invalid; A rotation angle prohibition response module, used for not responding to the rotation angle editing operation of the current graphic if it is valid; A rotation angle response module, used for responding to the rotation angle editing operation of the current graphic if it is invalid; The device also includes: A second attribute information reading module is used for reading the protection rotation angle attribute information of the current graphic after the current graphic is selected, before the rotation angle control handle detection module detects in real time whether the rotation angle control handle of the current graphic is selected; The second attribute information judgment module is used to judge whether the attribute value of the preset protection rotation angle attribute is valid or invalid; an invalid display module, for displaying the rotation angle control handle of the current graphic as invalid if it is valid, and displaying the rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse as invalid; and for triggering the rotation angle response module to respond to the rotation angle editing operation of the current graphic if the attribute value of the protection rotation angle attribute is invalid; The device further comprises: an attribute value preset module; The attribute value preset module includes: A change instruction receiving and judging unit, used to judge whether a graphic rotation angle protection state change instruction is received after receiving a rotation angle control handle selection instruction for the current graphic or after the current graphic is selected; An attribute information reading unit, configured to read the protection rotation angle attribute information of the current graphic if a graphic rotation angle protection state change instruction is received; An attribute information determination unit, for determining whether an attribute value of a protection rotation angle attribute of the current graphic is valid or invalid; A first attribute value modifying unit, configured to modify the protection rotation angle attribute value of the current graphic to be valid if the protection rotation angle attribute value of the current graphic is invalid; A second attribute value modifying unit, configured to modify the protection rotation angle attribute value of the current graphic to invalid if the protection rotation angle attribute value of the current graphic is valid; Wherein, the first attribute value modification unit includes: a first display subunit and a first modification subunit; The first display subunit is used 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 to save the password set by the user and modify the protection rotation angle attribute value of the current graphic to be valid; The second attribute value modification unit includes: a second display subunit, a first password judgment subunit and a second modification subunit; The second display subunit is used to display a prompt message indicating that the rotation angle editing function is disabled and a password input dialog box if the protection rotation angle attribute of the current graphic is valid; The first password determination subunit is used to determine whether the input password is a password pre-set by the user; The second modification subunit is used for modifying the protection rotation angle attribute value of the current graphic to be invalid if yes; Wherein, the rotation angle prohibition response module comprises: a display unit, a password judgment unit, a rotation angle prohibition response unit and a rotation angle response unit; The display unit is used to display a prompt message indicating that the rotation angle editing function is disabled and a password input dialog box if the attribute value of the protection rotation angle attribute of the current graphic is valid; The password determination unit is used to determine whether the input password is a password pre-set by the user; The rotation angle prohibition response unit is used for not responding to the rotation angle editing operation of the current graphic if no; The rotation angle response unit is used to modify the protection rotation angle attribute value of the current graphic to invalid if yes, and respond to the rotation angle editing operation of the current graphic.

5. The device according to claim 4, characterized in that The rotation angle prohibition response module is specifically used for: The rotation function button on the document editing interface menu and the rotation function button in the right-click menu of the mouse are displayed as invalid and do not respond to the rotation angle editing operation.

6. The device according to claim 4, characterized in that The change instruction receiving and judging unit is specifically used to: Determine whether the graphic rotation angle protection state change button preset in the document display interface is clicked; Or determine whether the graphic rotation angle protection status change button in the right-click menu is clicked.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 3 when executing a program stored in a memory.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.