[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Mon Feb 12 21:14:32 CET 2007
SVN commit 632970 by arwalker:
remove const
M +6 -6 kstviewwindow.cpp
M +1 -1 kstviewwindow.h
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewwindow.cpp #632969:632970
@@ -256,7 +256,7 @@
}
right = ( 72 * size.height() ) / resolution;
bottom = ( 72 * size.width() ) / resolution;
-
+
printer.setMargins(0, 0, 0, 0);
printer.setResolution(resolution);
printer.setPageSize(QPrinter::Letter);
@@ -275,7 +275,7 @@
}
//
- // now try to open the ps file and convert it to an eps...
+ // now try to open the .ps file and convert it to an .eps...
//
QFile filePS(filenameNew);
QFile fileEPS(filenameNewEps);
@@ -285,17 +285,17 @@
if (fileEPS.open(IO_WriteOnly | IO_Truncate)) {
QTextStream streamPS(&filePS);
QTextStream streamEPS(&fileEPS);
-
+
line = streamPS.readLine();
if (line.startsWith("%!PS-Adobe-")) {
//
- // we have a ps file, so do the conversion...
+ // we have a .ps file, so do the conversion...
//
streamEPS << "%!PS-Adobe-2.0 EPSF-2.0\n";
line = streamPS.readLine();
if (line.startsWith("%%BoundingBox:")) {
- streamEPS << "%%BoundingBox: 0 0 " << right << " " << bottom << "\n";
+ streamEPS << "%%BoundingBox: 0 0 " << right << " " << bottom << "\n";
} else {
streamEPS << line << "\n";
}
@@ -314,7 +314,7 @@
}
-void KstViewWindow::print(KstPainter& paint, const QSize& size, int pages, int lineAdjust, bool monochrome, bool enhanceReadability, bool datetimeFooter, bool maintainAspectRatio, int pointStyleOrder, int lineStyleOrder, int lineWidthOrder, int maxLineWidth, int pointDensity) {
+void KstViewWindow::print(KstPainter& paint, QSize& size, int pages, int lineAdjust, bool monochrome, bool enhanceReadability, bool datetimeFooter, bool maintainAspectRatio, int pointStyleOrder, int lineStyleOrder, int lineWidthOrder, int maxLineWidth, int pointDensity) {
KstTopLevelViewPtr tlv = kst_cast<KstTopLevelView>(view());
if (tlv) {
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewwindow.h #632969:632970
@@ -50,7 +50,7 @@
void setPaused(bool paused);
void togglePaused();
void save(QTextStream& ts, const QString& indent = QString::null);
- void print( KstPainter& paint, const QSize& size, int pages, int lineAdjust, bool monochrome, bool enhanceReadability, bool dateTimeFooter, bool maintainAspectRatio, int pointStyleOrder, int lineStyleOrder, int lineWidthOrder, int maxLineWidth, int pointDensity );
+ void print( KstPainter& paint, QSize& size, int pages, int lineAdjust, bool monochrome, bool enhanceReadability, bool dateTimeFooter, bool maintainAspectRatio, int pointStyleOrder, int lineStyleOrder, int lineWidthOrder, int maxLineWidth, int pointDensity );
KstTopLevelViewPtr view() const;
virtual void setCaption(const QString& szCaption);
More information about the Kst
mailing list