Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxDocumentManager.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 CFxDocumentManager : 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 CFxDocumentManager(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(CFxDocumentManager obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
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 CFxDocument NewDocument(CFxString templateName, SWIGTYPE_p_uintptr_t newFlags, String password, CFxString documentName) {
54 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_NewDocument__SWIG_0(swigCPtr, CFxString.getCPtr(templateName), SWIGTYPE_p_uintptr_t.getCPtr(newFlags), password, CFxString.getCPtr(documentName));
55 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
57 return ret;
58 }
59
60 public virtual CFxDocument NewDocument(CFxString templateName, SWIGTYPE_p_uintptr_t newFlags, String password) {
61 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_NewDocument__SWIG_1(swigCPtr, CFxString.getCPtr(templateName), SWIGTYPE_p_uintptr_t.getCPtr(newFlags), password);
62 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
64 return ret;
65 }
66
67 public virtual CFxDocument NewDocument(CFxString templateName, SWIGTYPE_p_uintptr_t newFlags) {
68 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_NewDocument__SWIG_2(swigCPtr, CFxString.getCPtr(templateName), SWIGTYPE_p_uintptr_t.getCPtr(newFlags));
69 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
71 return ret;
72 }
73
74 public virtual CFxDocument NewDocument(CFxString templateName) {
75 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_NewDocument__SWIG_3(swigCPtr, CFxString.getCPtr(templateName));
76 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
78 return ret;
79 }
80
81 public virtual CFxDocument OpenDocument(CFxString fileName, ref OdCodePageId pCodepage, SWIGTYPE_p_uintptr_t openFlags, String password) {
82 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_OpenDocument__SWIG_0(swigCPtr, CFxString.getCPtr(fileName), ref pCodepage, SWIGTYPE_p_uintptr_t.getCPtr(openFlags), password);
83 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
85 return ret;
86 }
87
88 public virtual CFxDocument OpenDocument(CFxString fileName, ref OdCodePageId pCodepage, SWIGTYPE_p_uintptr_t openFlags) {
89 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_OpenDocument__SWIG_1(swigCPtr, CFxString.getCPtr(fileName), ref pCodepage, SWIGTYPE_p_uintptr_t.getCPtr(openFlags));
90 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
92 return ret;
93 }
94
95 public virtual CFxDocument OpenDocument(CFxString fileName, ref OdCodePageId pCodepage) {
96 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_OpenDocument__SWIG_2(swigCPtr, CFxString.getCPtr(fileName), ref pCodepage);
97 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
99 return ret;
100 }
101
102 public virtual void CloseDocument(CFxDocument pDatabase) {
105 }
106
108 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetActiveDocument(swigCPtr);
109 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
111 return ret;
112 }
113
114 public virtual void SetActiveDocument(CFxDocument pDatabase) {
117 }
118
119 public virtual void SetActiveDocument(SWIGTYPE_p_CFxDocumentWindow pDocumnetWindow) {
122 }
123
124 public virtual ushort GetDocumentCount() {
127 return ret;
128 }
129
130 public virtual CFxDocument GetDocumentByIndex(ushort iIndex) {
131 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetDocumentByIndex(swigCPtr, iIndex);
132 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
134 return ret;
135 }
136
137 public virtual CFxDocument GetDocumentByFxNumber(ushort iFxNumber) {
138 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetDocumentByFxNumber(swigCPtr, iFxNumber);
139 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
141 return ret;
142 }
143
144 public virtual CFxDocument GetDocumentByFileName(CFxString fileName) {
145 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetDocumentByFileName(swigCPtr, CFxString.getCPtr(fileName));
146 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
148 return ret;
149 }
150
152 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetFxDocument(swigCPtr, OdDbDatabase.getCPtr(pDB));
153 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
155 return ret;
156 }
157
158 public virtual void AddReactor(CFxDocumentManagerReactor pReactor) {
161 }
162
163 public virtual void RemoveReactor(CFxDocumentManagerReactor pReactor) {
166 }
167
168 public virtual CFxDocumentIterator CreateDocumentIterator() {// CFxDocumentIteratorPtr
169 MemoryManager mMan = MemoryManager.GetMemoryManager();
170 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
172
173 CFxDocumentIterator ret = null;
174 if (null != mTrans)
175 {
176 mTrans.AddObject((CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true));
177 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, false);
178 }
179 else
180 {
181 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true);
182 }
183
185 return ret;
186}
187
188 public virtual void PushResourceHandle(SWIGTYPE_p_HINSTANCE hNewResourceHandle) {
191 }
192
193 public virtual void PushCadResourceHandle() {
196 }
197
198 public virtual void PopResourceHandle() {
201 }
202
203 public enum NewFlags {
204 eNewDefault = 0x0,
205 eNewImperial = 0x1
206 }
207
208 public enum OpenFlags {
209 eOpenDefault = 0x0,
210 eOpenRecover = 0x1,
211 eOpenReadOnly = 0x2
212 }
213
214}
215
216}
static HandleRef getCPtr(CFxDocument obj)
Definition: CFxDocument.cs:27
virtual CFxDocument GetFxDocument(OdDbDatabase pDB)
virtual CFxDocument GetActiveDocument()
virtual void Dispose(bool disposing)
virtual CFxDocumentIterator CreateDocumentIterator()
virtual CFxDocument GetDocumentByFileName(CFxString fileName)
virtual CFxDocument NewDocument(CFxString templateName, SWIGTYPE_p_uintptr_t newFlags)
static HandleRef getCPtr(CFxDocumentManager obj)
virtual CFxDocument OpenDocument(CFxString fileName, ref OdCodePageId pCodepage, SWIGTYPE_p_uintptr_t openFlags, String password)
virtual CFxDocument OpenDocument(CFxString fileName, ref OdCodePageId pCodepage)
virtual void AddReactor(CFxDocumentManagerReactor pReactor)
virtual void RemoveReactor(CFxDocumentManagerReactor pReactor)
virtual CFxDocument NewDocument(CFxString templateName, SWIGTYPE_p_uintptr_t newFlags, String password)
virtual void CloseDocument(CFxDocument pDatabase)
virtual void SetActiveDocument(SWIGTYPE_p_CFxDocumentWindow pDocumnetWindow)
CFxDocumentManager(IntPtr cPtr, bool cMemoryOwn)
virtual CFxDocument OpenDocument(CFxString fileName, ref OdCodePageId pCodepage, SWIGTYPE_p_uintptr_t openFlags)
virtual CFxDocument GetDocumentByFxNumber(ushort iFxNumber)
virtual CFxDocument GetDocumentByIndex(ushort iIndex)
virtual void PushResourceHandle(SWIGTYPE_p_HINSTANCE hNewResourceHandle)
virtual CFxDocument NewDocument(CFxString templateName, SWIGTYPE_p_uintptr_t newFlags, String password, CFxString documentName)
virtual CFxDocument NewDocument(CFxString templateName)
virtual void SetActiveDocument(CFxDocument pDatabase)
static HandleRef getCPtr(CFxDocumentManagerReactor obj)
static HandleRef getCPtr(CFxString obj)
Definition: CFxString.cs:28
static void delete_CFxDocumentManager(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocumentManager_NewDocument__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, [MarshalAs(UnmanagedType.LPWStr)]String jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static global::System.IntPtr CFxDocumentManager_OpenDocument__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ref OdCodePageId jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr CFxDocumentManager_NewDocument__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr CFxDocumentManager_GetActiveDocument(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocumentManager_OpenDocument__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ref OdCodePageId jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, [MarshalAs(UnmanagedType.LPWStr)]String jarg5)
static IntPtr CFxDocumentManager_CreateDocumentIterator(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDocumentManager_SetActiveDocument__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxDocumentManager_GetDocumentByIndex(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2)
static void CFxDocumentManager_PushCadResourceHandle(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDocumentManager_PopResourceHandle(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocumentManager_NewDocument__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDocumentManager_AddReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDocumentManager_SetActiveDocument__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDocumentManager_RemoveReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxDocumentManager_OpenDocument__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ref OdCodePageId jarg3)
static global::System.IntPtr CFxDocumentManager_GetFxDocument(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void CFxDocumentManager_PushResourceHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDocumentManager_CloseDocument(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxDocumentManager_GetDocumentByFxNumber(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2)
static global::System.IntPtr CFxDocumentManager_GetDocumentByFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static ushort CFxDocumentManager_GetDocumentCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocumentManager_NewDocument__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, [MarshalAs(UnmanagedType.LPWStr)]String jarg4)
static HandleRef getCPtr(OdDbDatabase obj)
Definition: OdDbDatabase.cs:26