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

xap_CocoaDlg_Encoding.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 2001 AbiSource, Inc.
00003  * Copyright (C) 2001, 2003 Hubert Figuiere
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef XAP_COCOADIALOG_ENCODING_H
00022 #define XAP_COCOADIALOG_ENCODING_H
00023 
00024 
00025 #include "ut_types.h"
00026 #include "ut_xml.h"
00027 #include "ut_assert.h"
00028 #include "ut_debugmsg.h"
00029 
00030 #include "xap_Dialog.h"
00031 #include "ut_Encoding.h"
00032 #include "xap_Dlg_Encoding.h"
00033 #import "xap_Cocoa_NSTableUtils.h"
00034 #import "xap_GenericListChooser_Controller.h"
00035 
00036 /********************************************************************
00037 INSTRUCTIONS FOR DESIGN OF THE PLATFORM VERSIONS OF THIS DIALOGUE
00038 
00039 (1) implement runModal(); at the moment we display a single listbox
00040 
00041 (2) m_iEncCount will tell you how many list entries there will be;
00042     the encoding strings are then in m_ppEncodings (already sorted)
00043 
00044 (3) use _setEncoding() to set the member variables in response
00045     to the user selection when the dialog is closing.
00046 *********************************************************************/
00047 
00048 
00049 
00050 class XAP_CocoaDialog_Encoding : public XAP_Dialog_Encoding
00051 {
00052 public:
00053     XAP_CocoaDialog_Encoding(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00054     virtual ~XAP_CocoaDialog_Encoding(void);
00055 
00056     virtual void                    runModal(XAP_Frame * pFrame);
00057     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00058 
00059     // callbacks can fire these events
00060 
00061     virtual void            event_OK(void);
00062     virtual void            event_Cancel(void);
00063 
00064 private:
00065     void        _populateWindowData(void);
00066     XAP_StringListDataSource*   m_dataSource;
00067     XAP_GenericListChooser_Controller*  m_dlg;
00068 };
00069 #endif /* XAP_COCOADIALOG_ENCODING_H */
00070 
00071 
00072 
00073 
00074 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1