00001 00006 /* 00007 * CC PDF Converter: Windows PDF Printer with Creative Commons license support 00008 * Excel to PDF Converter: Excel PDF printing addin, keeping hyperlinks AND Creative Commons license support 00009 * Copyright (C) 2007-2010 Guy Hachlili <[email protected]>, Cogniview LTD. 00010 * 00011 * This file is part of CC PDF Converter / Excel to PDF Converter 00012 * 00013 * CC PDF Converter and Excel to PDF Converter are free software; 00014 * you can redistribute them and/or modify them under the terms of the 00015 * GNU General Public License as published by the Free Software Foundation; 00016 * either version 2 of the License, or (at your option) any later version. 00017 * 00018 * CC PDF Converter and Excel to PDF Converter are is distributed in the hope 00019 * that they will be useful, but WITHOUT ANY WARRANTY; without even the implied 00020 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00025 */ 00026 00027 #ifndef _CCLICENSELOCATIONDLG_H_ 00028 #define _CCLICENSELOCATIONDLG_H_ 00029 00030 #include "CCPrintDlg.h" 00031 #include "CCLicenseLocationWnd.h" 00032 #include "resource.h" 00033 00037 class CCLicenseLocationDlg : public CCPrintDlg 00038 { 00039 public: 00040 // Ctor 00046 CCLicenseLocationDlg(SIZE szPageSize, RECT& rectLocation) : CCPrintDlg(IDD_LICENSE_LOCATION), m_wndLocation(szPageSize, rectLocation), m_bSettingEdit(false) {}; 00047 00048 protected: 00049 // Members 00051 double m_dRatio; 00053 POINT m_ptLocation; 00055 CCLicenseLocationWnd m_wndLocation; 00057 bool m_bSettingEdit; 00058 00059 public: 00060 // Methods 00065 POINT GetLocation() const {return m_ptLocation;}; 00066 00067 protected: 00068 // CCPrintDlg overrides 00070 virtual BOOL PageProc(UINT uMsg, WPARAM wParam, LPARAM lParam); 00071 00072 // Helpers 00074 void UpdateXyTextboxes(); 00075 }; 00076 00077 #endif //#define _CCLICENSELOCATIONDLG_H_