browserextension.cpp
455 TQString url = TQApplication::clipboard()->text(plain, TQClipboard::Selection).stripWhiteSpace();
485 i18n( "<qt>Do you want to search the Internet for <b>%1</b>?" ).arg( TQStyleSheet::escape(url) ),
528 //kdDebug() << "BrowserExtension::slotEnableAction setting bit " << it.data() << " to " << enabled << endl;
700 LiveConnectExtension::LiveConnectExtension( KParts::ReadOnlyPart *parent, const char *name ) : TQObject( parent, name) {}
702 bool LiveConnectExtension::get( const unsigned long, const TQString &, Type &, unsigned long &, TQString & ) {
710 bool LiveConnectExtension::call( const unsigned long, const TQString &, const TQStringList &, Type &, unsigned long &, TQString & ) {
static int questionYesNo(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
static void sorry(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
The Browser Extension is an extension (yes, no kidding) to KParts::ReadOnlyPart, which allows a bette...
Definition: browserextension.h:309
void pasteRequest()
Asks the hosting browser to perform a paste (using openURLRequestDelayed)
Definition: browserextension.cpp:452
URLArgs urlArgs() const
Retrieve the set of parameters to use for opening the URL (this must be called from openURL() in the ...
Definition: browserextension.cpp:401
static ActionSlotMap * actionSlotMapPtr()
Definition: browserextension.cpp:567
void enableAction(const char *name, bool enabled)
Enables or disable a standard action held by the browser.
virtual void setURLArgs(const URLArgs &args)
Set the parameters to use for opening the next URL.
Definition: browserextension.cpp:396
BrowserExtension(KParts::ReadOnlyPart *parent, const char *name=0L)
Constructor.
Definition: browserextension.cpp:357
bool isActionEnabled(const char *name) const
Definition: browserextension.cpp:534
bool isURLDropHandlingEnabled() const
Returns whether url drop handling is enabled.
Definition: browserextension.cpp:436
static BrowserExtension * childObject(TQObject *obj)
Queries obj for a child object which inherits from this BrowserExtension class.
Definition: browserextension.cpp:606
static ActionSlotMap actionSlotMap()
Returns a map containing the action names as keys and corresponding TQ_SLOT()'ified method names as d...
Definition: browserextension.cpp:562
virtual void restoreState(TQDataStream &stream)
Used by the browser to restore the view in the state it was when we left it.
Definition: browserextension.cpp:421
virtual void saveState(TQDataStream &stream)
Used by the browser to save the current state of the view (in order to restore it if going back in na...
Definition: browserextension.cpp:416
TQString actionText(const char *name) const
Definition: browserextension.cpp:552
void openURLRequestDelayed(const KURL &url, const KParts::URLArgs &args=KParts::URLArgs())
This signal is emitted when openURLRequest is called, after a 0-seconds timer.
void openURLRequest(const KURL &url, const KParts::URLArgs &args=KParts::URLArgs())
Asks the host (browser) to open url.
void setURLDropHandlingEnabled(bool enable)
Enables or disables url drop handling.
Definition: browserextension.cpp:441
void setActionText(const char *name, const TQString &text)
Change the text of a standard action held by the browser.
An extension class for container parts, i.e.
Definition: browserextension.h:725
virtual bool openURLInFrame(const KURL &url, const KParts::URLArgs &urlArgs)
Opens the given url in a hosted child frame.
Definition: browserextension.cpp:662
virtual const TQPtrList< KParts::ReadOnlyPart > frames() const
Returns a list of pointers to all hosted child objects.
Definition: browserextension.cpp:657
virtual TQStringList frameNames() const
Returns a list of the names of all hosted child objects.
Definition: browserextension.cpp:652
BrowserHostExtension * findFrameParent(KParts::ReadOnlyPart *callingPart, const TQString &frame)
Returns the part that contains frame and that may be accessed by callingPart.
Definition: browserextension.cpp:687
static BrowserHostExtension * childObject(TQObject *obj)
Queries obj for a child object which inherits from this BrowserHostExtension class.
Definition: browserextension.cpp:667
The purpose of this interface is to allow a direct communication between a KPart and the hosting brow...
Definition: browserinterface.h:39
An extension class for LiveConnect, i.e.
Definition: browserextension.h:793
virtual void unregister(const unsigned long objid)
notifies the part that there is no reference anymore to objid
Definition: browserextension.cpp:714
virtual bool put(const unsigned long objid, const TQString &field, const TQString &value)
put a field value in objid, return true on success
Definition: browserextension.cpp:706
virtual bool get(const unsigned long objid, const TQString &field, Type &type, unsigned long &retobjid, TQString &value)
get a field value from objid, return true on success
Definition: browserextension.cpp:702
virtual bool call(const unsigned long objid, const TQString &func, const TQStringList &args, Type &type, unsigned long &retobjid, TQString &value)
calls a function of objid, return true on success
Definition: browserextension.cpp:710
virtual bool openURL(const KURL &url)
Only reimplement openURL if you don't want the network transparency support to download from the url ...
Definition: part.cpp:333
kndbgstream & endl(kndbgstream &s)
kdbgstream kdWarning(int area=0)
kdbgstream kdDebug(int area=0)
TQString name(StdAccel id)
URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opene...
Definition: browserextension.h:58
void setContentType(const TQString &contentType)
TDEHTML-specific field, header defining the type of the POST data.
Definition: browserextension.cpp:139
TQStringList docState
This buffer can be used by the part to save and restore its contents.
Definition: browserextension.h:70
TQString contentType() const
TDEHTML-specific field, header defining the type of the POST data.
Definition: browserextension.cpp:158
void setNewTab(bool newTab)
Whether the URL should be opened in a new tab instead in a new window.
Definition: browserextension.cpp:194
int xOffset
xOffset is the horizontal scrolling of the part's widget (in case it's a scrollview).
Definition: browserextension.h:81
void setDoPost(bool enable)
TDEHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition: browserextension.cpp:170
bool redirectedRequest() const
Definition: browserextension.cpp:153
TQMap< TQString, TQString > & metaData()
Meta-data to associate with the next TDEIO operation.
Definition: browserextension.cpp:163
void setLockHistory(bool lock)
Whether to lock the history when opening the next URL.
Definition: browserextension.cpp:182
bool reload
reload is set when the cache shouldn't be used (forced reload).
Definition: browserextension.h:75
bool doPost() const
TDEHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition: browserextension.cpp:177
void setRedirectedRequest(bool redirected)
Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.
Definition: browserextension.cpp:146
TQString serviceType
The servicetype (usually mimetype) to use when opening the next URL.
Definition: browserextension.h:89
void setForcesNewWindow(bool forcesNewWindow)
Set whether the URL specifies to be opened in a new window.
Definition: browserextension.cpp:206
bool forcesNewWindow() const
Whether the URL specifies to be opened in a new window.
Definition: browserextension.cpp:213
TQByteArray postData
TDEHTML-specific field, contents of the HTTP POST data.
Definition: browserextension.h:94
bool trustedSource
If true, the part who asks for a URL to be opened can be 'trusted' to execute applications.
Definition: browserextension.h:146
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition: browserextension.h:185