summaryrefslogtreecommitdiffstats
path: root/filters/olefilters
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /filters/olefilters
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filters/olefilters')
-rw-r--r--filters/olefilters/lib/filterbase.cc30
-rw-r--r--filters/olefilters/lib/filterbase.h69
-rw-r--r--filters/olefilters/lib/klaola.cc66
-rw-r--r--filters/olefilters/lib/klaola.h32
-rw-r--r--filters/olefilters/lib/myfile.h6
-rw-r--r--filters/olefilters/olefilter.cc160
-rw-r--r--filters/olefilters/olefilter.h63
-rw-r--r--filters/olefilters/powerpoint97/powerpoint.cc368
-rw-r--r--filters/olefilters/powerpoint97/powerpoint.h392
-rw-r--r--filters/olefilters/powerpoint97/powerpointfilter.cc16
-rw-r--r--filters/olefilters/powerpoint97/powerpointfilter.h3
-rw-r--r--filters/olefilters/powerpoint97/pptSlide.cpp18
-rw-r--r--filters/olefilters/powerpoint97/pptSlide.h44
-rw-r--r--filters/olefilters/powerpoint97/pptdoc.cc6
-rw-r--r--filters/olefilters/powerpoint97/pptdoc.h8
-rw-r--r--filters/olefilters/powerpoint97/pptxml.cc114
-rw-r--r--filters/olefilters/powerpoint97/pptxml.h45
17 files changed, 722 insertions, 718 deletions
diff --git a/filters/olefilters/lib/filterbase.cc b/filters/olefilters/lib/filterbase.cc
index b1ec9c32b..523a0348e 100644
--- a/filters/olefilters/lib/filterbase.cc
+++ b/filters/olefilters/lib/filterbase.cc
@@ -19,37 +19,37 @@
#include <filterbase.h>
-FilterBase::FilterBase() : QObject() {
+FilterBase::FilterBase() : TQObject() {
m_success=true;
m_ready=false;
}
-FilterBase::FilterBase(QStringList &oleStreams) : QObject() {
+FilterBase::FilterBase(TQStringList &oleStreams) : TQObject() {
FilterBase();
m_oleStreams = oleStreams;
}
bool FilterBase::filter() {
- QString newstr;
+ TQString newstr;
// Page sizes, margins etc. all in points.
const unsigned height = 841; // Height.
const unsigned width = 595; // Width.
- const unsigned hMargin = 28; // Horizontal margin.
- const unsigned vMargin = 42; // Vertical margin.
+ const unsigned hMargin = 28; //Qt::Horizontal margin.
+ const unsigned vMargin = 42; //Qt::Vertical margin.
- newstr = QString("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE DOC >\n"
+ newstr = TQString("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE DOC >\n"
"<DOC author=\"Reginald Stadlbauer and Torben Weis\" email=\"reggie@kde.org and weis@kde.org\" editor=\"KWord\" mime=\"application/x-kword\">\n"
" <PAPER format=\"1\" ptWidth=\"595\" ptHeight=\"841\" mmWidth =\"210\" mmHeight=\"297\" inchWidth =\"8.26772\" inchHeight=\"11.6929\" orientation=\"0\" columns=\"1\" ptColumnspc=\"2\" mmColumnspc=\"1\" inchColumnspc=\"0.0393701\" hType=\"0\" fType=\"0\" ptHeadBody=\"9\" ptFootBody=\"9\" mmHeadBody=\"3.5\" mmFootBody=\"3.5\" inchHeadBody=\"0.137795\" inchFootBody=\"0.137795\">\n"
" <PAPERBORDERS mmLeft=\"10\" mmTop=\"15\" mmRight=\"10\" mmBottom=\"15\" ptLeft=\"");
- newstr.append(QString::number(hMargin));
+ newstr.append(TQString::number(hMargin));
newstr.append("\" ptTop=\"");
- newstr.append(QString::number(vMargin));
+ newstr.append(TQString::number(vMargin));
newstr.append("\" ptRight=\"");
- newstr.append(QString::number(hMargin));
+ newstr.append(TQString::number(hMargin));
newstr.append("\" ptBottom=\"");
- newstr.append(QString::number(vMargin));
+ newstr.append(TQString::number(vMargin));
newstr.append("\" inchLeft=\"0.393701\" inchTop=\"0.590551\" inchRight=\"0.393701\" inchBottom=\"0.590551\"/>\n"
" </PAPER>\n"
" <ATTRIBUTES processing=\"0\" standardpage=\"1\" hasHeader=\"0\" hasFooter=\"0\" unit=\"mm\"/>\n"
@@ -62,13 +62,13 @@ bool FilterBase::filter() {
newstr.append(
" <FRAMESET frameType=\"1\" frameInfo=\"0\" removeable=\"0\" visible=\"1\">\n"
" <FRAME left=\"");
- newstr.append(QString::number(hMargin));
+ newstr.append(TQString::number(hMargin));
newstr.append("\" top=\"");
- newstr.append(QString::number(vMargin));
+ newstr.append(TQString::number(vMargin));
newstr.append("\" right=\"");
- newstr.append(QString::number(width - hMargin));
+ newstr.append(TQString::number(width - hMargin));
newstr.append("\" bottom=\"");
- newstr.append(QString::number(height - vMargin));
+ newstr.append(TQString::number(height - vMargin));
newstr.append("\" runaround=\"1\" runaGapPT=\"2\" runaGapMM=\"1\" runaGapINCH=\"0.0393701\" lWidth=\"1\" lRed=\"255\" lGreen=\"255\" lBlue=\"255\" lStyle=\"0\" rWidth=\"1\" rRed=\"255\" rGreen=\"255\" rBlue=\"255\" rStyle=\"0\" tWidth=\"1\" tRed=\"255\" tGreen=\"255\" tBlue=\"255\" tStyle=\"0\" bWidth=\"1\" bRed=\"255\" bGreen=\"255\" bBlue=\"255\" bStyle=\"0\" bkRed=\"255\" bkGreen=\"255\" bkBlue=\"255\" bleftpt=\"0\" bleftmm=\"0\" bleftinch=\"0\" brightpt=\"0\" brightmm=\"0\" brightinch=\"0\" btoppt=\"0\" btopmm=\"0\" btopinch=\"0\" bbottompt=\"0\" bbottommm=\"0\" bbottominch=\"0");
newstr.append("\" autoCreateNewFrame=\"1\" newFrameBehaviour=\"0\"/>\n"
" <PARAGRAPH>\n"
@@ -81,7 +81,7 @@ bool FilterBase::filter() {
newstr.append(
" </FRAMESETS>\n"
"</DOC>\n");
- m_part=QDomDocument("doc");
+ m_part=TQDomDocument("doc");
m_part.setContent(newstr);
m_success=true;
m_ready=true;
diff --git a/filters/olefilters/lib/filterbase.h b/filters/olefilters/lib/filterbase.h
index 942c3836f..138842a00 100644
--- a/filters/olefilters/lib/filterbase.h
+++ b/filters/olefilters/lib/filterbase.h
@@ -25,20 +25,21 @@
#ifndef FILTERBASE_H
#define FILTERBASE_H
-#include <qobject.h>
-#include <qdom.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqdom.h>
+#include <tqstringlist.h>
class myFile;
-class QCString;
+class TQCString;
// Attention: The nameOUT Strings are allocated with new[] in the
// slots. Therefore you have to delete [] them!
// If you call slotGetStream you have to delete [] the
// stream.data prt after use!
-class FilterBase : public QObject {
+class FilterBase : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
@@ -47,63 +48,63 @@ public:
// This filter only ever gets used in error cases, when we could not find a
// real filter. So, pass in the names of the OLE streams making up the item
// item that could not be converted.
- FilterBase(QStringList &oleStreams);
+ FilterBase(TQStringList &oleStreams);
virtual ~FilterBase() {}
// Manages the filtering process
virtual bool filter();
- // override this to return true if you want to return a plain QCString
+ // override this to return true if you want to return a plain TQCString
virtual bool plainString() const { return false; }
- // okay -- let's get the QDomDocument
- virtual const QDomDocument *const part() { return &m_part; }
- // or get the plain QCString ;)
- virtual QCString CString() const { return QCString(); }
+ // okay -- let's get the TQDomDocument
+ virtual const TQDomDocument *const part() { return &m_part; }
+ // or get the plain TQCString ;)
+ virtual TQCString CString() const { return TQCString(); }
signals:
// See olefilter.h for information
void signalSaveDocumentInformation(
- const QString &fullName,
- const QString &title,
- const QString &company,
- const QString &email,
- const QString &telephone,
- const QString &fax,
- const QString &postalCode,
- const QString &country,
- const QString &city,
- const QString &street,
- const QString &docTitle,
- const QString &docAbstract);
+ const TQString &fullName,
+ const TQString &title,
+ const TQString &company,
+ const TQString &email,
+ const TQString &telephone,
+ const TQString &fax,
+ const TQString &postalCode,
+ const TQString &country,
+ const TQString &city,
+ const TQString &street,
+ const TQString &docTitle,
+ const TQString &docAbstract);
void signalSavePic(
- const QString &nameIN,
- QString &storageId,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ const TQString &extension,
unsigned int length,
const char *data);
void signalSavePart(
- const QString &nameIN,
- QString &storageId,
- QString &mimeType,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ TQString &mimeType,
+ const TQString &extension,
unsigned int length,
const char *data);
- void signalPart(const QString& nameIN, QString &storageId, QString &mimeType);
+ void signalPart(const TQString& nameIN, TQString &storageId, TQString &mimeType);
void signalGetStream(const int &handle, myFile &stream);
// Note: might return wrong stream as names are NOT unique!!!
// (searching only in current dir)
- void signalGetStream(const QString &name, myFile &stream);
+ void signalGetStream(const TQString &name, myFile &stream);
void sigProgress(int value);
protected:
bool m_success; // ok, the filtering process was successful
bool m_ready; // filtering took place, you may fetch the file now
- QDomDocument m_part; // this represents the part (document)
+ TQDomDocument m_part; // this represents the part (document)
private:
// Don't copy or assign me...
FilterBase(const FilterBase &);
const FilterBase &operator=(const FilterBase &);
- QStringList m_oleStreams;
+ TQStringList m_oleStreams;
};
#endif // FILTERBASE_H
diff --git a/filters/olefilters/lib/klaola.cc b/filters/olefilters/lib/klaola.cc
index 69d5284eb..7db5d815f 100644
--- a/filters/olefilters/lib/klaola.cc
+++ b/filters/olefilters/lib/klaola.cc
@@ -81,10 +81,10 @@ void KLaola::createTree(const int handle, const short index) {
tree->node=node;
tree->subtree=-1;
- //QString nix="### entering create tree: handle=";
- //nix+=QString::number(handle);
+ //TQString nix="### entering create tree: handle=";
+ //nix+=TQString::number(handle);
//nix+=" index=";
- //nix+=QString::number(index);
+ //nix+=TQString::number(index);
//kdDebug(s_area) << nix << endl;
if(node->prevHandle!=-1) {
@@ -130,7 +130,7 @@ bool KLaola::enterDir(const OLENode *dirHandle) {
return false;
}
-const KLaola::NodeList KLaola::find(const QString &name, bool onlyCurrentDir) {
+const KLaola::NodeList KLaola::tqfind(const TQString &name, bool onlyCurrentDir) {
OLENode *node;
NodeList ret;
@@ -189,7 +189,7 @@ int KLaola::nextSmallBlock(int pos) const
bool KLaola::parseHeader() {
- if(qstrncmp((const char*)m_file.data,"\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1",8 )!=0) {
+ if(tqstrncmp((const char*)m_file.data,"\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1",8 )!=0) {
kdError(s_area) << "KLaola::parseHeader(): Invalid file format (unexpected id in header)!" << endl;
return false;
}
@@ -406,7 +406,7 @@ void KLaola::readPPSEntry(int pos, const int handle) {
// Get the rest of the name.
for (; i < (nameSize / 2) - 1; ++i)
{
- QChar tmp;
+ TQChar tmp;
tmp = read16(pos + 2 * i);
node->m_name += tmp;
@@ -451,7 +451,7 @@ myFile KLaola::stream(unsigned handle) {
return stream(node);
}
-void KLaola::testIt(QString prefix)
+void KLaola::testIt(TQString prefix)
{
NodeList nodes;
@@ -470,16 +470,16 @@ void KLaola::testIt(QString prefix)
}
// Return a human-readable description of a stream.
-QString KLaola::Node::describe() const
+TQString KLaola::Node::describe() const
{
- QString description;
+ TQString description;
myFile file;
unsigned i;
- description = QString::number(m_handle) + " " +
+ description = TQString::number(m_handle) + " " +
m_name + "(" +
- QString::number(sb) + " " +
- QString::number(size) + " bytes)";
+ TQString::number(sb) + " " +
+ TQString::number(size) + " bytes)";
if (isDirectory())
description += ", directory";
switch (m_prefix)
@@ -494,13 +494,13 @@ QString KLaola::Node::describe() const
description += ", ";
for (i = 16; i < file.length; i++)
{
- description += QString::number((file.data[i] >> 4) & 0xf, 16);
- description += QString::number(file.data[i] & 0xf, 16);
+ description += TQString::number((file.data[i] >> 4) & 0xf, 16);
+ description += TQString::number(file.data[i] & 0xf, 16);
}
description += ", ";
for (i = 16; i < file.length; i++)
{
- QChar tmp = file.data[i];
+ TQChar tmp = file.data[i];
if (tmp.isPrint())
description += tmp;
@@ -512,68 +512,68 @@ QString KLaola::Node::describe() const
description += ", OLE_2";
break;
case PARENT_MANAGED:
- description += ", parent managed";
+ description += ", tqparent managed";
break;
case STRUCTURED_STORAGE:
- description += ", reserved 0x" + QString::number(m_prefix, 16);
+ description += ", reserved 0x" + TQString::number(m_prefix, 16);
break;
case NONE:
break;
default:
- description += ", reserved 0x" + QString::number(m_prefix, 16);
+ description += ", reserved 0x" + TQString::number(m_prefix, 16);
break;
}
return description;
}
-QString KLaola::Node::name() const
+TQString KLaola::Node::name() const
{
return m_name;
}
// See "Associating Code with Storage" in Inside OLE.
-QString KLaola::Node::readClassStream() const
+TQString KLaola::Node::readClassStream() const
{
if (isDirectory())
- return QString::null;
+ return TQString();
if (m_prefix == CLSID)
{
myFile file;
unsigned i;
- QString clsid;
+ TQString clsid;
// CLSID format is: 00020900-0000-0000-C000-000000000046
file = m_laola->stream(this);
for (i = 0; i < 4; i++)
{
- clsid += QString::number((file.data[i] >> 4) & 0xf, 16);
- clsid += QString::number(file.data[i] & 0xf, 16);
+ clsid += TQString::number((file.data[i] >> 4) & 0xf, 16);
+ clsid += TQString::number(file.data[i] & 0xf, 16);
}
clsid += '-';
for (; i < 6; i++)
{
- clsid += QString::number((file.data[i] >> 4) & 0xf, 16);
- clsid += QString::number(file.data[i] & 0xf, 16);
+ clsid += TQString::number((file.data[i] >> 4) & 0xf, 16);
+ clsid += TQString::number(file.data[i] & 0xf, 16);
}
clsid += '-';
for (; i < 8; i++)
{
- clsid += QString::number((file.data[i] >> 4) & 0xf, 16);
- clsid += QString::number(file.data[i] & 0xf, 16);
+ clsid += TQString::number((file.data[i] >> 4) & 0xf, 16);
+ clsid += TQString::number(file.data[i] & 0xf, 16);
}
clsid += '-';
for (; i < 10; i++)
{
- clsid += QString::number((file.data[i] >> 4) & 0xf, 16);
- clsid += QString::number(file.data[i] & 0xf, 16);
+ clsid += TQString::number((file.data[i] >> 4) & 0xf, 16);
+ clsid += TQString::number(file.data[i] & 0xf, 16);
}
clsid += '-';
for (; i < 16; i++)
{
- clsid += QString::number((file.data[i] >> 4) & 0xf, 16);
- clsid += QString::number(file.data[i] & 0xf, 16);
+ clsid += TQString::number((file.data[i] >> 4) & 0xf, 16);
+ clsid += TQString::number(file.data[i] & 0xf, 16);
}
return clsid;
}
- return QString::null;
+ return TQString();
}
diff --git a/filters/olefilters/lib/klaola.h b/filters/olefilters/lib/klaola.h
index 816a76667..b292716ff 100644
--- a/filters/olefilters/lib/klaola.h
+++ b/filters/olefilters/lib/klaola.h
@@ -28,8 +28,8 @@ DESCRIPTION
#define KLAOLA_H
#include <myfile.h>
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
class KLaola {
@@ -45,7 +45,7 @@ public:
public:
virtual ~OLENode() {};
virtual unsigned handle() const = 0;
- virtual QString name() const = 0;
+ virtual TQString name() const = 0;
// Does the node represent a stream datum, or a storage container
// of data?
@@ -53,27 +53,27 @@ public:
// If isDirectory() is true, return the CLSID associated with
// any child CompObj node. If the Node is a CompObj, return
- // its CLSID. Otherwise return QString::null.
+ // its CLSID. Otherwise return TQString().
//
// The CLSID is returned in the form:
//
// 00020900-0000-0000-C000-000000000046
//
- virtual QString readClassStream() const = 0;
+ virtual TQString readClassStream() const = 0;
// Return a human-readable description of a stream.
- virtual QString describe() const = 0;
+ virtual TQString describe() const = 0;
protected:
OLENode() {}
};
// Wade through the "file system"
- typedef QPtrList<OLENode> NodeList;
+ typedef TQPtrList<OLENode> NodeList;
NodeList parseRootDir();
NodeList parseCurrentDir();
const NodeList currentPath() const;
- const NodeList find(const QString &name, bool onlyCurrentDir=false);
+ const NodeList tqfind(const TQString &name, bool onlyCurrentDir=false);
bool enterDir(const OLENode *node);
bool leaveDir();
@@ -107,7 +107,7 @@ private:
// Dump the parsed structure info (similar to "lls"
// of the LAOLA-project).
- void testIt(QString prefix = "");
+ void testIt(TQString prefix = "");
public:
typedef enum
@@ -124,7 +124,7 @@ public:
CLSID,
OLE_MANAGED_2,
PARENT_MANAGED, // Marks an element as owned by the code that
- // manages the parent storage of that element.
+ // manages the tqparent storage of that element.
STRUCTURED_STORAGE, // For the exclusive use of the Structured Storage
// implementation.
RESERVED_FIRST,
@@ -137,15 +137,15 @@ public:
Node(KLaola *laola) { m_laola = laola; }
~Node() {}
unsigned handle() const { return m_handle; }
- QString name() const;
+ TQString name() const;
bool isDirectory() const { return (type == DIRECTORY) || (type == ROOT_ENTRY); }
- QString readClassStream() const;
- QString describe() const;
+ TQString readClassStream() const;
+ TQString describe() const;
KLaola *m_laola;
unsigned m_handle; // PPS entry number
Prefix m_prefix;
- QString m_name;
+ TQString m_name;
NodeType type;
int prevHandle; // Last pps
int nextHandle; // Next pps
@@ -173,8 +173,8 @@ private:
Node *node;
short subtree;
};
- typedef QPtrList<TreeNode> SubTree;
- QPtrList<SubTree> m_nodeTree;
+ typedef TQPtrList<TreeNode> SubTree;
+ TQPtrList<SubTree> m_nodeTree;
bool ok; // is the file OK?
diff --git a/filters/olefilters/lib/myfile.h b/filters/olefilters/lib/myfile.h
index 7be578b35..22d352833 100644
--- a/filters/olefilters/lib/myfile.h
+++ b/filters/olefilters/lib/myfile.h
@@ -25,9 +25,9 @@ DESCRIPTION
#ifndef MYFILE_H
#define MYFILE_H
-#include <qcstring.h>
+#include <tqcstring.h>
-class myFile: public QByteArray
+class myFile: public TQByteArray
{
public:
myFile() { data = 0L; length = 0; }
@@ -43,7 +43,7 @@ public:
{
this->data = data;
this->length = length;
- QByteArray::setRawData((const char *)data, length);
+ TQByteArray::setRawData((const char *)data, length);
}
};
#endif // MYFILE_H
diff --git a/filters/olefilters/olefilter.cc b/filters/olefilters/olefilter.cc
index 3d671ecbf..ff40cd72e 100644
--- a/filters/olefilters/olefilter.cc
+++ b/filters/olefilters/olefilter.cc
@@ -19,13 +19,13 @@
DESCRIPTION
When reading, the point of this module is toperform a depth-first traversal
- of an OLE file. This ensures that a parent object is processed only after
+ of an OLE file. This ensures that a tqparent object is processed only after
its child objects have been processed.
*/
#include <olefilter.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <ktempfile.h>
#include <kgenericfactory.h>
#include <kmimetype.h>
@@ -55,7 +55,7 @@ protected:
K_EXPORT_COMPONENT_FACTORY( libolefilter, OLEFilterFactory() )
-OLEFilter::OLEFilter(KoFilter *, const char *, const QStringList&) :
+OLEFilter::OLEFilter(KoFilter *, const char *, const TQStringList&) :
KoEmbeddingFilter(), numPic( 0 ),
docfile( 0 ), m_embeddeeData( 0 ),
m_embeddeeLength( 0 ), success( true )
@@ -69,7 +69,7 @@ OLEFilter::~OLEFilter()
delete docfile;
}
-KoFilter::ConversionStatus OLEFilter::convert( const QCString& from, const QCString& to )
+KoFilter::ConversiontqStatus OLEFilter::convert( const TQCString& from, const TQCString& to )
{
if(to!="application/x-kword" &&
to!="application/x-kspread" &&
@@ -83,7 +83,7 @@ KoFilter::ConversionStatus OLEFilter::convert( const QCString& from, const QCStr
from!="application/x-hancomword")
return KoFilter::NotImplemented;
- QFile in(m_chain->inputFile());
+ TQFile in(m_chain->inputFile());
if(!in.open(IO_ReadOnly)) {
kdError(s_area) << "OLEFilter::filter(): Unable to open input" << endl;
in.close();
@@ -118,16 +118,16 @@ void OLEFilter::commSlotDelayStream( const char* delay )
emit internalCommDelayStream( delay );
}
-void OLEFilter::commSlotShapeID( unsigned int& shapeID )
+void OLEFilter::commSlotShapeID( unsigned int& tqshapeID )
{
- emit internalCommShapeID( shapeID );
+ emit internalCommShapeID( tqshapeID );
}
void OLEFilter::slotSavePart(
- const QString &nameIN,
- QString &storageId,
- QString &mimeType,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ TQString &mimeType,
+ const TQString &extension,
unsigned int length,
const char *data)
{
@@ -140,7 +140,7 @@ void OLEFilter::slotSavePart(
{
// The part is already there, this is a lookup operation
// -> return the part id.
- storageId = QString::number( id );
+ storageId = TQString::number( id );
mimeType = internalPartMimeType( nameIN );
}
else
@@ -149,13 +149,13 @@ void OLEFilter::slotSavePart(
m_embeddeeData = data;
m_embeddeeLength = length;
- QString srcMime( KoEmbeddingFilter::mimeTypeByExtension( extension ) );
+ TQString srcMime( KoEmbeddingFilter::mimeTypeByExtension( extension ) );
if ( srcMime == KMimeType::defaultMimeType() )
kdWarning( s_area ) << "Couldn't determine the mimetype from the extension" << endl;
- KoFilter::ConversionStatus status;
- QCString destMime( mimeType.latin1() );
- storageId = QString::number( embedPart( srcMime.latin1(), destMime, status, nameIN ) );
+ KoFilter::ConversiontqStatus status;
+ TQCString destMime( mimeType.latin1() );
+ storageId = TQString::number( embedPart( srcMime.latin1(), destMime, status, nameIN ) );
// copy back what the method returned
mimeType = destMime;
@@ -170,18 +170,18 @@ void OLEFilter::slotSavePart(
}
void OLEFilter::slotSaveDocumentInformation(
- const QString &fullName,
- const QString &title,
- const QString &company,
- const QString &email,
- const QString &telephone,
- const QString &fax,
- const QString &postalCode,
- const QString &country,
- const QString &city,
- const QString &street,
- const QString &docTitle,
- const QString &docAbstract)
+ const TQString &fullName,
+ const TQString &title,
+ const TQString &company,
+ const TQString &email,
+ const TQString &telephone,
+ const TQString &fax,
+ const TQString &postalCode,
+ const TQString &country,
+ const TQString &city,
+ const TQString &street,
+ const TQString &docTitle,
+ const TQString &docAbstract)
{
KoDocumentInfo *info = new KoDocumentInfo();
KoDocumentInfoAuthor *author = static_cast<KoDocumentInfoAuthor *>(info->page("author"));
@@ -207,26 +207,26 @@ void OLEFilter::slotSaveDocumentInformation(
return;
}
- QCString data = info->save().toCString();
+ TQCString data = info->save().toCString();
// Important: don't use data.length() here. It's slow, and dangerous (in case of a '\0' somewhere)
// The -1 is because we don't want to write the final \0.
- Q_LONG length = data.size()-1;
+ TQ_LONG length = data.size()-1;
if(docInfo->writeBlock(data, length) != length)
kdError(s_area) << "OLEFilter::slotSaveDocumentInformation(): Could not write to KoStore!" << endl;
}
void OLEFilter::slotSavePic(
- const QString &nameIN,
- QString &storageId,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ const TQString &extension,
unsigned int length,
const char *data)
{
if(nameIN.isEmpty())
return;
- QMap<QString, QString>::ConstIterator it = imageMap.find(nameIN);
+ TQMap<TQString, TQString>::ConstIterator it = imageMap.tqfind(nameIN);
if (it != imageMap.end())
// The key is already here - return the part id.
@@ -234,7 +234,7 @@ void OLEFilter::slotSavePic(
else
{
// It's not here, so let's generate one.
- storageId = QString( "pictures/picture%1.%2" ).arg( numPic++ ).arg( extension );
+ storageId = TQString( "pictures/picture%1.%2" ).tqarg( numPic++ ).tqarg( extension );
imageMap.insert(nameIN, storageId);
KoStoreDevice* pic = m_chain->storageFile( storageId, KoStore::Write );
if(!pic)
@@ -253,9 +253,9 @@ void OLEFilter::slotSavePic(
// ##### Only used for lookup now!
void OLEFilter::slotPart(
- const QString& nameIN,
- QString &storageId,
- QString &mimeType)
+ const TQString& nameIN,
+ TQString &storageId,
+ TQString &mimeType)
{
if (nameIN.isEmpty())
return;
@@ -265,7 +265,7 @@ void OLEFilter::slotPart(
if (id != -1)
{
// The key is already here - return the part id.
- storageId = QString::number( id );
+ storageId = TQString::number( id );
mimeType = internalPartMimeType( nameIN );
}
else
@@ -280,11 +280,11 @@ void OLEFilter::slotGetStream(const int &handle, myFile &stream) {
// I can't guarantee that you get the right stream as the names
// in a OLE 2 file are not unique! (searching only the current dir!)
// Don't forget the delete [] the stream.data ptr!
-void OLEFilter::slotGetStream(const QString &name, myFile &stream) {
+void OLEFilter::slotGetStream(const TQString &name, myFile &stream) {
KLaola::NodeList handle;
- handle=docfile->find(name, true); // search only in current dir!
+ handle=docfile->tqfind(name, true); // search only in current dir!
if (handle.count()==1)
stream=docfile->stream(handle.at(0));
@@ -294,14 +294,14 @@ void OLEFilter::slotGetStream(const QString &name, myFile &stream) {
}
}
-void OLEFilter::savePartContents( QIODevice* file )
+void OLEFilter::savePartContents( TQIODevice* file )
{
if ( m_embeddeeData != 0 && m_embeddeeLength != 0 )
file->writeBlock( m_embeddeeData, m_embeddeeLength );
}
// The recursive method to do all the work
-void OLEFilter::convert( const QCString& mimeTypeHint )
+void OLEFilter::convert( const TQCString& mimeTypeHint )
{
KLaola::NodeList list=docfile->parseCurrentDir();
KLaola::OLENode *node;
@@ -318,7 +318,7 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
else {
// Get the storage name of the part (dirname==key), and associate the
// mimeType with it for later use.
- QCString mimeHint( mimeTypeHelper() );
+ TQCString mimeHint( mimeTypeHelper() );
if ( mimeHint.isEmpty() )
mimeHint = "application/x-kword"; // will be converted to a dummy KWord part
startInternalEmbedding( node->name(), mimeHint );
@@ -333,8 +333,8 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
}
if(!onlyDirs) {
- QStringList nodeNames;
- QCString mimeType;
+ TQStringList nodeNames;
+ TQCString mimeType;
if ( !mimeTypeHint.isEmpty() )
mimeType = mimeTypeHint;
else
@@ -348,30 +348,30 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
myFile main;
KLaola::NodeList tmp;
- tmp=docfile->find("WordDocument", true);
+ tmp=docfile->tqfind("WordDocument", true);
if(tmp.count()==1) {
// okay, not a dummy
main=docfile->stream(tmp.at(0));
myFile table0, table1, data;
- tmp=docfile->find("0Table", true);
+ tmp=docfile->tqfind("0Table", true);
if(tmp.count()==1)
table0=docfile->stream(tmp.at(0));
- tmp=docfile->find("1Table", true);
+ tmp=docfile->tqfind("1Table", true);
if(tmp.count()==1)
table1=docfile->stream(tmp.at(0));
- tmp=docfile->find("Data", true);
+ tmp=docfile->tqfind("Data", true);
if(tmp.count()==1)
data=docfile->stream(tmp.at(0));
myFilter=new WordFilter(main, table0, table1, data);
// forward the internal communication calls
- connect( this, SIGNAL( internalCommShapeID( unsigned int& ) ), myFilter, SIGNAL( internalCommShapeID( unsigned int& ) ) );
- connect( this, SIGNAL( internalCommDelayStream( const char* ) ), myFilter, SIGNAL( internalCommDelayStream( const char* ) ) );
+ connect( this, TQT_SIGNAL( internalCommShapeID( unsigned int& ) ), myFilter, TQT_SIGNAL( internalCommShapeID( unsigned int& ) ) );
+ connect( this, TQT_SIGNAL( internalCommDelayStream( const char* ) ), myFilter, TQT_SIGNAL( internalCommDelayStream( const char* ) ) );
}
}
else if ( mimeType == "application/x-kspread" ) {
@@ -380,11 +380,11 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
myFile workbook;
KLaola::NodeList tmp;
- tmp = docfile->find( "Workbook", true );
+ tmp = docfile->tqfind( "Workbook", true );
if ( tmp.count() == 1 )
workbook = docfile->stream( tmp.at( 0 ) );
else {
- tmp = docfile->find( "Book", true );
+ tmp = docfile->tqfind( "Book", true );
if ( tmp.count() == 1 )
workbook = docfile->stream( tmp.at( 0 ) );
}
@@ -398,23 +398,23 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
myFile main, currentUser, pictures, summary, documentSummary;
KLaola::NodeList tmp;
- tmp=docfile->find("PowerPoint Document", true);
+ tmp=docfile->tqfind("PowerPoint Document", true);
if(tmp.count()==1)
main=docfile->stream(tmp.at(0));
- tmp=docfile->find("Current User", true);
+ tmp=docfile->tqfind("Current User", true);
if(tmp.count()==1)
currentUser=docfile->stream(tmp.at(0));
- tmp=docfile->find("Pictures", true);
+ tmp=docfile->tqfind("Pictures", true);
if(tmp.count()==1)
pictures=docfile->stream(tmp.at(0));
- tmp=docfile->find("SummaryInformation", true);
+ tmp=docfile->tqfind("SummaryInformation", true);
if(tmp.count()==1)
summary=docfile->stream(tmp.at(0));
- tmp=docfile->find("DocumentSummaryInformation", true);
+ tmp=docfile->tqfind("DocumentSummaryInformation", true);
if(tmp.count()==1)
documentSummary=docfile->stream(tmp.at(0));
@@ -426,7 +426,7 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
myFile prvText;
KLaola::NodeList tmp;
- tmp = docfile->find( "PrvText", true );
+ tmp = docfile->tqfind( "PrvText", true );
if( tmp.count() == 1 ) prvText = docfile->stream( tmp.at( 0 ) );
myFilter = new HancomWordFilter( prvText );
@@ -451,9 +451,9 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
// Launch the filtering process...
success=myFilter->filter();
// ...and fetch the file
- QCString file;
+ TQCString file;
if(!myFilter->plainString()) {
- const QDomDocument * const part=myFilter->part();
+ const TQDomDocument * const part=myFilter->part();
file=part->toCString();
}
else
@@ -467,7 +467,7 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
}
// Write it to the gzipped tar file
- bool ret = dev->writeBlock(file.data(), file.size()-1) == static_cast<Q_LONG>( file.size() - 1 );
+ bool ret = dev->writeBlock(file.data(), file.size()-1) == static_cast<TQ_LONG>( file.size() - 1 );
if (!ret)
kdError(s_area) << "OLEFilter::slotSavePic(): Could not write to KoStore!" << endl;
delete myFilter;
@@ -475,32 +475,32 @@ void OLEFilter::convert( const QCString& mimeTypeHint )
}
void OLEFilter::connectCommon(FilterBase **myFilter) {
- QObject::connect(
+ TQObject::connect(
*myFilter,
- SIGNAL(signalSaveDocumentInformation(const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &)),
+ TQT_SIGNAL(signalSaveDocumentInformation(const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &)),
this,
- SLOT(slotSaveDocumentInformation(const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &)));
+ TQT_SLOT(slotSaveDocumentInformation(const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &, const TQString &)));
- QObject::connect(
+ TQObject::connect(
*myFilter,
- SIGNAL(signalSavePic(const QString &, QString &, const QString &, unsigned int, const char *)),
+ TQT_SIGNAL(signalSavePic(const TQString &, TQString &, const TQString &, unsigned int, const char *)),
this,
- SLOT(slotSavePic(const QString &, QString &, const QString &, unsigned int, const char *)));
- QObject::connect(
+ TQT_SLOT(slotSavePic(const TQString &, TQString &, const TQString &, unsigned int, const char *)));
+ TQObject::connect(
*myFilter,
- SIGNAL(signalSavePart(const QString &, QString &, QString &, const QString &, unsigned int, const char *)),
+ TQT_SIGNAL(signalSavePart(const TQString &, TQString &, TQString &, const TQString &, unsigned int, const char *)),
this,
- SLOT(slotSavePart(const QString &, QString &, QString &, const QString &, unsigned int, const char *)));
- QObject::connect(*myFilter, SIGNAL(signalPart(const QString&, QString &, QString &)),
- this, SLOT(slotPart(const QString&, QString &, QString &)));
- QObject::connect(*myFilter, SIGNAL(signalGetStream(const int &, myFile &)), this,
- SLOT(slotGetStream(const int &, myFile &)));
- QObject::connect(*myFilter, SIGNAL(signalGetStream(const QString &, myFile &)), this,
- SLOT(slotGetStream(const QString &, myFile &)));
- QObject::connect(*myFilter, SIGNAL(sigProgress(int)), this, SIGNAL(sigProgress(int)));
+ TQT_SLOT(slotSavePart(const TQString &, TQString &, TQString &, const TQString &, unsigned int, const char *)));
+ TQObject::connect(*myFilter, TQT_SIGNAL(signalPart(const TQString&, TQString &, TQString &)),
+ this, TQT_SLOT(slotPart(const TQString&, TQString &, TQString &)));
+ TQObject::connect(*myFilter, TQT_SIGNAL(signalGetStream(const int &, myFile &)), this,
+ TQT_SLOT(slotGetStream(const int &, myFile &)));
+ TQObject::connect(*myFilter, TQT_SIGNAL(signalGetStream(const TQString &, myFile &)), this,
+ TQT_SLOT(slotGetStream(const TQString &, myFile &)));
+ TQObject::connect(*myFilter, TQT_SIGNAL(sigProgress(int)), this, TQT_SIGNAL(sigProgress(int)));
}
-QCString OLEFilter::mimeTypeHelper()
+TQCString OLEFilter::mimeTypeHelper()
{
KLaola::NodeList list = docfile->parseCurrentDir();
KLaola::OLENode* node = list.first();
diff --git a/filters/olefilters/olefilter.h b/filters/olefilters/olefilter.h
index a1509973f..0be2a8bab 100644
--- a/filters/olefilters/olefilter.h
+++ b/filters/olefilters/olefilter.h
@@ -33,38 +33,39 @@ class KoStore;
class OLEFilter : public KoEmbeddingFilter {
Q_OBJECT
+ TQ_OBJECT
public:
- OLEFilter(KoFilter *parent, const char *name, const QStringList&);
+ OLEFilter(KoFilter *tqparent, const char *name, const TQStringList&);
virtual ~OLEFilter();
- virtual KoFilter::ConversionStatus convert( const QCString& from, const QCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
public slots:
void commSlotDelayStream( const char* delay );
- void commSlotShapeID( unsigned int& shapeID );
+ void commSlotShapeID( unsigned int& tqshapeID );
protected slots:
// This slot saves the document informations to the KOffice tar storage.
void slotSaveDocumentInformation(
- const QString &fullName,
- const QString &title,
- const QString &company,
- const QString &email,
- const QString &telephone,
- const QString &fax,
- const QString &postalCode,
- const QString &country,
- const QString &city,
- const QString &street,
- const QString &docTitle,
- const QString &docAbstract);
+ const TQString &fullName,
+ const TQString &title,
+ const TQString &company,
+ const TQString &email,
+ const TQString &telephone,
+ const TQString &fax,
+ const TQString &postalCode,
+ const TQString &country,
+ const TQString &city,
+ const TQString &street,
+ const TQString &docTitle,
+ const TQString &docAbstract);
// This slot saves an embedded Picture to the KOffice tar storage.
void slotSavePic(
- const QString &nameIN,
- QString &storageId,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ const TQString &extension,
unsigned int length,
const char *data);
@@ -73,19 +74,19 @@ protected slots:
// that we want to handle as parts rather than using slotSavePic() since OLE
// objects are handled by us, and a filter need only call slotPart().
void slotSavePart(
- const QString &nameIN,
- QString &storageId,
- QString &mimeType,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ TQString &mimeType,
+ const TQString &extension,
unsigned int length,
const char *data);
// Generate a name for a new part to store it in the KOffice tar storage,
// or find the name and type of an existing one.
void slotPart(
- const QString &nameIN,
- QString &storageId,
- QString &mimeType);
+ const TQString &nameIN,
+ TQString &storageId,
+ TQString &mimeType);
// Get another OLE 2 stream for your filter.
// Attention: You'll have to delete [] the stream.data ptr!
@@ -95,11 +96,11 @@ protected slots:
// as the stream names are NOT unique in the OLE 2 file!!!
// (Therefore it's searching only in the current dir)
// Attention: You'll have to delete [] the stream.data ptr!
- void slotGetStream(const QString &name, myFile &stream);
+ void slotGetStream(const TQString &name, myFile &stream);
signals:
// Forwarding signals for inter-filter communication
- void internalCommShapeID( unsigned int& shapeID );
+ void internalCommShapeID( unsigned int& tqshapeID );
void internalCommDelayStream( const char* delay );
private:
@@ -108,13 +109,13 @@ private:
const OLEFilter &operator=(const OLEFilter &);
// Template method, triggered by embedPart calls
- virtual void savePartContents( QIODevice* file );
+ virtual void savePartContents( TQIODevice* file );
- void convert( const QCString& mimeTypeHint );
+ void convert( const TQCString& mimeTypeHint );
void connectCommon(FilterBase **myFilter);
- QCString mimeTypeHelper();
+ TQCString mimeTypeHelper();
- QMap<QString, QString> imageMap;
+ TQMap<TQString, TQString> imageMap;
myFile olefile;
int numPic; // for the "unique name generation"
diff --git a/filters/olefilters/powerpoint97/powerpoint.cc b/filters/olefilters/powerpoint97/powerpoint.cc
index f01c71c78..b240a6907 100644
--- a/filters/olefilters/powerpoint97/powerpoint.cc
+++ b/filters/olefilters/powerpoint97/powerpoint.cc
@@ -40,15 +40,15 @@ Powerpoint::~Powerpoint()
void Powerpoint::invokeHandler(
Header &op,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
- typedef void (Powerpoint::*method)(Header &op, Q_UINT32 bytes, QDataStream &operands);
+ typedef void (Powerpoint::*method)(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
typedef struct
{
const char *name;
- Q_UINT16 opcode;
+ TQ_UINT16 opcode;
method handler;
} opcodeEntry;
@@ -104,9 +104,9 @@ void Powerpoint::invokeHandler(
{ "EXPLAINATOM", 4039, 0 /* &Powerpoint::opExPlainAtom */ },
{ "EXPLAINLINK", 4054, 0 /* &Powerpoint::opExPlainLink */ },
{ "EXPLAINLINKATOM", 4036, 0 /* &Powerpoint::opExPlainLinkAtom */ },
- { "EXQUICKTIME", 4073, 0 /* &Powerpoint::opExQuickTime */ },
- { "EXQUICKTIMEMOVIE", 4074, 0 /* &Powerpoint::opExQuickTimeMovie */ },
- { "EXQUICKTIMEMOVIEDATA", 4075, 0 /* &Powerpoint::opExQuickTimeMovieData */ },
+ { "EXTQUICKTIME", 4073, 0 /* &Powerpoint::opExQuickTime */ },
+ { "EXTQUICKTIMEMOVIE", 4074, 0 /* &Powerpoint::opExQuickTimeMovie */ },
+ { "EXTQUICKTIMEMOVIEDATA", 4075, 0 /* &Powerpoint::opExQuickTimeMovieData */ },
{ "EXSUBSCRIPTION", 4076, 0 /* &Powerpoint::opExSubscription */ },
{ "EXSUBSCRIPTIONSECTION", 4077, 0 /* &Powerpoint::opExSubscriptionSection */ },
{ "EXTERNALOBJECT", 4027, 0 /* &Powerpoint::opExternalObject */ },
@@ -265,19 +265,19 @@ void Powerpoint::invokeHandler(
if (bytes)
{
- QByteArray *record = new QByteArray(bytes);
- QDataStream *body;
+ TQByteArray *record = new TQByteArray(bytes);
+ TQDataStream *body;
operands.readRawBytes(record->data(), bytes);
- body = new QDataStream(*record, IO_ReadOnly);
- body->setByteOrder(QDataStream::LittleEndian);
+ body = new TQDataStream(*record, IO_ReadOnly);
+ body->setByteOrder(TQDataStream::LittleEndian);
(this->*result)(op, bytes, *body);
delete body;
delete record;
}
else
{
- QDataStream *body = new QDataStream();
+ TQDataStream *body = new TQDataStream();
(this->*result)(op, bytes, *body);
delete body;
@@ -331,19 +331,19 @@ bool Powerpoint::parse(
void Powerpoint::opColorSchemeAtom(
Header & /* op */,
- Q_UINT32,
- QDataStream &operands)
+ TQ_UINT32,
+ TQDataStream &operands)
{
struct
{
- Q_UINT32 background;
- Q_UINT32 textAndLines;
- Q_UINT32 shadows;
- Q_UINT32 titleText;
- Q_UINT32 fills;
- Q_UINT32 accent;
- Q_UINT32 accentAndHyperlink;
- Q_UINT32 accentAndFollowedHyperlink;
+ TQ_UINT32 background;
+ TQ_UINT32 textAndLines;
+ TQ_UINT32 shadows;
+ TQ_UINT32 titleText;
+ TQ_UINT32 fills;
+ TQ_UINT32 accent;
+ TQ_UINT32 accentAndHyperlink;
+ TQ_UINT32 accentAndFollowedHyperlink;
} data;
operands >> data.background >> data.textAndLines >> data.shadows >>
@@ -356,15 +356,15 @@ void Powerpoint::opColorSchemeAtom(
//
void Powerpoint::opCString(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
- QString value;
+ TQString value;
unsigned i;
for (i = 0; i < bytes / 2; i++)
{
- Q_UINT16 tmp;
+ TQ_UINT16 tmp;
operands >> tmp;
value += tmp;
@@ -374,11 +374,11 @@ void Powerpoint::opCString(
void Powerpoint::opCurrentUserAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
- const Q_UINT32 MAGIC_NUMBER = (Q_UINT32)(-476987297);
+ const TQ_UINT32 MAGIC_NUMBER = (TQ_UINT32)(-476987297);
//unsigned i;
operands >> mCurrentUserAtom.size >> mCurrentUserAtom.magic >> mCurrentUserAtom.offsetToCurrentEdit >>
@@ -429,31 +429,31 @@ void Powerpoint::opCurrentUserAtom(
void Powerpoint::opDocument(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opDocumentAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opEndDocument(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opEnvironment(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
@@ -464,8 +464,8 @@ void Powerpoint::opEnvironment(
//
void Powerpoint::opExEmbed(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
@@ -475,15 +475,15 @@ void Powerpoint::opExEmbed(
//
void Powerpoint::opExEmbedAtom(
Header & /* op */,
- Q_UINT32,
- QDataStream &operands)
+ TQ_UINT32,
+ TQDataStream &operands)
{
struct
{
- Q_INT32 followColorScheme;
- Q_UINT8 cantLockServerB;
- Q_UINT8 noSizeToServerB;
- Q_UINT8 isTable;
+ TQ_INT32 followColorScheme;
+ TQ_UINT8 cantLockServerB;
+ TQ_UINT8 noSizeToServerB;
+ TQ_UINT8 isTable;
} data;
operands >> data.followColorScheme;
@@ -494,54 +494,54 @@ void Powerpoint::opExEmbedAtom(
void Powerpoint::opFontCollection(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opFontEntityAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opHeadersFooters(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opHeadersFootersAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opList(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opMainMaster(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opMsod(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
char *data;
@@ -561,21 +561,21 @@ kdError() <<" drgid: "<< m_pptSlide->getPsrReference() << endl;
void Powerpoint::opNotes(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opNotesAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
struct
{
- Q_INT32 slideId; // Id for the corresponding slide.
- Q_UINT16 flags;
+ TQ_INT32 slideId; // Id for the corresponding slide.
+ TQ_UINT16 flags;
} data;
operands >> data.slideId >> data.flags;
@@ -586,8 +586,8 @@ void Powerpoint::opNotesAtom(
//
void Powerpoint::opExObjList(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
@@ -597,10 +597,10 @@ void Powerpoint::opExObjList(
//
void Powerpoint::opExObjListAtom(
Header & /* op */,
- Q_UINT32,
- QDataStream &operands)
+ TQ_UINT32,
+ TQDataStream &operands)
{
- Q_UINT32 objectSeedId;
+ TQ_UINT32 objectSeedId;
operands >> objectSeedId;
kdDebug(s_area) << "next OLE obj id: " << objectSeedId << endl;
@@ -608,30 +608,30 @@ void Powerpoint::opExObjListAtom(
void Powerpoint::opExObjRefAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opExOleObj(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opExOleObjAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
struct
{
- Q_UINT32 drawAspect;
- Q_INT32 type;
- Q_INT32 objID;
- Q_INT32 subType;
- Q_INT8 isBlank;
+ TQ_UINT32 drawAspect;
+ TQ_INT32 type;
+ TQ_INT32 objID;
+ TQ_INT32 subType;
+ TQ_INT8 isBlank;
} data;
operands >> data.drawAspect;
@@ -645,26 +645,26 @@ void Powerpoint::opExOleObjAtom(
void Powerpoint::opExOleObjStg(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opOutlineViewInfo(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opPersistPtrIncrementalBlock2(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
//PSR_UserEditAtom userEdit;
- //Q_INT16 offsetToEdit = mCurrentUserAtom.offsetToCurrentEdit;
+ //TQ_INT16 offsetToEdit = mCurrentUserAtom.offsetToCurrentEdit;
/* huh?
while(0 < offsetToEdit)
@@ -678,23 +678,23 @@ void Powerpoint::opPersistPtrIncrementalBlock2(
void Powerpoint::opPersistPtrIncrementalBlock(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
struct
{
union
{
- Q_UINT32 info;
+ TQ_UINT32 info;
struct
{
- Q_UINT32 offsetNumber: 20;
- Q_UINT32 offsetCount: 12;
+ TQ_UINT32 offsetNumber: 20;
+ TQ_UINT32 offsetCount: 12;
} fields;
} header;
- Q_UINT32 offset;
+ TQ_UINT32 offset;
} data;
- Q_UINT32 length = 0;
+ TQ_UINT32 length = 0;
while (length < bytes)
{
@@ -724,7 +724,7 @@ void Powerpoint::opPersistPtrIncrementalBlock(
// Create a record of this persistent reference.
- if (m_persistentReferences.end() == m_persistentReferences.find(reference))
+ if (m_persistentReferences.end() == m_persistentReferences.tqfind(reference))
{
if(reference < 5)
{
@@ -753,44 +753,44 @@ void Powerpoint::opPersistPtrIncrementalBlock(
void Powerpoint::opPPDrawing(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opPPDrawingGroup(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opSlide(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opSlideAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
struct
{
- Q_UINT8 layout[12]; // Slide layout descriptor.
- Q_INT32 masterId; // Id of the master of the slide. Zero for a master slide.
- Q_INT32 notesId; // Id for the corresponding notes slide. Zero if slide has no notes.
- Q_UINT16 flags;
+ TQ_UINT8 tqlayout[12]; // Slide tqlayout descriptor.
+ TQ_INT32 masterId; // Id of the master of the slide. Zero for a master slide.
+ TQ_INT32 notesId; // Id for the corresponding notes slide. Zero if slide has no notes.
+ TQ_UINT16 flags;
} data;
Header tmp;
tmp.type = 1015;
- tmp.length = sizeof(data.layout);
+ tmp.length = sizeof(data.tqlayout);
invokeHandler(tmp, tmp.length, operands);
operands >> data.masterId >> data.notesId >> data.flags;
@@ -805,24 +805,24 @@ void Powerpoint::opSlideAtom(
void Powerpoint::opSlideListWithText(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opSlidePersistAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
struct
{
- Q_UINT32 psrReference; // Logical reference to the slide persist object.
- Q_UINT32 flags; // If bit 3 set then slide contains shapes other than placeholders.
- Q_INT32 numberTexts; // Number of placeholder texts stored with the persist object.
- Q_INT32 slideId; // Unique slide identifier, used for OLE link monikers for example.
- Q_UINT32 reserved;
+ TQ_UINT32 psrReference; // Logical reference to the slide persist object.
+ TQ_UINT32 flags; // If bit 3 set then slide contains tqshapes other than placeholders.
+ TQ_INT32 numberTexts; // Number of placeholder texts stored with the persist object.
+ TQ_INT32 slideId; // Unique slide identifier, used for OLE link monikers for example.
+ TQ_UINT32 reserved;
} data;
operands >> data.psrReference >> data.flags >> data.numberTexts >>
@@ -855,31 +855,31 @@ void Powerpoint::opSlidePersistAtom(
void Powerpoint::opSlideViewInfo(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opSrKinsoku(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
void Powerpoint::opSSDocInfoAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opSSSlideLayoutAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
PSR_SSlideLayoutAtom data;
@@ -906,18 +906,18 @@ void Powerpoint::opSSSlideLayoutAtom(
//this is where we set bold/italic/etc and paragraph styles
void Powerpoint::opStyleTextPropAtom(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
- Q_UINT16 totalLength = 0;
- Q_UINT16 length = 0;
- Q_UINT32 style1 = 0;
- Q_UINT32 style2 = 0;
- Q_UINT16 style3 = 0;
- Q_UINT32 BOLD = 0x00010000;
- Q_UINT32 ITALIC = 0x00020000;
- Q_UINT32 UNDERLINE = 0x00040000;
+ TQ_UINT16 totalLength = 0;
+ TQ_UINT16 length = 0;
+ TQ_UINT32 style1 = 0;
+ TQ_UINT32 style2 = 0;
+ TQ_UINT16 style3 = 0;
+ TQ_UINT32 BOLD = 0x00010000;
+ TQ_UINT32 ITALIC = 0x00020000;
+ TQ_UINT32 UNDERLINE = 0x00040000;
//--get the paragraph style?
operands >> length >> style1 >> style2;
@@ -967,15 +967,15 @@ void Powerpoint::opStyleTextPropAtom(
void Powerpoint::opTextBytesAtom(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
- QString data;
+ TQString data;
unsigned i;
for (i = 0; i < bytes; i++)
{
- Q_UINT8 tmp;
+ TQ_UINT8 tmp;
operands >> tmp;
data += tmp;
@@ -1007,15 +1007,15 @@ void Powerpoint::opTextBytesAtom(
void Powerpoint::opTextCharsAtom(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
- QString data;
+ TQString data;
unsigned i;
for (i = 0; i < bytes / 2; i++)
{
- Q_UINT16 tmp;
+ TQ_UINT16 tmp;
operands >> tmp;
data += tmp;
@@ -1045,18 +1045,18 @@ void Powerpoint::opTextCharsAtom(
void Powerpoint::opTextHeaderAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
struct
{
- Q_UINT32 txType; // Type of text:
+ TQ_UINT32 txType; // Type of text:
//
// 0 Title
// 1 Body
// 2 Notes
// 3 Not Used
- // 4 Other (Text in a shape)
+ // 4 Other (Text in a tqshape)
// 5 Center body (subtitle in title slide)
// 6 Center title (title in title slide)
// 7 Half body (body in two-column slide)
@@ -1080,22 +1080,22 @@ void Powerpoint::opTextHeaderAtom(
void Powerpoint::opTextSpecInfoAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opTxMasterStyleAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
void Powerpoint::opTxSIStyleAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &/*operands*/)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &/*operands*/)
{
}
@@ -1105,8 +1105,8 @@ void Powerpoint::opTxSIStyleAtom(
//
void Powerpoint::opUserEditAtom(
Header & /* op */,
- Q_UINT32 /*bytes*/,
- QDataStream &operands)
+ TQ_UINT32 /*bytes*/,
+ TQDataStream &operands)
{
operands >> mUserEditAtom.lastSlideID >> mUserEditAtom.version >> mUserEditAtom.offsetLastEdit >>
@@ -1154,13 +1154,13 @@ void Powerpoint::opUserEditAtom(
void Powerpoint::opVBAInfo(
Header & /* op */,
- Q_UINT32 bytes,
- QDataStream &operands)
+ TQ_UINT32 bytes,
+ TQDataStream &operands)
{
walk(bytes, operands);
}
-void Powerpoint::skip(Q_UINT32 bytes, QDataStream &operands)
+void Powerpoint::skip(TQ_UINT32 bytes, TQDataStream &operands)
{
if ((int)bytes < 0)
{
@@ -1169,8 +1169,8 @@ void Powerpoint::skip(Q_UINT32 bytes, QDataStream &operands)
}
if (bytes)
{
- Q_UINT32 i;
- Q_UINT8 discard;
+ TQ_UINT32 i;
+ TQ_UINT8 discard;
kdDebug(s_area) << "skip: " << bytes << endl;
for (i = 0; i < bytes; i++)
@@ -1183,10 +1183,10 @@ void Powerpoint::skip(Q_UINT32 bytes, QDataStream &operands)
//
// Handle a container record.
//
-void Powerpoint::walk(Q_UINT32 bytes, QDataStream &operands)
+void Powerpoint::walk(TQ_UINT32 bytes, TQDataStream &operands)
{
Header op;
- Q_UINT32 length = 0;
+ TQ_UINT32 length = 0;
// Stop parsing when there are no more records. Note that we stop as soon
// as we cannot get a complete header.
@@ -1210,29 +1210,29 @@ void Powerpoint::walk(Q_UINT32 bytes, QDataStream &operands)
skip(bytes - length, operands);
}
-void Powerpoint::walk(Q_UINT32 mainStreamOffset)
+void Powerpoint::walk(TQ_UINT32 mainStreamOffset)
{
- Q_UINT32 length = m_mainStream.length - mainStreamOffset;
- QByteArray a;
+ TQ_UINT32 length = m_mainStream.length - mainStreamOffset;
+ TQByteArray a;
a.setRawData((const char *)m_mainStream.data + mainStreamOffset, length);
- QDataStream stream(a, IO_ReadOnly);
- stream.setByteOrder(QDataStream::LittleEndian);
+ TQDataStream stream(a, IO_ReadOnly);
+ stream.setByteOrder(TQDataStream::LittleEndian);
walk(length, stream);
a.resetRawData((const char *)m_mainStream.data + mainStreamOffset, length);
}
void Powerpoint::walkDocument()
{
- QByteArray a;
- Q_UINT32 mainStreamOffset = 0;
- Q_UINT32 bytes = m_mainStream.length - mainStreamOffset;
+ TQByteArray a;
+ TQ_UINT32 mainStreamOffset = 0;
+ TQ_UINT32 bytes = m_mainStream.length - mainStreamOffset;
a.setRawData((const char *)m_mainStream.data + mainStreamOffset, bytes);
- QDataStream stream(a, IO_ReadOnly);
- stream.setByteOrder(QDataStream::LittleEndian);
+ TQDataStream stream(a, IO_ReadOnly);
+ stream.setByteOrder(TQDataStream::LittleEndian);
//--get tho the slide list
Header op;
- Q_UINT32 length = 0;
+ TQ_UINT32 length = 0;
// Stop parsing when there are no more records. Note that we stop as soon
// as we cannot get a complete header.
@@ -1254,19 +1254,19 @@ void Powerpoint::walkDocument()
}
-void Powerpoint::walkRecord(Q_UINT32 bytes, const unsigned char *operands)
+void Powerpoint::walkRecord(TQ_UINT32 bytes, const unsigned char *operands)
{
// First read what should be the next header using one stream.
kdError(s_area) << "WalkRecord - bytes: " << bytes << endl;
- Q_UINT32 length = sizeof(Header);
- QByteArray a;
+ TQ_UINT32 length = sizeof(Header);
+ TQByteArray a;
Header op;
a.setRawData((const char *)operands, bytes);
- QDataStream stream1(a, IO_ReadOnly);
- stream1.setByteOrder(QDataStream::LittleEndian);
+ TQDataStream stream1(a, IO_ReadOnly);
+ stream1.setByteOrder(TQDataStream::LittleEndian);
stream1 >> op.opcode.info >> op.type >> op.length;
a.resetRawData((const char *)operands, bytes);
@@ -1274,20 +1274,20 @@ void Powerpoint::walkRecord(Q_UINT32 bytes, const unsigned char *operands)
length += op.length;
a.setRawData((const char *)operands, length);
- QDataStream stream2(a, IO_ReadOnly);
- stream2.setByteOrder(QDataStream::LittleEndian);
+ TQDataStream stream2(a, IO_ReadOnly);
+ stream2.setByteOrder(TQDataStream::LittleEndian);
walk(length, stream2);
a.resetRawData((const char *)operands, length);
}
-void Powerpoint::walkRecord(Q_UINT32 mainStreamOffset)
+void Powerpoint::walkRecord(TQ_UINT32 mainStreamOffset)
{
walkRecord(sizeof(Header), m_mainStream.data + mainStreamOffset);
}
-void Powerpoint::walkReference(Q_UINT32 reference)
+void Powerpoint::walkReference(TQ_UINT32 reference)
{
- if (m_persistentReferences.end() == m_persistentReferences.find(reference))
+ if (m_persistentReferences.end() == m_persistentReferences.tqfind(reference))
{
kdError(s_area) << "cannot find reference: " << reference << endl;
}
diff --git a/filters/olefilters/powerpoint97/powerpoint.h b/filters/olefilters/powerpoint97/powerpoint.h
index 5c7a91958..54e8d7c7c 100644
--- a/filters/olefilters/powerpoint97/powerpoint.h
+++ b/filters/olefilters/powerpoint97/powerpoint.h
@@ -29,24 +29,24 @@ DESCRIPTION
#include <myfile.h>
-#include <qdatastream.h>
-#include <qptrlist.h>
-#include <qmap.h>
+#include <tqdatastream.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
#include <pptSlide.h>
-typedef Q_INT32 sint4; // signed 4-byte integral value
-typedef Q_INT16 sint2; // signed 4-byte integral value
-typedef Q_UINT32 uint4; // unsigned 4-byte integral value
-typedef Q_UINT16 uint2; // 2-byte
-typedef Q_INT8 bool1; // 1-byte boolean
-typedef Q_UINT8 ubyte1; // unsigned byte value
+typedef TQ_INT32 sint4; // signed 4-byte integral value
+typedef TQ_INT16 sint2; // signed 4-byte integral value
+typedef TQ_UINT32 uint4; // unsigned 4-byte integral value
+typedef TQ_UINT16 uint2; // 2-byte
+typedef TQ_INT8 bool1; // 1-byte boolean
+typedef TQ_UINT8 ubyte1; // unsigned byte value
typedef uint2 psrType;
typedef uint4 psrSize; // each record is preceded by
// pssTypeType and pssSizeType.
typedef uint2 psrInstance;
typedef uint2 psrVersion;
typedef uint4 psrReference; // Saved object reference
-//typedef QList<PptSlide> PptSlideList;
+//typedef TQList<PptSlide> PptSlideList;
class Powerpoint
{
@@ -67,20 +67,20 @@ public:
typedef struct
{
unsigned type;
- QString data;
+ TQString data;
} SlideText;
typedef struct
{
unsigned persistentReference;
- QPtrList<SlideText> text;
+ TQPtrList<SlideText> text;
} Slide;
protected:
virtual void gotDrawing(
unsigned id,
- QString type,
+ TQString type,
unsigned length,
const char *data) = 0;
virtual void gotSlide(
@@ -100,7 +100,7 @@ private:
myFile m_pictures;
unsigned m_documentRef;
bool m_documentRefFound;
- QMap<unsigned, unsigned> m_persistentReferences;
+ TQMap<unsigned, unsigned> m_persistentReferences;
unsigned m_editDepth;
enum
{
@@ -109,7 +109,7 @@ private:
} m_pass;
unsigned m_textType;
- QPtrList<PptSlide> m_slideList;
+ TQPtrList<PptSlide> m_slideList;
PptSlide* m_pptSlide;
struct PSR_CurrentUserAtom
@@ -144,7 +144,7 @@ struct PSR_SSlideLayoutAtom
PSR_CurrentUserAtom mCurrentUserAtom;
PSR_UserEditAtom mUserEditAtom;
PSR_UserEditAtom* mpLastUserEditAtom;
- Q_UINT32 mEditOffset;
+ TQ_UINT32 mEditOffset;
// Common Header.
@@ -152,204 +152,204 @@ struct PSR_SSlideLayoutAtom
{
union
{
- Q_UINT16 info;
+ TQ_UINT16 info;
struct
{
- Q_UINT16 version: 4;
- Q_UINT16 instance: 12;
+ TQ_UINT16 version: 4;
+ TQ_UINT16 instance: 12;
} fields;
} opcode;
- Q_UINT16 type;
- Q_UINT32 length;
+ TQ_UINT16 type;
+ TQ_UINT32 length;
} Header;
// Opcode handling and painter methods.
void walk(
- Q_UINT32 bytes,
- QDataStream &operands);
+ TQ_UINT32 bytes,
+ TQDataStream &operands);
void walk(
- Q_UINT32 mainStreamOffset);
+ TQ_UINT32 mainStreamOffset);
void walkRecord(
- Q_UINT32 bytes,
+ TQ_UINT32 bytes,
const unsigned char *operands);
void walkRecord(
- Q_UINT32 mainStreamOffset);
+ TQ_UINT32 mainStreamOffset);
void walkReference(
- Q_UINT32 reference);
+ TQ_UINT32 reference);
void skip(
- Q_UINT32 bytes,
- QDataStream &operands);
+ TQ_UINT32 bytes,
+ TQDataStream &operands);
void invokeHandler(
Header &op,
- Q_UINT32 bytes,
- QDataStream &operands);
+ TQ_UINT32 bytes,
+ TQDataStream &operands);
void walkDocument();
- void opAnimationInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opAnimationInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opArrayElementAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opBaseTextPropAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opBinaryTagData(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opBookmarkCollection(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opBookmarkEntityAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opBookmarkSeedAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opCharFormatAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opClientSignal1(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opClientSignal2(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opColorSchemeAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opCorePict(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opCorePictAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opCString(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opCurrentUserAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opDateTimeMCAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opDefaultRulerAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opDocRoutingSlip(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opDocument(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opDocumentAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opDocViewInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opEmFormatAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opEndDocument(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opEnvironment(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExAviMovie(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExCDAudio(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExCDAudioAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExControl(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExControlAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExEmbed(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExEmbedAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExHyperlink(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExHyperlinkAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExLink(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExLinkAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExLinkAtom_old(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExMCIMovie(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExMediaAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExMIDIAudio(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExObjList(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExObjListAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExObjRefAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExOleObj(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExOleObjAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExOleObjStg(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExPlain(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExPlainAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExPlainLink(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExPlainLinkAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExQuickTime(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExQuickTimeMovie(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExQuickTimeMovieData(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExSubscription(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExSubscriptionSection(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExternalObject(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExVideo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExWAVAudioEmbedded(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExWAVAudioEmbeddedAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opExWAVAudioLink(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opFontCollection(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opFontEmbedData(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opFontEntityAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opFooterMCAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGenericDateMCAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGlineAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGLPointAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGpointAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGratioAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGrColor(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGrColorAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGrectAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGscaling(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGscalingAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGuideAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opGuideList(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opHandout(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opHeaderMCAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opHeadersFooters(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opHeadersFootersAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opInt4ArrayAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opInteractiveInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opInteractiveInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opIRRAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opList(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opListPlaceholder(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opMainMaster(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opMasterText(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opMetaFile(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opMsod(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opNamedShow(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opNamedShows(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opNamedShowSlides(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opNotes(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opNotesAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opOEPlaceholderAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opOEShape(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opOEShapeAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opOutlineTextRefAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opOutlineViewInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opParaFormatAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPersistPtrFullBlock(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPersistPtrIncrementalBlock(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPersistPtrIncrementalBlock2(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPowerPointStateInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPPDrawing(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPPDrawingGroup(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPrintOptions(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opProgBinaryTag(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opProgStringTag(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opProgTags(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opPSS(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opRecolorEntryAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opRecolorInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opRTFDateTimeMCAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opRulerIndentAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opRunArray(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opRunArrayAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opScheme(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSchemeAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlide(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideBase(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideBaseAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideList(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideListWithText(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideNumberMCAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlidePersist(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlidePersistAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideViewInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSlideViewInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSorterViewInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSound(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSoundCollAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSoundCollection(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSoundData(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSrKinsoku(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSrKinsokuAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSSDocInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSSSlideLayoutAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSSSlideInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opStyleTextPropAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSubContainerCompleted(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSubContainerException(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opSummary(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTextBookmarkAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTextBytesAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTextCharsAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTextHeaderAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTextRulerAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTextSpecInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTexture(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTxCFStyleAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTxInteractiveInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTxMasterStyleAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTxPFStyleAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTxSIStyleAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opTypeFace(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opUserEditAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opVBAInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opVBAInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opVBASlideInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opVBASlideInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opViewInfo(Header &op, Q_UINT32 bytes, QDataStream &operands);
- void opViewInfoAtom(Header &op, Q_UINT32 bytes, QDataStream &operands);
+ void opAnimationInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opAnimationInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opArrayElementAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opBaseTextPropAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opBinaryTagData(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opBookmarkCollection(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opBookmarkEntityAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opBookmarkSeedAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opCharFormatAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opClientSignal1(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opClientSignal2(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opColorSchemeAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opCorePict(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opCorePictAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opCString(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opCurrentUserAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opDateTimeMCAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opDefaultRulerAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opDocRoutingSlip(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opDocument(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opDocumentAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opDocViewInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opEmFormatAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opEndDocument(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opEnvironment(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExAviMovie(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExCDAudio(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExCDAudioAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExControl(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExControlAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExEmbed(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExEmbedAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExHyperlink(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExHyperlinkAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExLink(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExLinkAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExLinkAtom_old(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExMCIMovie(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExMediaAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExMIDIAudio(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExObjList(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExObjListAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExObjRefAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExOleObj(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExOleObjAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExOleObjStg(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExPlain(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExPlainAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExPlainLink(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExPlainLinkAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExQuickTime(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExQuickTimeMovie(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExQuickTimeMovieData(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExSubscription(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExSubscriptionSection(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExternalObject(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExVideo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExWAVAudioEmbedded(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExWAVAudioEmbeddedAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opExWAVAudioLink(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opFontCollection(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opFontEmbedData(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opFontEntityAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opFooterMCAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGenericDateMCAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGlineAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGLPointAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGpointAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGratioAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGrColor(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGrColorAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGrectAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGscaling(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGscalingAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGuideAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opGuideList(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opHandout(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opHeaderMCAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opHeadersFooters(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opHeadersFootersAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opInt4ArrayAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opInteractiveInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opInteractiveInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opIRRAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opList(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opListPlaceholder(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opMainMaster(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opMasterText(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opMetaFile(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opMsod(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opNamedShow(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opNamedShows(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opNamedShowSlides(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opNotes(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opNotesAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opOEPlaceholderAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opOEShape(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opOEShapeAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opOutlineTextRefAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opOutlineViewInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opParaFormatAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPersistPtrFullBlock(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPersistPtrIncrementalBlock(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPersistPtrIncrementalBlock2(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPowerPointStateInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPPDrawing(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPPDrawingGroup(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPrintOptions(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opProgBinaryTag(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opProgStringTag(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opProgTags(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opPSS(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opRecolorEntryAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opRecolorInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opRTFDateTimeMCAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opRulerIndentAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opRunArray(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opRunArrayAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opScheme(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSchemeAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlide(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideBase(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideBaseAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideList(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideListWithText(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideNumberMCAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlidePersist(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlidePersistAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideViewInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSlideViewInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSorterViewInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSound(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSoundCollAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSoundCollection(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSoundData(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSrKinsoku(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSrKinsokuAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSSDocInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSSSlideLayoutAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSSSlideInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opStyleTextPropAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSubContainerCompleted(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSubContainerException(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opSummary(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTextBookmarkAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTextBytesAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTextCharsAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTextHeaderAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTextRulerAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTextSpecInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTexture(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTxCFStyleAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTxInteractiveInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTxMasterStyleAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTxPFStyleAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTxSIStyleAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opTypeFace(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opUserEditAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opVBAInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opVBAInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opVBASlideInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opVBASlideInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opViewInfo(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
+ void opViewInfoAtom(Header &op, TQ_UINT32 bytes, TQDataStream &operands);
};
#endif
diff --git a/filters/olefilters/powerpoint97/powerpointfilter.cc b/filters/olefilters/powerpoint97/powerpointfilter.cc
index e0ea629a5..5359dd985 100644
--- a/filters/olefilters/powerpoint97/powerpointfilter.cc
+++ b/filters/olefilters/powerpoint97/powerpointfilter.cc
@@ -32,25 +32,25 @@ PowerPointFilter::PowerPointFilter(
connect(
m_tree,
- SIGNAL(signalPart(const QString&, QString &, QString &)),
+ TQT_SIGNAL(signalPart(const TQString&, TQString &, TQString &)),
this,
- SIGNAL(signalPart(const QString&, QString &, QString &)));
+ TQT_SIGNAL(signalPart(const TQString&, TQString &, TQString &)));
// Hook up the embedded picture support.
connect(
m_tree,
- SIGNAL(signalSavePic(const QString &, QString &, const QString &, unsigned int, const char *)),
+ TQT_SIGNAL(signalSavePic(const TQString &, TQString &, const TQString &, unsigned int, const char *)),
this,
- SIGNAL(signalSavePic(const QString &, QString &, const QString &, unsigned int, const char *)));
+ TQT_SIGNAL(signalSavePic(const TQString &, TQString &, const TQString &, unsigned int, const char *)));
// Hook up the embedded part support.
connect(
m_tree,
- SIGNAL(signalSavePart(const QString &, QString &, QString &, const QString &, unsigned int, const char *)),
+ TQT_SIGNAL(signalSavePart(const TQString &, TQString &, TQString &, const TQString &, unsigned int, const char *)),
this,
- SIGNAL(signalSavePart(const QString &, QString &, QString &, const QString &, unsigned int, const char *)));
+ TQT_SIGNAL(signalSavePart(const TQString &, TQString &, TQString &, const TQString &, unsigned int, const char *)));
}
PowerPointFilter::~PowerPointFilter()
@@ -63,9 +63,9 @@ bool PowerPointFilter::filter()
return m_tree->convert();
}
-const QDomDocument * const PowerPointFilter::part()
+const TQDomDocument * const PowerPointFilter::part()
{
- m_part = QDomDocument("DOC");
+ m_part = TQDomDocument("DOC");
m_part.setContent(m_tree->getXml());
return &m_part;
}
diff --git a/filters/olefilters/powerpoint97/powerpointfilter.h b/filters/olefilters/powerpoint97/powerpointfilter.h
index 173d1ebb1..b38706dca 100644
--- a/filters/olefilters/powerpoint97/powerpointfilter.h
+++ b/filters/olefilters/powerpoint97/powerpointfilter.h
@@ -27,6 +27,7 @@ class PowerPointFilter:
public FilterBase
{
Q_OBJECT
+ TQ_OBJECT
public:
PowerPointFilter(
@@ -35,7 +36,7 @@ public:
const myFile &pictures);
virtual ~PowerPointFilter();
virtual bool filter();
- virtual const QDomDocument * const part();
+ virtual const TQDomDocument * const part();
private:
PowerPointFilter(const PowerPointFilter &);
diff --git a/filters/olefilters/powerpoint97/pptSlide.cpp b/filters/olefilters/powerpoint97/pptSlide.cpp
index b86418c9a..e1b022963 100644
--- a/filters/olefilters/powerpoint97/pptSlide.cpp
+++ b/filters/olefilters/powerpoint97/pptSlide.cpp
@@ -36,7 +36,7 @@ PptSlide::PptSlide()
//{
//}
-QStringList PptSlide::getPlaceholderText(void)
+TQStringList PptSlide::getPlaceholderText(void)
{
return m_currentPholder->paragraphs;
}
@@ -46,33 +46,33 @@ QStringList PptSlide::getPlaceholderText(void)
// return m_currentPholder->styleRun;
//}
-Q_UINT16 PptSlide::getPlaceholderType(void)
+TQ_UINT16 PptSlide::getPlaceholderType(void)
{
return m_currentPholder->type;
}
-Q_UINT16 PptSlide::gotoPlaceholder(Q_UINT16 pholderNumber)
+TQ_UINT16 PptSlide::gotoPlaceholder(TQ_UINT16 pholderNumber)
{
m_currentPholder = m_placeholderList.at(pholderNumber);
return 0;
}
-Q_INT32 PptSlide::getPsrReference(void)
+TQ_INT32 PptSlide::getPsrReference(void)
{
return m_psrReference;
}
-void PptSlide::setPsrReference(Q_INT32 psr)
+void PptSlide::setPsrReference(TQ_INT32 psr)
{
m_psrReference = psr;
}
-Q_UINT16 PptSlide::getNumberOfPholders()
+TQ_UINT16 PptSlide::getNumberOfPholders()
{
return m_numberOfPholders;
}
-void PptSlide::addText(QString text, Q_UINT16 type)
+void PptSlide::addText(TQString text, TQ_UINT16 type)
{
unsigned j;
m_currentPholder = new placeholder;
@@ -97,8 +97,8 @@ void PptSlide::addText(QString text, Q_UINT16 type)
case OTHER_TEXT:
case CENTER_BODY_TEXT:
case HALF_BODY_TEXT:
- case QUARTER_BODY_TEXT:
- QStringList data(QStringList::split(QChar('\r'), text, true));
+ case TQUARTER_BODY_TEXT:
+ TQStringList data(TQStringList::split(TQChar('\r'), text, true));
for (j = 0; j < data.count(); j++)
{
m_currentPholder->paragraphs.append(data[j]);
diff --git a/filters/olefilters/powerpoint97/pptSlide.h b/filters/olefilters/powerpoint97/pptSlide.h
index 16d53f8b0..026e2ef13 100644
--- a/filters/olefilters/powerpoint97/pptSlide.h
+++ b/filters/olefilters/powerpoint97/pptSlide.h
@@ -25,20 +25,20 @@ DESCRIPTION
//#define PPTSLIDE_H
#include <kdebug.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqptrlist.h>
//--text types
#define TITLE_TEXT 0 //title
#define BODY_TEXT 1 //body
#define NOTES_TEXT 2 //notes
#define NOTUSED_TEXT 3 //not used
-#define OTHER_TEXT 4 //other(test in shape)
+#define OTHER_TEXT 4 //other(test in tqshape)
#define CENTER_BODY_TEXT 5 //center body(subtitle in title slide)
#define CENTER_TITLE_TEXT 6 //center title(title in title slide)
#define HALF_BODY_TEXT 7 //half body(body in two-column slide)
-#define QUARTER_BODY_TEXT 8 //quarter body(body in four-body slide)
+#define TQUARTER_BODY_TEXT 8 //quarter body(body in four-body slide)
//--
//--char style types
@@ -55,37 +55,37 @@ class PptSlide
public:
typedef struct
{
- Q_UINT16 style; //the style of the text run
- Q_UINT16 length; //length of the style run
+ TQ_UINT16 style; //the style of the text run
+ TQ_UINT16 length; //length of the style run
}styleRunType;
- typedef QPtrList<styleRunType> styleRun;
+ typedef TQPtrList<styleRunType> styleRun;
PptSlide();
- QStringList getPlaceholderText(void); //gets the list of paragraphs from the placeholder
+ TQStringList getPlaceholderText(void); //gets the list of paragraphs from the placeholder
//styleRun getPlaceholderStyleRun(void); //gets the list of placeholder style runs
- Q_UINT16 getPlaceholderType(void); //gets the type of the placeholder
- Q_UINT16 gotoPlaceholder(Q_UINT16 pholderNumber); //goto the n'th placeholder
- Q_UINT16 getNumberOfPholders(); //gets the number of placeholders on slide
+ TQ_UINT16 getPlaceholderType(void); //gets the type of the placeholder
+ TQ_UINT16 gotoPlaceholder(TQ_UINT16 pholderNumber); //goto the n'th placeholder
+ TQ_UINT16 getNumberOfPholders(); //gets the number of placeholders on slide
- Q_INT32 getPsrReference(void);
- void setPsrReference(Q_INT32 psr);
+ TQ_INT32 getPsrReference(void);
+ void setPsrReference(TQ_INT32 psr);
- void addText(QString text, Q_UINT16 type); //adds text of the given type
- void addToStyleRun(Q_UINT16 style, Q_UINT16 length); //adds to the current style run
+ void addText(TQString text, TQ_UINT16 type); //adds text of the given type
+ void addToStyleRun(TQ_UINT16 style, TQ_UINT16 length); //adds to the current style run
private:
typedef struct
{
- QStringList paragraphs; //text of the placeholder
- Q_UINT16 type; //what is the text type
+ TQStringList paragraphs; //text of the placeholder
+ TQ_UINT16 type; //what is the text type
styleRun style; //char style info
}placeholder;
- Q_INT16 m_slideLayout; //type of slide
- Q_INT16 m_numberOfPholders; //number of placeholder on the slide
- Q_INT32 m_psrReference; //logical reference
- QPtrList<placeholder> m_placeholderList; //list of all the placeholders on the slide
+ TQ_INT16 m_slideLayout; //type of slide
+ TQ_INT16 m_numberOfPholders; //number of placeholder on the slide
+ TQ_INT32 m_psrReference; //logical reference
+ TQPtrList<placeholder> m_placeholderList; //list of all the placeholders on the slide
placeholder* m_currentPholder; //pointer to current placeholder
};
diff --git a/filters/olefilters/powerpoint97/pptdoc.cc b/filters/olefilters/powerpoint97/pptdoc.cc
index 0e40293f4..07ac8725a 100644
--- a/filters/olefilters/powerpoint97/pptdoc.cc
+++ b/filters/olefilters/powerpoint97/pptdoc.cc
@@ -24,7 +24,7 @@ DESCRIPTION
#include <kdebug.h>
#include <pptdoc.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
const int PptDoc::s_area = 30512;
@@ -52,7 +52,7 @@ void PptDoc::gotSlide(
for (i = 0; i < slide.text.count(); i++)
{
SlideText *text = slide.text.at(i);
- QStringList data(QStringList::split(QChar('\r'), text->data, true));
+ TQStringList data(TQStringList::split(TQChar('\r'), text->data, true));
unsigned j;
switch (text->type)
@@ -68,7 +68,7 @@ void PptDoc::gotSlide(
case OTHER_TEXT:
case CENTER_BODY_TEXT:
case HALF_BODY_TEXT:
- case QUARTER_BODY_TEXT:
+ case TQUARTER_BODY_TEXT:
for (j = 0; j < data.count(); j++)
{
ourSlide.body.append(data[j]);
diff --git a/filters/olefilters/powerpoint97/pptdoc.h b/filters/olefilters/powerpoint97/pptdoc.h
index f7008ad92..5619d6e40 100644
--- a/filters/olefilters/powerpoint97/pptdoc.h
+++ b/filters/olefilters/powerpoint97/pptdoc.h
@@ -28,8 +28,8 @@ DESCRIPTION
#include <kdebug.h>
#include <myfile.h>
#include <powerpoint.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
class myFile;
@@ -48,7 +48,7 @@ protected:
// Metadata.
- QString getAuthor(void) const;
+ TQString getAuthor(void) const;
// Call the parse() function to process the document. The callbacks return
// the text along with any relevant attributes.
@@ -57,7 +57,7 @@ protected:
virtual void gotDrawing(
unsigned id,
- QString type,
+ TQString type,
unsigned length,
const char *data) = 0;
virtual void gotSlide(PptSlide &slide) = 0;
diff --git a/filters/olefilters/powerpoint97/pptxml.cc b/filters/olefilters/powerpoint97/pptxml.cc
index 1202edcce..7c6a45fea 100644
--- a/filters/olefilters/powerpoint97/pptxml.cc
+++ b/filters/olefilters/powerpoint97/pptxml.cc
@@ -22,7 +22,7 @@ DESCRIPTION
#include <pptdoc.h>
#include <pptxml.h>
-#include <qobject.h>
+#include <tqobject.h>
#include <KoGlobal.h>
const int PptXml::s_area = 30512;
@@ -57,27 +57,27 @@ bool PptXml::convert()
return m_success;
}
-void PptXml::encode(QString &text)
+void PptXml::encode(TQString &text)
{
// When encoding the stored form of text to its run-time form,
// be sure to do the conversion for "&amp;" to "&" first to avoid
// accidentally converting user text into one of the other escape
// sequences.
- text.replace('&', "&amp;");
- text.replace('<', "&lt;");
- text.replace('>', "&gt;"); // Needed to avoid ]]>
+ text.tqreplace('&', "&amp;");
+ text.tqreplace('<', "&lt;");
+ text.tqreplace('>', "&gt;"); // Needed to avoid ]]>
// Strictly, there is no need to encode " or ', but we do so to allow
// them to co-exist!
- text.replace('"', "&quot;");
- text.replace('\'', "&apos;");
+ text.tqreplace('"', "&quot;");
+ text.tqreplace('\'', "&apos;");
}
-const QString PptXml::getXml() const
+const TQString PptXml::getXml() const
{
- QString body = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE DOC>\n"
+ TQString body = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE DOC>\n"
"<DOC mime=\"application/x-kpresenter\" email=\"reggie@kde.org\" syntaxVersion=\"2\" author=\"Reginald Stadlbauer\" editor=\"Powerpoint import filter\">\n"
" <PAPER ptWidth=\"680\" unit=\"0\" format=\"5\" orientation=\"0\" ptHeight=\"510\">\n"
" <PAPERBORDERS ptRight=\"0\" ptBottom=\"0\" ptLeft=\"0\" ptTop=\"0\"/>\n"
@@ -129,24 +129,24 @@ const QString PptXml::getXml() const
void PptXml::gotDrawing(
unsigned id,
- QString type,
+ TQString type,
unsigned length,
const char *data)
{
- QString ourKey;
- QString uid;
- QString mimeType;
- QString filterArgs;
+ TQString ourKey;
+ TQString uid;
+ TQString mimeType;
+ TQString filterArgs;
// Send the picture to the outside world and get back the UID.
- ourKey = "vectorGraphic" + QString::number(id) + "." + type;
+ ourKey = "vectorGraphic" + TQString::number(id) + "." + type;
if (type == "msod")
{
- filterArgs = "shape-id=";
- filterArgs += QString::number(id);
+ filterArgs = "tqshape-id=";
+ filterArgs += TQString::number(id);
filterArgs += ";delay-stream=";
- filterArgs += QString::number(0);
+ filterArgs += TQString::number(0);
}
emit signalSavePart(
ourKey,
@@ -184,10 +184,10 @@ if (mimeType != "application/x-kontour")
void PptXml::gotSlide(PptSlide &slide)
{
static const unsigned pageHeight = 510;
- Q_UINT16 numbOfPholders = 0;
+ TQ_UINT16 numbOfPholders = 0;
m_pages += " <PAGE/>\n";
numbOfPholders = slide.getNumberOfPholders();
- for(Q_UINT16 i = 0; i < numbOfPholders; i++)
+ for(TQ_UINT16 i = 0; i < numbOfPholders; i++)
{
slide.gotoPlaceholder(i);
setPlaceholder(slide);
@@ -197,51 +197,51 @@ void PptXml::gotSlide(PptSlide &slide)
void PptXml::setPlaceholder(PptSlide &slide)
{
- QString xml_friendly;
+ TQString xml_friendly;
unsigned i = 0;
bool bulletedList = false; //is this a bulleted list?
- Q_UINT16 type; //type of text
- QString x; //x of placeholder
- QString align; //align of text
- QString height ; //height of placeholder
- QString width ; //width of placeholder
- QString pointSize; //font size
+ TQ_UINT16 type; //type of text
+ TQString x; //x of placeholder
+ TQString align; //align of text
+ TQString height ; //height of placeholder
+ TQString width ; //width of placeholder
+ TQString pointSize; //font size
xml_friendly = *slide.getPlaceholderText().at(i);
encode(xml_friendly);
type = slide.getPlaceholderType();
- Q_UINT16 y = 0;
+ TQ_UINT16 y = 0;
switch (type)
{
case TITLE_TEXT:
y = 30;
- height = QString::number(55);
- x = QString::number(30);
- width = QString::number(610);
- align = QString::number(ALIGN_CENTER);
- pointSize = QString::number(44);
+ height = TQString::number(55);
+ x = TQString::number(30);
+ width = TQString::number(610);
+ align = TQString::number(ALIGN_CENTER);
+ pointSize = TQString::number(44);
bulletedList = false;
m_titles += " <Title title=\"" + xml_friendly + "\" />\n";
break;
case CENTER_TITLE_TEXT:
y = 130;
- x = QString::number(45);
- height = QString::number(55);
- width = QString::number(610);
- align = QString::number(ALIGN_CENTER);
- pointSize = QString::number(44);
+ x = TQString::number(45);
+ height = TQString::number(55);
+ width = TQString::number(610);
+ align = TQString::number(ALIGN_CENTER);
+ pointSize = TQString::number(44);
bulletedList = false;
m_titles += " <Title title=\"" + xml_friendly + "\" />\n";
break;
case CENTER_BODY_TEXT:
y = 200;
- x = QString::number(35);
- height = QString::number(37);
- width = QString::number(610);
- align = QString::number(ALIGN_CENTER);
- pointSize = QString::number(32);
+ x = TQString::number(35);
+ height = TQString::number(37);
+ width = TQString::number(610);
+ align = TQString::number(ALIGN_CENTER);
+ pointSize = TQString::number(32);
bulletedList = false;
break;
case NOTES_TEXT:
@@ -249,32 +249,32 @@ void PptXml::setPlaceholder(PptSlide &slide)
break;
case BODY_TEXT:
y = 130;
- x = QString::number(35);
- height = QString::number(268);
- width = QString::number(610);
- align = QString::number(ALIGN_LEFT);
- pointSize = QString::number(28);
+ x = TQString::number(35);
+ height = TQString::number(268);
+ width = TQString::number(610);
+ align = TQString::number(ALIGN_LEFT);
+ pointSize = TQString::number(28);
bulletedList = true;
break;
case OTHER_TEXT:
case HALF_BODY_TEXT:
- case QUARTER_BODY_TEXT:
+ case TQUARTER_BODY_TEXT:
y = 130;
if(m_half)
{
- x = QString::number(335);
- width = QString::number(300);
+ x = TQString::number(335);
+ width = TQString::number(300);
m_half = false;
}
else
{
- x = QString::number(30);
- width = QString::number(300);
+ x = TQString::number(30);
+ width = TQString::number(300);
m_half = true;
}
- height = QString::number(268);
- align = QString::number(ALIGN_LEFT);
- pointSize = QString::number(28);
+ height = TQString::number(268);
+ align = TQString::number(ALIGN_LEFT);
+ pointSize = TQString::number(28);
bulletedList = true;
break;
default:
@@ -283,7 +283,7 @@ void PptXml::setPlaceholder(PptSlide &slide)
}
m_text += "<OBJECT type=\"4\">\n"
- " <ORIG x=\""+x+"\" y=\""+QString::number(y + m_y)+"\"/>\n"
+ " <ORIG x=\""+x+"\" y=\""+TQString::number(y + m_y)+"\"/>\n"
" <SIZE width=\""+width+"\" height=\""+ height +"\"/>\n"
" <PEN width=\"1\" style=\"0\" color=\"#000000\"/>\n"
" <TEXTOBJ>\n"
diff --git a/filters/olefilters/powerpoint97/pptxml.h b/filters/olefilters/powerpoint97/pptxml.h
index b57338cb6..f3ffbdb17 100644
--- a/filters/olefilters/powerpoint97/pptxml.h
+++ b/filters/olefilters/powerpoint97/pptxml.h
@@ -24,8 +24,8 @@ DESCRIPTION
#define PPTXML_H
#include <pptdoc.h>
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#define ALIGN_LEFT 1
#define ALIGN_RIGHT 2
@@ -33,14 +33,15 @@ DESCRIPTION
#define ALIGN_JUSTIFY 8
class myFile;
-class QDomDocument;
+class TQDomDocument;
class PptXml:
- public QObject,
+ public TQObject,
private PptDoc
{
Q_OBJECT
+ TQ_OBJECT
public:
PptXml(
@@ -51,29 +52,29 @@ public:
bool convert();
- const QString getXml() const;
+ const TQString getXml() const;
signals:
// See olefilter.h for information
void signalSavePic(
- const QString &nameIN,
- QString &storageId,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ const TQString &extension,
unsigned int length,
const char *data);
void signalSavePart(
- const QString &nameIN,
- QString &storageId,
- QString &mimeType,
- const QString &extension,
+ const TQString &nameIN,
+ TQString &storageId,
+ TQString &mimeType,
+ const TQString &extension,
unsigned int length,
const char *data);
void signalPart(
- const QString& nameIN,
- QString &storageId,
- QString &mimeType);
+ const TQString& nameIN,
+ TQString &storageId,
+ TQString &mimeType);
private:
PptXml(const PptXml &);
@@ -89,18 +90,18 @@ private:
bool m_success;
bool m_half;
unsigned m_y;
- QString m_embedded;
- QString m_pages;
- QString m_titles;
- QString m_notes;
- QString m_text;
- void encode(QString &text);
+ TQString m_embedded;
+ TQString m_pages;
+ TQString m_titles;
+ TQString m_notes;
+ TQString m_text;
+ void encode(TQString &text);
// Override the base class functions.
void gotDrawing(
unsigned id,
- QString type,
+ TQString type,
unsigned length,
const char *data);
void gotSlide(PptSlide &slide);