(*** This bug was imported into bugs.kde.org ***) package: korganizer version: 2.2.2-2 I am having a problem with KOrganizer always printing in portrait. The calendar needs to be on landscape so it ends up not filling the page properly. If I select landscape it still comes out portrait although it looks right in the preview. -- Janyne Kizer CNE-3 CNE-4 CNE-5 Systems Programmer Administrator NC State University College of Agriculture & Life Sciences Extension Information Technology
KOrganizer does not support different orientations for printing right now. Would be a nice feature, though.
*** Bug 62916 has been marked as a duplicate of this bug. ***
Subject: kdepim/korganizer CVS commit by kainhofe: The page orientation can now be selected in KOrganizer's print dialog. The following settings are available: Landscape, Portrait, the currently selected orienation of the printer, and the default orientation suggested by the selected print plugin (e.g. month in landscape, day or todo in portrait). CCMAIL: 47764-done@bugs.kde.org M +2 -14 calprinter.cpp 1.116 M +1 -1 calprinter.h 1.42 --- kdepim/korganizer/calprinter.cpp #1.115:1.116 @@ -143,5 +143,5 @@ void CalPrinter::doPrint( CalPrintBase * mPrinter->setPreviewOnly( preview ); if ( mPrinter->setup( mParent, i18n("Print Calendar") ) ) { - switch ( mPrintOrientation ) { + switch ( mPrintDialog->orientation() ) { case eOrientPlugin: mPrinter->setOrientation( selectedStyle->orientation()); @@ -149,8 +149,6 @@ void CalPrinter::doPrint( CalPrintBase * case eOrientPortrait: mPrinter->setOrientation( KPrinter::Portrait ); -kdDebug(5850)<<"Portrait"<<endl; break; case eOrientLandscape: -kdDebug(5850)<<"Landscape"<<endl; mPrinter->setOrientation( KPrinter::Landscape ); break; @@ -159,13 +157,4 @@ kdDebug(5850)<<"Landscape"<<endl; break; } -kdDebug(5850)<<"mPrintOrientation="<<mPrintOrientation<<endl; -kdDebug(5850)<<"mPrinter->orientation()="<<mPrinter->orientation()<<endl; -kdDebug(5850)<<"OrientPlugin: "<<eOrientPlugin<<endl; -kdDebug(5850)<<"eOrientPortrait: "<<eOrientPortrait<<endl; -kdDebug(5850)<<"eOrientLandscape: "<<eOrientLandscape<<endl; -kdDebug(5850)<<"eOrientPrinter: "<<eOrientPrinter<<endl; -kdDebug(5850)<<endl; -kdDebug(5850)<<"KPrinter::Portrait="<<KPrinter::Portrait<<endl; -kdDebug(5850)<<"KPrinter::Landscape="<<KPrinter::Landscape<<endl; selectedStyle->doPrint(); } @@ -221,6 +210,6 @@ CalPrintDialog::CalPrintDialog( QPtrList mOrientationSelection = new QComboBox( splitterRight, "orientationCombo" ); + mOrientationSelection->insertItem( i18n("Use default of selected style") ); mOrientationSelection->insertItem( i18n("Use default setting of printer") ); - mOrientationSelection->insertItem( i18n("Use default setting of print style") ); mOrientationSelection->insertItem( i18n("Portrait") ); mOrientationSelection->insertItem( i18n("Landscape") ); @@ -299,5 +288,4 @@ void CalPrintDialog::slotOk() { mOrientation = (CalPrinter::ePrintOrientation)mOrientationSelection->currentItem(); -kdDebug(5850)<<"Printer::orientation()="<<mOrientation<<endl; KDialogBase::slotOk(); } --- kdepim/korganizer/calprinter.h #1.41:1.42 @@ -63,5 +63,5 @@ class CalPrinter : public QObject, publi eOrientPortrait, eOrientLandscape - } mPrintOrientation; + }; public: /**