Ipe documents can use symbolic attributes, such as 'normal', 'fat', or 'thin' for line thickness, or 'red', 'navy', 'turquoise' for color. The mapping to an absolute pen thickness or RGB value is performed by an IpeStyleSheet.
IpeStyleSheet's cascade in the sense that a document can refer to several style sheets, which are arranged on a stack. The document owns the 'top-level stylesheet', which in turn owns the stack below it. A lookup is done from top to bottom, and returns as soon as a match is found. Ipe always appends the built-in "standard" style sheet at the bottom of the cascade.
Style sheets are always included when the document is saved, so that an Ipe document is self-contained.
The built-in style sheet is guaranteed not to change in ways that would change the meaning of existing Ipe files. In other words, new symbolic names may be defined, but no existing ones will be removed or mapped differently.
Note that the style sheet depends (and includes a pointer to) the IpeRepository of the document. You cannot attach a style sheet to another document---the IpeRepository wouldn't make sense. To transfer a style sheet, it has to be externalized and internalized again with the new repository. For this reason, copying and assigning IpeStyleSheet is illegal.
|
The default constructor creates an empty style sheet.
|
|
Destructor.
|
|
Create standard built-in style sheet.
|
|
Add a template object.
|
|
Find a template object with given name.
|
|
Add an attribute.
|
|
Find a symbolic attribute.
Returns |
|
Save style sheet in XML format.
|
|
Save whole style sheet cascade in XML format.
|
|
Return all symbolic names in the style sheet cascade. Names are simply appended from top to bottom of the cascade. Names are inserted only once. |
|
Return whether this is the standard style sheet built into Ipe.
|
|
Return preamble of this style sheet (not including the cascade).
|
|
Return total LaTeX preamble (of the whole cascade).
|
|
Set LaTeX preamble.
|
|
Set text margins.
|
|
Find text margins in style sheet cascade.
|
|
Set the shading in this style sheet.
|
|
Find shading in style sheet cascade.
|
|
Add font s to list of fonts with cmap generation.
|
|
Set line cap, line join, and wind rule.
|
|
Return next sheet in cascade (const version).
|
|
Return the next level style sheet.
|
|
Set the next level of the style sheet cascade. Takes ownership. The previous contents is not destroyed. You have to take care of that. |
|
Return name of style sheet.
|
|
Set name of style sheet.
|
|
Return attribute repository.
|
|
Return attribute repository (const version).
|