[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/example
From: David Faure <faure () kde ! org>
Date: 2003-07-01 13:00:19
[Download RAW message or body]
CVS commit by faure:
Commented out, but show the right way to write the initDoc() code.
M +1 -1 example.desktop 1.183
M +11 -0 example_part.cc 1.17
--- koffice/example/example.desktop #1.182:1.183
@@ -1,5 +1,5 @@
[Desktop Entry]
Encoding=UTF-8
-Name=Example
+Name=KOffice Example Application
Name[af]=Voorbeeld
Name[az]=Nümunə
--- koffice/example/example_part.cc #1.16:1.17
@@ -33,4 +33,15 @@ bool ExamplePart::initDoc()
{
// If nothing is loaded, do initialize here
+ // Most KOffice applications use the template dialog here, with code like:
+/*
+ KoTemplateChooseDia::DialogType dlgtype;
+ if (initDocFlags() != KoDocument::InitDocFileNew )
+ dlgtype = KoTemplateChooseDia::Everything;
+ else
+ dlgtype = KoTemplateChooseDia::OnlyTemplates;
+
+ KoTemplateChooseDia::ReturnType ret = KoTemplateChooseDia::choose(
+ .... )
+*/
return TRUE;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic