Scribus
Open source desktop publishing at your fingertips
|
Public Member Functions | |
int | getMaxID (void) |
Get layer max identifier. More... | |
const ScLayer * | bottomLayer (void) const |
Get bottom layer. More... | |
const ScLayer * | topLayer (void) const |
Get top layer. More... | |
void | levelToLayer (ScLayer &layer, int level) const |
Get layer at a specific level, replace old Level2Layer in util.cpp. More... | |
ScLayer * | bottom (void) |
Get bottom layer. More... | |
ScLayer * | top (void) |
Get top layer. More... | |
ScLayer * | byLevel (const int level) |
Get layer at a specific level. More... | |
ScLayer * | byID (const int nr) |
Get layer with a specific number. More... | |
ScLayer * | above (int nr) |
Get layer above the layer with the specified ID. More... | |
ScLayer * | below (int nr) |
Get layer below the layer with the specified ID. More... | |
const ScLayer * | layerByLevel (int level) const |
Get layer at a specific level. More... | |
const ScLayer * | layerByID (int nr) const |
Get layer with a specific number. More... | |
const ScLayer * | layerByName (const QString &name) const |
Get layer with a specific name. More... | |
const ScLayer * | layerAbove (int level) const |
Get layer above a specific level. More... | |
const ScLayer * | layerAbove (const ScLayer &layer) const |
Get layer above a specific layer. More... | |
const ScLayer * | layerBelow (int level) const |
Get layer below a specific level. More... | |
const ScLayer * | layerBelow (const ScLayer &layer) const |
Get layer below a specific layer. More... | |
int | addLayer (const QString &layerName) |
Add a layer to the layer list. More... | |
int | addLayer (const ScLayer &layer) |
Add a layer to the layer list. More... | |
ScLayer * | newLayer (const QString &layerName) |
Add a layer to the layer list. More... | |
bool | removeLayerByID (int id) |
Remove a layer from the layer list. More... | |
bool | removeLayerByLevel (int level) |
Remove a layer from the layer list. More... | |
bool | raiseLayer (int nr) |
Raise the layer with the specified ID. More... | |
bool | lowerLayer (int nr) |
Lower the layer with the specified ID. More... | |
void | sort (void) |
sort layers by level order | |
bool | layerPrintable (const int layerID) const |
Is the layer printable. More... | |
bool | setLayerPrintable (const int layerID, const bool isPrintable) |
Set the layer printable via the layer ID. More... | |
bool | layerVisible (const int layerID) const |
Is the layer visible. More... | |
bool | setLayerVisible (const int layerID, const bool isViewable) |
Set the layer visible via the layer ID. More... | |
bool | layerLocked (const int layerID) const |
Is the layer locked. More... | |
bool | setLayerLocked (const int layerID, const bool isViewable) |
Set the layer locked via the layer ID. More... | |
bool | layerFlow (const int layerID) const |
does text flow around objects on this layer More... | |
bool | setLayerFlow (const int layerID, const bool flow) |
Set the layer flow via the layer ID. More... | |
bool | layerOutline (const int layerID) const |
is this layer in outline mode More... | |
bool | setLayerOutline (const int layerID, const bool outline) |
Set the layer outline mode via the layer ID. More... | |
double | layerTransparency (const int layerID) const |
returns the layer transparency More... | |
bool | setLayerTransparency (const int layerID, double trans) |
Set the layer transparency via the layer ID. More... | |
int | layerBlendMode (const int layerID) const |
returns the layer BlendMode More... | |
bool | setLayerBlendMode (const int layerID, int blend) |
Set the layer layerBlendMode via the layer ID. More... | |
QColor | layerMarker (const int layerID) const |
returns the layer marker color More... | |
bool | setLayerMarker (const int layerID, QColor color) |
Set the layer marker color. More... | |
bool | layerSelectable (const int layerID) const |
are objects on the layer selectable More... | |
bool | setLayerSelectable (const int layerID, const bool isSelectable) |
Set objects on the layer selectable via the layer ID. More... | |
ScLayer * ScLayers::above | ( | int | nr | ) |
Get layer above the layer with the specified ID.
nr | number of the layer level |
int ScLayers::addLayer | ( | const QString & | layerName | ) |
Add a layer to the layer list.
layerName | the layer name (may be empty) |
int ScLayers::addLayer | ( | const ScLayer & | layer | ) |
Add a layer to the layer list.
layer | the layer object |
ScLayer * ScLayers::below | ( | int | nr | ) |
Get layer below the layer with the specified ID.
nr | the layer level |
ScLayer * ScLayers::bottom | ( | void | ) |
Get bottom layer.
const ScLayer * ScLayers::bottomLayer | ( | void | ) | const |
Get bottom layer.
ScLayer * ScLayers::byID | ( | const int | nr | ) |
Get layer with a specific number.
nr | the layer number |
ScLayer * ScLayers::byLevel | ( | const int | level | ) |
Get layer at a specific level.
level | the layer level |
int ScLayers::getMaxID | ( | void | ) |
Get layer max identifier.
const ScLayer * ScLayers::layerAbove | ( | int | level | ) | const |
Get layer above a specific level.
level | the layer level |
Get layer above a specific layer.
layer | the layer |
const ScLayer * ScLayers::layerBelow | ( | int | level | ) | const |
Get layer below a specific level.
level | the layer level |
Get layer below a specific layer.
layer | the layer |
int ScLayers::layerBlendMode | ( | const int | layerID | ) | const |
returns the layer BlendMode
layerID | ID of the layer |
const ScLayer * ScLayers::layerByID | ( | int | nr | ) | const |
Get layer with a specific number.
nr | the layer number |
const ScLayer * ScLayers::layerByLevel | ( | int | level | ) | const |
Get layer at a specific level.
level | the layer level |
const ScLayer * ScLayers::layerByName | ( | const QString & | name | ) | const |
Get layer with a specific name.
name | the layer name |
bool ScLayers::layerFlow | ( | const int | layerID | ) | const |
does text flow around objects on this layer
layerID | ID of the layer |
bool ScLayers::layerLocked | ( | const int | layerID | ) | const |
Is the layer locked.
layerID | ID of the layer |
QColor ScLayers::layerMarker | ( | const int | layerID | ) | const |
returns the layer marker color
layerID | ID of the layer |
bool ScLayers::layerOutline | ( | const int | layerID | ) | const |
is this layer in outline mode
layerID | ID of the layer |
bool ScLayers::layerPrintable | ( | const int | layerID | ) | const |
Is the layer printable.
layerID | ID of the layer |
bool ScLayers::layerSelectable | ( | const int | layerID | ) | const |
are objects on the layer selectable
layerID | ID of the layer |
double ScLayers::layerTransparency | ( | const int | layerID | ) | const |
returns the layer transparency
layerID | ID of the layer |
bool ScLayers::layerVisible | ( | const int | layerID | ) | const |
Is the layer visible.
layerID | ID of the layer |
void ScLayers::levelToLayer | ( | ScLayer & | layer, |
int | level | ||
) | const |
Get layer at a specific level, replace old Level2Layer in util.cpp.
layer | a reference to the ScLayer |
level | the layer level |
bool ScLayers::lowerLayer | ( | int | nr | ) |
Lower the layer with the specified ID.
ScLayer * ScLayers::newLayer | ( | const QString & | layerName | ) |
Add a layer to the layer list.
layerName | the layer name (may be empty) |
bool ScLayers::raiseLayer | ( | int | nr | ) |
Raise the layer with the specified ID.
bool ScLayers::removeLayerByID | ( | int | id | ) |
Remove a layer from the layer list.
the | layer number to remove |
bool ScLayers::removeLayerByLevel | ( | int | level | ) |
Remove a layer from the layer list.
the | layer level to remove |
bool ScLayers::setLayerBlendMode | ( | const int | layerID, |
int | blend | ||
) |
Set the layer layerBlendMode via the layer ID.
layerID | ID of the layer |
trans | layerBlendMode |
bool ScLayers::setLayerFlow | ( | const int | layerID, |
const bool | flow | ||
) |
Set the layer flow via the layer ID.
layerID | ID of the layer |
flow | true = Text flows around objects on this layer |
bool ScLayers::setLayerLocked | ( | const int | layerID, |
const bool | isViewable | ||
) |
Set the layer locked via the layer ID.
layerID | ID of the layer |
isViewable | true = layer is locked |
bool ScLayers::setLayerMarker | ( | const int | layerID, |
QColor | color | ||
) |
Set the layer marker color.
layerID | ID of the layer |
color | color of the marker |
bool ScLayers::setLayerOutline | ( | const int | layerID, |
const bool | outline | ||
) |
Set the layer outline mode via the layer ID.
layerID | ID of the layer |
outline | true = layer is displayed in outlines only |
bool ScLayers::setLayerPrintable | ( | const int | layerID, |
const bool | isPrintable | ||
) |
Set the layer printable via the layer ID.
layerID | ID of the layer |
isPrintable | bool true = layer is prantable |
bool ScLayers::setLayerSelectable | ( | const int | layerID, |
const bool | isSelectable | ||
) |
Set objects on the layer selectable via the layer ID.
layerID | ID of the layer |
isSelectable | true = layer objects are selectable |
bool ScLayers::setLayerTransparency | ( | const int | layerID, |
double | trans | ||
) |
Set the layer transparency via the layer ID.
layerID | ID of the layer |
trans | transparency value 0.0 - 1.0 |
bool ScLayers::setLayerVisible | ( | const int | layerID, |
const bool | isViewable | ||
) |
Set the layer visible via the layer ID.
layerID | ID of the layer |
isViewable | true = layer is visible |
ScLayer * ScLayers::top | ( | void | ) |
Get top layer.
const ScLayer * ScLayers::topLayer | ( | void | ) | const |
Get top layer.