XLStuff.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. //
  19. // XLStuff.h
  20. //
  21. //
  22. #ifndef XLSTUFF_H
  23. #define XLSTUFF_H
  24. #include "noxstringDlg.h"
  25. typedef enum {
  26. xlAll = -4104,
  27. xlAutomatic = -4105,
  28. xlBoth = 1,
  29. xlCenter = -4108,
  30. xlChecker = 9,
  31. xlCircle = 8,
  32. xlCorner = 2,
  33. xlCrissCross = 16,
  34. xlCross = 4,
  35. xlDiamond = 2,
  36. xlDistributed = -4117,
  37. xlDoubleAccounting = 5,
  38. xlFixedValue = 1,
  39. xlFormats = -4122,
  40. xlGray16 = 17,
  41. xlGray8 = 18,
  42. xlGrid = 15,
  43. xlHigh = -4127,
  44. xlInside = 2,
  45. xlJustify = -4130,
  46. xlLightDown = 13,
  47. xlLightHorizontal = 11,
  48. xlLightUp = 14,
  49. xlLightVertical = 12,
  50. xlLow = -4134,
  51. xlManual = -4135,
  52. xlMinusValues = 3,
  53. xlModule = -4141,
  54. xlNextToAxis = 4,
  55. xlNone = -4142,
  56. xlNotes = -4144,
  57. xlOff = -4146,
  58. xlOn = 1,
  59. xlPercent = 2,
  60. xlPlus = 9,
  61. xlPlusValues = 2,
  62. xlSemiGray75 = 10,
  63. xlShowLabel = 4,
  64. xlShowLabelAndPercent = 5,
  65. xlShowPercent = 3,
  66. xlShowValue = 2,
  67. xlSimple = -4154,
  68. xlSingle = 2,
  69. xlSingleAccounting = 4,
  70. xlSolid = 1,
  71. xlSquare = 1,
  72. xlStar = 5,
  73. xlStError = 4,
  74. xlToolbarButton = 2,
  75. xlTriangle = 3,
  76. xlGray25 = -4124,
  77. xlGray50 = -4125,
  78. xlGray75 = -4126,
  79. xlBottom = -4107,
  80. xlLeft = -4131,
  81. xlRight = -4152,
  82. xlTop = -4160,
  83. xl3DBar = -4099,
  84. xl3DSurface = -4103,
  85. xlBar = 2,
  86. xlColumn = 3,
  87. xlCombination = -4111,
  88. xlCustom = -4114,
  89. xlDefaultAutoFormat = -1,
  90. xlMaximum = 2,
  91. xlMinimum = 4,
  92. xlOpaque = 3,
  93. xlTransparent = 2,
  94. xlBidi = -5000,
  95. xlLatin = -5001,
  96. xlContext = -5002,
  97. xlLTR = -5003,
  98. xlRTL = -5004,
  99. xlVisualCursor = 2,
  100. xlLogicalCursor = 1,
  101. xlSystem = 1,
  102. xlPartial = 3,
  103. xlHindiNumerals = 3,
  104. xlBidiCalendar = 3,
  105. xlGregorian = 2,
  106. xlComplete = 4,
  107. xlScale = 3,
  108. xlClosed = 3,
  109. xlColor1 = 7,
  110. xlColor2 = 8,
  111. xlColor3 = 9,
  112. xlConstants = 2,
  113. xlContents = 2,
  114. xlBelow = 1,
  115. xlCascade = 7,
  116. xlCenterAcrossSelection = 7,
  117. xlChart4 = 2,
  118. xlChartSeries = 17,
  119. xlChartShort = 6,
  120. xlChartTitles = 18,
  121. xlClassic1 = 1,
  122. xlClassic2 = 2,
  123. xlClassic3 = 3,
  124. xl3DEffects1 = 13,
  125. xl3DEffects2 = 14,
  126. xlAbove = 0,
  127. xlAccounting1 = 4,
  128. xlAccounting2 = 5,
  129. xlAccounting3 = 6,
  130. xlAccounting4 = 17,
  131. xlAdd = 2,
  132. xlDebugCodePane = 13,
  133. xlDesktop = 9,
  134. xlDirect = 1,
  135. xlDivide = 5,
  136. xlDoubleClosed = 5,
  137. xlDoubleOpen = 4,
  138. xlDoubleQuote = 1,
  139. xlEntireChart = 20,
  140. xlExcelMenus = 1,
  141. xlExtended = 3,
  142. xlFill = 5,
  143. xlFirst = 0,
  144. xlFloating = 5,
  145. xlFormula = 5,
  146. xlGeneral = 1,
  147. xlGridline = 22,
  148. xlIcons = 1,
  149. xlImmediatePane = 12,
  150. xlInteger = 2,
  151. xlLast = 1,
  152. xlLastCell = 11,
  153. xlList1 = 10,
  154. xlList2 = 11,
  155. xlList3 = 12,
  156. xlLocalFormat1 = 15,
  157. xlLocalFormat2 = 16,
  158. xlLong = 3,
  159. xlLotusHelp = 2,
  160. xlMacrosheetCell = 7,
  161. xlMixed = 2,
  162. xlMultiply = 4,
  163. xlNarrow = 1,
  164. xlNoDocuments = 3,
  165. xlOpen = 2,
  166. xlOutside = 3,
  167. xlReference = 4,
  168. xlSemiautomatic = 2,
  169. xlShort = 1,
  170. xlSingleQuote = 2,
  171. xlStrict = 2,
  172. xlSubtract = 3,
  173. xlTextBox = 16,
  174. xlTiled = 1,
  175. xlTitleBar = 8,
  176. xlToolbar = 1,
  177. xlVisible = 12,
  178. xlWatchPane = 11,
  179. xlWide = 3,
  180. xlWorkbookTab = 6,
  181. xlWorksheet4 = 1,
  182. xlWorksheetCell = 3,
  183. xlWorksheetShort = 5,
  184. xlAllExceptBorders = 6,
  185. xlLeftToRight = 2,
  186. xlTopToBottom = 1,
  187. xlVeryHidden = 2,
  188. xlDrawingObject = 14
  189. } Constants;
  190. typedef enum {
  191. xlHairline = 1,
  192. xlMedium = -4138,
  193. xlThick = 4,
  194. xlThin = 2
  195. } XlBorderWeight;
  196. typedef enum {
  197. xlContinuous = 1,
  198. xlDash = -4115,
  199. xlDashDot = 4,
  200. xlDashDotDot = 5,
  201. xlDot = -4118,
  202. xlDouble = -4119,
  203. xlSlantDashDot = 13,
  204. xlLineStyleNone = -4142
  205. } XlLineStyle;
  206. typedef enum {
  207. xlInsideHorizontal = 12,
  208. xlInsideVertical = 11,
  209. xlDiagonalDown = 5,
  210. xlDiagonalUp = 6,
  211. xlEdgeBottom = 9,
  212. xlEdgeLeft = 7,
  213. xlEdgeRight = 10,
  214. xlEdgeTop = 8
  215. } XlBordersIndex;
  216. enum {
  217. CELL_WAVEFILE = 1,
  218. CELL_LABEL,
  219. CELL_SPEAKER,
  220. CELL_LISTENER,
  221. CELL_STRINGID,
  222. CELL_ENGLISH,
  223. CELL_LOCALIZED,
  224. CELL_CONTEXT,
  225. CELL_COMMENT,
  226. CELL_MAXLEN,
  227. CELL_STRLEN,
  228. CELL_LENCHECK,
  229. CELL_REVISION,
  230. CELL_LAST
  231. };
  232. #define ROW_COUNT 1
  233. #define COLUMN_COUNT 2
  234. #define ROW_LANGUAGE 1
  235. #define COLUMN_LANGUAGE 1
  236. int OpenExcel ( void );
  237. void CloseExcel ( void );
  238. int NewWorkBook ( const char *path );
  239. int SaveWorkBook ( const char *filename, int protect = FALSE );
  240. int OpenWorkBook ( const char *filename );
  241. void CloseWorkBook ( void );
  242. int PutCell ( int row, int column, OLECHAR *string, int val );
  243. int PutSeparator ( int row );
  244. int PutSection ( int row, OLECHAR *title );
  245. void SelectActiveSheet ( void );
  246. int GetInt ( int row, int cell );
  247. int GetString ( int row, int cell, OLECHAR *buffer );
  248. #endif // XLSTUFF_H