~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to korganizer/printing/calprinter.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
      eOrientPortrait,
60
60
      eOrientLandscape
61
61
    };
 
62
 
62
63
  public:
63
64
    /**
64
65
      \param par parent widget for dialogs
65
66
      \param cal calendar to be printed
66
67
      \param helper is a pointer to the KOrg::CoreHelper object
 
68
      \param uniqItem if true, indicates the calendar print dialog will only
 
69
      provide the option to print an single incidence; else, all possible types
 
70
      of print types will be shown
67
71
    */
68
 
    CalPrinter( QWidget *par, CalendarSupport::Calendar *cal, KOrg::CoreHelper *helper, bool uniqItem = false );
 
72
    CalPrinter( QWidget *par, CalendarSupport::Calendar *cal,
 
73
                KOrg::CoreHelper *helper, bool uniqItem = false );
 
74
 
69
75
    virtual ~CalPrinter();
70
76
 
71
77
    void init( CalendarSupport::Calendar *calendar );
87
93
 
88
94
  public:
89
95
    void print( int type, const QDate &fd, const QDate &td,
90
 
                Incidence::List selectedIncidences = Incidence::List(), bool preview = false );
 
96
                Incidence::List selectedIncidences = Incidence::List(),
 
97
                bool preview = false );
91
98
 
92
99
    CalendarSupport::Calendar *calendar() const;
93
100
    KConfig *config() const;
107
114
{
108
115
  Q_OBJECT
109
116
  public:
110
 
    explicit CalPrintDialog( int initialPrintType, KOrg::PrintPlugin::List plugins, QWidget *parent = 0, bool mUniqItem = false );
 
117
    explicit CalPrintDialog( int initialPrintType, KOrg::PrintPlugin::List plugins,
 
118
                             QWidget *parent = 0, bool mUniqItem = false );
 
119
 
111
120
    virtual ~CalPrintDialog();
 
121
 
112
122
    KOrg::PrintPlugin *selectedPlugin();
113
123
    void setOrientation( CalPrinter::ePrintOrientation orientation );
114
 
    CalPrinter::ePrintOrientation orientation() { return mOrientation; }
 
124
    CalPrinter::ePrintOrientation orientation()
 
125
    {
 
126
      return mOrientation;
 
127
    }
115
128
 
116
129
  public Q_SLOTS:
117
130
    void setPrintType( int );