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

ap_Dialog_HdrFtr.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2000 AbiSource, Inc.
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_DIALOG_HDRFTR_H
00021 #define AP_DIALOG_HDRFTR_H
00022 
00023 #include "xap_Frame.h"
00024 #include "xap_Dialog.h"
00025 #include "xav_View.h"
00026 #include "ut_misc.h" // for UT_RGBColor
00027 
00028 class XAP_Frame;
00029 class AP_Dialog_HdrFtr;
00030 
00031 class ABI_EXPORT AP_Dialog_HdrFtr : public XAP_Dialog_NonPersistent
00032 {
00033 public:
00034     AP_Dialog_HdrFtr(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00035     virtual ~AP_Dialog_HdrFtr(void);
00036 
00037     virtual void                 runModal(XAP_Frame * pFrame) = 0;
00038 
00039     typedef enum { a_OK, a_CANCEL } tAnswer;
00040     typedef enum
00041     {
00042         HdrEven,
00043         HdrFirst,
00044         HdrLast,
00045         FtrEven,
00046         FtrFirst,
00047         FtrLast
00048     } HdrFtr_Control;
00049 
00050     AP_Dialog_HdrFtr::tAnswer       getAnswer(void) const;
00051     void    setValue(AP_Dialog_HdrFtr::HdrFtr_Control which, bool value, bool changed);
00052     bool        getValue(AP_Dialog_HdrFtr::HdrFtr_Control which);
00053     bool        isChanged(AP_Dialog_HdrFtr::HdrFtr_Control which);
00054     bool        isRestartChanged(void) const;
00055     bool        isRestart(void) const;
00056     UT_sint32   getRestartValue(void) const;
00057     void        setRestart( bool bRestart, UT_sint32 RestartValue, bool bRestartChanged);
00058     void        setAnswer (AP_Dialog_HdrFtr::tAnswer answer);
00059 
00060  protected:
00061 
00062  private:
00063     bool m_bHdrFtrValues[6];
00064     bool m_bHdrFtrChanged[6];
00065     bool m_bDoRestart;
00066     bool m_bRestartChanged;
00067     UT_sint32 m_iStartAt;
00068     tAnswer m_answer;
00069 };
00070 
00071 #endif /* AP_DIALOG_HDRFTR_H */
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1