LayOut C API
|
Go to the source code of this file.
Enumerations | |
enum | LOShareLayerAction { LOShareLayerAction_Clear, LOShareLayerAction_KeepOnePage, LOShareLayerAction_MergeAllPages, LONumShareLayerActions } |
Defines the different ways to manage entities when sharing a layer. More... | |
enum | LOUnshareLayerAction { LOUnshareLayerAction_Clear, LOUnshareLayerAction_CopyToOnePage, LOUnshareLayerAction_CopyToAllPages, LONumUnshareLayerActions } |
Defines the different ways to manage entities when making a layer non-shared. More... | |
Functions | |
LO_RESULT | LOLayerGetName (LOLayerRef layer_definition, SUStringRef *name) |
Gets the name of a layer. More... | |
LO_RESULT | LOLayerSetName (LOLayerRef layer_definition, const char *name) |
Sets the name of a layer. More... | |
LO_RESULT | LOLayerGetLocked (LOLayerRef layer_definition, bool *is_locked) |
Gets whether or not a layer is locked. More... | |
LO_RESULT | LOLayerSetLocked (LOLayerRef layer_definition, bool is_locked) |
Sets whether or not a layer is locked. When setting a layer to locked, there must be at least one other unlocked and visible layer on every page. If this is not the case, then the next layer will be automatically unlocked and made visible on all pages as necessary to proceed with the operation. More... | |
LO_RESULT | LOLayerGetShared (LOLayerRef layer_definition, bool *is_shared) |
Gets whether or not a layer is a shared layer. More... | |
LO_RESULT | LOLayerSetShared (LOLayerRef layer_definition, LOPageRef page, LOShareLayerAction action) |
Shares a layer. If action is LOShareLayerAction_Clear or LOShareLayerAction_MergeAllPages, then page may be an invalid object. More... | |
LO_RESULT | LOLayerSetNonShared (LOLayerRef layer_definition, LOPageRef page, LOUnshareLayerAction action) |
Unshares a layer. If action is LOUnshareLayerAction_Clear or LOUnshareLayerAction_CopyToAllPages, then page may be an invalid object. More... | |
LO_RESULT | LOLayerGetLayerInstance (LOLayerRef layer_definition, LOPageRef page, LOLayerInstanceRef *layer_instance) |
Gets the layer instance for the given layer definition on a given page. If layer_definition specifies a shared layer, page may be an invalid object. More... | |
LO_RESULT | LOLayerGetLayerIndex (LOLayerRef layer_definition, size_t *index) |
Returns the index of this layer in the document. More... | |
LO_RESULT | LOLayerGetDocument (LOLayerRef layer_definition, LODocumentRef *document) |
Returns the document that this layer belongs to. More... | |
enum LOShareLayerAction |
enum LOUnshareLayerAction |
Defines the different ways to manage entities when making a layer non-shared.
LO_RESULT LOLayerGetDocument | ( | LOLayerRef | layer_definition, |
LODocumentRef * | document | ||
) |
Returns the document that this layer belongs to.
[in] | layer_definition | The layer definition object. |
[out] | document | The document object. |
LO_RESULT LOLayerGetLayerIndex | ( | LOLayerRef | layer_definition, |
size_t * | index | ||
) |
Returns the index of this layer in the document.
[in] | layer_definition | The layer definition object. |
[out] | index | The index of the layer in the document. |
LO_RESULT LOLayerGetLayerInstance | ( | LOLayerRef | layer_definition, |
LOPageRef | page, | ||
LOLayerInstanceRef * | layer_instance | ||
) |
Gets the layer instance for the given layer definition on a given page. If layer_definition specifies a shared layer, page may be an invalid object.
[in] | layer_definition | The layer definition object. |
[in] | page | The page object. |
[out] | layer_instance | The layer instance object. |
LO_RESULT LOLayerGetLocked | ( | LOLayerRef | layer_definition, |
bool * | is_locked | ||
) |
Gets whether or not a layer is locked.
[in] | layer_definition | The layer definition object. |
[out] | is_locked | Whether the layer is locked or not. |
LO_RESULT LOLayerGetName | ( | LOLayerRef | layer_definition, |
SUStringRef * | name | ||
) |
Gets the name of a layer.
[in] | layer_definition | The layer definition object. |
[out] | name | The name of the layer. |
LO_RESULT LOLayerGetShared | ( | LOLayerRef | layer_definition, |
bool * | is_shared | ||
) |
Gets whether or not a layer is a shared layer.
[in] | layer_definition | The layer definition object. |
[in] | is_shared | Whether the layer is shared or not. |
LO_RESULT LOLayerSetLocked | ( | LOLayerRef | layer_definition, |
bool | is_locked | ||
) |
Sets whether or not a layer is locked. When setting a layer to locked, there must be at least one other unlocked and visible layer on every page. If this is not the case, then the next layer will be automatically unlocked and made visible on all pages as necessary to proceed with the operation.
[in] | layer_definition | The layer definition object. |
[in] | is_locked | Whether the layer should be locked or not. |
LO_RESULT LOLayerSetName | ( | LOLayerRef | layer_definition, |
const char * | name | ||
) |
Sets the name of a layer.
[in] | layer_definition | The layer definition object. |
[in] | name | The new name for the layer. |
LO_RESULT LOLayerSetNonShared | ( | LOLayerRef | layer_definition, |
LOPageRef | page, | ||
LOUnshareLayerAction | action | ||
) |
Unshares a layer. If action is LOUnshareLayerAction_Clear or LOUnshareLayerAction_CopyToAllPages, then page may be an invalid object.
[in] | layer_definition | The layer definition object. |
[in] | page | The the page to use when action is LOUnshareLayerAction_CopyToOnePage. |
[in] | action | The action to apply to existing entities on the layer that is being unshared. |
LO_RESULT LOLayerSetShared | ( | LOLayerRef | layer_definition, |
LOPageRef | page, | ||
LOShareLayerAction | action | ||
) |
Shares a layer. If action is LOShareLayerAction_Clear or LOShareLayerAction_MergeAllPages, then page may be an invalid object.
[in] | layer_definition | The layer definition object. |
[in] | page | The the page to use when action is LOShareLayerAction_KeepOnePage. |
[in] | action | The action to apply to existing entities on the layer that is being shared. |