Extended .NET SDK Documentation 2025 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
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
118
123
128
134
135 public virtual CFxDocument GetDocumentByIndex(ushort iIndex) {
136 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetDocumentByIndex(swigCPtr, iIndex);
137 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
139 return ret;
140 }
141
142 public virtual CFxDocument GetDocumentByFxNumber(ushort iFxNumber) {
143 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetDocumentByFxNumber(swigCPtr, iFxNumber);
144 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
146 return ret;
147 }
148
149 public virtual CFxDocument GetDocumentByFileName(CFxString fileName) {
150 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetDocumentByFileName(swigCPtr, CFxString.getCPtr(fileName));
151 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
153 return ret;
154 }
155
157 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentManager_GetFxDocument(swigCPtr, OdDbDatabase.getCPtr(pDB));
158 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
160 return ret;
161 }
162
167
172
173 public virtual CFxDocumentIterator CreateDocumentIterator() {// CFxDocumentIteratorPtr
174 MemoryManager mMan = MemoryManager.GetMemoryManager();
175 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
177
178 CFxDocumentIterator ret = null;
179 if (null != mTrans)
180 {
181 mTrans.AddObject((CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true));
182 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, false);
183 }
184 else
185 {
186 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true);
187 }
188
190 return ret;
191}
192
197
202
207
208 public enum NewFlags {
209 eNewDefault = 0x0,
210 eNewImperial = 0x1
211 }
212
213 public enum OpenFlags {
214 eOpenDefault = 0x0,
215 eOpenRecover = 0x1,
216 eOpenReadOnly = 0x2
217 }
218
219}
220
221}
static HandleRef getCPtr(CFxDocument obj)
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_DeactivateActiveDocument(global::System.Runtime.InteropServices.HandleRef jarg1)
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)