--- /dev/null
+# GNUstep makefile
+
+ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
+
+-include ../config.make
+include $(GNUSTEP_MAKEFILES)/common.make
+
+SUBPROJECTS += \
+ SOPEX
+
+include $(GNUSTEP_MAKEFILES)/aggregate.make
+
+endif
+endif
+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * v2.0.3
+
+ * added framework GNUmakefile
+
+ * SOPEXWebConnection.h: added missing NSMutableDictionary prototype
+
+ * SOPEXSheetRunner.m: include required AppKit.h
+
+ * SOPEXSheetRunner.h: added missing NSWindow prototype
+
+ * SOPEXContentValidator.m: added missing prototypes, include NSError.h
+ for NSLocalizedDescriptionKey
+
+ * SOPEXConsoleEventFormatter.m: fixed a gcc 4.0 warning
+
+ * SOPEXAppController.m: include NGObjWeb.h for missing symbols
+
+ * SOPEXConsole.h: added NGLogEvent class forward declaration
+
2005-01-04 Marcus Mueller <znek@mulle-kybernetik.com>
* SOPEXAppController.m: changed default handling in -prepareForLaunch
--- /dev/null
+# GNUstep makefile
+
+-include ../../config.make
+include $(GNUSTEP_MAKEFILES)/common.make
+include ./Version
+
+FRAMEWORK_NAME = SOPEX
+
+SOPEX_HEADER_FILES += \
+ SOPEX.h \
+ SOPEXAppController.h \
+ SOPEXAuthPanel.h \
+ SOPEXBrowserController.h \
+ SOPEXBrowserWindow.h \
+ SOPEXConsole.h \
+ SOPEXConstants.h \
+ SOPEXContentValidator.h \
+ SOPEXDocument.h \
+ SOPEXMain.h \
+ SOPEXRangeUtilities.h \
+ SOPEXSheetRunner.h \
+ SOPEXStatisticsController.h \
+ SOPEXTextView.h \
+ SOPEXToolbarController.h \
+ SOPEXWODocument.h \
+ SOPEXWOXDocument.h \
+ SOPEXWebConnection.h \
+ SOPEXWebMetaParser.h \
+
+SOPEX_OBJC_FILES += \
+ SOPEXAppController.m \
+ SOPEXAuthPanel.m \
+ SOPEXBrowserController.m \
+ SOPEXBrowserWindow.m \
+ SOPEXConsole.m \
+ SOPEXConsoleAppender.m \
+ SOPEXConsoleEventFormatter.m \
+ SOPEXConstants.m \
+ SOPEXContentValidator.m \
+ SOPEXDocument.m \
+ SOPEXMain.m \
+ SOPEXRangeUtilities.m \
+ SOPEXSheetRunner.m \
+ SOPEXStatisticsController.m \
+ SOPEXTextView.m \
+ SOPEXToolbarController.m \
+ SOPEXWODocument.m \
+ SOPEXWOXDocument.m \
+ SOPEXWebConnection.m \
+ SOPEXWebMetaParser.m \
+ \
+ WebView+Ext.m \
+ NSBundle+Ext.m \
+ NSString+Ext.m \
+
+SOPEX_LANGUAGES += \
+ English
+
+SOPEX_LOCALIZED_RESOURCE_FILES += \
+ InfoPlist.strings \
+ Localizable.strings \
+ SOPEXBrowserController.nib \
+ SOPEXConsole.nib \
+ SOPEXConsole.toolbar \
+ SOPEXStatisticsNatLang.plist \
+ SOPEXStats.nib \
+ SOPEXWebUI.toolbar
+
+SOPEX_RESOURCE_FILES += \
+ Clean.tiff \
+ Info.plist \
+ Lori.icns \
+ Reload.tiff \
+ version.plist
+
+-include GNUmakefile.preamble
+include $(GNUSTEP_MAKEFILES)/framework.make
+-include GNUmakefile.postamble
--- /dev/null
+# compilation settings
+
+SOPE_ROOT=../..
+
+SOPEX_LIBRARIES_DEPEND_UPON += \
+ -framework WebKit \
+ -framework AppKit \
+ -framework NGObjWeb \
+ -framework NGMime \
+ -framework NGStreams -framework NGExtensions -framework EOControl \
+ -framework XmlRpc -framework DOM -framework SaxObjC
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+ $(SOPE_ROOT)/sope-appserver/NGObjWeb \
+ $(SOPE_ROOT)/sope-mime \
+ $(SOPE_ROOT)/sope-core/NGStreams \
+ $(SOPE_ROOT)/sope-core/NGExtensions \
+ $(SOPE_ROOT)/sope-core/EOControl \
+ $(SOPE_ROOT)/sope-xml/DOM \
+ $(SOPE_ROOT)/sope-xml/XmlRpc \
+ $(SOPE_ROOT)/sope-xml/SaxObjC
+
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
/*
- Copyright (C) 2004 Marcus Mueller <znek@mulle-kybernetik.com>
+ Copyright (C) 2004-2005 Marcus Mueller <znek@mulle-kybernetik.com>
This file is part of OGo
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id: NSBundle+Ext.m,v 1.1 2004/05/02 16:27:46 znek Exp $
// Created by znek on Sun May 02 2004.
#import "SOPEXConstants.h"
#import "SOPEXWebConnection.h"
#import "SOPEXBrowserController.h"
-
+#import <NGObjWeb/NGObjWeb.h>
#define DNC [NSNotificationCenter defaultCenter]
#define UD [NSUserDefaults standardUserDefaults]
#import <AppKit/AppKit.h>
+@class NGLogEvent;
@class SOPEXToolbarController;
@interface SOPEXConsole : NSObject
@implementation SOPEXConsoleEventFormatter
-static __inline__ unsigned char * levelPrefixForEvent(NGLogEvent *_event) {
+static __inline__ char * levelPrefixForEvent(NGLogEvent *_event) {
switch ([_event level]) {
case NGLogLevelWarn: return "[WARN ] ";
case NGLogLevelError: return "[ERROR] ";
/*
- Copyright (C) 2004 Marcus Mueller <znek@mulle-kybernetik.com>
+ Copyright (C) 2004-2005 Marcus Mueller <znek@mulle-kybernetik.com>
This file is part of OGo
#import "SOPEXContentValidator.h"
#import <NGObjWeb/NGObjWeb.h>
+#import <Foundation/NSError.h>
NSString *SOPEXDocumentValidationErrorDomain = @"SOPEXDocumentValidationErrorDomain";
@end
+@interface NSObject(UsedNGObjWebPrivates)
+- (id)initWithHandler:(id)_handler;
+@end
+
+
@implementation SOPEXContentValidator
else
data = content;
- NS_DURING
-
- parser = [[parserClass alloc] initWithHandler:self];
- [parser performSelector:selector withObject:data];
-
+ NS_DURING {
+ *(&parser) = [[parserClass alloc] initWithHandler:self];
+ [parser performSelector:selector withObject:data];
+ }
NS_HANDLER
-
- [self->errors addObject:[localException reason]];
-
+ [self->errors addObject:[localException reason]];
NS_ENDHANDLER;
[parser release];
unichar charToLeft;
charToLeft = [string characterAtIndex:--left];
- if(!SOPEX_isValidTagNameCharacter(charToLeft))
+ if (!SOPEX_isValidTagNameCharacter(charToLeft)) {
if(charToLeft == '<')
found = YES;
else
break;
+ }
}
if(!found)
return NSMakeRange(NSNotFound, 0);
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id: SOPEXSheetRunner.h,v 1.1 2004/04/01 19:04:36 znek Exp $
// Created by znek on Mon Mar 29 2004.
#ifndef __SOPEX_SOPEXSheetRunner_H_
#import <Foundation/NSObject.h>
+@class NSWindow;
@interface SOPEXSheetRunner : NSObject
{
/*
- Copyright (C) 2004 Marcus Mueller <znek@mulle-kybernetik.com>
+ Copyright (C) 2004-2005 Marcus Mueller <znek@mulle-kybernetik.com>
This file is part of OGo
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id: SOPEXSheetRunner.m,v 1.2 2004/05/02 16:27:46 znek Exp $
// Created by znek on Mon Mar 29 2004.
#import "SOPEXSheetRunner.h"
-
+#import <AppKit/AppKit.h>
@interface SOPEXSheetRunner (PrivateAPI)
+ (id)defaultRunner;
- (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item
{
- if([item isKindOfClass:[NSString class]])
+ if([item isKindOfClass:[NSString class]]) {
if([[tableColumn identifier] isEqualToString:@"name"])
return item;
else
return nil;
+ }
return [item objectForKey:[tableColumn identifier]];
}
-// $Id: SOPEXWebConnection.h,v 1.3 2004/05/02 16:27:46 znek Exp $
#ifndef __SOPEX_SOPEXWebConnection_H__
#define __SOPEX_SOPEXWebConnection_H__
#import <Foundation/NSObject.h>
-@class NSURL, NSString, NSData, NSBundle;
+@class NSURL, NSString, NSData, NSBundle, NSMutableDictionary;
@class NSURLResponse;
@interface SOPEXWebConnection : NSObject
-# $Id: Version,v 1.10 2004/06/05 21:49:26 znek Exp $
#
# This file is included by library makefiles to set the version information
# of the executable.
MAJOR_VERSION=2
MINOR_VERSION=0
-SUBMINOR_VERSION=2
+SUBMINOR_VERSION=3
# v2.0.0 requires NGObjWeb v4.5.95
# v1.0.7 requires NGObjWeb v4.2.341