Source Code (Use browser search to find items of interest.)

Class Index

kword'KWordShell (./koffice/kword/kword_shell.h:31)

class KWordShell : public KoMainWindow
{
    Q_OBJECT
public:
    KWordShell( const char* name = 0 );
    ~KWordShell();

    QString nativeFormatPattern() const { return "*.kwd"; }
    QString nativeFormatName() const { return "KWord"; }

    virtual void setRootDocument( KoDocument* );

public slots:
    void slotFilePrint();
    void slotHelpAbout();

protected:
    virtual KoDocument* createDoc();
};

kword'KWordShell::KWordShell() (./koffice/kword/kword_shell.cc:27)

KWordShell::KWordShell( const char* name )
    : KoMainWindow( KWordFactory::global(), name )
{
//    partManager()->setAllowDoubleClickActivation( false );
    resize( 800, 600 );
}


kword'KWordShell::~KWordShell() (./koffice/kword/kword_shell.cc:34)

KWordShell::~KWordShell()
{
}


kword'KWordShell::createDoc() (./koffice/kword/kword_shell.cc:38)

KoDocument* KWordShell::createDoc()
{
    return new KWordDocument;
}


kword'KWordShell::setRootDocument() (./koffice/kword/kword_shell.cc:43)

void KWordShell::setRootDocument( KoDocument *doc )
{
    KoMainWindow::setRootDocument( doc );
    if ( doc )
      ( (KWordView*)rootView() )->initGui();
}


kword'KWordShell::slotFilePrint() (./koffice/kword/kword_shell.cc:50)

void KWordShell::slotFilePrint()
{
    ( (KWordView*)rootView() )->printDlg();
}


kword'KWordShell::slotHelpAbout() (./koffice/kword/kword_shell.cc:55)

void KWordShell::slotHelpAbout()
{
    KAboutDialog *dia = new KAboutDialog( KAboutDialog::AbtImageOnly | KAboutDialog::AbtProduct | KAboutDialog::AbtTitle,
					  kapp->caption(),
					  KDialogBase::Ok, KDialogBase::Ok, this, 0, TRUE );
    dia->setTitle( "KWord" );
    dia->setProduct( "", KWORD_VERSION, "Reginald Stadlbauer <reggie@kde.org>", "1998-1999" );
    dia->setImage( locate( "data", "koffice/pics/koffice-logo.png", KWordFactory::global() ) );
    dia->exec();
    delete dia;
}