Package com.lowagie.text.rtf.document
Class RtfProtectionSetting
- java.lang.Object
-
- com.lowagie.text.rtf.RtfElement
-
- com.lowagie.text.rtf.document.RtfProtectionSetting
-
- All Implemented Interfaces:
RtfBasicElement,RtfElementInterface
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
Fields Modifier and Type Field Description private static byte[]ANNOTPROTConstant for Annotation/Comment protection controlword Mutually exclusiveprivate static byte[]ENFORCEPROTConstant for enforceprot controlwordprivate static byte[]FORMPROTConstant for Form protection controlword Mutually exclusiveprivate static byte[]PROTLEVELConstant for protlevel controlwordprivate static byte[]READONLYRECOMMENDEDConstant for enforceprot controlword.private static byte[]READPROTConstant for read only rotection controlword Mutually exclusive - exception, can be combined with ANNOTPROT for backwards compatibilityprivate static byte[]REVPROTConstant for Revision protection controlword Mutually exclusive-
Fields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
-
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
-
-
Constructor Summary
Constructors Constructor Description RtfProtectionSetting(RtfDocument doc)Constructs aRtfProtectionSettingbelonging to a RtfDocument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteContent(java.io.OutputStream result)Writes the RTF protection control wordsvoidwriteDefinition(java.io.OutputStream result)Writes the RTF protection control words-
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
-
-
-
Field Detail
-
FORMPROT
private static final byte[] FORMPROT
Constant for Form protection controlword Mutually exclusive
-
REVPROT
private static final byte[] REVPROT
Constant for Revision protection controlword Mutually exclusive
-
ANNOTPROT
private static final byte[] ANNOTPROT
Constant for Annotation/Comment protection controlword Mutually exclusive
-
READPROT
private static final byte[] READPROT
Constant for read only rotection controlword Mutually exclusive - exception, can be combined with ANNOTPROT for backwards compatibility
-
PROTLEVEL
private static final byte[] PROTLEVEL
Constant for protlevel controlword- Since:
- 2.1.1
-
ENFORCEPROT
private static final byte[] ENFORCEPROT
Constant for enforceprot controlword- Since:
- 2.1.1
-
READONLYRECOMMENDED
private static final byte[] READONLYRECOMMENDED
Constant for enforceprot controlword. Implemented in Microsoft Word 2007.- Since:
- 2.1.1
-
-
Constructor Detail
-
RtfProtectionSetting
public RtfProtectionSetting(RtfDocument doc)
Constructs aRtfProtectionSettingbelonging to a RtfDocument- Parameters:
doc- TheRtfDocumentthisRtfProtectionSettingbelongs to- Since:
- 2.1.1
-
-
Method Detail
-
writeContent
public void writeContent(java.io.OutputStream result) throws java.io.IOExceptionWrites the RTF protection control words- Specified by:
writeContentin interfaceRtfBasicElement- Specified by:
writeContentin classRtfElement- Parameters:
result- TheOutputStreamto write the content to- Throws:
java.io.IOException- Since:
- 2.1.1
-
writeDefinition
public void writeDefinition(java.io.OutputStream result) throws java.io.IOExceptionWrites the RTF protection control words- Throws:
java.io.IOException- Since:
- 2.1.1
-
-