#ifndef PAGEDLL_H #define PAGEDLL_H //============================================================================= // (c) Copyright Wang Laboratories, Inc. 1995 All rights reserved. //----------------------------------------------------------------------------- // Project: Norway - Page Options Dialog DLL // // Component: Page DLL Exported functions // // File Name: pagedll.h // // Functions: CPagePropSheet Class Definition // //----------------------------------------------------------------------------- // Maintenance Log: /* $Header: S:\norway\include\pagedll.h_v 1.5 14 Sep 1995 15:48:06 MFH $ $Log: S:\norway\include\pagedll.h_v $ * * Rev 1.5 14 Sep 1995 15:48:06 MFH * New internal function for moving OK, Cancel buttons * New paper sizes * * Rev 1.4 17 Aug 1995 14:38:46 MFH * Added function DisableColor * * Rev 1.3 24 Jul 1995 16:24:32 MFH * Added context sensitive help to prop sheet * * Rev 1.2 07 Jul 1995 16:18:34 MFH * New override of DoModal (i.e. new function for CPagePropSheet class * * Rev 1.1 30 Jun 1995 14:46:44 MFH * Now exports CPagePropSheet class * * Rev 1.0 23 May 1995 15:22:30 MFH * Initial entry */ //============================================================================= /* pagedll.h: Defines exported functions from pagedll // */ #include // These values are listed in the order of how they appear the in // Size page Size combo box. DO NOT CHANGE THIS ORDER WITHOUT // CHAANGING THE ORDER OF THE STRINGS LISTED IN THE COMBOBOX. These // values provide an index for the listed strings. typedef enum { SIZE_LETTER = 0, // Letter 8 1/2 x 11 in SIZE_TABLOID, // Tabloid 11 x 17 in SIZE_LEDGER, // Ledger 17 x 11 in SIZE_LEGAL, // Legal 8 1/2 x 14 in SIZE_STATEMENT, // Statement 5 1/2 x 8 1/2 in SIZE_EXECUTIVE, // Executive 7 1/4 x 10 1/2 in SIZE_A3, // A3 297 x 420 mm SIZE_A4, // A4 210 x 297 mm SIZE_A5, // A5 148 x 210 mm SIZE_B4_ISO, // B4 (ISO) 250 x 353 mm SIZE_B4_JIS, // B4 (JIS) 250 x 354 SIZE_B5_ISO, // B5 (ISO) 176 x 250 mm SIZE_B5_JIS, // B5 (JIS) 182 x 257 mm SIZE_FOLIO, // Folio 8 1/2 x 13 in SIZE_QUARTO, // Quarto 215 x 275 mm SIZE_10X14, // 10x14 in SIZE_CUSTOM // Custom size } PageSize; class CPagePropSheet : public CPropertySheet { public: DECLARE_DYNAMIC(CPagePropSheet) _declspec (dllexport) CPagePropSheet(LPCSTR lpszCaption = NULL, CWnd* pWndParent = NULL); _declspec (dllexport) ~CPagePropSheet(); /*_declspec (dllexport) BOOL Create(CWnd* pParentWnd = NULL, DWORD dwStyle = WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME | WS_VISIBLE, DWORD dwExStyle = WS_EX_DLGMODALFRAME); */ _declspec (dllexport) int DoModal(); _declspec (dllexport) void AddColorPage(); _declspec (dllexport) void AddSizePage(); _declspec (dllexport) void AddResolutionPage(); _declspec (dllexport) void AddCompressionPage(); _declspec (dllexport) void AddFileTypePage(); _declspec (dllexport) void SetDefaultFileType(short sFileType); _declspec (dllexport) short GetFileType(); _declspec (dllexport) void SetDefaultColor(short sColor); _declspec (dllexport) short GetColor(); _declspec (dllexport) void DisableColor(); _declspec (dllexport) void SetDefaultSize(long Width, long Height); _declspec (dllexport) void SetDefaultSize(PageSize StdSize); _declspec (dllexport) long GetWidth(); _declspec (dllexport) long GetHeight(); _declspec (dllexport) PageSize GetPageSize(); _declspec (dllexport) void SetDefaultCompType(short sCompType); _declspec (dllexport) short GetCompType(); _declspec (dllexport) void SetDefaultCompOpts(long lCompOpts); _declspec (dllexport) long GetCompOpts(); _declspec (dllexport) void SetDefaultResolution(long lXRes, long lYRes); _declspec (dllexport) long GetXRes(); _declspec (dllexport) long GetYRes(); protected: //{{AFX_MSG(CPagePropSheet) afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); afx_msg LRESULT OnHelp(WPARAM, LPARAM); afx_msg LRESULT OnContextMenu(WPARAM, LPARAM); afx_msg LRESULT OnCommandHelp(WPARAM, LPARAM); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); //}}AFX_MSG DECLARE_MESSAGE_MAP() void RecalcLayout(); private: CPropertyPage *m_pColorPage; CPropertyPage *m_pCompPage; CPropertyPage *m_pResPage; CPropertyPage *m_pSizePage; CPropertyPage *m_pFileTypePage; short m_sFileType; }; #endif