NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
SpreadsheetExternal.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// SpreadsheetExternal.ja
9//
10// Generated by:
11// apiwrap
12//
13// WARNING:
14// This file is automatically generated - do not edit by hand
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/TransientObject.hxx>
22#include <NXOpen/SpreadsheetCellData.hxx>
23#include <NXOpen/libnxopencpp_exports.hxx>
24#ifdef _MSC_VER
25#pragma warning(push)
26#pragma warning(disable:4996)
27#endif
28#ifdef __GNUC__
29#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30#endif
31namespace NXOpen
32{
44
55
74
88
96 class SpreadsheetExternalImpl;
102 class NXOPENCPPEXPORT SpreadsheetExternal : public NXOpen::TransientObject
103 {
104 private: SpreadsheetExternalImpl * m_spreadsheetexternal_impl;
106 public: explicit SpreadsheetExternal(void *ptr);
108
112 public: virtual ~SpreadsheetExternal();
117 public: void CloseFile
118 (
119 bool save
120 );
126 (
127 const NXString & sheetname
128 );
134 (
135 const char * sheetname
136 );
141 public: void ReadNamedRange
142 (
143 int worksheet ,
144 const NXString & rangename ,
145 std::vector<NXOpen::SpreadsheetCellData *> & v2
146 );
152 (
153 int worksheet ,
154 const char * rangename ,
155 std::vector<NXOpen::SpreadsheetCellData *> & v2
156 );
161 public: void ReadRange
162 (
163 int worksheet ,
164 int rowstart ,
165 int colstart ,
166 int rowend ,
167 int colend ,
168 std::vector<NXOpen::SpreadsheetCellData *> & v2
169 );
174 public: void AppendRow
175 (
176 int worksheet ,
177 const std::vector<NXOpen::SpreadsheetCellData *> & data
178 );
183 public: void WriteRange
184 (
185 const std::vector<NXOpen::SpreadsheetCellData *> & data
186 );
192 (
193 int worksheet ,
194 int rowstart ,
195 int colstart ,
196 int rowend ,
197 int colend ,
198 const std::vector<double> & cellBackgroundColor
199 );
205 (
206 int worksheet ,
207 const std::vector<double> & tabBackgroundColor
208 );
213 public: void MergeCellRange
214 (
215 int worksheet ,
216 int rowstart ,
217 int colstart ,
218 int rowend ,
219 int colend
220 );
225 public: void SetWorksheetName
226 (
227 int worksheet ,
228 const NXString & sheetname
229 );
235 (
236 int worksheet ,
237 const char * sheetname
238 );
243 public: int AddWorksheet
244 (
245 const NXString & sheetname
246 );
252 (
253 const char * sheetname
254 );
259 public: void SetRangeAlignment
260 (
261 int worksheet ,
262 int rowstart ,
263 int colstart ,
264 int rowend ,
265 int colend ,
266 NXOpen::AlignmentStyleT alignStyle ,
268 );
274 (
275 int worksheet ,
276 int rowstart ,
277 int colstart ,
278 int rowend ,
279 int colend ,
280 const std::vector<double> & cellBorderColor ,
281 NXOpen::BorderLineStyleT borderLineStyle
282 );
288 (
289 int worksheet ,
290 int rowstart ,
291 int colstart ,
292 int rowend ,
293 int colend ,
294 const NXString & fontName ,
295 int fontSize ,
296 const std::vector<double> & cellFontColor ,
297 bool bold ,
298 bool italic ,
299 NXOpen::UnderlineStyleT underline ,
300 bool strikethrough ,
301 bool superscript ,
302 bool subscript
303 );
309 (
310 int worksheet ,
311 int rowstart ,
312 int colstart ,
313 int rowend ,
314 int colend ,
315 const char * fontName ,
316 int fontSize ,
317 const std::vector<double> & cellFontColor ,
318 bool bold ,
319 bool italic ,
320 NXOpen::UnderlineStyleT underline ,
321 bool strikethrough ,
322 bool superscript ,
323 bool subscript
324 );
329 public: void SaveAs
330 (
331 int worksheet ,
332 const NXString & fileName ,
333 NXOpen::ExcelFileFormatT fileFormat
334 );
340 (
341 int worksheet ,
342 const char * fileName ,
343 NXOpen::ExcelFileFormatT fileFormat
344 );
349 public: void InsertImage
350 (
351 int worksheet ,
352 int rowstart ,
353 int colstart ,
354 int rowend ,
355 int colend ,
356 const NXString & imagepath
357 );
363 (
364 int worksheet ,
365 int rowstart ,
366 int colstart ,
367 int rowend ,
368 int colend ,
369 const char * imagepath
370 );
375 public: void AutofitColumns
376 (
377 int worksheet ,
378 int colstart ,
379 int colend
380 );
386 (
387 );
392 public: void DeleteRow
393 (
394 int worksheet ,
395 int rownumber
396 );
401 public: void DeleteColumn
402 (
403 int worksheet ,
404 int columnnumber
405 );
410 public: void DeleteRange
411 (
412 int worksheet ,
413 int columnstart ,
414 int columnend ,
415 int rowstart ,
416 int rowend
417 );
425 (
426 int worksheet ,
427 int rowstart ,
428 int colstart ,
429 int rowend ,
430 int colend ,
431 std::vector<NXOpen::SpreadsheetCellData *> & v2
432 );
440 (
441 int worksheet ,
442 int rowstart ,
443 int colstart ,
444 int rowend ,
445 int colend ,
446 const std::vector<NXOpen::SpreadsheetCellData *> & data
447 );
452 public: void GetWorksheetNames
453 (
454 std::vector<NXString> & sheetnames
455 );
456 }; //lint !e1712 类未定义默认构造函数
457}
458#ifdef _MSC_VER
459#pragma warning(pop)
460#endif
461#ifdef __GNUC__
462#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
463#pragma GCC diagnostic warning "-Wdeprecated-declarations"
464#endif
465#endif
466#undef EXPORTLIBRARY