summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-11-03 07:02:17 +0000
committerPascal Junck <pjunck@openoffice.org>2004-11-03 07:02:17 +0000
commitbb25e85916f185f25f06ce74fa67ec64c32a671b (patch)
treeb23a85d3392ca92d318488ce7a0a98a851b8ca5d /shell/source
parent3fe07281453c356f619e122b5c2a18cc37c94692 (diff)
INTEGRATION: CWS desktintgr03 (1.3.2); FILE MERGED
2004/09/24 05:22:19 deuce 1.3.2.1: Issue number: i33473 Submitted by: Gorden Lin {Gorden.Lin@Sun.com} Reviewed by: Tino Rachui {Tino.Rachui@Sun.com}
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/win32/shlxthandler/util/fileextensions.cxx20
1 files changed, 13 insertions, 7 deletions
diff --git a/shell/source/win32/shlxthandler/util/fileextensions.cxx b/shell/source/win32/shlxthandler/util/fileextensions.cxx
index 9b44bf8ee379..223f2790868d 100644
--- a/shell/source/win32/shlxthandler/util/fileextensions.cxx
+++ b/shell/source/win32/shlxthandler/util/fileextensions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fileextensions.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2004-09-08 14:35:38 $
+ * last change: $Author: pjunck $ $Date: 2004-11-03 08:02:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -67,11 +67,13 @@
//
//------------------------------------
-const std::string WRITER_FILE_EXTENSIONS = "sxwstwsxgoxtottoxgootoom";
-const std::string CALC_FILE_EXTENSIONS = "sxcstcoxsotsoos";
-const std::string DRAW_FILE_EXTENSIONS = "sxdstdoxdotdood";
-const std::string IMPRESS_FILE_EXTENSIONS = "sxistioxpotpoop";
-const std::string MATH_FILE_EXTENSIONS = "sxmoxfoof";
+const std::string WRITER_FILE_EXTENSIONS = "sxwstwsxgootottoom";
+const std::string CALC_FILE_EXTENSIONS = "sxcstcoosots";
+const std::string DRAW_FILE_EXTENSIONS = "sxdstdoodotd";
+const std::string IMPRESS_FILE_EXTENSIONS = "sxistioopotp";
+const std::string MATH_FILE_EXTENSIONS = "sxmoof";
+const std::string WEB_FILE_EXTENSIONS = "oth";
+const std::string DATABASE_FILE_EXTENSIONS = "odb";
FileExtensionEntry OOFileExtensionTable[] = {
{ ".sxw", L".sxw", "soffice.StarWriterDocument.6" },
@@ -133,6 +135,10 @@ File_Type_t get_file_type(const std::string& file_name)
return IMPRESS;
else if (std::string::npos != MATH_FILE_EXTENSIONS.find(fext))
return MATH;
+ else if (std::string::npos != WEB_FILE_EXTENSIONS.find(fext))
+ return WEB;
+ else if (std::string::npos != DATABASE_FILE_EXTENSIONS.find(fext))
+ return DATABASE;
else
return UNKNOWN;
}