com.lowagie.text.rtf.document

Class RtfProtectionSetting

public class RtfProtectionSetting extends RtfElement

The RtfProtectionSetting handles document protection elements

Since: 2.1.1

Version: $Id: RtfProtectionSetting.java 3580 2008-08-06 15:52:00Z howard_s $

Author: Howard Shank (hgshank@yahoo.com)

Field Summary
static byte[]ANNOTPROT
Constant for Annotation/Comment protection controlword Mutually exclusive
static byte[]ENFORCEPROT
Constant for enforceprot controlword
static byte[]FORMPROT
Constant for Form protection controlword Mutually exclusive
static byte[]PROTLEVEL
Constant for protlevel controlword
static byte[]READONLYRECOMMENDED
Constant for enforceprot controlword.
static byte[]READPROT
Constant for read only rotection controlword Mutually exclusive - exception, can be combined with ANNOTPROT for backwards compatibility
static byte[]REVPROT
Constant for Revision protection controlword Mutually exclusive
Constructor Summary
RtfProtectionSetting(RtfDocument doc)
Constructs a RtfProtectionSetting belonging to a RtfDocument
Method Summary
voidwriteContent(OutputStream result)
Writes the RTF protection control words
voidwriteDefinition(OutputStream result)
Writes the RTF protection control words

Field Detail

ANNOTPROT

private static final byte[] ANNOTPROT
Constant for Annotation/Comment protection controlword Mutually exclusive

Since: 2.1.1

See Also: FORMPROT REVPROT READPROT

ENFORCEPROT

private static final byte[] ENFORCEPROT
Constant for enforceprot controlword

Since: 2.1.1

FORMPROT

private static final byte[] FORMPROT
Constant for Form protection controlword Mutually exclusive

Since: 2.1.1

See Also: REVPROT ANNOTPROT READPROT

PROTLEVEL

private static final byte[] PROTLEVEL
Constant for protlevel controlword

Since: 2.1.1

READONLYRECOMMENDED

private static final byte[] READONLYRECOMMENDED
Constant for enforceprot controlword. Implemented in Microsoft Word 2007.

Since: 2.1.1

READPROT

private static final byte[] READPROT
Constant for read only rotection controlword Mutually exclusive - exception, can be combined with ANNOTPROT for backwards compatibility

Since: 2.1.1

See Also: FORMPROT REVPROT ANNOTPROT

REVPROT

private static final byte[] REVPROT
Constant for Revision protection controlword Mutually exclusive

Since: 2.1.1

See Also: FORMPROT ANNOTPROT READPROT

Constructor Detail

RtfProtectionSetting

public RtfProtectionSetting(RtfDocument doc)
Constructs a RtfProtectionSetting belonging to a RtfDocument

Parameters: doc The RtfDocument this RtfProtectionSetting belongs to

Since: 2.1.1

Method Detail

writeContent

public void writeContent(OutputStream result)
Writes the RTF protection control words

Since: 2.1.1

writeDefinition

public void writeDefinition(OutputStream result)
Writes the RTF protection control words

Since: 2.1.1