Commit 8e5c5e36 authored by darin's avatar darin

WebCore:

	Cut down our copied and pasted code even more.

	* WebCore.exp: Change what's exported for things that moved from
	KHTMLPart into KWQKHTMLPartImpl.

	* khtml/.cvsignore:
	* khtml/css/.cvsignore:
	* khtml/dom/.cvsignore:
	* khtml/ecma/.cvsignore:
	* khtml/html/.cvsignore:
	* khtml/java/.cvsignore:
	* khtml/misc/.cvsignore:
	* khtml/rendering/.cvsignore:
	* khtml/xml/.cvsignore:
	Some .cvsignore hygiene.

	* khtml/khtml_part.cpp: Use a lot more of this file, rather than using a copy inside
	the kwq directory. Now we have KWQKHTMLPartImpl for the part that does need to be in kwq.
	* khtml/khtml_part.h: Add KWQKHTMLPartImpl pointer, remove most of the other APPLE_CHANGES.
	* khtml/khtmlpart_p.h: Remove almost all of the APPLE_CHANGES.
	* kwq/KWQKHTMLPart.mm: Changed everything from being part of KHTMLPart to be a separate
	KWQKHTMLPartImpl class. Minimized copied and pasted code; still more to do.
	* kwq/KWQKHTMLPartImpl.h: Added. Interface so KHTMLPart can call into kwq as necessary.

	* khtml/misc/Makefile.am: Added loader.cpp.
	* khtml/misc/loader.cpp: Added from KDE 3.0. Rolled most of the changes from KWQKloader.mm
	in here. The kwq-specific part is now in a KWQLoaderImpl class.
	* khtml/misc/loader.h: Replace LoaderPrivate with KWQLoaderImpl.
	* khtml/misc/loader.moc: Added empty file.
	* kwq/KWQKloader.mm: Changed everything to be a separate KWQLoaderImpl class.
	Minimized copied and pasted code.
	* kwq/KWQLoaderImpl.h: Added. Interface so loader can call into kwq as necessary.
	* kwq/loader.moc: Removed empty file.

	* kwq/kparts/historyprovider.h: Add HistoryProvider::insert.
	* kwq/KWQKHistoryProvider.mm: Add HistoryProvider::insert.

	* kwq/KWQKLocale.mm: (KLocale::language): Simplify.

	* kwq/KWQListBox.h:
	* kwq/KWQNSTextField.h:
	Use import instead of include for Cocoa.h.

	* kwq/KWQScrollView.mm: (QScrollView::contentsToViewport): Implement this.

	* kwq/external.h: Add declarations so this can be included cleanly.

	* kwq/khtml/khtml_pagecache.h: Put a no-op cache in here so we don't have to do so
	many APPLE_CHANGES ifdefs.

	* kwq/kparts/part.h: Put ref/deref and event/customEvent in here so they don't need
	to be added to KHTMLPart.

	* kwq/kio/scheduler.h: Add <qtimer.h> include to help us build (not sure if it's
	really needed.
	* kwq/kparts/partmanager.h: Add <qdatetime.h> include to help us build (not sure if it's
	really needed.

WebKit:

	Use methods in KWQKHTMLPartImpl that were moved there from KHTMLPart.

	* WebView.subproj/IFMainURLHandleClient.mm:
	(-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
	(-[IFMainURLHandleClient processData:isComplete:allDataReceived:]):
	* WebView.subproj/IFWebDataSource.mm:
	(-[IFWebDataSource documentText]):
	* WebView.subproj/IFWebDataSourcePrivate.mm:
	(-[IFWebDataSource _setController:]):
	* WebView.subproj/IFWebFramePrivate.mm:
	(-[IFWebFrame _isLoadComplete]):
	* WebView.subproj/IFWebView.mm:
	(-[IFWebView provisionalDataSourceChanged:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 50e4b8ba
2002-05-30 Darin Adler <darin@apple.com>
Cut down our copied and pasted code even more.
* WebCore.exp: Change what's exported for things that moved from
KHTMLPart into KWQKHTMLPartImpl.
* khtml/.cvsignore:
* khtml/css/.cvsignore:
* khtml/dom/.cvsignore:
* khtml/ecma/.cvsignore:
* khtml/html/.cvsignore:
* khtml/java/.cvsignore:
* khtml/misc/.cvsignore:
* khtml/rendering/.cvsignore:
* khtml/xml/.cvsignore:
Some .cvsignore hygiene.
* khtml/khtml_part.cpp: Use a lot more of this file, rather than using a copy inside
the kwq directory. Now we have KWQKHTMLPartImpl for the part that does need to be in kwq.
* khtml/khtml_part.h: Add KWQKHTMLPartImpl pointer, remove most of the other APPLE_CHANGES.
* khtml/khtmlpart_p.h: Remove almost all of the APPLE_CHANGES.
* kwq/KWQKHTMLPart.mm: Changed everything from being part of KHTMLPart to be a separate
KWQKHTMLPartImpl class. Minimized copied and pasted code; still more to do.
* kwq/KWQKHTMLPartImpl.h: Added. Interface so KHTMLPart can call into kwq as necessary.
* khtml/misc/Makefile.am: Added loader.cpp.
* khtml/misc/loader.cpp: Added from KDE 3.0. Rolled most of the changes from KWQKloader.mm
in here. The kwq-specific part is now in a KWQLoaderImpl class.
* khtml/misc/loader.h: Replace LoaderPrivate with KWQLoaderImpl.
* khtml/misc/loader.moc: Added empty file.
* kwq/KWQKloader.mm: Changed everything to be a separate KWQLoaderImpl class.
Minimized copied and pasted code.
* kwq/KWQLoaderImpl.h: Added. Interface so loader can call into kwq as necessary.
* kwq/loader.moc: Removed empty file.
* kwq/kparts/historyprovider.h: Add HistoryProvider::insert.
* kwq/KWQKHistoryProvider.mm: Add HistoryProvider::insert.
* kwq/KWQKLocale.mm: (KLocale::language): Simplify.
* kwq/KWQListBox.h:
* kwq/KWQNSTextField.h:
Use import instead of include for Cocoa.h.
* kwq/KWQScrollView.mm: (QScrollView::contentsToViewport): Implement this.
* kwq/external.h: Add declarations so this can be included cleanly.
* kwq/khtml/khtml_pagecache.h: Put a no-op cache in here so we don't have to do so
many APPLE_CHANGES ifdefs.
* kwq/kparts/part.h: Put ref/deref and event/customEvent in here so they don't need
to be added to KHTMLPart.
* kwq/kio/scheduler.h: Add <qtimer.h> include to help us build (not sure if it's
really needed.
* kwq/kparts/partmanager.h: Add <qdatetime.h> include to help us build (not sure if it's
really needed.
=== Alexander-7 ===
2002-05-29 Richard Williamson <rjw@apple.com>
......
2002-05-30 Darin Adler <darin@apple.com>
Cut down our copied and pasted code even more.
* WebCore.exp: Change what's exported for things that moved from
KHTMLPart into KWQKHTMLPartImpl.
* khtml/.cvsignore:
* khtml/css/.cvsignore:
* khtml/dom/.cvsignore:
* khtml/ecma/.cvsignore:
* khtml/html/.cvsignore:
* khtml/java/.cvsignore:
* khtml/misc/.cvsignore:
* khtml/rendering/.cvsignore:
* khtml/xml/.cvsignore:
Some .cvsignore hygiene.
* khtml/khtml_part.cpp: Use a lot more of this file, rather than using a copy inside
the kwq directory. Now we have KWQKHTMLPartImpl for the part that does need to be in kwq.
* khtml/khtml_part.h: Add KWQKHTMLPartImpl pointer, remove most of the other APPLE_CHANGES.
* khtml/khtmlpart_p.h: Remove almost all of the APPLE_CHANGES.
* kwq/KWQKHTMLPart.mm: Changed everything from being part of KHTMLPart to be a separate
KWQKHTMLPartImpl class. Minimized copied and pasted code; still more to do.
* kwq/KWQKHTMLPartImpl.h: Added. Interface so KHTMLPart can call into kwq as necessary.
* khtml/misc/Makefile.am: Added loader.cpp.
* khtml/misc/loader.cpp: Added from KDE 3.0. Rolled most of the changes from KWQKloader.mm
in here. The kwq-specific part is now in a KWQLoaderImpl class.
* khtml/misc/loader.h: Replace LoaderPrivate with KWQLoaderImpl.
* khtml/misc/loader.moc: Added empty file.
* kwq/KWQKloader.mm: Changed everything to be a separate KWQLoaderImpl class.
Minimized copied and pasted code.
* kwq/KWQLoaderImpl.h: Added. Interface so loader can call into kwq as necessary.
* kwq/loader.moc: Removed empty file.
* kwq/kparts/historyprovider.h: Add HistoryProvider::insert.
* kwq/KWQKHistoryProvider.mm: Add HistoryProvider::insert.
* kwq/KWQKLocale.mm: (KLocale::language): Simplify.
* kwq/KWQListBox.h:
* kwq/KWQNSTextField.h:
Use import instead of include for Cocoa.h.
* kwq/KWQScrollView.mm: (QScrollView::contentsToViewport): Implement this.
* kwq/external.h: Add declarations so this can be included cleanly.
* kwq/khtml/khtml_pagecache.h: Put a no-op cache in here so we don't have to do so
many APPLE_CHANGES ifdefs.
* kwq/kparts/part.h: Put ref/deref and event/customEvent in here so they don't need
to be added to KHTMLPart.
* kwq/kio/scheduler.h: Add <qtimer.h> include to help us build (not sure if it's
really needed.
* kwq/kparts/partmanager.h: Add <qdatetime.h> include to help us build (not sure if it's
really needed.
=== Alexander-7 ===
2002-05-29 Richard Williamson <rjw@apple.com>
......
2002-05-30 Darin Adler <darin@apple.com>
Cut down our copied and pasted code even more.
* WebCore.exp: Change what's exported for things that moved from
KHTMLPart into KWQKHTMLPartImpl.
* khtml/.cvsignore:
* khtml/css/.cvsignore:
* khtml/dom/.cvsignore:
* khtml/ecma/.cvsignore:
* khtml/html/.cvsignore:
* khtml/java/.cvsignore:
* khtml/misc/.cvsignore:
* khtml/rendering/.cvsignore:
* khtml/xml/.cvsignore:
Some .cvsignore hygiene.
* khtml/khtml_part.cpp: Use a lot more of this file, rather than using a copy inside
the kwq directory. Now we have KWQKHTMLPartImpl for the part that does need to be in kwq.
* khtml/khtml_part.h: Add KWQKHTMLPartImpl pointer, remove most of the other APPLE_CHANGES.
* khtml/khtmlpart_p.h: Remove almost all of the APPLE_CHANGES.
* kwq/KWQKHTMLPart.mm: Changed everything from being part of KHTMLPart to be a separate
KWQKHTMLPartImpl class. Minimized copied and pasted code; still more to do.
* kwq/KWQKHTMLPartImpl.h: Added. Interface so KHTMLPart can call into kwq as necessary.
* khtml/misc/Makefile.am: Added loader.cpp.
* khtml/misc/loader.cpp: Added from KDE 3.0. Rolled most of the changes from KWQKloader.mm
in here. The kwq-specific part is now in a KWQLoaderImpl class.
* khtml/misc/loader.h: Replace LoaderPrivate with KWQLoaderImpl.
* khtml/misc/loader.moc: Added empty file.
* kwq/KWQKloader.mm: Changed everything to be a separate KWQLoaderImpl class.
Minimized copied and pasted code.
* kwq/KWQLoaderImpl.h: Added. Interface so loader can call into kwq as necessary.
* kwq/loader.moc: Removed empty file.
* kwq/kparts/historyprovider.h: Add HistoryProvider::insert.
* kwq/KWQKHistoryProvider.mm: Add HistoryProvider::insert.
* kwq/KWQKLocale.mm: (KLocale::language): Simplify.
* kwq/KWQListBox.h:
* kwq/KWQNSTextField.h:
Use import instead of include for Cocoa.h.
* kwq/KWQScrollView.mm: (QScrollView::contentsToViewport): Implement this.
* kwq/external.h: Add declarations so this can be included cleanly.
* kwq/khtml/khtml_pagecache.h: Put a no-op cache in here so we don't have to do so
many APPLE_CHANGES ifdefs.
* kwq/kparts/part.h: Put ref/deref and event/customEvent in here so they don't need
to be added to KHTMLPart.
* kwq/kio/scheduler.h: Add <qtimer.h> include to help us build (not sure if it's
really needed.
* kwq/kparts/partmanager.h: Add <qdatetime.h> include to help us build (not sure if it's
really needed.
=== Alexander-7 ===
2002-05-29 Richard Williamson <rjw@apple.com>
......
......@@ -2,7 +2,13 @@
.objc_class_name_WebCoreViewFactory
.objc_class_name_WebCoreImageRendererFactory
__Z27WCSetIFLoadProgressMakeFuncPFP11objc_objectvE
__Z28WCSetIFWebDataSourceMakeFuncPFP11objc_objectPvS1_jE
__ZN11QMouseEventC1EN6QEvent4TypeERK6QPointii
__ZN16KWQKHTMLPartImpl10setBaseURLERK4KURL
__ZN16KWQKHTMLPartImpl13setDataSourceEP15IFWebDataSource
__ZN16KWQKHTMLPartImpl14gotoBaseAnchorEv
__ZN16KWQKHTMLPartImpl7setViewEP9KHTMLView
__ZN16KWQKHTMLPartImpl8slotDataEP8NSStringPKcib
__ZN3DOM12DocumentImpl19updateStyleSelectorEv
__ZN3DOM9DOMStringD1Ev
__ZN3DOM9DomShared3refEv
......@@ -12,27 +18,21 @@ __ZN4KURLD1Ev
__ZN5khtml5Cache13getStatisticsEv
__ZN5khtml5Cache16setCacheDisabledEb
__ZN5khtml5Cache8flushAllEv
__ZN6QPointC1Eii
__ZN6QEventD2Ev
__ZN6QPointC1Eii
__ZN7QString12fromNSStringEP8NSString
__ZN7QStringD1Ev
__ZN7QWidget7setViewEP6NSView
__ZN8QPainterC1EP7QWidget
__ZN8QPainterD1Ev
__ZN9KHTMLPart10setBaseURLERK4KURL
__ZN9KHTMLPart13setDataSourceEP15IFWebDataSource
__ZN9KHTMLPart14gotoBaseAnchorEv
__ZN9KHTMLPart7setViewEP9KHTMLView
__ZN9KHTMLPart8slotDataEP8NSStringPKcib
__ZN9KHTMLPartC1EP7QWidgetPKcP7QObjectS3_NS_10GUIProfileE
__ZN9KHTMLView6layoutEv
__ZN9KHTMLViewC1EP9KHTMLPartP7QWidgetPKc
__ZN9QKeyEventC1EN6QEvent4TypeEiiiRK7QStringbt
__ZNK16KWQKHTMLPartImpl14documentSourceEv
__ZNK3DOM8NodeImpl16recursive_toHTMLEb
__ZNK3DOM8NodeImpl8rendererEv
__ZNK3DOM9DOMString6stringEv
__ZNK7QString6latin1Ev
__ZNK7QWidget7getViewEv
__ZNK9KHTMLPart10xmlDocImplEv
__ZNK9KHTMLPart14documentSourceEv
__Z28WCSetIFWebDataSourceMakeFuncPFP11objc_objectPvS1_jE
__ZN7QString12fromNSStringEP8NSString
__ZN9QKeyEventC1EN6QEvent4TypeEiiiRK7QStringbt
Makefile
Makefile.in
testkhtml
testcss
testrender
SunWS_cache
ir.out
testkhtml_static
*.moc
.deps
.libs
*.lo
*.la
......@@ -9,6 +9,3 @@ cssproperties.strip
cssproperties.h
.deps
*-stamp
*.lo
*.la
.libs
Makefile.in
Makefile
.deps
.libs
*.lo
*.la
Makefile.in
Makefile
testecma
.deps
.libs
*.la
*.lo
*.moc
*.lut.h
Makefile
Makefile.in
*.moc
kentities.c
Makefile
Makefile.in
.deps
.libs
*.lo
*.la
*.moc
This diff is collapsed.
......@@ -42,13 +42,7 @@ class KHTMLSettings;
class KJavaAppletContext;
#ifdef APPLE_CHANGES
#ifdef __OBJC__
@class IFURLHandle;
@class IFWebDataSource;
#else
typedef void IFURLHandle;
typedef void IFWebDataSource;
#endif
class KWQKHTMLPartImpl;
#endif
namespace DOM
......@@ -359,13 +353,11 @@ public:
bool onlyLocalReferences() const;
#ifndef KDE_NO_COMPAT
#ifndef APPLE_CHANGES
void enableJScript(bool e) { setJScriptEnabled(e); }
void enableJava(bool e) { setJavaEnabled(e); }
void enablePlugins(bool e) { setPluginsEnabled(e); }
void autoloadImages(bool e) { setAutoloadImages(e); }
void enableMetaRefresh(bool e) { setMetaRefreshEnabled(e); }
#endif
bool setCharset( const QString &, bool ) { return true; }
KURL baseURL() const;
......@@ -764,9 +756,7 @@ protected:
*/
void htmlError(int errorCode, const QString& text, const KURL& reqUrl);
#ifndef APPLE_CHANGES
virtual void customEvent( QCustomEvent *event );
#endif
/**
* Eventhandler of the khtml::MousePressEvent.
......@@ -1097,33 +1087,10 @@ private:
#ifdef APPLE_CHANGES
public:
void redirectJS();
void timerEvent ( QTimerEvent * );
// In the original KDE, these come from superclasses.
void ref() { _ref++; }
void deref() { if(_ref) _ref--; if(!_ref) delete this; }
bool event(QEvent *event);
// Additions.
bool gotoBaseAnchor();
void setView(KHTMLView *view);
void slotData(NSString *, const char *bytes, int length, bool complete = false);
void setBaseURL(const KURL &);
QString documentSource() const;
void setTitle(const DOM::DOMString &);
void setDataSource(IFWebDataSource *);
IFWebDataSource *getDataSource();
private:
unsigned int _ref;
void setTitle(const DOM::DOMString &);
KWQKHTMLPartImpl *impl;
friend class KWQKHTMLPartImpl;
#endif
};
......
......@@ -178,11 +178,6 @@ public:
m_newJSInterpreterExists = false;
m_dcopobject = 0;
m_dcop_counter = ++khtml_part_dcop_counter;
#ifdef APPLE_CHANGES
m_decodingStarted = 0;
m_dataSource = 0;
#endif
}
~KHTMLPartPrivate()
{
......@@ -266,11 +261,7 @@ public:
KURL m_workingURL;
#ifdef APPLE_CHANGES
int m_redirectionTimer;
#else
QTimer m_redirectionTimer;
#endif
QTime m_parsetime;
int m_delayRedirect;
QString m_redirectURL;
......@@ -370,13 +361,6 @@ public:
bool m_newJSInterpreterExists; // set to 1 by setOpenedByJS, for window.open
bool m_bPendingChildRedirection;
#ifdef APPLE_CHANGES
KURL m_baseURL;
QString m_documentSource;
bool m_decodingStarted;
void *m_dataSource;
#endif
};
#endif
Makefile
Makefile.in
khtmldata.h
htmltags.c
htmltags.h
htmltags.gperf
......@@ -9,6 +8,3 @@ htmlattrs.h
htmlattrs.gperf
.deps
*-stamp
*.lo
*.la
.libs
......@@ -15,6 +15,7 @@ libkhtmlmisc_o_SOURCES = \
htmltags.h \
khtmldata.h \
khtmllayout.h \
loader.cpp \
loader.h \
loader_client.h \
stringit.h \
......
This diff is collapsed.
......@@ -64,13 +64,14 @@ namespace DOM
class DocumentImpl;
};
#ifdef APPLE_CHANGES
class KWQLoaderImpl;
#endif
namespace khtml
{
class CachedObject;
class Request;
#ifdef APPLE_CHANGES
class LoaderPrivate;
#endif
class DocLoader;
/**
......@@ -420,7 +421,7 @@ namespace khtml
KJPEGFormatType m_jpegloader;
#endif
#ifdef APPLE_CHANGES
LoaderPrivate *d;
KWQLoaderImpl *d;
#endif
};
......
Makefile
Makefile.in
.deps
.libs
*.moc
*.lo
*.la
Makefile
Makefile.in
*.moc
*.lo
*.la
.deps
.libs
/*
* Copyright (C) 2002 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef KHTML_PAGECACHE_H_
#define KHTML_PAGECACHE_H_
#include <qcstring.h>
class QObject;
class KHTMLPageCache
{
public:
static KHTMLPageCache *self() { return 0; }
long createCacheEntry() { return 0; }
void addData(long, const QByteArray &) { }
void cancelEntry(long) { }
void endData(long) { }
bool isValid(long) { return false; }
void fetchData(long, QObject *, const char *) { }
void cancelFetch(QObject *) { }
};
#endif
/*
* Copyright (C) 2002 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <khtml_part.h>
#ifdef __OBJC__
@class IFWebDataSource;
#else
class IFWebDataSource;
#endif
class KWQKHTMLPartImpl : public QObject
{
public:
KWQKHTMLPartImpl(KHTMLPart *);
~KWQKHTMLPartImpl();
void setView(KHTMLView *view);
void openURL(const KURL &);
void begin(const KURL &, int xOffset, int yOffset);
void write(const char *str, int len);
void end();
void slotData(NSString *, const char *bytes, int length, bool complete = false);
void scheduleRedirection(int delay, const QString &url);
void redirectJS();
virtual void timerEvent(QTimerEvent *);
bool gotoBaseAnchor();
void setBaseURL(const KURL &);
void setTitle(const DOM::DOMString &);
QString documentSource() const;
void setDataSource(IFWebDataSource *);
IFWebDataSource *getDataSource();
bool frameExists(const QString &frameName);
void urlSelected(const QString &url, int button, int state, const QString &_target, KParts::URLArgs);
bool requestFrame(khtml::RenderPart *frame, const QString &url, const QString &frameName, const QStringList &params, bool isIFrame);
bool requestObject(khtml::RenderPart *frame, const QString &url, const QString &serviceType, const QStringList &args);
void submitForm(const char *action, const QString &url, const QByteArray &formData, const QString &_target, const QString& contentType, const QString& boundary);
private:
KHTMLPart *part;
KHTMLPartPrivate *d;
int m_redirectionTimer;
KURL m_baseURL;
QString m_documentSource;
bool m_decodingStarted;
IFWebDataSource *m_dataSource;
friend class KHTMLPart;
};
This diff is collapsed.
/*
* Copyright (C) 2002 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <khtml_part.h>
#ifdef __OBJC__
@class IFWebDataSource;
#else
class IFWebDataSource;
#endif
class KWQKHTMLPartImpl : public QObject
{
public:
KWQKHTMLPartImpl(KHTMLPart *);
~KWQKHTMLPartImpl();
void setView(KHTMLView *view);
void openURL(const KURL &);
void begin(const KURL &, int xOffset, int yOffset);
void write(const char *str, int len);
void end();
void slotData(NSString *, const char *bytes, int length, bool complete = false);
void scheduleRedirection(int delay, const QString &url);
void redirectJS();
virtual void timerEvent(QTimerEvent *);
bool gotoBaseAnchor();
void setBaseURL(const KURL &);
void setTitle(const DOM::DOMString &);
QString documentSource() const;
void setDataSource(IFWebDataSource *);
IFWebDataSource *getDataSource();
bool frameExists(const QString &frameName);
void urlSelected(const QString &url, int button, int state, const QString &_target, KParts::URLArgs);
bool requestFrame(khtml::RenderPart *frame, const QString &url, const QString &frameName, const QStringList &params, bool isIFrame);
bool requestObject(khtml::RenderPart *frame, const QString &url, const QString &serviceType, const QStringList &args);
void submitForm(const char *action, const QString &url, const QByteArray &formData, const QString &_target, const QString& contentType, const QString& boundary);
private: