Group 3 : wpProtectProp |
[Top] [Chapter] [Previous] [Next] |
Group 3 : Select which text or which objects should be protected
usage: Memo.SetBProp(3, X, -1) to deactivate, Memo.SetBProp(3, X, 1) to activate.
0: ppParProtected // the complete paragraph cannot be deleted --> WPAT_ParProtected 1: ppCheckAllText // Trigger event For the complete Text 2: ppAllExceptForEditFields // Only allow editing In edit fields. Cursor jumps between edit fields 3: ppNoNewParagraphsInEditFields // Do Not allow par insertion/deletion In EditFields 4: ppProtected // Text With the style afsProtected cannot be overridden 5: ppHidden // Text which uses the style 'hidden' 6: ppIsInsertpoint // Protect the field start Or End markers (wpobjMergeField) 7: ppIsMergedText // used To be 'ppAutomatic' The oposite of : ppAllExceptForEditFields 8: ppIsBookmark // Protect the bookmark start Or End markers (wpobjBookmark) 9: ppIsTextObject // Protect the fields (such As PAGE numbers) (wpobjTextObj) 10: ppIsImageObject // Protected the images (wpobjImage) 11: ppProtectionTextObjects // used With TWPTextObj.Mode 'wpobjWithinProtected' 12: ppIsInvisible // invisible Text is protected 13: ppAllowEditAtTextEnd // Allow typing at Text End 14: ppProtectSelectedTextToo // normally selected Text is Not protected, wit this flag it is 15: ppDontProtectAttributes // V5.15 - If defined it is possible To change the attributes of protected Text 16: ppDontUseAttrOfProtected // Do Not use the charattr If the Text is protected 17: ppNoEditAfterProtection // Do Not allow editing at the End of the paragraph If the last char is protected 18: ppInsertBetweenProtectedPar // Allow the insertion between protected paragraphs 19: ppIsTextObjectCustom - similar To ppIsTextObject which it overrides - but Do Not protected page And Date objects. This is useful To protect custom objects And HTMLCODE fields. 20: ppBookmarkKeepStructure // Used With ppIsBookmark. When Text is deleted which contains bookmarks the bookmark objects are recreated To Preserve the logical structure of the document. 21: ppInsertpointKeepStructure // Used With ppIsInsertpoint - reserve the merge fields. 22: ppIsHyperlink // Protect the hyperlink start Or End markers (wpobjHyperlink) 23: ppNoEditBeforeProtection // Disable insertion If protected Text is first In paragraph
If the second parameter id=-1 and the value =-1 the complete set of flags will be cleared. |