From 70236dbeeebf510f72be32b563b7a21d4205dd03 Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 4 Oct 2004 15:02:03 +0000 Subject: [PATCH] moved WOxTagClassElemBuilder to own file git-svn-id: http://svn.opengroupware.org/SOPE/trunk@223 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 ++ .../DynamicElements/WOxMiscElemBuilder.m | 1 - sope-appserver/NGObjWeb/Templates/GNUmakefile | 1 + .../NGObjWeb/Templates/WOxElemBuilder.m | 24 ---------- .../Templates/WOxTagClassElemBuilder.m | 47 +++++++++++++++++++ sope-appserver/NGObjWeb/Version | 2 +- sope-mime/NGImap4/NGImap4Folder.m | 1 - 7 files changed, 54 insertions(+), 27 deletions(-) create mode 100644 sope-appserver/NGObjWeb/Templates/WOxTagClassElemBuilder.m diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 4f948f0c..ba7fe0f5 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2004-10-04 Helge Hess + + * Templates/WOxElemBuilder.m: moved WOxTagClassElemBuilder to own file + (v4.3.52) + 2004-10-04 Marcus Mueller * NGObjWeb.xcode: updated to current build version diff --git a/sope-appserver/NGObjWeb/DynamicElements/WOxMiscElemBuilder.m b/sope-appserver/NGObjWeb/DynamicElements/WOxMiscElemBuilder.m index 54b49985..af81c660 100644 --- a/sope-appserver/NGObjWeb/DynamicElements/WOxMiscElemBuilder.m +++ b/sope-appserver/NGObjWeb/DynamicElements/WOxMiscElemBuilder.m @@ -18,7 +18,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ #include diff --git a/sope-appserver/NGObjWeb/Templates/GNUmakefile b/sope-appserver/NGObjWeb/Templates/GNUmakefile index 2269c5ae..a64e148f 100644 --- a/sope-appserver/NGObjWeb/Templates/GNUmakefile +++ b/sope-appserver/NGObjWeb/Templates/GNUmakefile @@ -19,6 +19,7 @@ Templates_OBJC_FILES = \ WOxComponentElemBuilder.m \ WOxTemplateBuilder.m \ WOxElemBuilder.m \ + WOxTagClassElemBuilder.m \ WOApplication+Builders.m \ -include GNUmakefile.preamble diff --git a/sope-appserver/NGObjWeb/Templates/WOxElemBuilder.m b/sope-appserver/NGObjWeb/Templates/WOxElemBuilder.m index ca5d725c..9f152d69 100644 --- a/sope-appserver/NGObjWeb/Templates/WOxElemBuilder.m +++ b/sope-appserver/NGObjWeb/Templates/WOxElemBuilder.m @@ -618,27 +618,3 @@ static BOOL debugOn = NO; } @end /* WOxElemBuilder */ - -@implementation WOxTagClassElemBuilder - -- (Class)classForElement:(id)_element { - return Nil; -} - -- (WOElement *)buildElement:(id)_element templateBuilder:(id)_b { - Class clazz; - - if ((clazz = [self classForElement:_element]) == Nil) { - if (self->nextBuilder) - return [self->nextBuilder buildElement:_element templateBuilder:_b]; - else { - [self logWithFormat: - @"did not find dynamic element class for DOM element %@", - _element]; - return nil; - } - } - return [[clazz alloc] initWithElement:_element templateBuilder:_b]; -} - -@end /* SxTagClassElemBuilder */ diff --git a/sope-appserver/NGObjWeb/Templates/WOxTagClassElemBuilder.m b/sope-appserver/NGObjWeb/Templates/WOxTagClassElemBuilder.m new file mode 100644 index 00000000..0da448ac --- /dev/null +++ b/sope-appserver/NGObjWeb/Templates/WOxTagClassElemBuilder.m @@ -0,0 +1,47 @@ +/* + Copyright (C) 2000-2004 SKYRIX Software AG + + This file is part of OpenGroupware.org. + + OGo is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + OGo is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with OGo; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ + +#include +#include "common.h" + +@implementation WOxTagClassElemBuilder + +- (Class)classForElement:(id)_element { + return Nil; +} + +- (WOElement *)buildElement:(id)_element templateBuilder:(id)_b { + Class clazz; + + if ((clazz = [self classForElement:_element]) == Nil) { + if (self->nextBuilder) + return [self->nextBuilder buildElement:_element templateBuilder:_b]; + else { + [self logWithFormat: + @"did not find dynamic element class for DOM element %@", + _element]; + return nil; + } + } + return [[clazz alloc] initWithElement:_element templateBuilder:_b]; +} + +@end /* WOxTagClassElemBuilder */ diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index 52af9667..3818b211 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=51 +SUBMINOR_VERSION:=52 # v4.3.42 requires libNGExtensions v4.3.116 # v4.3.40 requires libNGExtensions v4.3.115 diff --git a/sope-mime/NGImap4/NGImap4Folder.m b/sope-mime/NGImap4/NGImap4Folder.m index 45259d70..ed40e5b9 100644 --- a/sope-mime/NGImap4/NGImap4Folder.m +++ b/sope-mime/NGImap4/NGImap4Folder.m @@ -18,7 +18,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id: NGImap4Folder.m 1 2004-08-20 10:08:27Z znek $ #include "NGImap4Folder.h" #include "NGImap4Context.h" -- 2.39.5