Its main ingredients are a sequence of IpePgObjects, a list of IpeLayers, and a list of IpeViews.
If you need to keep track of whether a document has been modified, you have to call SetEdited(true) whenever you modify an IpePgObject.
The functions to modify the layer sequence and the views set the edited flag themselves.
|
|
The default constructor creates a new empty page. This page still needs a layer and a view to be usable! |
|
||||||||||||
|
Save page in XML format.
|
|
|
Return number of layers.
|
|
|
Return a layer.
|
|
|
Return a layer.
|
|
|
Find layer with given name. Returns -1 if not found. |
|
||||||||||||
|
Add a new layer at index (at the end if index is negative). Returns index of new layer, and sets edited flag. Layer numbers of all objects on page are adjusted if necessary. |
|
|
Create a new layer with unique name. The layer is inserted at index index, or appended if index is negative. Returns index of new layer. |
|
|
Deletes an empty layer from the page. All objects are adjusted. Panics if there are objects in the deleted layer, of if it is the only layer. The layer is also removed from all views. |
|
|
Does a view exist where this layer is active?
|
|
|
Return presentation sequence of this page.
|
|
|
Return number of views.
|
|
|
Return a view.
|
|
|
Return a view.
|
|
||||||||||||
|
Sets one view of the page. This sets the edited flag. |
|
||||||||||||
|
Add a view at position index. The view is appended at the end if index is negative. |
|
|
Delete view at index.
|
|
||||||||||||
|
Computes text box. Takes into account media size, margins, and text objects already on the page . |
|
|
Set whether page has been edited.
|
|
|
Return true if page has been modified since last save.
|
|
||||||||||||
|
Set the section title at level. Level 0 is the section, level 1 the subsection. This marks the page as edited. |
|
|
Deselect all objects.
|
|
|
Deselect all objects in this layer.
|
|
|
Deselect all objects not in a layer of this view, or in a locked layer.
|
|
|
Returns true iff any object on the page is selected.
|
|
|
Returns the primary selection, or end().
|
|
|
If no object is the primary selection, make the topmost secondary selection the primary one. |