|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--ru.novosoft.dc.core.util.Flags
|
+--ru.novosoft.dc.rtf.dom.DocumentContext
Document context contains document properties.
| Constructor Summary | |
DocumentContext(boolean oldMargins)
Constructor. |
|
| Method Summary | |
FootnoteContext |
defineFootnoteContext()
Create a new footnote context if it does not defined yet and return it. |
DocumentVariables |
defineVariables()
Create document variables if they are not defined yet and return them. |
void |
exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element. |
FootnoteContext |
footnoteContext()
Return the footnote context or null if it does not defined. |
int |
getGutterStyle()
Return the gutter style. |
int |
getTabWidth()
Return the tab width in twips. |
boolean |
hasWidowOrphan()
Return true if the widow/orphan control is turned on. |
boolean |
isTwoSide()
Return true if two-side layout is set. |
Layout |
layout()
Return the document layout parameters. |
void |
setGutterStyle(int value)
Set the gutter style: 0 - left gutter (default), 1 - right gutter, (-1) - parallel (top) gutter. |
void |
setTabWidth(int value)
Set a tab width in twips (default tab width is 720). |
void |
twoSide()
Set two-side layout meaning different left and right headers and footers. |
DocumentVariables |
variables()
Return the document variables or null if no variables defined. |
void |
widowOrphan()
Turn the widow/orphan control on. |
| Methods inherited from class ru.novosoft.dc.core.util.Flags |
clone,
equals,
flags,
has,
set,
size |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DocumentContext(boolean oldMargins)
| Method Detail |
public final Layout layout()
public final void widowOrphan()
public final boolean hasWidowOrphan()
public final void setGutterStyle(int value)
public final int getGutterStyle()
public final void twoSide()
public final boolean isTwoSide()
public final void setTabWidth(int value)
public final int getTabWidth()
public final FootnoteContext defineFootnoteContext()
public final FootnoteContext footnoteContext()
public final DocumentVariables defineVariables()
public final DocumentVariables variables()
public void exportTo(org.w3c.dom.Element elem)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||