(new in Rev2.40)
MQCreatePlugin class inherits MQBasePlugin class, and provides functions necessary for an implementation of a Create plug-in.
You can make a Create plug-in with a simple implementation and without taking care of complex message procedures between a plug-in and a main part of Metasequoia by inheriting this MQCreatePlugin class and implementing required virtual functions.
In MQCreatePlugin class, each plug-in member functions and messages are declared as virtual functions. It is necessary to implement the virtual function in the inherited class.
Class | |
MQCreatePlugin | Constructor |
~MQCreatePlugin | Destructor |
Declared in super class | |
GetPlugInID | Get a plug-in ID |
GetPlugInName | Get a plug-in name |
Plug-in | |
GetPlugInType | Get a plug-in type |
EnumString | Enumerate displayed strings |
Execute | Create an object |
Supplemental functions for the super class | |
OpenSetting | Open a setting file |
CloseSetting | Close a setting file |
GetResourceString | Get a resource string |
GetSettingValue | Get a setting value |
GetSystemColor | Get a system color |
GetResourceCursor | Get a default mouse cursor |
GetScreenMouseCursor | Get a mouse cursor for a screen |
SetScreenMouseCursor | Set a mouse cursor for a screen |
SendUserMessage | Send a plug-in own message to the other plug-ins |
MQCreatePlugin::MQCreatePlugin();
This method is a constructor.
virtual MQCreatePlugin::~MQCreatePlugin();
This method is a destructor. It is defined as a virtual function.
virtual int MQCreatePlugin::GetPlugInType();
This method implements a virtual function declared by MQBasePlugin::GetPlugInType(). No additional implementation is not necessary in an inherited class.
virtual const char *MQCreatePlugin::EnumString(int index);
It returns a displayed string for a menu and so on.
This function is called when Metasequoia starts up. The 'index' is called sequentially from 0, and the call ends when this function returns NULL.
This method implements a virtual function declared by MQEnumString(). No additional implementation is not necessary in an inherited class.
virtual BOOL MQCreatePlugin::Execute(int index, MQDocument doc);
It creates a new object.
This method implements a virtual function declared by MQCreate(). No additional implementation is not necessary in an inherited class.