acaplmgr.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. //
  11. // AcApLMgr.h - Interface class for Applicaton specific routines
  12. // that manipulate and access AcDbLayout objects.
  13. //
  14. #ifndef _ACAPLMGR_H
  15. #define _ACAPLMGR_H
  16. #include "AcDbLMgr.h"
  17. #pragma pack (push, 8)
  18. class AcDbObjectId;
  19. class AcGePoint2d;
  20. class AcGePoint3d;
  21. // All this just to forward declare AcGePoint2dArray.
  22. template <class T> class AcArrayMemCopyReallocator;
  23. template <class T, class R > class AcArray;
  24. typedef AcArray<AcGePoint2d> AcGePoint2dArray;
  25. class AcApLayoutManager : public AcDbLayoutManager {
  26. public:
  27. // application methods
  28. //
  29. virtual int
  30. pageSetup (AcDbObjectId layoutBTRId = AcDbObjectId::kNull,
  31. void* pParent = NULL,
  32. Adesk::Boolean isPageSetupDlg = TRUE) = 0;
  33. virtual void
  34. updateCurrentPaper (Adesk::Boolean zoomToPaper = FALSE ) = 0;
  35. virtual void
  36. updateLayoutTabs () = 0;
  37. virtual const ACHAR *
  38. findActiveTab () = 0;
  39. virtual Adesk::Boolean
  40. showTabs () = 0;
  41. virtual void
  42. setShowTabs (Adesk::Boolean showTabs ) = 0;
  43. virtual Adesk::Boolean
  44. showPageSetup () = 0;
  45. virtual void
  46. setShowPageSetup (Adesk::Boolean showPageSetupDlg ) = 0;
  47. virtual Adesk::Boolean
  48. createViewports () = 0;
  49. virtual void
  50. setCreateViewports (Adesk::Boolean createViewports ) = 0;
  51. virtual Adesk::Boolean
  52. showPaperBackground () = 0;
  53. virtual void
  54. setShowPaperBackground (Adesk::Boolean showPaperBackground) = 0;
  55. virtual Adesk::Boolean
  56. showPaperMargins () = 0;
  57. virtual void
  58. setShowPaperMargins (Adesk::Boolean showPaperMargins ) = 0;
  59. virtual Adesk::Boolean
  60. showPrintBorder () = 0;
  61. virtual void
  62. setShowPrintBorder (Adesk::Boolean showPrintBorder ) = 0;
  63. virtual ACHAR *
  64. getNextNewLayoutName (AcDbDatabase* useDb = NULL) = 0;
  65. virtual void
  66. setDefaultPlotConfig (AcDbObjectId layoutBTRId) = 0;
  67. virtual Acad::ErrorStatus
  68. getClipBoundaryElaboration(AcDbObjectId clipId,
  69. AcGePoint2dArray *&clipBoundary) = 0;
  70. virtual Acad::ErrorStatus
  71. pointInViewports (const AcGePoint3d &pickPt,
  72. AcDbObjectIdArray &viewports) = 0;
  73. virtual void
  74. setCaptureOnLayoutSwitch (Adesk::Boolean bCaptureOnLayout ) = 0;
  75. };
  76. #pragma pack (pop)
  77. #endif // _ACAPLMGR_H