1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! Why an encrypted document refuses an edit, for a shell to word in its own terms.
use DocumentEncryption;
use cratePermissionBit;
/// The cause of an editing verb's encryption refusal (every verb's
/// `DocumentEncrypted` / `Encrypted` error variant).
///
/// Each cause has one remedy: [`Rc4NotAllowed`](Self::Rc4NotAllowed) lifts
/// when the session allows edits under RC4
/// ([`Document::set_rc4_append`](crate::document::Document::set_rc4_append)
/// with [`Rc4Append::Preserve`](crate::writer::Rc4Append::Preserve));
/// [`PermissionDenied`](Self::PermissionDenied) lifts only when the document
/// is opened with its owner password.