lib

#include <KoDocumentIface.h>

Inheritance diagram for KoDocumentIface:
DCOPObject

Public Member Functions

 KoDocumentIface (KoDocument *doc, const char *name=0)
virtual QCStringList functionsDynamic ()
virtual bool processDynamic (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
Public Member Functions inherited from DCOPObject
 DCOPObject (TQObject *obj)
 DCOPObject (const TQCString &objId)
TQCString objId () const
bool setObjId (const TQCString &objId)
virtual bool process (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
virtual QCStringList interfacesDynamic ()
virtual QCStringList interfaces ()
virtual QCStringList functions ()
void emitDCOPSignal (const TQCString &signal, const TQByteArray &data)
bool connectDCOPSignal (const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &slot, bool Volatile)
bool disconnectDCOPSignal (const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &slot)
DCOPClient * callingDcopClient ()

Static Public Member Functions

static TQCString newIfaceName ()
Static Public Member Functions inherited from DCOPObject
static bool hasObject (const TQCString &objId)
static DCOPObject * find (const TQCString &objId)
static TQPtrList< DCOPObject > match (const TQCString &partialId)
static TQCString objectName (TQObject *obj)

Protected Attributes

KoDocument * m_pDoc
KDCOPActionProxy * m_actionProxy

Detailed Description

DCOP interface for any KOffice document Use KoApplicationIface to get hold of an existing document's interface, or to create a document.

Note: KOffice Applications may (and should) reimplement KoDocument::dcopObject() In this case, don't look here... (unless the DCOP interface for the document inherits KoDocumentIface, which is a good thing to do)

Definition at line 39 of file KoDocumentIface.h.

Constructor & Destructor Documentation

◆ KoDocumentIface()

KoDocumentIface::KoDocumentIface ( KoDocument * doc,
const char * name = 0 )

Definition at line 40 of file KoDocumentIface.cpp.

◆ ~KoDocumentIface()

KoDocumentIface::~KoDocumentIface ( )

Definition at line 47 of file KoDocumentIface.cpp.

Member Function Documentation

◆ action

DCOPRef KoDocumentIface::action ( const TQCString & name)

DCOP-action proxy.

Definition at line 92 of file KoDocumentIface.cpp.

◆ actionMap

TQMap< TQCString, DCOPRef > KoDocumentIface::actionMap ( )
Returns
a map of (action name, DCOP reference)

Definition at line 109 of file KoDocumentIface.cpp.

◆ actions

QCStringList KoDocumentIface::actions ( )
Returns
list of actions

Definition at line 97 of file KoDocumentIface.cpp.

◆ documentInfoAbstract

TQString KoDocumentIface::documentInfoAbstract ( ) const

Definition at line 310 of file KoDocumentIface.cpp.

◆ documentInfoAuthorName

TQString KoDocumentIface::documentInfoAuthorName ( ) const

Definition at line 130 of file KoDocumentIface.cpp.

◆ documentInfoAuthorPostion

TQString KoDocumentIface::documentInfoAuthorPostion ( ) const

Definition at line 268 of file KoDocumentIface.cpp.

◆ documentInfoCity

TQString KoDocumentIface::documentInfoCity ( ) const

Definition at line 241 of file KoDocumentIface.cpp.

◆ documentInfoCompanyName

TQString KoDocumentIface::documentInfoCompanyName ( ) const

Definition at line 156 of file KoDocumentIface.cpp.

◆ documentInfoCountry

TQString KoDocumentIface::documentInfoCountry ( ) const

Definition at line 215 of file KoDocumentIface.cpp.

◆ documentInfoEmail

TQString KoDocumentIface::documentInfoEmail ( ) const

Definition at line 143 of file KoDocumentIface.cpp.

◆ documentInfoFax

TQString KoDocumentIface::documentInfoFax ( ) const

Definition at line 202 of file KoDocumentIface.cpp.

◆ documentInfoInitial

TQString KoDocumentIface::documentInfoInitial ( ) const

Definition at line 255 of file KoDocumentIface.cpp.

◆ documentInfoKeywords

TQString KoDocumentIface::documentInfoKeywords ( ) const

Definition at line 323 of file KoDocumentIface.cpp.

◆ documentInfoPostalCode

TQString KoDocumentIface::documentInfoPostalCode ( ) const

Definition at line 228 of file KoDocumentIface.cpp.

◆ documentInfoStreet

TQString KoDocumentIface::documentInfoStreet ( ) const

Definition at line 282 of file KoDocumentIface.cpp.

◆ documentInfoSubject

TQString KoDocumentIface::documentInfoSubject ( ) const

Definition at line 336 of file KoDocumentIface.cpp.

◆ documentInfoTelephone

TQString KoDocumentIface::documentInfoTelephone ( ) const

Definition at line 169 of file KoDocumentIface.cpp.

◆ documentInfoTelephoneHome

TQString KoDocumentIface::documentInfoTelephoneHome ( ) const

Definition at line 188 of file KoDocumentIface.cpp.

◆ documentInfoTelephoneWork

TQString KoDocumentIface::documentInfoTelephoneWork ( ) const

Definition at line 175 of file KoDocumentIface.cpp.

◆ documentInfoTitle

TQString KoDocumentIface::documentInfoTitle ( ) const

Definition at line 296 of file KoDocumentIface.cpp.

◆ functionsDynamic()

QCStringList KoDocumentIface::functionsDynamic ( )
virtual

Reimplemented from DCOPObject.

Definition at line 555 of file KoDocumentIface.cpp.

◆ isLoading

bool KoDocumentIface::isLoading ( )
Returns
true is the document is still loading

Definition at line 57 of file KoDocumentIface.cpp.

◆ isModified

bool KoDocumentIface::isModified ( )
Returns
true is the document has been modified

Definition at line 67 of file KoDocumentIface.cpp.

◆ newIfaceName()

TQCString KoDocumentIface::newIfaceName ( )
static

Generate a name for this interface.

Automatically used if name=0 is passed to the constructor

Definition at line 33 of file KoDocumentIface.cpp.

◆ openURL

void KoDocumentIface::openURL ( TQString url)

Opens a document stored in url Warning: this is asynchronous.

The document might not be loaded yet when this call returns. See isLoading.

Definition at line 52 of file KoDocumentIface.cpp.

◆ processDynamic()

bool KoDocumentIface::processDynamic ( const TQCString & fun,
const TQByteArray & data,
TQCString & replyType,
TQByteArray & replyData )
virtual

Reimplemented from DCOPObject.

Definition at line 560 of file KoDocumentIface.cpp.

◆ save

void KoDocumentIface::save ( )

Saves the document under its existing filename.

Definition at line 114 of file KoDocumentIface.cpp.

◆ saveAs

void KoDocumentIface::saveAs ( const TQString & url)

Saves the document under a new name.

Definition at line 119 of file KoDocumentIface.cpp.

◆ setDocumentInfoAbstract

void KoDocumentIface::setDocumentInfoAbstract ( const TQString & text)

Definition at line 543 of file KoDocumentIface.cpp.

◆ setDocumentInfoAuthorName

void KoDocumentIface::setDocumentInfoAuthorName ( const TQString & text)

Definition at line 372 of file KoDocumentIface.cpp.

◆ setDocumentInfoAuthorPosition

void KoDocumentIface::setDocumentInfoAuthorPosition ( const TQString & text)

Definition at line 409 of file KoDocumentIface.cpp.

◆ setDocumentInfoCity

void KoDocumentIface::setDocumentInfoCity ( const TQString & text)

Definition at line 504 of file KoDocumentIface.cpp.

◆ setDocumentInfoCompanyName

void KoDocumentIface::setDocumentInfoCompanyName ( const TQString & text)

Definition at line 397 of file KoDocumentIface.cpp.

◆ setDocumentInfoCountry

void KoDocumentIface::setDocumentInfoCountry ( const TQString & text)

Definition at line 465 of file KoDocumentIface.cpp.

◆ setDocumentInfoEmail

void KoDocumentIface::setDocumentInfoEmail ( const TQString & text)

Definition at line 385 of file KoDocumentIface.cpp.

◆ setDocumentInfoFax

void KoDocumentIface::setDocumentInfoFax ( const TQString & text)

Definition at line 453 of file KoDocumentIface.cpp.

◆ setDocumentInfoInitial

void KoDocumentIface::setDocumentInfoInitial ( const TQString & text)

Definition at line 516 of file KoDocumentIface.cpp.

◆ setDocumentInfoKeywords

void KoDocumentIface::setDocumentInfoKeywords ( const TQString & text)

Definition at line 348 of file KoDocumentIface.cpp.

◆ setDocumentInfoPostalCode

void KoDocumentIface::setDocumentInfoPostalCode ( const TQString & text)

Definition at line 490 of file KoDocumentIface.cpp.

◆ setDocumentInfoStreet

void KoDocumentIface::setDocumentInfoStreet ( const TQString & text)

Definition at line 529 of file KoDocumentIface.cpp.

◆ setDocumentInfoSubject

void KoDocumentIface::setDocumentInfoSubject ( const TQString & text)

Definition at line 360 of file KoDocumentIface.cpp.

◆ setDocumentInfoTelephone

void KoDocumentIface::setDocumentInfoTelephone ( const TQString & text)

Definition at line 422 of file KoDocumentIface.cpp.

◆ setDocumentInfoTelephoneHome

void KoDocumentIface::setDocumentInfoTelephoneHome ( const TQString & text)

Definition at line 440 of file KoDocumentIface.cpp.

◆ setDocumentInfoTelephoneWork

void KoDocumentIface::setDocumentInfoTelephoneWork ( const TQString & text)

Definition at line 428 of file KoDocumentIface.cpp.

◆ setDocumentInfoTitle

void KoDocumentIface::setDocumentInfoTitle ( const TQString & text)

Definition at line 478 of file KoDocumentIface.cpp.

◆ setOutputMimeType

void KoDocumentIface::setOutputMimeType ( const TQCString & mimetype)

Definition at line 125 of file KoDocumentIface.cpp.

◆ url

TQString KoDocumentIface::url ( )

Returns the URL for this document (empty, real URL, or internal one).

Definition at line 62 of file KoDocumentIface.cpp.

◆ view

DCOPRef KoDocumentIface::view ( int idx)
Returns
a DCOP reference (DCOPRef) to the view with index idx

Definition at line 77 of file KoDocumentIface.cpp.

◆ viewCount

int KoDocumentIface::viewCount ( )
Returns
the number of views this document is displayed in

Definition at line 72 of file KoDocumentIface.cpp.

Member Data Documentation

◆ m_actionProxy

KDCOPActionProxy* KoDocumentIface::m_actionProxy
protected

Definition at line 153 of file KoDocumentIface.h.

◆ m_pDoc

KoDocument* KoDocumentIface::m_pDoc
protected

Definition at line 152 of file KoDocumentIface.h.


The documentation for this class was generated from the following files: