Bug 40731 - Create a document with a name in command line with koffice app
Summary: Create a document with a name in command line with koffice app
Status: RESOLVED FIXED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: 1.1.1
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KOffice List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-11 12:18 UTC by rjacolin
Modified: 2004-08-14 19:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rjacolin 2002-04-11 12:11:26 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kword
Version:           1.1.1 (using KDE 3.0.0 )
Severity:          wishlist
Installed from:    Mandrake Linux 8.2 i586 - Cooker
Compiler:          gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)
OS:                Linux (i686) release 2.4.18-6mdk
OS/Compiler notes: 

With koffice applications it's possible to open a document in a shell with the command :
$ kword file.kwd

If the file doesn't exist an error occurs.
It will be more interesting to ask if the document must be created or to create it directly.


(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Nicolas Goutte 2004-08-14 19:33:03 UTC
----------  Forwarded Message  ----------

Subject: koffice
Date: Saturday 14 August 2004 18:42
From: Fredrik Edemar (...)
To: kde-cvs (...)

CVS commit by fedemar:

* KWord: When opening the save dialog KWord suggests the first words in the
 first line as file name.
 * When you start a KOffice-program with a parameter
 e.g "kword file.kwd" and file.kwd doesn't exist, the file will be created.
 * virtual bool KoDocument::initDoc() is changed to virtual bool
 KoDocument::initDoc(InitDocFlags flags, QWidget* parentWidget=0).
 KoDocument::setInitDocFlags() doesn't have to be called in that way.


  M +7 -2      karbon/karbon_part.cc   1.167
  M +1 -1      karbon/karbon_part.h   1.85
  M +2 -2      kchart/kchart_part.cc   1.83
  M +1 -1      kchart/kchart_part.h   1.33
  M +1 -1      kexi/plugins/kugar/kexikugarhandleritem.cpp   1.15
  M +1 -1      kformula/kformula_doc.cc   1.85
  M +1 -1      kformula/kformula_doc.h   1.51
  M +10 -2     kivio/kiviopart/kivio_doc.cpp   1.90
  M +1 -1      kivio/kiviopart/kivio_doc.h   1.47
  M +12 -4     koshell/koshell_shell.cc   1.76
  M +1 -1      kounavail/kounavail.h   1.9
  M +11 -2     kplato/kptpart.cc   1.20
  M +1 -1      kplato/kptpart.h   1.15
  M +15 -3     kpresenter/kpresenter_doc.cc   1.834
  M +1 -1      kpresenter/kpresenter_doc.h   1.389
  M +1 -2      kpresenter/kprpage.cc   1.271
  M +13 -3     krita/core/kis_doc.cc   1.183
  M +1 -1      krita/core/kis_doc.h   1.95
  M +2 -3      kspread/KSpreadAppIface.cc   1.10
  M +28 -3     kspread/kspread_doc.cc   1.320
  M +1 -1      kspread/kspread_doc.h   1.155
  M +2 -4      kspread/kspread_sheet.cc   1.615
  M +1 -1      kugar/part/kugar_part.cpp   1.29
  M +1 -1      kugar/part/kugar_part.h   1.14
  M +50 -4     kword/kwdoc.cc   1.697
  M +2 -1      kword/kwdoc.h   1.321
  M +1 -2      lib/kofficecore/koApplication.cc   1.85
  M +5 -3      lib/kofficecore/koDocument.h   1.166
  M +39 -7     lib/kofficecore/koMainWindow.cc   1.333
  M +2 -0      lib/kofficecore/koMainWindow.h   1.95

-------------------------------------------------------