Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxVSTA.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxVSTA : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxVSTA(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxVSTA obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
32 ~CFxVSTA() {
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public virtual bool IsVSTAStarted() {
54 bool ret = PCADGlobalsPINVOKE.CFxVSTA_IsVSTAStarted(swigCPtr);
56 return ret;
57 }
58
59 public virtual void SetContext(SWIGTYPE_p_std__string hostId, SWIGTYPE_p_std__string applicationPath, SWIGTYPE_p_std__string templateFile, int iLang) {
60 PCADGlobalsPINVOKE.CFxVSTA_SetContext(swigCPtr, SWIGTYPE_p_std__string.getCPtr(hostId), SWIGTYPE_p_std__string.getCPtr(applicationPath), SWIGTYPE_p_std__string.getCPtr(templateFile), iLang);
62 }
63
64 public virtual bool Load() {
65 bool ret = PCADGlobalsPINVOKE.CFxVSTA_Load(swigCPtr);
67 return ret;
68 }
69
73 return ret;
74 }
75
79 return ret;
80 }
81
82 public virtual void ExecuteMacro(SWIGTYPE_p_std__string pName, SWIGTYPE_p_IDispatch pDispatch) {
83 PCADGlobalsPINVOKE.CFxVSTA_ExecuteMacro(swigCPtr, SWIGTYPE_p_std__string.getCPtr(pName), SWIGTYPE_p_IDispatch.getCPtr(pDispatch));
85 }
86
87 public virtual void EditMacro(SWIGTYPE_p_std__string pName) {
90 }
91
92 public virtual void DeleteMacro(SWIGTYPE_p_std__string pName) {
95 }
96
97 public virtual void StartMacroRecording(SWIGTYPE_p_std__string pName) {
100 }
101
102 public virtual void StopMacroRecording() {
105 }
106
107 public virtual void EmitCommands(SWIGTYPE_p_std__vectorT_std__string_t commandList) {
110 }
111
112 public virtual int GetCurrentMacro() {
115 return ret;
116 }
117
118 public virtual void SetCurrentMacro(int macroIndex) {
119 PCADGlobalsPINVOKE.CFxVSTA_SetCurrentMacro(swigCPtr, macroIndex);
121 }
122
123 public virtual int GetLanguage() {
124 int ret = PCADGlobalsPINVOKE.CFxVSTA_GetLanguage(swigCPtr);
126 return ret;
127 }
128
129}
130
131}
virtual void SetContext(SWIGTYPE_p_std__string hostId, SWIGTYPE_p_std__string applicationPath, SWIGTYPE_p_std__string templateFile, int iLang)
Definition: CFxVSTA.cs:59
virtual SWIGTYPE_p_std__vectorT_std__string_t GetMacros()
Definition: CFxVSTA.cs:70
virtual void DeleteMacro(SWIGTYPE_p_std__string pName)
Definition: CFxVSTA.cs:92
CFxVSTA(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxVSTA.cs:23
virtual void Dispose(bool disposing)
Definition: CFxVSTA.cs:41
virtual bool Load()
Definition: CFxVSTA.cs:64
virtual int GetLanguage()
Definition: CFxVSTA.cs:123
static HandleRef getCPtr(CFxVSTA obj)
Definition: CFxVSTA.cs:28
virtual void StopMacroRecording()
Definition: CFxVSTA.cs:102
virtual void EditMacro(SWIGTYPE_p_std__string pName)
Definition: CFxVSTA.cs:87
virtual SWIGTYPE_p_std__string GenerateNewMacroName()
Definition: CFxVSTA.cs:76
virtual void ExecuteMacro(SWIGTYPE_p_std__string pName, SWIGTYPE_p_IDispatch pDispatch)
Definition: CFxVSTA.cs:82
virtual void StartMacroRecording(SWIGTYPE_p_std__string pName)
Definition: CFxVSTA.cs:97
virtual void EmitCommands(SWIGTYPE_p_std__vectorT_std__string_t commandList)
Definition: CFxVSTA.cs:107
virtual int GetCurrentMacro()
Definition: CFxVSTA.cs:112
virtual void SetCurrentMacro(int macroIndex)
Definition: CFxVSTA.cs:118
virtual bool IsVSTAStarted()
Definition: CFxVSTA.cs:53
static int CFxVSTA_GetLanguage(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVSTA_StopMacroRecording(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVSTA_EmitCommands(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxVSTA_GetMacros(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVSTA_EditMacro(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxVSTA_DeleteMacro(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxVSTA_Load(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVSTA_SetContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5)
static int CFxVSTA_GetCurrentMacro(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxVSTA(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVSTA_ExecuteMacro(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxVSTA_SetCurrentMacro(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxVSTA_GenerateNewMacroName(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxVSTA_IsVSTAStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVSTA_StartMacroRecording(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)