AcPlDSDData.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. // DESCRIPTION: Header for AcPlDSDData.h
  11. //
  12. #ifndef ACPLDSDDATA_H
  13. #define ACPLDSDDATA_H
  14. #pragma once
  15. #include "AcPl.h"
  16. #include "AcPlObject.h"
  17. #include "AcPlDSDEntry.h"
  18. #include "AcPlPrecisionEntry.h"
  19. #include "AcArray.h"
  20. #include "AcString.h"
  21. typedef AcArray<AcPlDSDEntry, AcArrayObjectCopyReallocator <AcPlDSDEntry> > AcPlDSDEntries;
  22. typedef AcArray<AcPlPrecisionEntry, AcArrayObjectCopyReallocator <AcPlPrecisionEntry> > AcPlPrecisionEntries;
  23. //3d dwf options for publishing
  24. struct AcPl3dDwfOptions {
  25. bool bGroupByXrefHierarchy;
  26. bool bPublishWithMaterials;
  27. };
  28. /////////////////////////////////////////////////////////////////////////////
  29. // AcPlDSDData - holds the data for a batch plotting operation
  30. class AcPlDSDData : public AcPlObject
  31. {
  32. ACPL_DECLARE_MEMBERS(AcPlDSDData)
  33. // Construction
  34. public:
  35. ACPL_PORT AcPlDSDData();
  36. ACPL_PORT virtual ~AcPlDSDData();
  37. ACPL_PORT AcPlDSDData(const AcPlDSDData & src);
  38. ACPL_PORT AcPlDSDData& operator= (const AcPlDSDData &src);
  39. ACPL_PORT const ACHAR * projectPath() const;
  40. ACPL_PORT void setProjectPath(const ACHAR * pVal);
  41. ACPL_PORT const ACHAR * destinationName() const;
  42. ACPL_PORT void setDestinationName(const ACHAR * pVal);
  43. ACPL_PORT void getDSDEntries(AcPlDSDEntries &val) const;
  44. ACPL_PORT void setDSDEntries(const AcPlDSDEntries &val);
  45. ACPL_PORT void getPrecisionEntries(AcPlPrecisionEntries &val) const;
  46. ACPL_PORT void setPrecisionEntries(const AcPlPrecisionEntries &val);
  47. ACPL_PORT int numberOfDSDEntries() const;
  48. ACPL_PORT AcPlDSDEntry& DSDEntryAt(int idx);
  49. ACPL_PORT AcPlDSDEntry::SheetType sheetType() const;
  50. ACPL_PORT void setSheetType(AcPlDSDEntry::SheetType val);
  51. ACPL_PORT const ACHAR * password() const;
  52. ACPL_PORT void setPassword(const ACHAR * pVal);
  53. ACPL_PORT void getUnrecognizedData(
  54. AcArray<ACHAR*> &sectionArray,
  55. AcArray<ACHAR*> &dataArray) const;
  56. ACPL_PORT void setUnrecognizedData(
  57. const AcArray<ACHAR*> &sectionArray,
  58. const AcArray<ACHAR*> &dataArray);
  59. ACPL_PORT void setUnrecognizedData(
  60. const ACHAR * pSectionName,
  61. const ACHAR * pSectionData);
  62. ACPL_PORT void setUnrecognizedData(
  63. const AcStringArray& sectionArray,
  64. const AcStringArray& dataArray);
  65. ACPL_PORT void getUnrecognizedData(
  66. AcStringArray& sectionArray,
  67. AcStringArray& dataArray) const;
  68. ACPL_PORT unsigned int majorVersion() const;
  69. ACPL_PORT void setMajorVersion(unsigned int majorVersion);
  70. ACPL_PORT unsigned int minorVersion() const;
  71. ACPL_PORT void setMinorVersion(unsigned int minorVersion);
  72. ACPL_PORT const ACHAR * sheetSetName() const;
  73. ACPL_PORT void setSheetSetName(const ACHAR * pSheetSetName);
  74. ACPL_PORT unsigned int noOfCopies() const;
  75. ACPL_PORT void setNoOfCopies(unsigned int copies);
  76. ACPL_PORT void setIsSheetSet(bool bSheetSet);
  77. ACPL_PORT bool isSheetSet() const;
  78. ACPL_PORT bool isHomogeneous() const;
  79. ACPL_PORT void setIsHomogeneous(bool bHomogeneous);
  80. ACPL_PORT bool plotStampOn() const;
  81. ACPL_PORT void setPlotStampOn(bool bOn);
  82. ACPL_PORT bool viewFile() const;
  83. ACPL_PORT void setViewFile(bool bViewFile);
  84. ACPL_PORT const ACHAR * selectionSetName() const;
  85. ACPL_PORT void setSelectionSetName(const ACHAR * pSelSetName);
  86. ACPL_PORT const ACHAR * categoryName() const;
  87. ACPL_PORT void setCategoryName(const ACHAR * pCategoryName);
  88. ACPL_PORT const ACHAR * logFilePath() const;
  89. ACPL_PORT void setLogFilePath(const ACHAR * pLogFilePath);
  90. ACPL_PORT const AcPl3dDwfOptions& get3dDwfOptions() const;
  91. ACPL_PORT void set3dDwfOptions(const AcPl3dDwfOptions &val);
  92. ACPL_PORT bool readDSD(const ACHAR *pName);
  93. ACPL_PORT bool writeDSD(const ACHAR *pName);
  94. // The following methods are for internal use only
  95. ACPL_PORT bool includeLayerInfo() const;
  96. ACPL_PORT void setIncludeLayerInfo(bool bOn);
  97. ACPL_PORT bool lineMerge() const;
  98. ACPL_PORT void setLineMerge(bool bOn);
  99. ACPL_PORT const ACHAR * currentPrecision() const;
  100. ACPL_PORT void setCurrentPrecision(const ACHAR * pCurrentPrecision);
  101. ACPL_PORT bool promptForDwfName() const;
  102. ACPL_PORT void setPromptForDwfName(bool bPromptForDwfName);
  103. ACPL_PORT bool pwdProtectPublishedDWF() const;
  104. ACPL_PORT void setPwdProtectPublishedDWF(
  105. bool bPwdProtectPublishedDWF);
  106. ACPL_PORT bool promptForPassword() const;
  107. ACPL_PORT void setPromptForPassword(bool bPromptForPassword);
  108. };
  109. #endif // ACPLDSDDATA_H