public final class RtfProtection extends Object
RtfProtection
See ECMA Specification for WordprocessingML documentProtection element. Reference: Standard ECMA-376 1st Edition / December 2006 Office Open XML File Formats
Modifier and Type | Field and Description |
---|---|
static int |
AUTOFMTOVERRIDE
STYLELOCKBACKCOMP
Allow AutoFormat to override styles and formatting restrictions.
|
static int |
LEVEL_ANNOTPROT
ANNNOTPROT
Mutually exclusive
This document is protected for comments (annotations).
|
static int |
LEVEL_FORMPROT
FORMPROT
Mutually exclusive
Document is protected for forms.
|
static int |
LEVEL_NONE
Default for protection level.
|
static int |
LEVEL_READPROT
READPROT
Mutually exclusive but can be combined with ANNOTPROT for backward compatibility
Document is protected for editing, except areas marked as exceptions by \protstart and\protend
|
static int |
LEVEL_REVPROT
REVPROT
Mutually exclusive
This document is protected for revisions.
|
static int |
STYLELOCK
STYLELOCK
The document contains styles and formatting restrictions.
|
static int |
STYLELOCKBACKCOMP
STYLELOCKBACKCOMP
Style lockdown backward compatibility flag, indicating we emitted protection
keywords to get documents with styles and formatting restrictions to behave
in a reasonable way when opened by older versions.
|
static int |
STYLELOCKENFORCED
STYLELOCKENFORCED
The styles and formatting restrictions are being enforced.
|
Constructor and Description |
---|
RtfProtection() |
Modifier and Type | Method and Description |
---|---|
static String |
generateHash(String pwd)
generateHash generates the password hash from a clear text string. |
public static final int LEVEL_NONE
public static final int LEVEL_REVPROT
public static final int LEVEL_ANNOTPROT
public static final int LEVEL_FORMPROT
public static final int LEVEL_READPROT
public static final int STYLELOCK
public static final int STYLELOCKENFORCED
public static final int STYLELOCKBACKCOMP
public static final int AUTOFMTOVERRIDE
Copyright © 2015. All rights reserved.