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
,com.lowagie.text.RtfElementInterface
The RtfProtectionSetting handles document protection elements
- Since:
- 2.1.1
- Version:
- $Id: RtfProtectionSetting.java 3580 2008-08-06 15:52:00Z howard_s $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
Constant for Annotation/Comment protection controlword Mutually exclusiveprivate static final byte[]
Constant for enforceprot controlwordprivate static final byte[]
Constant for Form protection controlword Mutually exclusiveprivate static final byte[]
Constant for protlevel controlwordprivate static final byte[]
Constant for enforceprot controlword.private static final byte[]
Constant for read only rotection controlword Mutually exclusive - exception, can be combined with ANNOTPROT for backwards compatibilityprivate static final byte[]
Constant for Revision protection controlword Mutually exclusiveFields 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
ConstructorsConstructorDescriptionConstructs aRtfProtectionSetting
belonging to a RtfDocument -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeContent
(OutputStream result) Writes the RTF protection control wordsvoid
writeDefinition
(OutputStream result) Writes the RTF protection control wordsMethods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
Field Details
-
FORMPROT
private static final byte[] FORMPROTConstant for Form protection controlword Mutually exclusive- Since:
- 2.1.1
- See Also:
-
REVPROT
private static final byte[] REVPROTConstant for Revision protection controlword Mutually exclusive- Since:
- 2.1.1
- See Also:
-
ANNOTPROT
private static final byte[] ANNOTPROTConstant for Annotation/Comment protection controlword Mutually exclusive- Since:
- 2.1.1
- See Also:
-
READPROT
private static final byte[] READPROTConstant for read only rotection controlword Mutually exclusive - exception, can be combined with ANNOTPROT for backwards compatibility- Since:
- 2.1.1
- See Also:
-
PROTLEVEL
private static final byte[] PROTLEVELConstant for protlevel controlword- Since:
- 2.1.1
-
ENFORCEPROT
private static final byte[] ENFORCEPROTConstant for enforceprot controlword- Since:
- 2.1.1
-
READONLYRECOMMENDED
private static final byte[] READONLYRECOMMENDEDConstant for enforceprot controlword. Implemented in Microsoft Word 2007.- Since:
- 2.1.1
-
-
Constructor Details
-
RtfProtectionSetting
Constructs aRtfProtectionSetting
belonging to a RtfDocument- Parameters:
doc
- TheRtfDocument
thisRtfProtectionSetting
belongs to- Since:
- 2.1.1
-
-
Method Details
-
writeContent
Writes the RTF protection control words- Specified by:
writeContent
in interfaceRtfBasicElement
- Specified by:
writeContent
in classRtfElement
- Parameters:
result
- TheOutputStream
to write the content to- Throws:
IOException
- Since:
- 2.1.1
-
writeDefinition
Writes the RTF protection control words- Throws:
IOException
- Since:
- 2.1.1
-