summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillaprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qextscintillaprinter.cpp')
-rw-r--r--qt/qextscintillaprinter.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/qt/qextscintillaprinter.cpp b/qt/qextscintillaprinter.cpp
index 1aadb2d..ec97032 100644
--- a/qt/qextscintillaprinter.cpp
+++ b/qt/qextscintillaprinter.cpp
@@ -3,35 +3,35 @@
// Copyright (c) 2006
// Riverbank Computing Limited <[email protected]>
//
-// This file is part of QScintilla.
+// This file is part of TQScintilla.
//
-// This copy of QScintilla is free software; you can redistribute it and/or
+// This copy of TQScintilla is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option) any
// later version.
//
-// QScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
+// TQScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// QScintilla; see the file LICENSE. If not, write to the Free Software
+// TQScintilla; see the file LICENSE. If not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <qprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qvaluestack.h>
+#include <tqprinter.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqvaluestack.h>
-#include "qextscintillaprinter.h"
-#include "qextscintillabase.h"
+#include "tqextscintillaprinter.h"
+#include "tqextscintillabase.h"
// The ctor.
-QextScintillaPrinter::QextScintillaPrinter(QPrinter::PrinterMode mode) :
- QPrinter(mode), mag(0),
+QextScintillaPrinter::QextScintillaPrinter(TQPrinter::PrinterMode mode) :
+ TQPrinter(mode), mag(0),
wrap(QextScintilla::WrapWord)
{
}
@@ -44,7 +44,7 @@ QextScintillaPrinter::~QextScintillaPrinter()
// Format the page before the document text is drawn.
-void QextScintillaPrinter::formatPage(QPainter &,bool,QRect &,int)
+void QextScintillaPrinter::formatPage(TQPainter &,bool,TQRect &,int)
{
}
@@ -57,8 +57,8 @@ int QextScintillaPrinter::printRange(QextScintillaBase *qsb,int from,int to)
return FALSE;
// Setup the printing area.
- QPaintDeviceMetrics metrics(this);
- QRect def_area;
+ TQPaintDeviceMetrics metrics(this);
+ TQRect def_area;
def_area.setX(0);
def_area.setY(0);
@@ -89,7 +89,7 @@ int QextScintillaPrinter::printRange(QextScintillaBase *qsb,int from,int to)
if (startPos >= endPos)
return FALSE;
- QPainter painter(this);
+ TQPainter painter(this);
bool reverse = (pageOrder() == LastPageFirst);
bool needNewPage = FALSE;
@@ -100,7 +100,7 @@ int QextScintillaPrinter::printRange(QextScintillaBase *qsb,int from,int to)
{
// If we are printing in reverse page order then remember the
// start position of each page.
- QValueStack<long> pageStarts;
+ TQValueStack<long> pageStarts;
int currPage = 1;
long pos = startPos;
@@ -133,7 +133,7 @@ int QextScintillaPrinter::printRange(QextScintillaBase *qsb,int from,int to)
}
}
- QRect area = def_area;
+ TQRect area = def_area;
formatPage(painter,render,area,currPage);
pos = qsb -> SendScintilla(QextScintillaBase::SCI_FORMATRANGE,render,&painter,area,pos,endPos);
@@ -161,7 +161,7 @@ int QextScintillaPrinter::printRange(QextScintillaBase *qsb,int from,int to)
else
needNewPage = TRUE;
- QRect area = def_area;
+ TQRect area = def_area;
formatPage(painter,TRUE,area,currPage);
qsb -> SendScintilla(QextScintillaBase::SCI_FORMATRANGE,TRUE,&painter,area,pos,ePos);