• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Win32Dialog_FormatTOC.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2004 Jordi Mas i Hernāndez <jmas@softcatala.org>
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef AP_WIN32DIALOG_FORMATTOC_H
00021 #define AP_WIN32DIALOG_FORMATTOC_H
00022 
00023 #include "ap_Dialog_FormatTOC.h"
00024 #include "xap_Win32PropertySheet.h"
00025 #include "xap_Win32DialogBase.h"
00026 
00027 class XAP_Win32Frame;
00028 class AP_Win32Dialog_FormatTOC_General;
00029 class AP_Win32Dialog_FormatTOC_Sheet;
00030 class AP_Win32Dialog_FormatTOC_Layout;
00031 
00032 class ABI_EXPORT AP_Win32Dialog_FormatTOC: public AP_Dialog_FormatTOC, XAP_Win32DialogBase
00033 {
00034 public:
00035     AP_Win32Dialog_FormatTOC(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00036     virtual ~AP_Win32Dialog_FormatTOC(void);
00037     virtual void            runModeless(XAP_Frame * pFrame);
00038 
00039     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id);
00040     virtual void            notifyActiveFrame(XAP_Frame * pFrame);
00041     virtual void            setTOCPropsInGUI(void);
00042     virtual void            setSensitivity(bool bSensitive);
00043     virtual void            destroy(void);
00044     virtual void            activate(void);
00045     void                    setStyle(HWND hWnd, int nCtrlID);
00046     void                    setMainLevel(UT_sint32 iLevel);
00047     void                    setDetailsLevel(UT_sint32 iLevel);
00048     UT_sint32               m_iStartValue;
00049 
00050 private:
00051 
00052     AP_Win32Dialog_FormatTOC_Sheet*     m_pSheet;
00053     AP_Win32Dialog_FormatTOC_General*   m_pGeneral;
00054     AP_Win32Dialog_FormatTOC_Layout*    m_pLayout;
00055 
00056 
00057 };
00058 
00059 class ABI_EXPORT AP_Win32Dialog_FormatTOC_Sheet : public XAP_Win32PropertySheet
00060 {
00061 
00062 public:
00063 
00064     AP_Win32Dialog_FormatTOC_Sheet();
00065 
00066     void                        setContainer(AP_Win32Dialog_FormatTOC*  pData){m_pData=pData;};
00067     AP_Win32Dialog_FormatTOC*   getContainer(){return m_pData;};
00068     static int CALLBACK         s_sheetInit(HWND hwnd,  UINT uMsg,  LPARAM lParam);
00069     void                        _onInitDialog(HWND hwnd);
00070     virtual void                cleanup(void);
00071     virtual void                _onOK();
00072 
00073 private:
00074 
00075     AP_Win32Dialog_FormatTOC*           m_pData;
00076 
00077 };
00078 
00079 class ABI_EXPORT AP_Win32Dialog_FormatTOC_General: public XAP_Win32PropertyPage
00080 {
00081 public:
00082 
00083     AP_Win32Dialog_FormatTOC_General();
00084     ~AP_Win32Dialog_FormatTOC_General();
00085 
00086     void                        setContainer(AP_Win32Dialog_FormatTOC*  pData){m_pData=pData;};
00087     AP_Win32Dialog_FormatTOC*   getContainer(){return m_pData;};
00088     void                        _fillGUI(void);
00089     virtual BOOL                _onCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
00090 private:
00091 
00092     virtual void                _onInitDialog();
00093     virtual void                _onApply();
00094     virtual void                _onOK();
00095 
00096     AP_Win32Dialog_FormatTOC*           m_pData;
00097 
00098 };
00099 
00100 class ABI_EXPORT AP_Win32Dialog_FormatTOC_Layout: public XAP_Win32PropertyPage
00101 {
00102 public:
00103 
00104     AP_Win32Dialog_FormatTOC_Layout();
00105     ~AP_Win32Dialog_FormatTOC_Layout();
00106 
00107     void                        setContainer(AP_Win32Dialog_FormatTOC*  pData){m_pData=pData;};
00108     AP_Win32Dialog_FormatTOC*   getContainer(){return m_pData;};
00109     void                        _fillGUI(void);
00110     virtual BOOL                _onCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
00111     virtual void                _onNotify(LPNMHDR hdr, int iCtrlID);
00112     void                        saveCtrlsValuesForDetailsLevel ();
00113     void                        loadCtrlsValuesForDetailsLevel ();
00114 
00115 private:
00116 
00117     virtual void                _onInitDialog();
00118     virtual void                _onApply();
00119     virtual void                _onOK();
00120     void                        getCtrlsValues ();
00121 
00122     AP_Win32Dialog_FormatTOC*           m_pData;
00123 
00124 };
00125 
00126 
00127 
00128 
00129 
00130 #endif /* AP_WIN32DIALOG_FORMATOC_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1