[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kdvi
From: Stefan Kebekus <stefan.kebekus () uni-bayreuth ! de>
Date: 2005-03-12 13:37:13
Message-ID: 20050312133713.BB8A217B90 () office ! kde ! org
[Download RAW message or body]
CVS commit by kebekus:
changed API for printing
M +5 -5 kdvi_multipage.cpp 1.174
M +1 -1 kdvi_multipage.h 1.64
--- kdegraphics/kdvi/kdvi_multipage.cpp #1.173:1.174
@@ -232,5 +232,5 @@ void KDVIMultiPage::preferencesChanged()
-bool KDVIMultiPage::print(const QStringList &pages, int current)
+void KDVIMultiPage::print(const QStringList &pages, int current)
{
// Make sure the KPrinter is available
@@ -239,5 +239,5 @@ bool KDVIMultiPage::print(const QStringL
if (printer == 0) {
kdError(4300) << "Could not allocate printer structure" << endl;
- return false;
+ return;
}
}
@@ -291,5 +291,5 @@ bool KDVIMultiPage::print(const QStringL
// Show the printer options requestor
if (!printer->setup(scrollView(), i18n("Print %1").arg(m_file.section('/', -1))))
- return false;
+ return;
// This funny method call is necessary for the KPrinter to return
// proper results in printer->orientation() below. It seems that
@@ -301,5 +301,5 @@ bool KDVIMultiPage::print(const QStringL
"Maybe you made an error in selecting the pages, "
"e.g. by giving an invalid range like '7-2'.") );
- return false;
+ return;
}
@@ -441,5 +441,5 @@ bool KDVIMultiPage::print(const QStringL
// concurrently, there is no way of telling the result of the
// printing command at this stage.
- return true;
+ return;
}
--- kdegraphics/kdvi/kdvi_multipage.h #1.63:1.64
@@ -25,5 +25,5 @@ public:
virtual void setFile(bool r);
- virtual bool print(const QStringList &pages, int current);
+ virtual void print(const QStringList &pages, int current);
/// KDVI offers read- and write functionality must re-implement this
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic