Bug 47764 - Selection of page orientation for printing
Summary: Selection of page orientation for printing
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR wishlist
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
: 62916 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-11 20:48 UTC by Janyne Kizer
Modified: 2003-09-29 17:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bugzilla Maintainers 2002-09-11 20:33:22 UTC
(*** 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
Comment 1 Cornelius Schumacher 2002-09-30 00:09:04 UTC
KOrganizer does not support different orientations for printing right now. Would 
be a nice feature, though. 
Comment 2 Reinhold Kainhofer 2003-08-19 09:35:50 UTC
*** Bug 62916 has been marked as a duplicate of this bug. ***
Comment 3 Reinhold Kainhofer 2003-09-29 17:00:44 UTC
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:
     /**