mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-13 19:03:18 +00:00
Merge pull request #36 from alexcloutier/feat/calendarPrint
New print option in Calendar module
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
"Create a new event" = "Create a new event";
|
||||
"Create a new task" = "Create a new task";
|
||||
"Edit this event or task" = "Edit this event or task";
|
||||
"Print the current calendar view" = "Print the current calendar view";
|
||||
"Delete this event or task" = "Delete this event or task";
|
||||
"Go to today" = "Go to today";
|
||||
"Switch to day view" = "Switch to day view";
|
||||
@@ -117,7 +118,7 @@
|
||||
"Name of the Calendar" = "Name of the Calendar";
|
||||
|
||||
"new" = "New";
|
||||
"printview" = "Print View";
|
||||
"Print view" = "Print view";
|
||||
"edit" = "Edit";
|
||||
"delete" = "Delete";
|
||||
"proposal" = "Proposal";
|
||||
@@ -145,6 +146,27 @@
|
||||
"Hide already accepted and rejected appointments" = "Hide already accepted and rejected appointments";
|
||||
"Show already accepted and rejected appointments" = "Show already accepted and rejected appointments";
|
||||
|
||||
/* Print view */
|
||||
"LIST" = "List";
|
||||
"Print Settings" = "Print Settings";
|
||||
"Title:" = "Title:";
|
||||
"Layout:" = "Layout:";
|
||||
"What to Print" = "What to Print";
|
||||
"Events" = "Events";
|
||||
"Tasks" = "Tasks";
|
||||
"Current view" = "Current View";
|
||||
"Selected events and tasks" = "Selected events and tasks";
|
||||
"Custom Date Range" = "Custom Date Range";
|
||||
"From:" = "From:";
|
||||
"To:" = "To:";
|
||||
"Options" = "Options";
|
||||
"Locale" = "Locale";
|
||||
"GMT" = "GMT";
|
||||
"Tasks with no due date" = "Tasks with no due date";
|
||||
"Completed tasks" = "Completed Tasks";
|
||||
"Display time:" = "Display Time:";
|
||||
"Calendar:" = "Calendar:";
|
||||
|
||||
|
||||
/* Appointments */
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ SchedulerUI_OBJC_FILES = \
|
||||
UIxCalFolderActions.m \
|
||||
\
|
||||
UIxCalView.m \
|
||||
UIxCalViewPrint.m \
|
||||
UIxCalDayView.m \
|
||||
UIxCalMulticolumnDayView.m \
|
||||
UIxCalWeekView.m \
|
||||
|
||||
@@ -37,6 +37,12 @@
|
||||
onclick = "return onMonthOverview();";
|
||||
image = "month-view.png";
|
||||
tooltip = "Switch to month view"; } ),
|
||||
( { link = "#";
|
||||
onclick = "return printView();";
|
||||
cssClass = "tbicon_print single-window-not-conditional";
|
||||
image = "tb-mail-print-flat-24x24.png";
|
||||
label = "Print view";
|
||||
tooltip = "Print the current calendar view"; } ),
|
||||
( { link = "#";
|
||||
label="Delete";
|
||||
onclick = "return deleteEvent(this);";
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* UIxCalViewPrint.h - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2006-2014 Inverse inc.
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <SOGoUI/UIxComponent.h>
|
||||
|
||||
@interface UIxCalViewPrint : UIxComponent
|
||||
{
|
||||
id item;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* UIxCalViewPrint.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2006-2014 Inverse inc.
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSArray.h>
|
||||
|
||||
#import <UIxCalViewPrint.h>
|
||||
|
||||
static NSArray *layoutItems = nil;
|
||||
|
||||
@implementation UIxCalViewPrint
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (!layoutItems)
|
||||
{
|
||||
layoutItems = [NSArray arrayWithObjects: @"LIST", @"Daily", @"Weekly", nil];
|
||||
[layoutItems retain];
|
||||
}
|
||||
|
||||
}
|
||||
- (id) init
|
||||
{
|
||||
item = nil;
|
||||
return [super init];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[item release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
/****************************************************************/
|
||||
/* Interfacing; populating the popup list for the print layouts */
|
||||
|
||||
- (void) setItem: (NSString *) newItem
|
||||
{
|
||||
ASSIGN (item, newItem);
|
||||
}
|
||||
|
||||
- (NSString *) item
|
||||
{
|
||||
return item;
|
||||
}
|
||||
|
||||
- (NSArray *) printLayoutList
|
||||
{
|
||||
return layoutItems;
|
||||
}
|
||||
|
||||
- (NSString *) itemPrintLayoutText
|
||||
{
|
||||
return [self labelForKey: [NSString stringWithFormat: item]];
|
||||
}
|
||||
|
||||
- (NSString *) layoutSelectedByUser
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
/******************************************************************/
|
||||
/* */
|
||||
|
||||
@end
|
||||
@@ -40,6 +40,11 @@
|
||||
protectedBy = "View";
|
||||
pageName = "UIxCalMainView";
|
||||
};
|
||||
printView = {
|
||||
protectedBy = "<public>";
|
||||
pageName = "UIxCalViewPrint";
|
||||
actionClass = "UIxCalViewPrint";
|
||||
};
|
||||
addWebCalendar = {
|
||||
protectedBy = "View";
|
||||
actionClass = "UIxCalMainActions";
|
||||
|
||||
Reference in New Issue
Block a user