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