00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiWord 00004 * Copyright (C) 2000 AbiSource, Inc. 00005 * Copyright (C) 2001-2003, 2009 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_METADATA_H 00024 #define AP_COCOADIALOG_METADATA_H 00025 00026 #include "ap_Dialog_MetaData.h" 00027 #import "xap_CocoaDialog_Utilities.h" 00028 00029 00030 class XAP_CocoaFrame; 00031 class AP_CocoaDialog_MetaData; 00032 00033 @interface AP_CocoaDialog_MetaDataController : NSWindowController <XAP_CocoaDialogProtocol> 00034 { 00035 IBOutlet NSTextField *m_authorData; 00036 IBOutlet NSTextField *m_authorLabel; 00037 IBOutlet NSTextField *m_categoryData; 00038 IBOutlet NSTextField *m_categoryLabel; 00039 IBOutlet NSTextField *m_coAuthorData; 00040 IBOutlet NSTextField *m_coAuthorLabel; 00041 IBOutlet NSTextField *m_coverageData; 00042 IBOutlet NSTextField *m_coverageLabel; 00043 IBOutlet NSTextView *m_descriptionData; 00044 IBOutlet NSTextField *m_descriptionLabel; 00045 IBOutlet NSTextField *m_keywordData; 00046 IBOutlet NSTextField *m_keywordLabel; 00047 IBOutlet NSTextField *m_languageData; 00048 IBOutlet NSTextField *m_languageLabel; 00049 IBOutlet NSTextField *m_publisherData; 00050 IBOutlet NSTextField *m_publisherLabel; 00051 IBOutlet NSTextField *m_relationData; 00052 IBOutlet NSTextField *m_relationLabel; 00053 IBOutlet NSTextField *m_rightsData; 00054 IBOutlet NSTextField *m_rightsLabel; 00055 IBOutlet NSTextField *m_sourceData; 00056 IBOutlet NSTextField *m_sourceLabel; 00057 IBOutlet NSTextField *m_subjectData; 00058 IBOutlet NSTextField *m_subjectLabel; 00059 IBOutlet NSTextField *m_titleData; 00060 IBOutlet NSTextField *m_titleLabel; 00061 IBOutlet NSTabView *m_tabs; 00062 AP_CocoaDialog_MetaData* _xap; 00063 } 00064 - (IBAction)cancelBtnAction:(id)sender; 00065 - (IBAction)okBtnAction:(id)sender; 00066 00067 - (NSString*)GUITitle; 00068 - (void)setGUITitle:(const UT_UTF8String&)str; 00069 - (NSString*)GUISubject; 00070 - (void)setGUISubject:(const UT_UTF8String&)str; 00071 - (NSString*)GUIAuthor; 00072 - (void)setGUIAuthor:(const UT_UTF8String&)str; 00073 - (NSString*)GUIPublisher; 00074 - (void)setGUIPublisher:(const UT_UTF8String&)str; 00075 - (NSString*)GUICoAuthor; 00076 - (void)setGUICoAuthor:(const UT_UTF8String&)str; 00077 - (NSString*)GUICategory; 00078 - (void)setGUICategory:(const UT_UTF8String&)str; 00079 - (NSString*)GUIKeywords; 00080 - (void)setGUIKeywords:(const UT_UTF8String&)str; 00081 - (NSString*)GUILanguages; 00082 - (void)setGUILanguages:(const UT_UTF8String&)str; 00083 - (NSString*)GUISource; 00084 - (void)setGUISource:(const UT_UTF8String&)str; 00085 - (NSString*)GUIRelation; 00086 - (void)setGUIRelation:(const UT_UTF8String&)str; 00087 - (NSString*)GUICoverage; 00088 - (void)setGUICoverage:(const UT_UTF8String&)str; 00089 - (NSString*)GUIRights; 00090 - (void)setGUIRights:(const UT_UTF8String&)str; 00091 - (NSString*)GUIDescription; 00092 - (void)setGUIDescription:(const UT_UTF8String&)str; 00093 @end 00094 00095 /*****************************************************************/ 00096 00097 class AP_CocoaDialog_MetaData: public AP_Dialog_MetaData 00098 { 00099 public: 00100 AP_CocoaDialog_MetaData(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); 00101 virtual ~AP_CocoaDialog_MetaData(void); 00102 00103 virtual void runModal(XAP_Frame * pFrame); 00104 00105 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); 00106 void okAction(void); 00107 void cancelAction(void); 00108 protected: 00109 00110 private: 00111 AP_CocoaDialog_MetaDataController * m_dlg; 00112 }; 00113 00114 #endif /* AP_COCOADIALOG_METADATA_H */