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

ap_CocoaDialog_FormatTOC.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 2000 AbiSource, Inc.
00005  * Copyright (C) 2004 Hubert Figuiere
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 AP_COCOADIALOG_FORMATTOC_H
00024 #define AP_COCOADIALOG_FORMATTOC_H
00025 
00026 #include <Cocoa/Cocoa.h>
00027 
00028 #include "ap_Dialog_FormatTOC.h"
00029 
00030 
00031 @class AP_CocoaDialog_FormatTOC_Controller;
00032 @protocol XAP_CocoaDialogProtocol;
00033 
00034 /*****************************************************************/
00035 
00036 class AP_CocoaDialog_FormatTOC: public AP_Dialog_FormatTOC
00037 {
00038 public:
00039     AP_CocoaDialog_FormatTOC(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00040     virtual ~AP_CocoaDialog_FormatTOC(void);
00041     virtual void            runModeless(XAP_Frame * pFrame);
00042 
00043     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00044     virtual void            notifyActiveFrame(XAP_Frame * pFrame);
00045     virtual void            setTOCPropsInGUI(void);
00046     virtual void            setSensitivity(bool bSensitive);
00047     virtual void            destroy(void);
00048     virtual void            activate(void);
00049 private:
00050     void            _populateWindowData(void);
00051     AP_CocoaDialog_FormatTOC_Controller *m_dlg;
00052 };
00053 
00054 
00055 @interface AP_CocoaDialog_FormatTOC_Controller : NSWindowController <XAP_CocoaDialogProtocol>
00056 {
00057     IBOutlet NSButton *         _applyBtn;
00058     IBOutlet NSButton *         _hasHeadingBtn;
00059     IBOutlet NSButton *         _hasLabelBtn;
00060     IBOutlet NSButton *         _inheritLabelBtn;
00061     IBOutlet NSButton *         _displayStyleBtn;
00062     IBOutlet NSButton *         _fillStyleBtn;
00063     IBOutlet NSButton *         _headingStyleBtn;
00064 
00065     IBOutlet NSPopUpButton *    _layoutLevelPopup;
00066     IBOutlet NSPopUpButton *    _mainLevelPopup;
00067     IBOutlet NSPopUpButton *    _numberingTypeData;
00068     IBOutlet NSPopUpButton *    _pageNumberingData;
00069     IBOutlet NSPopUpButton *    _tabLeadersData;
00070 
00071     IBOutlet NSTextField *      _displayStyleLabel;
00072     IBOutlet NSTextField *      _displayStyleData;
00073     IBOutlet NSTextField *      _fillStyleLabel;
00074     IBOutlet NSTextField *      _fillStyleData;
00075     IBOutlet NSTextField *      _headingStyleLabel;
00076     IBOutlet NSTextField *      _headingStyleData;
00077     IBOutlet NSTextField *      _headingTextData;
00078     IBOutlet NSTextField *      _headingTextLabel;
00079     IBOutlet NSTextField *      _indentData;
00080     IBOutlet NSTextField *      _indentLabel;
00081     IBOutlet NSTextField *      _numberingTypeLabel;
00082     IBOutlet NSTextField *      _pageNumberingLabel;
00083     IBOutlet NSTextField *      _startAtData;
00084     IBOutlet NSTextField *      _startAtLabel;
00085     IBOutlet NSTextField *      _tabLeadersLabel;
00086     IBOutlet NSTextField *      _textAfterData;
00087     IBOutlet NSTextField *      _textAfterLabel;
00088     IBOutlet NSTextField *      _textBeforeData;
00089     IBOutlet NSTextField *      _textBeforeLabel;
00090     IBOutlet NSBox *            _defineMainLabel;
00091     IBOutlet NSBox *            _labelDefinitionsLabel;
00092     IBOutlet NSBox *            _tabsPageNoLabel;
00093 
00094     IBOutlet NSStepper *        _startAtStepper;
00095     IBOutlet NSStepper *        _indentStepper;
00096 
00097 //  IBOutlet NSBox *            _hasHeadingBox;
00098 //  IBOutlet NSBox *            _labelDefBox;
00099 //  IBOutlet NSBox *            _mainPropBox;
00100 //  IBOutlet NSBox *            _tabsAndPageNumbBox;
00101 
00102     IBOutlet NSTabView *        _tabView;
00103 
00104     AP_CocoaDialog_FormatTOC *  _xap;
00105 }
00106 - (IBAction)startAtStepperAction:(id)sender;
00107 - (IBAction)startAtAction:(id)sender;
00108 - (IBAction)indentStepperAction:(id)sender;
00109 - (IBAction)indentAction:(id)sender;
00110 - (IBAction)mainLevelAction:(id)sender;
00111 - (IBAction)detailLevelAction:(id)sender;
00112 - (IBAction)headingStyleAction:(id)sender;
00113 - (IBAction)fillStyleAction:(id)sender;
00114 - (IBAction)displayStyleAction:(id)sender;
00115 - (IBAction)applyAction:(id)sender;
00116 
00117 - (void)setSensitivity:(BOOL)enable;
00118 
00119 - (void)createLevelItems:(NSPopUpButton *)popup;
00120 - (void)createNumberingItems:(NSPopUpButton *)popup;
00121 
00122 - (void)sync;
00123 - (void)syncMainLevelSettings;
00124 - (void)syncDetailLevelSettings;
00125 
00126 - (void)saveMainLevelSettings;
00127 - (void)saveDetailLevelSettings;
00128 @end
00129 
00130 #endif /* AP_COCOADIALOG_FORMATOC_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1