acdlflagbits.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. #pragma once
  12. /// <summary>
  13. /// These enum values are used as flags bits in the nFlags argument of
  14. /// AcDbHostApplicationServices::selectFile(). Some of them are used by
  15. /// AutoCAD's calls to selectFile() and should not be used by other
  16. /// callers. They are included here because they may be seen by
  17. /// selectFile callback handlers (see
  18. /// AcadHostApplicationServices::registerSelectFileCallback()).
  19. /// </summary>
  20. enum AcFileSelectFlags {
  21. /// <summary>
  22. /// No typeit button. This bit is obsolete.
  23. /// </summary>
  24. kDLFNoType = 0x0,
  25. /// <summary>
  26. /// Creating file
  27. /// </summary>
  28. kDLFPut = 0x1,
  29. /// <summary>
  30. /// Special action for drawing file
  31. /// </summary>
  32. kDLFDwg = 0x2,
  33. /// <summary>
  34. /// Default name is path only
  35. /// </summary>
  36. kDLFPathOnly = 0x4,
  37. /// <summary>
  38. /// No overwrite warning on Put file
  39. /// </summary>
  40. kDLFNoWarn = 0x8,
  41. /// <summary>
  42. /// Don't check if file exists in Open dialog
  43. /// </summary>
  44. kDLFNoExistOk = 0x10,
  45. /// <summary>
  46. /// Accept any extension, don't strip
  47. /// </summary>
  48. kDLFAnyExt = 0x20,
  49. /// <summary>
  50. /// User requested dialogue box via ~
  51. /// </summary>
  52. kDLFRqBox = 0x40,
  53. /// <summary>
  54. /// SAVEAS use of the dialog. Distinguish .dwg action
  55. /// </summary>
  56. kDLFSaveas = 0x80,
  57. /// <summary>
  58. /// Don't perform library search
  59. /// </summary>
  60. kDLFNoLib = 0x0100,
  61. /// <summary>
  62. /// Internet: do not transfer file
  63. /// </summary>
  64. kDLFNoXfer = 0x0200,
  65. /// <summary>
  66. /// Internet: do not allow URLs at all
  67. /// </summary>
  68. kDLFNoURLs = 0x0400,
  69. /// <summary>
  70. /// Default is derived from DWG name
  71. /// </summary>
  72. kDLFDwgDef = 0x0800,
  73. /// <summary>
  74. /// Special dialog definition for OPEN
  75. /// </summary>
  76. kDLFOpenDef = 0x1000,
  77. /// <summary>
  78. /// Allow device names to be returned
  79. /// </summary>
  80. kDLFDvc = 0x2000,
  81. /// <summary>
  82. /// Flag templates to lock directories
  83. /// </summary>
  84. kDLFDwt = 0x4000,
  85. /// <summary>
  86. /// Display the "Options" item
  87. /// </summary>
  88. kDLFOpts = 0x8000,
  89. /// <summary>
  90. /// Don't use last pop-up as the parent window
  91. /// </summary>
  92. kDLFNoPopup = 0x10000,
  93. /// <summary>
  94. /// Force overwrite warning in scripts and Lisp
  95. /// </summary>
  96. kDLFFrcWarn = 0x20000,
  97. /// <summary>
  98. /// Allow multiple drawing opens.
  99. ///
  100. /// WARNING: This flag must not be used in any AutoCAD command
  101. /// dialogs other then the OPEN command. It is ok to use it for
  102. /// non-AutoCAD command dialogs. For example, it is used in the
  103. /// acedGetFileNavDialog API to allow multiple file selection and
  104. /// return multiple file names to the caller.
  105. /// </summary>
  106. kDLFMulti = 0x40000,
  107. /// <summary>
  108. /// Use the command line to get file name.
  109. /// </summary>
  110. kDLFCLI = 0x80000,
  111. /// <summary>
  112. /// Doing a recover.
  113. /// </summary>
  114. kDLFRecover = 0x100000,
  115. /// <summary>
  116. /// Force the initial directory to be the argument (only works with anav).
  117. /// </summary>
  118. kDLFForceDir = 0x200000,
  119. /// <summary>
  120. /// Do not show FTP site (only works with anav).
  121. /// </summary>
  122. kDLFNoFTP = 0x400000,
  123. /// <summary>
  124. /// Do not use the anav dialog, force use of Microsoft common file dialog.
  125. /// </summary>
  126. kDLFNoAnav = 0x800000,
  127. /// <summary>
  128. /// Select folders only (only works with anav).
  129. /// </summary>
  130. kDLFFolders = 0x1000000,
  131. /// <summary>
  132. /// Do not show shell namespace extension sites at all (only works with anav).
  133. /// </summary>
  134. kDLFNoExtensions = 0x2000000,
  135. /// <summary>
  136. /// Open with no Template - Imperial or Metric
  137. /// </summary>
  138. kDLFNoTemplate = 0x4000000,
  139. /// <summary>
  140. /// AutoCAD EXPORT dialog. Distinguish 2ddwf and 3ddwf action
  141. /// </summary>
  142. kDLFExport = 0x8000000,
  143. /// <summary>
  144. /// Enable support for REMEMBERFOLDERS sysvar
  145. /// </summary>
  146. kDLFEnableRememberFolders = 0x10000000,
  147. /// <summary>
  148. /// Open dialog but for opening local/Online sample files.
  149. /// </summary>
  150. kDLFOpenSample = 0x20000000,
  151. /// <summary>
  152. /// Force the intial directory to the Autodesk Cloud (only works with anav).
  153. /// </summary>
  154. kDLFUseCloud = 0x40000000,
  155. /// <summary>
  156. /// Control display on the right side of dialog.
  157. /// </summary>
  158. kDLFCloudControls = 0x80000000,
  159. };