Inherits IDispatch.
Interface for VSTA control
interface IVstaIntegration : IDispatch
{
HRESULT
Connect([in] IOMAgent* pCanDll);
HRESULT
ShowIde([in] VARIANT_BOOL boShow);
HRESULT
GetAddIns([out] VARIANT* pAddInPaths);
HRESULT
Dirty([out, retval] VARIANT_BOOL* pAddInPaths);
HRESULT
StartAddInExt([in] BSTR sPath, [out] VARIANT * sMacroNames);
HRESULT
StartMacro([in] BSTR sPath, [in] BSTR sMacroName, [in] LONG hParentWindow);
};
Definition at line 8472 of file cand_tlb.idl.
◆ CleanDirty()
HRESULT CanEasy::IVstaIntegration::CleanDirty |
( |
| ) |
|
◆ Connect()
HRESULT CanEasy::IVstaIntegration::Connect |
( |
[in] IOMAgent * |
pCanDll | ) |
|
◆ Disconnect()
HRESULT CanEasy::IVstaIntegration::Disconnect |
( |
| ) |
|
◆ GetAddIns()
HRESULT CanEasy::IVstaIntegration::GetAddIns |
( |
[out] VARIANT * |
pAddInPaths | ) |
|
Returns the path to the add-ins
◆ GetAddInStatus()
HRESULT CanEasy::IVstaIntegration::GetAddInStatus |
( |
[in] BSTR |
sPath, |
|
|
[out] enum AddInStatus * |
pStatus |
|
) |
| |
Returns the status of passed add-in
- Parameters
-
| sPath | Path to the add-in |
[out] | pStatus | Status of the add-in |
◆ LoadAddIn()
HRESULT CanEasy::IVstaIntegration::LoadAddIn |
( |
[in] BSTR |
sPath | ) |
|
Loads an existing add-in
- Parameters
-
◆ NewAddIn()
HRESULT CanEasy::IVstaIntegration::NewAddIn |
( |
[in] BSTR |
sPath, |
|
|
[in] enum AddInLanguage |
enLang |
|
) |
| |
Creates a new add-in
- Parameters
-
sPath | Path to the add-in |
enLang | Language to use |
◆ SaveDirtyAddIns()
HRESULT CanEasy::IVstaIntegration::SaveDirtyAddIns |
( |
| ) |
|
Save addins with dirty flag
◆ ShowIde()
HRESULT CanEasy::IVstaIntegration::ShowIde |
( |
[in] VARIANT_BOOL |
boShow | ) |
|
◆ StartAddIn()
HRESULT CanEasy::IVstaIntegration::StartAddIn |
( |
[in] BSTR |
sPath | ) |
|
Starts the passed add-in
- Parameters
-
◆ StartAddInExt()
HRESULT CanEasy::IVstaIntegration::StartAddInExt |
( |
[in] BSTR |
sPath, |
|
|
[out] VARIANT * |
sMacroNames |
|
) |
| |
Starts the add-in and returns list of its macros names. When an add-in keeps running, its macro (static method) can be started
- Parameters
-
| sPath | Path to the add-in |
[out] | sMacroNames | BSTR Array with macro names |
◆ StartMacro()
HRESULT CanEasy::IVstaIntegration::StartMacro |
( |
[in] BSTR |
sPath, |
|
|
[in] BSTR |
sMacroName, |
|
|
[in] LONG |
hParentWindow |
|
) |
| |
Starts add-in's macro determined by sPath path string. Before the start an add-in must be started with StartAddInExt function. If macro requires input parameters and/or returns a value, a modal dialog will be shown with hParentWindow as parent.
- Parameters
-
sPath | Path to the add-in |
sMacroName | Macro to start |
hParentWindow | HWND to the CanEasy main window |
◆ StopAddIn()
HRESULT CanEasy::IVstaIntegration::StopAddIn |
( |
[in] BSTR |
sPath | ) |
|
Stops the passed add-in
- Parameters
-
◆ UnloadAddIn()
HRESULT CanEasy::IVstaIntegration::UnloadAddIn |
( |
[in] BSTR |
sPath | ) |
|
Unloads an add-in
- Parameters
-
◆ CallGotDirtyOnFilechanges
VARIANT_BOOL CanEasy::IVstaIntegration::CallGotDirtyOnFilechanges |
|
getset |
Activates/Deactivates events for file changes
◆ Dirty
VARIANT_BOOL CanEasy::IVstaIntegration::Dirty |
|
get |