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

ap_Dialog_WordCount.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_WORDCOUNT_H
00021 #define AP_DIALOG_WORDCOUNT_H
00022 
00023 #include "xap_Frame.h"
00024 #include "xap_Dialog.h"
00025 #include "xav_View.h"
00026 
00027 #include "fv_View.h"
00028 
00029 
00030 class XAP_Frame;
00031 
00032 class ABI_EXPORT AP_Dialog_WordCount : public XAP_Dialog_Modeless
00033 {
00034 public:
00035     AP_Dialog_WordCount(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00036     virtual ~AP_Dialog_WordCount(void);
00037 
00038     typedef enum { a_OK, a_CANCEL } tAnswer;
00039 
00040     AP_Dialog_WordCount::tAnswer        getAnswer(void) const;
00041     FV_DocCount                         getCount(void) const;
00042     void                                setCount(FV_DocCount);
00043     void                                setCountFromActiveFrame(void);
00044         void                                    ConstructWindowName(void);
00045 
00046         void                                    setActiveFrame(XAP_Frame *pFrame);
00047     // must be public for Cocoa, because I can't make an Obj-C class
00048     // be friend of a C++ class. Not a big deal.
00049     enum {
00050         DIALOG_WID,
00051         CLOSE_BTN_WID,
00052         TITLE_LBL_WID,
00053         PAGES_LBL_WID,
00054         PAGES_VAL_WID,
00055         LINES_LBL_WID,
00056         LINES_VAL_WID,
00057         CHARSP_LBL_WID,
00058         CHARSP_VAL_WID,
00059         CHARNSP_LBL_WID,
00060         CHARNSP_VAL_WID,
00061         PARA_LBL_WID,
00062         PARA_VAL_WID,
00063         WORDS_LBL_WID,
00064         WORDS_VAL_WID,
00065         WORDSNF_LBL_WID,
00066         WORDSNF_VAL_WID
00067     };
00068 
00069 
00070 protected:
00071 
00072     virtual void localizeDialog(void);
00073     virtual void updateDialogData(void);
00074 
00075     AP_Dialog_WordCount::tAnswer        m_answer;
00076     FV_DocCount                         m_count;
00077     char m_WindowName[100];
00078 };
00079 
00080 #endif /* AP_DIALOG_WORDCOUNT_H */
00081 
00082 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1