public final class Page extends CompositeNode<IPageChildNode>
Represents a page.
Constructor and Description |
---|
Page(Document document)
Initializes a new instance of the
Page class. |
Modifier and Type | Method and Description |
---|---|
void |
accept(DocumentVisitor visitor)
Accepts the visitor of the node.
|
Page |
deepClone()
Clones the page.
|
Page |
deepClone(boolean cloneHistory)
Clones the page.
|
String |
getAuthor()
Gets or sets the author.
|
Date |
getCreationTime()
Gets or sets the creation time.
|
Date |
getLastModifiedTime()
Gets or sets the last modified time.
|
byte |
getLevel()
Gets or sets the level.
|
Margins |
getMargin()
Gets or sets the margin.
|
RevisionSummary |
getPageContentRevisionSummary()
Gets or sets the revision summary for the page and it's child nodes.
|
Dimension2D |
getPageLayoutSize()
Gets page's layout size displayed in the editor.
|
int |
getSizeType()
Gets or sets the size type of a page.
|
Title |
getTitle()
Gets or sets the title.
|
boolean |
isConflictPage()
Gets or sets a value indicating whether this page is a conflict page.
|
void |
setAuthor(String value)
Gets or sets the author.
|
void |
setConflictPage(boolean value)
Gets or sets a value indicating whether this page is a conflict page.
|
void |
setCreationTime(Date value)
Gets or sets the creation time.
|
void |
setLastModifiedTime(Date value)
Gets or sets the last modified time.
|
void |
setLevel(byte value)
Gets or sets the level.
|
void |
setMargin(Margins value)
Gets or sets the margin.
|
void |
setPageContentRevisionSummary(RevisionSummary value)
Gets or sets the revision summary for the page and it's child nodes.
|
void |
setPageLayoutSize(Dimension2D value)
Sets page's layout size displayed in the editor.
|
void |
setSizeType(int value)
Gets or sets the size type of a page.
|
void |
setTitle(Title value)
Gets or sets the title.
|
appendChildFirst, appendChildLast, getChildNodes, getChildren, getFirstChild, getLastChild, insertChild, insertChildrenRange, insertChildrenRange, isComposite, iterator, removeChild
getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Page(Document document)
Initializes a new instance of the Page
class.
document
- The parent document of the page.public RevisionSummary getPageContentRevisionSummary()
Gets or sets the revision summary for the page and it's child nodes.
public void setPageContentRevisionSummary(RevisionSummary value)
Gets or sets the revision summary for the page and it's child nodes.
public Title getTitle()
Gets or sets the title.
Value: TheTitle
.public void setTitle(Title value)
Gets or sets the title.
Value: TheTitle
.public Date getLastModifiedTime()
Gets or sets the last modified time.
public void setLastModifiedTime(Date value)
Gets or sets the last modified time.
public Date getCreationTime()
Gets or sets the creation time.
public void setCreationTime(Date value)
Gets or sets the creation time.
public byte getLevel()
Gets or sets the level.
public void setLevel(byte value)
Gets or sets the level.
public Margins getMargin()
Gets or sets the margin.
public void setMargin(Margins value)
Gets or sets the margin.
public String getAuthor()
Gets or sets the author.
public void setAuthor(String value)
Gets or sets the author.
public final int getSizeType()
Gets or sets the size type of a page.
PageSizeType.SizeByContent
.
public final void setSizeType(int value)
Gets or sets the size type of a page.
PageSizeType.SizeByContent
.
public final Dimension2D getPageLayoutSize()
Gets page's layout size displayed in the editor.
public final void setPageLayoutSize(Dimension2D value)
Sets page's layout size displayed in the editor.
public final boolean isConflictPage()
Gets or sets a value indicating whether this page is a conflict page.
The conflict page arises when two users try to update the same content. In this case the changes of first user are written as usual. But changes of another user can't be merged. So just a copy of page is created and marked as conflict.
At this version the conflicts are resolved in favor of the first user's changes. So if document has conflict pages then they will be shown in history but they will be skipped on saving. It is possible to reset this flag to save this pages in history as usual ones.
Detailed sample of manipulating by conflict page can be found in the online documentation.
public final void setConflictPage(boolean value)
Gets or sets a value indicating whether this page is a conflict page.
The conflict page arises when two users try to update the same content. In this case the changes of first user are written as usual. But changes of another user can't be merged. So just a copy of page is created and marked as conflict.
At this version the conflicts are resolved in favor of the first user's changes. So if document has conflict pages then they will be shown in history but they will be skipped on saving. It is possible to reset this flag to save this pages in history as usual ones.
Detailed sample of manipulating by conflict page can be found in the online documentation.
public void accept(DocumentVisitor visitor)
Accepts the visitor of the node.
accept
in interface INode
accept
in class CompositeNode<IPageChildNode>
visitor
- The object of a class derived from the DocumentVisitor
.public final Page deepClone(boolean cloneHistory)
Clones the page.
cloneHistory
- Specifies if page's history should be cloned..public final Page deepClone()
Clones the page.
Copyright (c) 2002-2021 Aspose. All Rights Reserved.