/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #if !defined(AFX_EXPORT2PDFDIALOG_H__4AF80B03_7FB7_42D3_9281_E8A5F4FB9A36__INCLUDED_) #define AFX_EXPORT2PDFDIALOG_H__4AF80B03_7FB7_42D3_9281_E8A5F4FB9A36__INCLUDED_ #include "Export2PDFPreview.h" #include "PdfExportParams.h" #include "DbDatabaseCollection.h" #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Export2PDFDialog.h : header file // ///////////////////////////////////////////////////////////////////////////// // CExport2PDFDialog dialog class CExport2PDFDialog : public CDialog { // Construction public: CExport2PDFDialog(const OdDbSelectionSetPtr& pSset, OdDbDatabaseCollection* pDatabases = NULL, CWnd* pParent = NULL); // standard constructor virtual ~CExport2PDFDialog(); // Dialog Data //{{AFX_DATA(CExport2PDFDialog) enum { IDD = IDD_PDFEXPORT }; CString m_FileName; CString m_Autor; CString m_Keywords; CString m_Creator; CString m_Title; BOOL m_bEmbedded; BOOL m_bEmbeddedOptimized; BOOL m_bSimpleGeomOpt; BOOL m_bSHXAsGeometry; BOOL m_bTTFAsGeometry; BOOL m_bZoomToExtents; BOOL m_bEnableLayers; BOOL m_bExportOffLayers; BOOL m_bEncoded; BOOL m_bASCIIHEXEncoded; BOOL m_bTextSearchable; BOOL m_bTextSearchableWith_CTRL_F; BOOL m_bCropImages; BOOL m_bDCTCompression; BOOL m_bDCTCompressionShadedVp; BOOL m_bMeasuring; BOOL m_bMeasuringGeo; BOOL m_bLinearized; BOOL m_bUpscaleImages; CString m_Producer; CString m_Subject; double m_dPaperH; double m_dPaperW; int m_Layouts; int m_Databases; BOOL m_bIgnoreInvisibleViewportBorders; BOOL m_bUseHLR; BOOL m_bUsePRC; BOOL m_bUsePRCAsBRep; BOOL m_bUsePRCCompressTess; BOOL m_bUsePRCSingleViewMode; BOOL m_bExportHyperlinks; OdDbDatabasePtr m_pDb; OdDbDatabaseCollection* m_pDbCollection; OdDbHostAppServices *m_pHost; unsigned int m_iHatchDPI; unsigned int m_iGeomDPI; unsigned int m_iBWImagesDPI; unsigned int m_iColorImagesDPI; unsigned int m_iDCTQuality; unsigned int m_iPdfAMode; unsigned int m_iShadedVpMode; BOOL m_bMergeLinesCrossing; BOOL m_bForceDisableGsDevice; BOOL m_bTranspBgForShadedViewports; BOOL m_bSearchTextOnShadedVp; BOOL m_bUseGsCache; BOOL m_bUseMTVectorization; BOOL m_bUsePdfBlocks; BOOL m_bXRefsAsPdfBlocks; BOOL m_bBookmarks; BOOL m_bMonoImagesAsTransparencyMask; BOOL m_bDPI720; OdArray m_WatermarkArray; OdString m_UserPassword; OdString m_OwnerPassword; TD_PDF_2D_EXPORT::PDFExportParams::PDFAccessPermissionsFlags m_AccessPermissionFlags; BOOL m_bSelectionSetOnly; OdDbSelectionSetPtr m_pSSet; BOOL m_bEmulateExportWithDbWrapper; BOOL m_bStopOnErrorMode; OdPDF::PDFFormatVersions m_PdfVersion; CComboBox m_comboHatchExportType; CComboBox m_comboGradientHatchExportType; CComboBox m_colorPolicy; CComboBox m_PRCCompression; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CExport2PDFDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnInitDialog(); afx_msg void OnCheckLayers(); afx_msg void OnCheckPRC(); afx_msg void OnCheckHLR(); afx_msg void OnCheckZoom(); afx_msg void OnParametersUpdated(); afx_msg void OnCheckEmbedded(); afx_msg void OnClickCustomButton(); afx_msg void OnCheckTextAsGeometry(); afx_msg void OnCheckTextSearchable(); afx_msg void OnClickSecurityButton(); afx_msg void CheckDbLayoutsRB(); //}}AFX_VIRTUAL // Implementation protected: CExport2PDFPreview dlg; void fillLayoutList(OdArray &layouts, OdRxObjectPtrArray& databases, OdArray &divWH); void fillListForDb(OdDbDatabasePtr pDb, OdArray &layouts, OdRxObjectPtrArray& databases); OdUInt32 ExportToPdf(OdString pdfFileName, bool bPreview); // Generated message map functions //{{AFX_MSG(CExport2PDFDialog) afx_msg void OnBrowse(); afx_msg void OnExport(); afx_msg void OnPreview(); afx_msg void OnBnClickedPrcAsBrep(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_EXPORT2PDFDIALOG_H__4AF80B03_7FB7_42D3_9281_E8A5F4FB9A36__INCLUDED_)