~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kugar/shell_qt/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <qapplication.h>
 
2
#include <qfile.h>
 
3
 
 
4
//#include "kugarview.h"
 
5
#include "form1.h"
 
6
 
 
7
int main( int argc, char ** argv )
 
8
{
 
9
    QApplication a( argc, argv );
 
10
 
 
11
        Form1 w;
0
12
   w.show();
 
13
 
 
14
        //KugarView* rptviewer = new KugarView();
 
15
        //QFile f("sample3.kud");
 
16
        //if (f.open(IO_ReadOnly))
 
17
        //{
 
18
        //      if (!rptviewer -> setReportData(&f))
 
19
        //              qDebug("Invalid data file: %1","sample1.kud");
 
20
 
 
21
        //      f.close();
 
22
        //}
 
23
        //else
 
24
        //      qDebug("Unable to open data file: %1","sample1.kud");
 
25
 
 
26
        //QFile ff("sample3.kut");
 
27
        //if (ff.open(IO_ReadOnly))
 
28
        //{
 
29
        //      if (!rptviewer -> setReportTemplate(&ff))
 
30
        //              qDebug("Invalid data file: %1","sample1.kud");
 
31
 
 
32
        //      ff.close();
 
33
        //}
 
34
        //else
 
35
        //      qDebug("Unable to open data file: %1","sample1.kud");
 
36
 
 
37
        //rptviewer->renderReport();
 
38
        //rptviewer->show();
 
39
 
 
40
        a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
 
41
    return a.exec();
 
42
}