2000-06-02 Federico Mena Quintero <federico@helixcode.com> * gui/calendar-commands.c (print): New function to call the print engine. (calendar_toolbar): Added the Print button. (calendar_control_activate): Added the File/Print item. * gui/e-day-view.c (e_day_view_get_selected_time_range): Allow start_time and end_time to be NULL. * gui/e-week-view.c (e_week_view_get_selected_time_range): Likewise. * gui/print.c (range_selector_new): Show the range selector widgets. Use the correct radio group for all of them! (print_calendar): Do the dialog box here. We may want to split this function later into smaller chunks. svn path=/trunk/; revision=3409
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
/* Evolution calendar - Print support
|
||
*
|
||
* Copyright (C) 2000 Helix Code, Inc.
|
||
*
|
||
* Authors: Michael Zucchi <notzed@helixcode.com>
|
||
* Federico Mena-Quintero <federico@helixcode.com>
|
||
*
|
||
* This program 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 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program 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; if not, write to the Free Software
|
||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||
*/
|
||
|
||
#ifndef PRINT_H
|
||
#define PRINT_H
|
||
|
||
#include "gnome-cal.h"
|
||
|
||
|
||
|
||
typedef enum {
|
||
PRINT_VIEW_DAY,
|
||
PRINT_VIEW_WEEK,
|
||
PRINT_VIEW_MONTH,
|
||
PRINT_VIEW_YEAR
|
||
} PrintView;
|
||
|
||
void print_calendar (GnomeCalendar *gcal, gboolean preview, time_t at, PrintView default_view);
|
||
|
||
|
||
|
||
#endif
|