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. |
|
Removes all selected objects from the page. They are added, in the same order, to seq. |
|
If no selected object is close, select closest object. If there is a selected object at distance at most d from pos, return true. Otherwise, check whether the closest object to pos has distance at most d. If so, unselect everything, make this object the primary selection, and return true. If not, return whether the page has a selection at all.
If primaryOnly is |
|
Copy selected objects into the stream.
|
|
Paste objects from XML source into layer. Returns false if XML source cannot be parsed. |
|
Copy whole page into the stream.
|
|
Make a table of layers, indicating whether visible (and unlocked). Must be called with an empty layers vector. |
|
Move selected objects to indicated layer.
|
|
Delete currently selected objects.
|
|
Select all objects visible and not locked in the view.
|
|
Select all objects in the given layer.
|
|
Group the selected objects together as a new group object. The new object is placed in layer. |
|
Ungroup the primary selection, place objects in layer. Panics if no primary selection, returns false if primary selection is not a group. |
|
Move selected objects to front.
|
|
Move selected objects to back.
|
|
Duplicate the selected objects into layer.
|
|
Set stroke color of selected objects.
|
|
Set fill color of selected objects.
|
|
Set line width of selected objects.
|
|
Set line style of selected objects.
|
|
Set arrows of selected objects.
|
|
Set arrow size of selected objects.
|
|
Set mark shape of selected objects.
|
|
Set mark size of selected objects.
|
|
Set text size of selected objects.
|
|
Create one path object with all the subpaths from the selection. The new object takes the attributes from the primary selection, and is placed in layer. The function returns false if non-path objects are selected. |
|
Decompose one path object into separate objects for the subpaths. The new objects are placed in layer. The function returns false if the primary selection is not a path object. |
|
Join paths into one long path.
Create one path object with the open subpaths from the selection joined into one long subpath. The new object takes the attributes from the primary selection, and is placed in layer. The function returns |
|
Return grid size for this page (0 if not set).
|
|
Set grid size.
|