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

ap_CocoaDialog_Latex.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 2005 Martin Sevior
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef AP_COCOADIALOG_LATEX_H
00023 #define AP_COCOADIALOG_LATEX_H
00024 
00025 #import <Cocoa/Cocoa.h>
00026 
00027 #include "ap_Dialog_Latex.h"
00028 #include "xap_CocoaDialog_Utilities.h"
00029 
00030 @class AP_CocoaDialog_LatexController;
00031 
00032 /*****************************************************************/
00033 
00034 class AP_CocoaDialog_Latex : public AP_Dialog_Latex
00035 {
00036 public:
00037     AP_CocoaDialog_Latex(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00038 
00039     virtual ~AP_CocoaDialog_Latex(void);
00040 
00041     virtual void            runModeless(XAP_Frame * pFrame);
00042     virtual void            destroy(void);
00043     virtual void            activate(void);
00044     virtual void            notifyActiveFrame(XAP_Frame * pFrame);
00045 
00046     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00047 
00048     // callbacks can fire these events
00049 
00050     void            event_Insert(void);
00051     void            event_Close(void);
00052     void            event_WindowDelete(void);
00053 
00054     virtual void    setLatexInGUI(void);
00055     virtual bool    getLatexFromGUI(void);
00056 
00057 protected:
00058     AP_CocoaDialog_LatexController *    m_dlg;
00059 };
00060 
00061 @interface AP_CocoaDialog_LatexController : NSWindowController <XAP_CocoaDialogProtocol>
00062 {
00063     IBOutlet NSButton *     oClose;
00064     IBOutlet NSButton *     oInsert;
00065 
00066     IBOutlet NSTextView *   oEditor;
00067 
00068     IBOutlet NSTextField *  oHeadingText;
00069     IBOutlet NSTextField *  oExampleText;
00070 
00071     AP_CocoaDialog_Latex *  _xap;
00072 }
00073 - (id)initFromNib;
00074 - (void)dealloc;
00075 
00076 - (void)setXAPOwner:(XAP_Dialog *)owner;
00077 - (void)discardXAP;
00078 
00079 - (void)windowDidLoad;
00080 - (void)windowWillClose:(NSNotification *)aNotification;
00081 
00082 - (IBAction)aClose:(id)sender;
00083 - (IBAction)aInsert:(id)sender;
00084 
00085 - (void)setEditorText:(NSString *)text;
00086 - (NSString *)editorText;
00087 @end
00088 
00089 #endif /* AP_COCOADIALOG_Latex_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1