43 references to RightsManagementPolicy
PresentationUI (43)
MS\Internal\Documents\Application\CommandEnforcer.cs (8)
28
public PolicyBinding(RoutedUICommand command,
RightsManagementPolicy
policy)
47
public
RightsManagementPolicy
Policy
53
private
RightsManagementPolicy
_policy;
108
RightsManagementPolicy
policyToEnforce = _docViewer.RightsManagementPolicy;
121
bool disablePrintScreen = !(((policyToEnforce &
RightsManagementPolicy
.AllowCopy)
122
==
RightsManagementPolicy
.AllowCopy) ||
123
((policyToEnforce &
RightsManagementPolicy
.AllowPrint)
124
==
RightsManagementPolicy
.AllowPrint));
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (13)
178
public
RightsManagementPolicy
RightsManagementPolicy
245
_rightsManagementPolicy =
RightsManagementPolicy
.AllowNothing;
296
if ((RightsManagementPolicy &
RightsManagementPolicy
.AllowPrint) ==
297
RightsManagementPolicy
.AllowPrint)
2156
enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Print,
RightsManagementPolicy
.AllowPrint));
2157
enforcer.AddBinding(new PolicyBinding(ApplicationCommands.PrintPreview,
RightsManagementPolicy
.AllowPrint));
2160
enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Copy,
RightsManagementPolicy
.AllowCopy));
2161
enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Cut,
RightsManagementPolicy
.AllowCopy));
2162
enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Save,
RightsManagementPolicy
.AllowCopy));
2163
enforcer.AddBinding(new PolicyBinding(ApplicationCommands.SaveAs,
RightsManagementPolicy
.AllowCopy));
2166
enforcer.AddBinding(new PolicyBinding(DocumentApplicationDocumentViewer.Sign,
RightsManagementPolicy
.AllowSign));
2167
enforcer.AddBinding(new PolicyBinding(DocumentApplicationDocumentViewer.RequestSigners,
RightsManagementPolicy
.AllowSign));
2200
private
RightsManagementPolicy
_rightsManagementPolicy;
MS\Internal\Documents\DocumentSignatureManager.cs (2)
1161
if ((args.RMPolicy &
RightsManagementPolicy
.AllowSign) ==
RightsManagementPolicy
.AllowSign)
MS\Internal\Documents\RightsManagementLicense.cs (2)
55
internal
RightsManagementPolicy
ConvertToPolicy()
57
return (
RightsManagementPolicy
)(_userRights);
MS\Internal\Documents\RightsManagementManager.cs (12)
148
RightsManagementPolicy
calcRMPolicy =
RightsManagementPolicy
.AllowView;
160
calcRMPolicy =
RightsManagementPolicy
.AllowNothing;
175
RightsManagementPolicy
.AllowAnnotate |
176
RightsManagementPolicy
.AllowCopy |
177
RightsManagementPolicy
.AllowSign |
178
RightsManagementPolicy
.AllowPrint |
179
RightsManagementPolicy
.AllowView;
1228
private void OnRMPolicyChange(
RightsManagementPolicy
newPolicy)
1604
internal RightsManagementPolicyEventArgs(
RightsManagementPolicy
rmPolicy)
1619
public
RightsManagementPolicy
RMPolicy
1631
private
RightsManagementPolicy
_rmPolicy;
MS\Internal\Documents\RightsManagementPermissions.cs (6)
19
AllowNothing =
RightsManagementPolicy
.AllowNothing,
20
AllowView =
RightsManagementPolicy
.AllowView,
21
AllowPrint =
RightsManagementPolicy
.AllowPrint,
22
AllowCopy =
RightsManagementPolicy
.AllowCopy,
23
AllowSign =
RightsManagementPolicy
.AllowSign,
24
AllowAnnotate =
RightsManagementPolicy
.AllowAnnotate,