MacroPlugin Methods |
The MacroPlugin type exposes the following members.
Name | Description | |
---|---|---|
AddGlobalLogEntry |
Adds an entry to the main articy:draft log-file 'articy.log'
| |
AddLogEntry |
Adds an entry to the plugin-private log
| |
CanAddPin |
Callback to check if adding a pin is allowed
| |
CanRemovePin |
Callback to check if removing a pin is allowed
| |
ExecuteProtocol |
Is called from the articy:// protocol handler if the called url is like
articy://./plugin/<technical name of plugin>/<cmd>
| |
GetIcon |
Provide icons based on their technical names
| |
GetMenuEntries(ListObjectProxy) | Obsolete.
Requests command descriptors to create a context menu
| |
GetMenuEntries(ListObjectProxy, ContextMenuContext) |
Requests command descriptors to create a context menu. This is the newer version that also provides information about the source context of the request.
Available since version 3.1.6
| |
Initialize |
Method that is called once directly after the plugin was loaded into the articy:draft process.
If your plugin uses own WPF resource dictionaries you need to register them within this method using RegisterResource(String) | |
IsCreatingAllowed |
Callback to check if creating the given object at the given location is allowed.
| |
IsCuttingAllowed |
called to check if cutting the given objects is allowed
| |
IsDeletingAllowed |
called to check if deleting the given objects is allowed
| |
IsPastingAllowed |
Checks if pasting is possible
| |
IsRelocatingAllowed |
Checks if relocating is possible
| |
IsRenamingAllowed |
Callback to check if renaming the display name of the given object is allowed.
| |
JourneyPointHit |
Called when a journey point was hit
| |
LocalizeString |
looks up a localized string with the given Loca-Id and formats the resulting text with the given parameters
using the normal string.Format patterns
| |
LocalizeStringNoFormat |
looks up a localized string with the given Loca-Id
| |
ObjectCreated |
Called when an object was created and just before entering the "auto-rename" on new objects
| |
ObjectsCopying |
called to inform the plugin that the given objects are put into the clipboard
| |
ObjectsCutted |
called after the delete has be done
| |
ObjectsCutting |
Called when the list of objects are about to be cut off the project.
Called before the operation to use the given still valid objects
| |
ObjectsDeleted |
called after the delete has be done
| |
ObjectsDeleting |
Called when the list of objects are about to be deleted from the project.
Called before the operation to use the given still valid objects
| |
ObjectsPasted |
called after the paste is complete. This is the backward compatibility hook and is called from ObjectsPastedEx without the aFromCut parameter
| |
ObjectsPastedEx |
called after the paste is complete. This call can distinguish the cases where the paste comes from a previous cut or copy operation
| |
ObjectsPasting |
called when a pasting starts at the given target container
| |
ObjectsRelocated |
called after the relocate
| |
ObjectsRelocating |
called before the relocate
| |
PartitionLoaded |
Called when the a multi-user partition was loaded as part of a claim or update command
| |
PartitionPublished |
Called after the a multi-user partition was published or unclaimed
| |
PartitionPublishing |
Called before a multi-user partition is published or unclaimed
| |
PartitionsPublished |
Called after a multi-user partition is published or unclaimed, can be used to prevent publishing if a non null error is returned.
Will be called after the "PartitionPublished" callback
| |
PartitionUnloaded |
Called when the a multi-user partition was unloaded.
Called when a partition is either claimed or updated
| |
PartitionUnloading |
Called when the a multi-user partition is about to be unloaded.
Called when a partition is either claimed or updated
| |
ProjectLoaded |
called directly after a project was loaded.
| |
ProjectSaved |
Called after the project was saved
| |
ProjectSaving |
Called before the project is being saved
| |
ProjectUnloaded |
Called when the project was unloaded. Can be used to free resources. Any access to objects will fail.
| |
ProjectUnloading |
Called when the project starts unloading (closing the project or articy:draft)
| |
RegisterResource(String) |
Register the resource dictionary given by the relative Uri-String to the main WPF application resources
| |
RegisterResource(Uri, String) |
Register the resource dictionary given by the Uri to the main WPF application resources
| |
SetLogTypes |
Sets up the log types that should be written into the log.
| |
ShowMessageBox |
Shows a message box with the given parameters
| |
ShowQueryBox |
Shows a query box to enter a single value. This is a convenience wrapper of the same method of the Session, but uses the plugins display name
if no caption text was provided with the call.
| |
TemplateChanged |
called after an object gets a new template.
| |
TemplateChanging |
called before an object gets a new template.
| |
TemplatePropertyChanged |
Called when a template property has changed
| |
TemplatePropertyChanging |
Called when a template property is about to be changed (since articy:draft 3.1.29 / MDK 1.7.0)
| |
ValidatePublishing |
Called before a multi-user partition(s) are published or unclaimed, can be used to prevent publishing if a non null error is returned.
Will be called before the "PartitionPublishing" callback and before the user is asked to save the data. So it is possible to also use this callback to do
pre-publishing changes without stopping the process.
If the commit is triggered from a non-interactive context, the message box text is thrown as an exception.
|