From: wolfgang Date: Thu, 12 Jul 2007 16:06:47 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1103 d1b88da0-ebda-0310... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7638f25adae8af1fe9963f73b074a790557cfbfb;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1103 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SoObjects/SOGo/SOGoFolder.m b/SoObjects/SOGo/SOGoFolder.m index d3f73984..530a0e0e 100644 --- a/SoObjects/SOGo/SOGoFolder.m +++ b/SoObjects/SOGo/SOGoFolder.m @@ -261,9 +261,11 @@ static NSString *defaultUserID = @""; if ([self respondsToSelector: @selector (groupDavResourceType)]) { - groupDavCollection = [NSArray arrayWithObjects: [self groupDavResourceType], - XMLNS_GROUPDAV, nil]; - rType = [NSArray arrayWithObjects: @"collection", groupDavCollection, nil]; + groupDavCollection + = [NSArray arrayWithObjects: [self groupDavResourceType], + XMLNS_GROUPDAV, nil]; + rType = [NSArray arrayWithObjects: @"collection", groupDavCollection, + nil]; } else rType = [NSArray arrayWithObject: @"collection"]; @@ -296,8 +298,8 @@ static NSString *defaultUserID = @""; name = [names objectAtIndex: i]; r = [name rangeOfString: @"."]; if (r.length == 0) - name = [[name stringByAppendingString:@"."] stringByAppendingString: ext]; - [ma addObject:name]; + name = [NSMutableString stringWithFormat: @"%@.%@", name, ext]; + [ma addObject: name]; } names = ma; @@ -530,19 +532,24 @@ static NSString *defaultUserID = @""; /* folder type */ -- (NSString *)outlookFolderClass { +- (NSString *) outlookFolderClass +{ + [self subclassResponsibility: _cmd]; + return nil; } /* description */ -- (void)appendAttributesToDescription:(NSMutableString *)_ms { +- (void) appendAttributesToDescription: (NSMutableString *) _ms +{ [super appendAttributesToDescription:_ms]; [_ms appendFormat:@" ocs=%@", [self ocsPath]]; } -- (NSString *)loggingPrefix { +- (NSString *) loggingPrefix +{ return [NSString stringWithFormat:@"<0x%08X[%@]:%@>", self, NSStringFromClass([self class]), [self nameInContainer]]; diff --git a/UI/MainUI/product.plist b/UI/MainUI/product.plist index c751208b..7582875f 100644 --- a/UI/MainUI/product.plist +++ b/UI/MainUI/product.plist @@ -41,7 +41,7 @@ protectedBy = "Access Object"; defaultRoles = { "Change Images And Files" = ( "Owner", "ObjectEditor" ); - "WebDAV Access" = ( "Owner", "ObjectViewer" ); + "WebDAV Access" = ( "Owner", "AuthorizedSubscriber" ); "Access Object" = ( "Owner", "ObjectViewer" ); "Access Contents Information" = ( "Owner", "ObjectViewer" ); }; diff --git a/UI/Scheduler/GNUmakefile b/UI/Scheduler/GNUmakefile index c03fc476..0089f139 100644 --- a/UI/Scheduler/GNUmakefile +++ b/UI/Scheduler/GNUmakefile @@ -25,7 +25,6 @@ SchedulerUI_OBJC_FILES = \ UIxCalMulticolumnDayView.m \ UIxCalWeekView.m \ UIxCalMonthView.m \ - UIxCalMonthViewOld.m \ UIxAptTableView.m \ \ UIxCalListingActions.m \ @@ -40,8 +39,9 @@ SchedulerUI_OBJC_FILES = \ UIxCalDateLabel.m \ UIxDatePicker.m \ UIxTimeDateControl.m \ - UIxCalParticipationStatusView.m \ - UIxCalMonthOverview.m + UIxCalParticipationStatusView.m \ + UIxCalMonthOverview.m \ + UIxCalMonthViewOld.m SchedulerUI_RESOURCE_FILES += \ Version \ diff --git a/UI/Scheduler/SchedulerUIProduct.m b/UI/Scheduler/SchedulerUIProduct.m index 62e7192e..bc34f84e 100644 --- a/UI/Scheduler/SchedulerUIProduct.m +++ b/UI/Scheduler/SchedulerUIProduct.m @@ -18,17 +18,11 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ #import @interface SchedulerUIProduct : NSObject -{ -} - @end -#include "common.h" - @implementation SchedulerUIProduct @end /* SchedulerUIProduct */ diff --git a/UI/Scheduler/UIxAppointmentProposal.m b/UI/Scheduler/UIxAppointmentProposal.m index f81d87eb..c8b65ac8 100644 --- a/UI/Scheduler/UIxAppointmentProposal.m +++ b/UI/Scheduler/UIxAppointmentProposal.m @@ -18,9 +18,18 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id: UIxAppointmentEditor.m 181 2004-08-11 15:13:25Z helge $ -#include +#import +#import +#import + +#import +#import +#import + +#import +#import +#import @interface UIxAppointmentProposal : UIxComponent { @@ -54,12 +63,6 @@ - (void)setICalPersons:(NSArray *)_ps asQueryParameter:(NSString *)_qp; @end -#include -#include -#include -#include -#include "common.h" - @implementation UIxAppointmentProposal - (void)dealloc { diff --git a/UI/Scheduler/UIxAptTableView.m b/UI/Scheduler/UIxAptTableView.m index 420c4df0..a634f925 100644 --- a/UI/Scheduler/UIxAptTableView.m +++ b/UI/Scheduler/UIxAptTableView.m @@ -18,9 +18,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ -#include +#import @class NSArray, NSCalendarDate; @@ -37,8 +36,6 @@ @end -#include "common.h" - @implementation UIxAptTableView - (void)dealloc { diff --git a/UI/Scheduler/UIxCalDateLabel.m b/UI/Scheduler/UIxCalDateLabel.m index 3160607b..9931a5c8 100644 --- a/UI/Scheduler/UIxCalDateLabel.m +++ b/UI/Scheduler/UIxCalDateLabel.m @@ -18,9 +18,13 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ -#include +#import + +#import +#import + +#import @interface UIxCalDateLabel : UIxComponent { @@ -36,9 +40,6 @@ @end -#include "common.h" -#include - @implementation UIxCalDateLabel - (void)dealloc { diff --git a/UI/Scheduler/UIxCalMonthOverview.h b/UI/Scheduler/UIxCalMonthOverview.h index 52c9b1ab..f265d43d 100644 --- a/UI/Scheduler/UIxCalMonthOverview.h +++ b/UI/Scheduler/UIxCalMonthOverview.h @@ -54,7 +54,7 @@ /* appointments */ -- (NSArray *)appointments; +// - (NSArray *)appointments; @end diff --git a/UI/Scheduler/UIxCalMonthOverview.m b/UI/Scheduler/UIxCalMonthOverview.m index f00893c7..5ab7be0d 100644 --- a/UI/Scheduler/UIxCalMonthOverview.m +++ b/UI/Scheduler/UIxCalMonthOverview.m @@ -1,8 +1,10 @@ -// $Id$ -#include "UIxCalMonthOverview.h" -#include "common.h" -#include +#import +#import + +#import + +#import "UIxCalMonthOverview.h" @implementation UIxCalMonthOverview @@ -96,8 +98,8 @@ /* appointments */ -- (NSArray *)appointments { - return [self fetchCoreAppointmentsInfos]; -} +// - (NSArray *)appointments { +// return [self fetchCoreAppointmentsInfos]; +// } @end /* UIxCalMonthOverview */ diff --git a/UI/Scheduler/UIxCalMonthView.h b/UI/Scheduler/UIxCalMonthView.h deleted file mode 100644 index 830c17ca..00000000 --- a/UI/Scheduler/UIxCalMonthView.h +++ /dev/null @@ -1,74 +0,0 @@ -/* UIxCalMonthView.h - this file is part of SOGo - * - * Copyright (C) 2006 Inverse groupe conseil - * - * Author: Wolfgang Sourdeau - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This file 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifndef UIXCALMONTHVIEW_H -#define UIXCALMONTHVIEW_H - -#import "UIxCalView.h" - -@class NSArray; -@class NSCalendarDate; -@class NSDictionary; -@class NSMutableDictionary; - -@class SOGoAptFormatter; -@class SOGoDateFormatter; - -@protocol WOActionResults; - -@interface UIxCalMonthView : UIxCalView -{ - SOGoAptFormatter *monthAptFormatter; - SOGoDateFormatter *dateFormatter; - - NSMutableDictionary *sortedAppointments; - NSArray *daysToDisplay; - NSCalendarDate *currentTableDay; - NSArray *currentTableColumn; - - NSArray *dayNames; - NSArray *monthNames; -} - -- (NSDictionary *) monthBeforePrevMonthQueryParameters; -- (NSDictionary *) prevMonthQueryParameters; -- (NSDictionary *) nextMonthQueryParameters; -- (NSDictionary *) monthAfterNextMonthQueryParameters; - -- (NSString *) monthNameOfTwoMonthAgo; -- (NSString *) monthNameOfOneMonthAgo; -- (NSString *) monthNameOfThisMonth; -- (NSString *) monthNameOfNextMonth; -- (NSString *) monthNameOfTheMonthAfterNextMonth; - -- (NSArray *) daysToDisplay; - -- (NSString *) labelForCurrentDayToDisplay; -- (NSString *) dayCellClasses; - -- (void) setCurrentTableDay: (NSCalendarDate *) newCurrentTableDay; -- (NSCalendarDate *) currentTableDay; -- (NSString *) labelForCurrentDayCell; - -@end - -#endif /* UIXCALMONTHVIEW_H */ diff --git a/UI/Scheduler/UIxCalMonthViewOld.m b/UI/Scheduler/UIxCalMonthViewOld.m index e681b638..292e98ca 100644 --- a/UI/Scheduler/UIxCalMonthViewOld.m +++ b/UI/Scheduler/UIxCalMonthViewOld.m @@ -1,8 +1,9 @@ -// $Id: UIxCalMonthView.m 191 2004-08-12 16:28:32Z helge $ +#import +#import -#include -#include "UIxCalMonthViewOld.h" -#include "common.h" +#import + +#import "UIxCalMonthViewOld.h" @implementation UIxCalMonthViewOld diff --git a/UI/Scheduler/UIxCalParticipationStatusView.m b/UI/Scheduler/UIxCalParticipationStatusView.m index 361edf6f..fc1c1ec4 100644 --- a/UI/Scheduler/UIxCalParticipationStatusView.m +++ b/UI/Scheduler/UIxCalParticipationStatusView.m @@ -18,9 +18,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ -#include +#import +#import @interface UIxCalParticipationStatusView : WOComponent { @@ -31,9 +31,6 @@ @end -#include /* for iCalPersonPartStat */ -#include "common.h" - @implementation UIxCalParticipationStatusView - (void)setPartStat:(id)_partStat { diff --git a/UI/Scheduler/UIxCalView.m b/UI/Scheduler/UIxCalView.m index 7db34e80..fd5b0f24 100644 --- a/UI/Scheduler/UIxCalView.m +++ b/UI/Scheduler/UIxCalView.m @@ -1,20 +1,23 @@ -// $Id$ -#import "common.h" //#import #import #import #import +#import +#import +#import +#import #import +#import +#import +#import +#import + #import -#import "UIxComponent+Scheduler.h" -#import "SoObjects/Appointments/SOGoAppointmentFolder.h" -#import -#import -#import +#import "UIxComponent+Scheduler.h" #import "UIxCalView.h" diff --git a/UI/Scheduler/UIxDatePicker.m b/UI/Scheduler/UIxDatePicker.m index dbcc15a8..82893b4c 100644 --- a/UI/Scheduler/UIxDatePicker.m +++ b/UI/Scheduler/UIxDatePicker.m @@ -19,7 +19,13 @@ 02111-1307, USA. */ -#include +#import +#import + +#import +#import +#import +#import @class NSString; @@ -33,14 +39,12 @@ BOOL isDisabled; } -- (NSString *)dateID; -- (NSString *)dateFormat; -- (NSString *)jsDateFormat; -- (BOOL)useISOFormats; +- (NSString *) dateID; +- (NSString *) dateFormat; +- (NSString *) jsDateFormat; +- (BOOL) useISOFormats; @end -#include "common.h" - @implementation UIxDatePicker - (id) init diff --git a/UI/Scheduler/UIxTaskProposal.m b/UI/Scheduler/UIxTaskProposal.m index bdd092d0..c472684b 100644 --- a/UI/Scheduler/UIxTaskProposal.m +++ b/UI/Scheduler/UIxTaskProposal.m @@ -20,7 +20,17 @@ */ // $Id: UIxTaskEditor.m 181 2004-08-11 15:13:25Z helge $ -#include +#import +#import +#import + +#import +#import +#import + +#import +#import +#import @interface UIxTaskProposal : UIxComponent { @@ -54,12 +64,6 @@ - (void)setICalPersons:(NSArray *)_ps asQueryParameter:(NSString *)_qp; @end -#include -#include -#include -#include -#include "common.h" - @implementation UIxTaskProposal - (void)dealloc { diff --git a/UI/Scheduler/common.h b/UI/Scheduler/common.h deleted file mode 100644 index f8c223d5..00000000 --- a/UI/Scheduler/common.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (C) 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. -*/ -// $Id$ - -#import - -#if LIB_FOUNDATION_LIBRARY -# import -#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY -# import -# import -#endif - -#import -#import -#import - -#warning importing common.h is baaad