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

xap_CocoaDlg_HTMLOptions.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiSource Application Framework
00004  * Copyright (C) 2002 AbiSource, Inc.
00005  * Copyright (C) 2004 Hubert Figuière
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 USA.
00021  */
00022 
00023 #ifndef XAP_COCOADIALOG_HTMLOPTIONS_H
00024 #define XAP_COCOADIALOG_HTMLOPTIONS_H
00025 
00026 #import <Cocoa/Cocoa.h>
00027 
00028 #include "ut_types.h"
00029 
00030 #include "xap_Dialog.h"
00031 
00032 #include "xap_Dlg_HTMLOptions.h"
00033 
00034 class XAP_Frame;
00035 @class XAP_CocoaDialog_HTMLOptions_Controller;
00036 @protocol XAP_CocoaDialogProtocol;
00037 
00038 class XAP_CocoaDialog_HTMLOptions : public XAP_Dialog_HTMLOptions
00039 {
00040 public:
00041     XAP_CocoaDialog_HTMLOptions (XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00042 
00043     virtual ~XAP_CocoaDialog_HTMLOptions (void);
00044 
00045     virtual void            runModal (XAP_Frame * pFrame);
00046 
00047     static XAP_Dialog *     static_constructor (XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00048 
00049     void            toggle_Is4 ();
00050     void            toggle_AbiWebDoc ();
00051     void            toggle_DeclareXML ();
00052     void            toggle_AllowAWML ();
00053     void            toggle_EmbedCSS ();
00054     void            toggle_EmbedImages ();
00055 
00056     void            refreshStates ();
00057 
00058     typedef enum {
00059         IS4,
00060         ABIWEBDOC,
00061         DECLAREXML,
00062         ALLOWAWML,
00063         EMBEDCSS,
00064         EMBEDIMAGES
00065     } options;
00066 
00067     void            event_OK (void);
00068     void            event_SaveSettings (void);
00069     void            event_RestoreSettings (void);
00070     void            event_Cancel (void);
00071  private:
00072     XAP_CocoaDialog_HTMLOptions_Controller* m_dlg;
00073 };
00074 
00075 
00076 @interface XAP_CocoaDialog_HTMLOptions_Controller : NSWindowController <XAP_CocoaDialogProtocol>
00077 {
00078     IBOutlet NSButton *_allowExtraMarkupBtn;
00079     IBOutlet NSButton *_cancelBtn;
00080     IBOutlet NSButton *_declareXMLBtn;
00081     IBOutlet NSButton *_embedCSSBtn;
00082     IBOutlet NSButton *_embedImagesBtn;
00083     IBOutlet NSButton *_exportHTMLBtn;
00084     IBOutlet NSBox *_exportOptionsBox;
00085     IBOutlet NSButton *_exportPHPBtn;
00086     IBOutlet NSButton *_okBtn;
00087     IBOutlet NSButton *_restoreBtn;
00088     IBOutlet NSButton *_saveBtn;
00089     XAP_CocoaDialog_HTMLOptions*    _xap;
00090 }
00091 - (IBAction)allowExtraMarkupAction:(id)sender;
00092 - (IBAction)cancelAction:(id)sender;
00093 - (IBAction)declareXMLAction:(id)sender;
00094 - (IBAction)embedCSSAction:(id)sender;
00095 - (IBAction)embedImageAction:(id)sender;
00096 - (IBAction)exportHTMLAction:(id)sender;
00097 - (IBAction)exportPHPAction:(id)sender;
00098 - (IBAction)okAction:(id)sender;
00099 - (IBAction)restoreAction:(id)sender;
00100 - (IBAction)saveAction:(id)sender;
00101 
00102 - (void)toggle:(XAP_CocoaDialog_HTMLOptions::options)btn withValue:(bool)value;
00103 - (void)enable:(XAP_CocoaDialog_HTMLOptions::options)btn withValue:(bool)value;
00104 - (bool)valueOf:(XAP_CocoaDialog_HTMLOptions::options)btn;
00105 @end
00106 
00107 #endif /* XAP_COCOADIALOG_HTMLOPTIONS_H */
00108 
00109 
00110 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1